ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/configure
Revision: 4181
Committed: Sun Jul 6 13:11:44 2014 UTC (9 years, 9 months ago) by michael
File size: 519768 byte(s)
Log Message:
- Revved version to hybrid-8.2.0beta4

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 3725 2014-05-31 16:29:38Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.2.0beta4.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 lt_ltdl_dir='libltdl'
569
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572
573 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592
593 # Identity of this package.
594 PACKAGE_NAME='ircd-hybrid'
595 PACKAGE_TARNAME='ircd-hybrid'
596 PACKAGE_VERSION='8.2.0beta4'
597 PACKAGE_STRING='ircd-hybrid 8.2.0beta4'
598 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599 PACKAGE_URL=''
600
601 ac_unique_file="src/ircd.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_func_list=
639 ac_header_list=
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 LOCALSTATEDIR
647 DATADIR
648 LIBDIR
649 SYSCONFDIR
650 PREFIX
651 ENABLE_SSL_FALSE
652 ENABLE_SSL_TRUE
653 LTDLOPEN
654 LT_CONFIG_H
655 CONVENIENCE_LTDL_FALSE
656 CONVENIENCE_LTDL_TRUE
657 INSTALL_LTDL_FALSE
658 INSTALL_LTDL_TRUE
659 ARGZ_H
660 sys_symbol_underscore
661 LIBADD_DL
662 LT_DLPREOPEN
663 LIBADD_DLD_LINK
664 LIBADD_SHL_LOAD
665 LIBADD_DLOPEN
666 LT_DLLOADERS
667 INCLTDL
668 LTDLINCL
669 LTDLDEPS
670 LIBLTDL
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 LIBTOOL
701 LEXLIB
702 LEX_OUTPUT_ROOT
703 LEX
704 YFLAGS
705 YACC
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_static
798 enable_shared
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_included_ltdl
805 with_ltdl_include
806 with_ltdl_lib
807 enable_ltdl_install
808 enable_libgeoip
809 enable_openssl
810 enable_assert
811 enable_kqueue
812 enable_epoll
813 enable_devpoll
814 enable_poll
815 enable_select
816 enable_debugging
817 enable_warnings
818 '
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CC
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
827 YACC
828 YFLAGS
829 CPP'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *=) ac_optarg= ;;
894 *) ac_optarg=yes ;;
895 esac
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 bindir=$ac_optarg ;;
907
908 -build | --build | --buil | --bui | --bu)
909 ac_prev=build_alias ;;
910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911 build_alias=$ac_optarg ;;
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
922
923 -datadir | --datadir | --datadi | --datad)
924 ac_prev=datadir ;;
925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
926 datadir=$ac_optarg ;;
927
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
935 -disable-* | --disable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
960
961 -enable-* | --enable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
996
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1001
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1031
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1105
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1164
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=\$ac_optarg ;;
1180
1181 -without-* | --without-*)
1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error $? "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190 "with_$ac_useropt"
1191 "*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1214
1215 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1216 Try \`$0 --help' for more information"
1217 ;;
1218
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1228
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 ;;
1236
1237 esac
1238 done
1239
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 as_fn_error $? "missing argument to $ac_option"
1243 fi
1244
1245 if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1250 esac
1251 fi
1252
1253 # Check all directory arguments for consistency.
1254 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
1258 do
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
1267 case $ac_val in
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1270 esac
1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1272 done
1273
1274 # There might be people who depend on the old broken behavior: `$host'
1275 # used to hold the argument of --host etc.
1276 # FIXME: To remove some day.
1277 build=$build_alias
1278 host=$host_alias
1279 target=$target_alias
1280
1281 # FIXME: To remove some day.
1282 if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288 fi
1289
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293 test "$silent" = yes && exec 6>/dev/null
1294
1295
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error $? "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error $? "pwd does not report name of working directory"
1302
1303
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335 else
1336 ac_srcdir_defaulted=no
1337 fi
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1341 fi
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349 fi
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1362
1363 #
1364 # Report the --help message.
1365 #
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures ircd-hybrid 8.2.0beta4 to adapt to many kinds of systems.
1371
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377 Defaults for the options are specified in brackets.
1378
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking ...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1395
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1400
1401 For better control, use the options below.
1402
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423 _ACEOF
1424
1425 cat <<\_ACEOF
1426
1427 Program names:
1428 --program-prefix=PREFIX prepend PREFIX to installed program names
1429 --program-suffix=SUFFIX append SUFFIX to installed program names
1430 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1431
1432 System types:
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435 _ACEOF
1436 fi
1437
1438 if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of ircd-hybrid 8.2.0beta4:";;
1441 esac
1442 cat <<\_ACEOF
1443
1444 Optional Features:
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-silent-rules less verbose build output (undo: "make V=1")
1449 --disable-silent-rules verbose build output (undo: "make V=0")
1450 --enable-maintainer-mode
1451 enable make rules and dependencies not useful (and
1452 sometimes confusing) to the casual installer
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-static[=PKGS] build static libraries [default=no]
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-ltdl-install install libltdl
1463 --disable-libgeoip Disable GeoIP support
1464 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1465 --disable-openssl Disable OpenSSL support.
1466 --enable-assert Enable assert() statements
1467 --enable-kqueue Force kqueue usage.
1468 --enable-epoll Force epoll usage.
1469 --enable-devpoll Force devpoll usage.
1470 --enable-poll Force poll usage.
1471 --enable-select Force select usage.
1472 --enable-debugging Enable debugging.
1473 --enable-warnings Enable compiler warnings.
1474
1475 Optional Packages:
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1479 both]
1480 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1481 --with-sysroot=DIR Search for dependent libraries within DIR
1482 (or the compiler's sysroot if not specified).
1483 --with-included-ltdl use the GNU ltdl sources included here
1484 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1485 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1486
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1495 YACC The `Yet Another Compiler Compiler' implementation to use.
1496 Defaults to the first program found out of: `bison -y', `byacc',
1497 `yacc'.
1498 YFLAGS The list of arguments that will be passed by default to $YACC.
1499 This script will default YFLAGS to the empty string to avoid a
1500 default value of `-d' given by some make applications.
1501 CPP C preprocessor
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <bugs@ircd-hybrid.org>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1516 continue
1517 ac_builddir=.
1518
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *)
1522 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1534
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1550
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1564 fi
1565
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 ircd-hybrid configure 8.2.0beta4
1570 generated by GNU Autoconf 2.69
1571
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575 _ACEOF
1576 exit
1577 fi
1578
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1582
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.$ac_objext; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_try_link LINENO
1622 # -----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_link ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext conftest$ac_exeext
1628 if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>conftest.err
1636 ac_status=$?
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1641 fi
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest$ac_exeext && {
1647 test "$cross_compiling" = yes ||
1648 test -x conftest$ac_exeext
1649 }; then :
1650 ac_retval=0
1651 else
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656 fi
1657 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1658 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1659 # interfere with the next link command; also delete a directory that is
1660 # left behind by Apple's compiler. We do this before executing the actions.
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_link
1666
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 $4
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_compile "$LINENO"; then :
1685 eval "$3=yes"
1686 else
1687 eval "$3=no"
1688 fi
1689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690 fi
1691 eval ac_res=\$$3
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695
1696 } # ac_fn_c_check_header_compile
1697
1698 # ac_fn_c_try_cpp LINENO
1699 # ----------------------
1700 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701 ac_fn_c_try_cpp ()
1702 {
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if { { ac_try="$ac_cpp conftest.$ac_ext"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } > conftest.i && {
1720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729 fi
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_cpp
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=$ac_status
1770 fi
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1792 #define $2 innocuous_$2
1793
1794 /* System header to define __stub macros and hopefully few prototypes,
1795 which can conflict with char $2 (); below.
1796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1797 <limits.h> exists even on freestanding compilers. */
1798
1799 #ifdef __STDC__
1800 # include <limits.h>
1801 #else
1802 # include <assert.h>
1803 #endif
1804
1805 #undef $2
1806
1807 /* Override any GCC internal prototype to avoid an error.
1808 Use char because int might match the return type of a GCC
1809 builtin and then its argument prototype would still apply. */
1810 #ifdef __cplusplus
1811 extern "C"
1812 #endif
1813 char $2 ();
1814 /* The GNU C library defines this for functions which it implements
1815 to always fail with ENOSYS. Some functions are actually named
1816 something starting with __ and the normal name is an alias. */
1817 #if defined __stub_$2 || defined __stub___$2
1818 choke me
1819 #endif
1820
1821 int
1822 main ()
1823 {
1824 return $2 ();
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_link "$LINENO"; then :
1830 eval "$3=yes"
1831 else
1832 eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext \
1835 conftest$ac_exeext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842 } # ac_fn_c_check_func
1843
1844 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1845 # ---------------------------------------------
1846 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1847 # accordingly.
1848 ac_fn_c_check_decl ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 as_decl_name=`echo $2|sed 's/ *(.*//'`
1852 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1854 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857 else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $4
1861 int
1862 main ()
1863 {
1864 #ifndef $as_decl_name
1865 #ifdef __cplusplus
1866 (void) $as_decl_use;
1867 #else
1868 (void) $as_decl_name;
1869 #endif
1870 #endif
1871
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 eval "$3=yes"
1878 else
1879 eval "$3=no"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 fi
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887
1888 } # ac_fn_c_check_decl
1889
1890 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1891 # -------------------------------------------
1892 # Tests whether TYPE exists after having included INCLUDES, setting cache
1893 # variable VAR accordingly.
1894 ac_fn_c_check_type ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 eval "$3=no"
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 $4
1906 int
1907 main ()
1908 {
1909 if (sizeof ($2))
1910 return 0;
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main ()
1921 {
1922 if (sizeof (($2)))
1923 return 0;
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929
1930 else
1931 eval "$3=yes"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
1942 } # ac_fn_c_check_type
1943
1944 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1945 # ----------------------------------------------------
1946 # Tries to find if the field MEMBER exists in type AGGR, after including
1947 # INCLUDES, setting cache variable VAR accordingly.
1948 ac_fn_c_check_member ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1952 $as_echo_n "checking for $2.$3... " >&6; }
1953 if eval \${$4+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1958 $5
1959 int
1960 main ()
1961 {
1962 static $2 ac_aggr;
1963 if (ac_aggr.$3)
1964 return 0;
1965 ;
1966 return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 eval "$4=yes"
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1974 $5
1975 int
1976 main ()
1977 {
1978 static $2 ac_aggr;
1979 if (sizeof ac_aggr.$3)
1980 return 0;
1981 ;
1982 return 0;
1983 }
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$4=yes"
1987 else
1988 eval "$4=no"
1989 fi
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 eval ac_res=\$$4
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999 } # ac_fn_c_check_member
2000
2001 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2002 # -------------------------------------------------------
2003 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2004 # the include files in INCLUDES and setting the cache variable VAR
2005 # accordingly.
2006 ac_fn_c_check_header_mongrel ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if eval \${$3+:} false; then :
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2014 fi
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 else
2019 # Is the header compilable?
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2021 $as_echo_n "checking $2 usability... " >&6; }
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 #include <$2>
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_header_compiler=yes
2029 else
2030 ac_header_compiler=no
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2034 $as_echo "$ac_header_compiler" >&6; }
2035
2036 # Is the header present?
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2038 $as_echo_n "checking $2 presence... " >&6; }
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 #include <$2>
2042 _ACEOF
2043 if ac_fn_c_try_cpp "$LINENO"; then :
2044 ac_header_preproc=yes
2045 else
2046 ac_header_preproc=no
2047 fi
2048 rm -f conftest.err conftest.i conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2050 $as_echo "$ac_header_preproc" >&6; }
2051
2052 # So? What about this header?
2053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2054 yes:no: )
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2056 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2058 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059 ;;
2060 no:yes:* )
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2062 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2064 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2066 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2068 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 ( $as_echo "## ----------------------------------- ##
2072 ## Report this to bugs@ircd-hybrid.org ##
2073 ## ----------------------------------- ##"
2074 ) | sed "s/^/$as_me: WARNING: /" >&2
2075 ;;
2076 esac
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if eval \${$3+:} false; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 eval "$3=\$ac_header_compiler"
2083 fi
2084 eval ac_res=\$$3
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 fi
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089
2090 } # ac_fn_c_check_header_mongrel
2091 cat >config.log <<_ACEOF
2092 This file contains any messages produced by compilers while
2093 running configure, to aid debugging if configure makes a mistake.
2094
2095 It was created by ircd-hybrid $as_me 8.2.0beta4, which was
2096 generated by GNU Autoconf 2.69. Invocation command line was
2097
2098 $ $0 $@
2099
2100 _ACEOF
2101 exec 5>>config.log
2102 {
2103 cat <<_ASUNAME
2104 ## --------- ##
2105 ## Platform. ##
2106 ## --------- ##
2107
2108 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2109 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2110 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2111 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2112 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113
2114 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2115 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116
2117 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2118 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2119 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2120 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2121 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2122 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2123 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124
2125 _ASUNAME
2126
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 $as_echo "PATH: $as_dir"
2133 done
2134 IFS=$as_save_IFS
2135
2136 } >&5
2137
2138 cat >&5 <<_ACEOF
2139
2140
2141 ## ----------- ##
2142 ## Core tests. ##
2143 ## ----------- ##
2144
2145 _ACEOF
2146
2147
2148 # Keep a trace of the command line.
2149 # Strip out --no-create and --no-recursion so they do not pile up.
2150 # Strip out --silent because we don't want to record it for future runs.
2151 # Also quote any args containing shell meta-characters.
2152 # Make two passes to allow for proper duplicate-argument suppression.
2153 ac_configure_args=
2154 ac_configure_args0=
2155 ac_configure_args1=
2156 ac_must_keep_next=false
2157 for ac_pass in 1 2
2158 do
2159 for ac_arg
2160 do
2161 case $ac_arg in
2162 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2164 | -silent | --silent | --silen | --sile | --sil)
2165 continue ;;
2166 *\'*)
2167 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 esac
2169 case $ac_pass in
2170 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2171 2)
2172 as_fn_append ac_configure_args1 " '$ac_arg'"
2173 if test $ac_must_keep_next = true; then
2174 ac_must_keep_next=false # Got value, back to normal.
2175 else
2176 case $ac_arg in
2177 *=* | --config-cache | -C | -disable-* | --disable-* \
2178 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2179 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2180 | -with-* | --with-* | -without-* | --without-* | --x)
2181 case "$ac_configure_args0 " in
2182 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183 esac
2184 ;;
2185 -* ) ac_must_keep_next=true ;;
2186 esac
2187 fi
2188 as_fn_append ac_configure_args " '$ac_arg'"
2189 ;;
2190 esac
2191 done
2192 done
2193 { ac_configure_args0=; unset ac_configure_args0;}
2194 { ac_configure_args1=; unset ac_configure_args1;}
2195
2196 # When interrupted or exit'd, cleanup temporary files, and complete
2197 # config.log. We remove comments because anyway the quotes in there
2198 # would cause problems or look ugly.
2199 # WARNING: Use '\'' to represent an apostrophe within the trap.
2200 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2201 trap 'exit_status=$?
2202 # Save into config.log some information that might help in debugging.
2203 {
2204 echo
2205
2206 $as_echo "## ---------------- ##
2207 ## Cache variables. ##
2208 ## ---------------- ##"
2209 echo
2210 # The following way of writing the cache mishandles newlines in values,
2211 (
2212 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in #(
2215 *${as_nl}*)
2216 case $ac_var in #(
2217 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2219 esac
2220 case $ac_var in #(
2221 _ | IFS | as_nl) ;; #(
2222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2223 *) { eval $ac_var=; unset $ac_var;} ;;
2224 esac ;;
2225 esac
2226 done
2227 (set) 2>&1 |
2228 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2229 *${as_nl}ac_space=\ *)
2230 sed -n \
2231 "s/'\''/'\''\\\\'\'''\''/g;
2232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2233 ;; #(
2234 *)
2235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2236 ;;
2237 esac |
2238 sort
2239 )
2240 echo
2241
2242 $as_echo "## ----------------- ##
2243 ## Output variables. ##
2244 ## ----------------- ##"
2245 echo
2246 for ac_var in $ac_subst_vars
2247 do
2248 eval ac_val=\$$ac_var
2249 case $ac_val in
2250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 esac
2252 $as_echo "$ac_var='\''$ac_val'\''"
2253 done | sort
2254 echo
2255
2256 if test -n "$ac_subst_files"; then
2257 $as_echo "## ------------------- ##
2258 ## File substitutions. ##
2259 ## ------------------- ##"
2260 echo
2261 for ac_var in $ac_subst_files
2262 do
2263 eval ac_val=\$$ac_var
2264 case $ac_val in
2265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 esac
2267 $as_echo "$ac_var='\''$ac_val'\''"
2268 done | sort
2269 echo
2270 fi
2271
2272 if test -s confdefs.h; then
2273 $as_echo "## ----------- ##
2274 ## confdefs.h. ##
2275 ## ----------- ##"
2276 echo
2277 cat confdefs.h
2278 echo
2279 fi
2280 test "$ac_signal" != 0 &&
2281 $as_echo "$as_me: caught signal $ac_signal"
2282 $as_echo "$as_me: exit $exit_status"
2283 } >&5
2284 rm -f core *.core core.conftest.* &&
2285 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2286 exit $exit_status
2287 ' 0
2288 for ac_signal in 1 2 13 15; do
2289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2290 done
2291 ac_signal=0
2292
2293 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2294 rm -f -r conftest* confdefs.h
2295
2296 $as_echo "/* confdefs.h */" > confdefs.h
2297
2298 # Predefined preprocessor variables.
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_NAME "$PACKAGE_NAME"
2302 _ACEOF
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306 _ACEOF
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310 _ACEOF
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_STRING "$PACKAGE_STRING"
2314 _ACEOF
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_URL "$PACKAGE_URL"
2322 _ACEOF
2323
2324
2325 # Let the site file select an alternate cache file if it wants to.
2326 # Prefer an explicitly selected file to automatically selected ones.
2327 ac_site_file1=NONE
2328 ac_site_file2=NONE
2329 if test -n "$CONFIG_SITE"; then
2330 # We do not want a PATH search for config.site.
2331 case $CONFIG_SITE in #((
2332 -*) ac_site_file1=./$CONFIG_SITE;;
2333 */*) ac_site_file1=$CONFIG_SITE;;
2334 *) ac_site_file1=./$CONFIG_SITE;;
2335 esac
2336 elif test "x$prefix" != xNONE; then
2337 ac_site_file1=$prefix/share/config.site
2338 ac_site_file2=$prefix/etc/config.site
2339 else
2340 ac_site_file1=$ac_default_prefix/share/config.site
2341 ac_site_file2=$ac_default_prefix/etc/config.site
2342 fi
2343 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2344 do
2345 test "x$ac_site_file" = xNONE && continue
2346 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2348 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2349 sed 's/^/| /' "$ac_site_file" >&5
2350 . "$ac_site_file" \
2351 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 as_fn_error $? "failed to load site script $ac_site_file
2354 See \`config.log' for more details" "$LINENO" 5; }
2355 fi
2356 done
2357
2358 if test -r "$cache_file"; then
2359 # Some versions of bash will fail to source /dev/null (special files
2360 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2361 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363 $as_echo "$as_me: loading cache $cache_file" >&6;}
2364 case $cache_file in
2365 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2366 *) . "./$cache_file";;
2367 esac
2368 fi
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371 $as_echo "$as_me: creating cache $cache_file" >&6;}
2372 >$cache_file
2373 fi
2374
2375 as_fn_append ac_func_list " strtok_r"
2376 as_fn_append ac_func_list " usleep"
2377 as_fn_append ac_func_list " strlcat"
2378 as_fn_append ac_func_list " strlcpy"
2379 as_fn_append ac_header_list " crypt.h"
2380 as_fn_append ac_header_list " sys/resource.h"
2381 as_fn_append ac_header_list " sys/param.h"
2382 as_fn_append ac_header_list " types.h"
2383 as_fn_append ac_header_list " socket.h"
2384 as_fn_append ac_header_list " sys/wait.h"
2385 as_fn_append ac_header_list " wait.h"
2386 # Check that the precious variables saved in the cache have kept the same
2387 # value.
2388 ac_cache_corrupted=false
2389 for ac_var in $ac_precious_vars; do
2390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2391 eval ac_new_set=\$ac_env_${ac_var}_set
2392 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2393 eval ac_new_val=\$ac_env_${ac_var}_value
2394 case $ac_old_set,$ac_new_set in
2395 set,)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2399 ,set)
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2403 ,);;
2404 *)
2405 if test "x$ac_old_val" != "x$ac_new_val"; then
2406 # differences in whitespace do not lead to failure.
2407 ac_old_val_w=`echo x $ac_old_val`
2408 ac_new_val_w=`echo x $ac_new_val`
2409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2411 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2412 ac_cache_corrupted=:
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2415 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2416 eval $ac_var=\$ac_old_val
2417 fi
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2419 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2421 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2422 fi;;
2423 esac
2424 # Pass precious variables to config.status.
2425 if test "$ac_new_set" = set; then
2426 case $ac_new_val in
2427 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2428 *) ac_arg=$ac_var=$ac_new_val ;;
2429 esac
2430 case " $ac_configure_args " in
2431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2432 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2433 esac
2434 fi
2435 done
2436 if $ac_cache_corrupted; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2440 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2441 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2442 fi
2443 ## -------------------- ##
2444 ## Main body of script. ##
2445 ## -------------------- ##
2446
2447 ac_ext=c
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452
2453
2454 am__api_version='1.14'
2455
2456 ac_aux_dir=
2457 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2458 if test -f "$ac_dir/install-sh"; then
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/install-sh -c"
2461 break
2462 elif test -f "$ac_dir/install.sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install.sh -c"
2465 break
2466 elif test -f "$ac_dir/shtool"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/shtool install -c"
2469 break
2470 fi
2471 done
2472 if test -z "$ac_aux_dir"; then
2473 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2474 fi
2475
2476 # These three variables are undocumented and unsupported,
2477 # and are intended to be withdrawn in a future Autoconf release.
2478 # They can cause serious problems if a builder's source tree is in a directory
2479 # whose full name contains unusual characters.
2480 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2481 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2482 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2483
2484
2485 # Find a good install program. We prefer a C program (faster),
2486 # so one script is as good as another. But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2491 # AIX /bin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 # Reject install programs that cannot install multiple files.
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2500 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2501 if test -z "$INSTALL"; then
2502 if ${ac_cv_path_install+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH
2507 do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 # Account for people who put trailing slashes in PATH elements.
2511 case $as_dir/ in #((
2512 ./ | .// | /[cC]/* | \
2513 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2514 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2515 /usr/ucb/* ) ;;
2516 *)
2517 # OSF1 and SCO ODT 3.0 have their own names for install.
2518 # Don't use installbsd from OSF since it installs stuff as root
2519 # by default.
2520 for ac_prog in ginstall scoinst install; do
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2523 if test $ac_prog = install &&
2524 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2525 # AIX install. It has an incompatible calling convention.
2526 :
2527 elif test $ac_prog = install &&
2528 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2529 # program-specific install script used by HP pwplus--don't use.
2530 :
2531 else
2532 rm -rf conftest.one conftest.two conftest.dir
2533 echo one > conftest.one
2534 echo two > conftest.two
2535 mkdir conftest.dir
2536 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2537 test -s conftest.one && test -s conftest.two &&
2538 test -s conftest.dir/conftest.one &&
2539 test -s conftest.dir/conftest.two
2540 then
2541 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2542 break 3
2543 fi
2544 fi
2545 fi
2546 done
2547 done
2548 ;;
2549 esac
2550
2551 done
2552 IFS=$as_save_IFS
2553
2554 rm -rf conftest.one conftest.two conftest.dir
2555
2556 fi
2557 if test "${ac_cv_path_install+set}" = set; then
2558 INSTALL=$ac_cv_path_install
2559 else
2560 # As a last resort, use the slow shell script. Don't cache a
2561 # value for INSTALL within a source directory, because that will
2562 # break other packages using the cache if that directory is
2563 # removed, or if the value is a relative name.
2564 INSTALL=$ac_install_sh
2565 fi
2566 fi
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2568 $as_echo "$INSTALL" >&6; }
2569
2570 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2571 # It thinks the first close brace ends the variable substitution.
2572 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2573
2574 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2575
2576 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2579 $as_echo_n "checking whether build environment is sane... " >&6; }
2580 # Reject unsafe characters in $srcdir or the absolute working directory
2581 # name. Accept space and tab only in the latter.
2582 am_lf='
2583 '
2584 case `pwd` in
2585 *[\\\"\#\$\&\'\`$am_lf]*)
2586 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2587 esac
2588 case $srcdir in
2589 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2590 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2591 esac
2592
2593 # Do 'set' in a subshell so we don't clobber the current shell's
2594 # arguments. Must try -L first in case configure is actually a
2595 # symlink; some systems play weird games with the mod time of symlinks
2596 # (eg FreeBSD returns the mod time of the symlink's containing
2597 # directory).
2598 if (
2599 am_has_slept=no
2600 for am_try in 1 2; do
2601 echo "timestamp, slept: $am_has_slept" > conftest.file
2602 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2603 if test "$*" = "X"; then
2604 # -L didn't work.
2605 set X `ls -t "$srcdir/configure" conftest.file`
2606 fi
2607 if test "$*" != "X $srcdir/configure conftest.file" \
2608 && test "$*" != "X conftest.file $srcdir/configure"; then
2609
2610 # If neither matched, then we have a broken ls. This can happen
2611 # if, for instance, CONFIG_SHELL is bash and it inherits a
2612 # broken ls alias from the environment. This has actually
2613 # happened. Such a system could not be considered "sane".
2614 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2616 fi
2617 if test "$2" = conftest.file || test $am_try -eq 2; then
2618 break
2619 fi
2620 # Just in case.
2621 sleep 1
2622 am_has_slept=yes
2623 done
2624 test "$2" = conftest.file
2625 )
2626 then
2627 # Ok.
2628 :
2629 else
2630 as_fn_error $? "newly created file is older than distributed files!
2631 Check your system clock" "$LINENO" 5
2632 fi
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2634 $as_echo "yes" >&6; }
2635 # If we didn't sleep, we still need to ensure time stamps of config.status and
2636 # generated files are strictly newer.
2637 am_sleep_pid=
2638 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2639 ( sleep 1 ) &
2640 am_sleep_pid=$!
2641 fi
2642
2643 rm -f conftest.file
2644
2645 test "$program_prefix" != NONE &&
2646 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2647 # Use a double $ so make ignores it.
2648 test "$program_suffix" != NONE &&
2649 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2650 # Double any \ or $.
2651 # By default was `s,x,x', remove it if useless.
2652 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2653 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2654
2655 # expand $ac_aux_dir to an absolute path
2656 am_aux_dir=`cd $ac_aux_dir && pwd`
2657
2658 if test x"${MISSING+set}" != xset; then
2659 case $am_aux_dir in
2660 *\ * | *\ *)
2661 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2662 *)
2663 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2664 esac
2665 fi
2666 # Use eval to expand $SHELL
2667 if eval "$MISSING --is-lightweight"; then
2668 am_missing_run="$MISSING "
2669 else
2670 am_missing_run=
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2672 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2673 fi
2674
2675 if test x"${install_sh}" != xset; then
2676 case $am_aux_dir in
2677 *\ * | *\ *)
2678 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2679 *)
2680 install_sh="\${SHELL} $am_aux_dir/install-sh"
2681 esac
2682 fi
2683
2684 # Installed binaries are usually stripped using 'strip' when the user
2685 # run "make install-strip". However 'strip' might not be the right
2686 # tool to use in cross-compilation environments, therefore Automake
2687 # will honor the 'STRIP' environment variable to overrule this program.
2688 if test "$cross_compiling" != no; then
2689 if test -n "$ac_tool_prefix"; then
2690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2691 set dummy ${ac_tool_prefix}strip; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_STRIP+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 if test -n "$STRIP"; then
2698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 break 2
2710 fi
2711 done
2712 done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 STRIP=$ac_cv_prog_STRIP
2718 if test -n "$STRIP"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2720 $as_echo "$STRIP" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726
2727 fi
2728 if test -z "$ac_cv_prog_STRIP"; then
2729 ac_ct_STRIP=$STRIP
2730 # Extract the first word of "strip", so it can be a program name with args.
2731 set dummy strip; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$ac_ct_STRIP"; then
2738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_ac_ct_STRIP="strip"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2758 if test -n "$ac_ct_STRIP"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2760 $as_echo "$ac_ct_STRIP" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 fi
2765
2766 if test "x$ac_ct_STRIP" = x; then
2767 STRIP=":"
2768 else
2769 case $cross_compiling:$ac_tool_warned in
2770 yes:)
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2773 ac_tool_warned=yes ;;
2774 esac
2775 STRIP=$ac_ct_STRIP
2776 fi
2777 else
2778 STRIP="$ac_cv_prog_STRIP"
2779 fi
2780
2781 fi
2782 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2783
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2785 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2786 if test -z "$MKDIR_P"; then
2787 if ${ac_cv_path_mkdir+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_prog in mkdir gmkdir; do
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2798 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2799 'mkdir (GNU coreutils) '* | \
2800 'mkdir (coreutils) '* | \
2801 'mkdir (fileutils) '4.1*)
2802 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2803 break 3;;
2804 esac
2805 done
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811
2812 test -d ./--version && rmdir ./--version
2813 if test "${ac_cv_path_mkdir+set}" = set; then
2814 MKDIR_P="$ac_cv_path_mkdir -p"
2815 else
2816 # As a last resort, use the slow shell script. Don't cache a
2817 # value for MKDIR_P within a source directory, because that will
2818 # break other packages using the cache if that directory is
2819 # removed, or if the value is a relative name.
2820 MKDIR_P="$ac_install_sh -d"
2821 fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2824 $as_echo "$MKDIR_P" >&6; }
2825
2826 for ac_prog in gawk mawk nawk awk
2827 do
2828 # Extract the first word of "$ac_prog", so it can be a program name with args.
2829 set dummy $ac_prog; ac_word=$2
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2831 $as_echo_n "checking for $ac_word... " >&6; }
2832 if ${ac_cv_prog_AWK+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test -n "$AWK"; then
2836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2837 else
2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $PATH
2840 do
2841 IFS=$as_save_IFS
2842 test -z "$as_dir" && as_dir=.
2843 for ac_exec_ext in '' $ac_executable_extensions; do
2844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2845 ac_cv_prog_AWK="$ac_prog"
2846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2847 break 2
2848 fi
2849 done
2850 done
2851 IFS=$as_save_IFS
2852
2853 fi
2854 fi
2855 AWK=$ac_cv_prog_AWK
2856 if test -n "$AWK"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2858 $as_echo "$AWK" >&6; }
2859 else
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 fi
2863
2864
2865 test -n "$AWK" && break
2866 done
2867
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2869 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2870 set x ${MAKE-make}
2871 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2872 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2873 $as_echo_n "(cached) " >&6
2874 else
2875 cat >conftest.make <<\_ACEOF
2876 SHELL = /bin/sh
2877 all:
2878 @echo '@@@%%%=$(MAKE)=@@@%%%'
2879 _ACEOF
2880 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2881 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2882 *@@@%%%=?*=@@@%%%*)
2883 eval ac_cv_prog_make_${ac_make}_set=yes;;
2884 *)
2885 eval ac_cv_prog_make_${ac_make}_set=no;;
2886 esac
2887 rm -f conftest.make
2888 fi
2889 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2892 SET_MAKE=
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 SET_MAKE="MAKE=${MAKE-make}"
2897 fi
2898
2899 rm -rf .tst 2>/dev/null
2900 mkdir .tst 2>/dev/null
2901 if test -d .tst; then
2902 am__leading_dot=.
2903 else
2904 am__leading_dot=_
2905 fi
2906 rmdir .tst 2>/dev/null
2907
2908 # Check whether --enable-silent-rules was given.
2909 if test "${enable_silent_rules+set}" = set; then :
2910 enableval=$enable_silent_rules;
2911 fi
2912
2913 case $enable_silent_rules in # (((
2914 yes) AM_DEFAULT_VERBOSITY=0;;
2915 no) AM_DEFAULT_VERBOSITY=1;;
2916 *) AM_DEFAULT_VERBOSITY=1;;
2917 esac
2918 am_make=${MAKE-make}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2920 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2921 if ${am_cv_make_support_nested_variables+:} false; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if $as_echo 'TRUE=$(BAR$(V))
2925 BAR0=false
2926 BAR1=true
2927 V=1
2928 am__doit:
2929 @$(TRUE)
2930 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2931 am_cv_make_support_nested_variables=yes
2932 else
2933 am_cv_make_support_nested_variables=no
2934 fi
2935 fi
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2937 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2938 if test $am_cv_make_support_nested_variables = yes; then
2939 AM_V='$(V)'
2940 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2941 else
2942 AM_V=$AM_DEFAULT_VERBOSITY
2943 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2944 fi
2945 AM_BACKSLASH='\'
2946
2947 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2948 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2949 # is not polluted with repeated "-I."
2950 am__isrc=' -I$(srcdir)'
2951 # test to see if srcdir already configured
2952 if test -f $srcdir/config.status; then
2953 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2954 fi
2955 fi
2956
2957 # test whether we have cygpath
2958 if test -z "$CYGPATH_W"; then
2959 if (cygpath --version) >/dev/null 2>/dev/null; then
2960 CYGPATH_W='cygpath -w'
2961 else
2962 CYGPATH_W=echo
2963 fi
2964 fi
2965
2966
2967 # Define the identity of the package.
2968 PACKAGE='ircd-hybrid'
2969 VERSION='8.2.0beta4'
2970
2971
2972 cat >>confdefs.h <<_ACEOF
2973 #define PACKAGE "$PACKAGE"
2974 _ACEOF
2975
2976
2977 cat >>confdefs.h <<_ACEOF
2978 #define VERSION "$VERSION"
2979 _ACEOF
2980
2981 # Some tools Automake needs.
2982
2983 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2984
2985
2986 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2987
2988
2989 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2990
2991
2992 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2993
2994
2995 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2996
2997 # For better backward compatibility. To be removed once Automake 1.9.x
2998 # dies out for good. For more background, see:
2999 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3000 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3001 mkdir_p='$(MKDIR_P)'
3002
3003 # We need awk for the "check" target. The system "awk" is bad on
3004 # some platforms.
3005 # Always define AMTAR for backward compatibility. Yes, it's still used
3006 # in the wild :-( We should find a proper way to deprecate it ...
3007 AMTAR='$${TAR-tar}'
3008
3009
3010 # We'll loop over all known methods to create a tar archive until one works.
3011 _am_tools='gnutar pax cpio none'
3012
3013 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3014
3015
3016
3017
3018
3019
3020 # POSIX will say in a future version that running "rm -f" with no argument
3021 # is OK; and we want to be able to make that assumption in our Makefile
3022 # recipes. So use an aggressive probe to check that the usage we want is
3023 # actually supported "in the wild" to an acceptable degree.
3024 # See automake bug#10828.
3025 # To make any issue more visible, cause the running configure to be aborted
3026 # by default if the 'rm' program in use doesn't match our expectations; the
3027 # user can still override this though.
3028 if rm -f && rm -fr && rm -rf; then : OK; else
3029 cat >&2 <<'END'
3030 Oops!
3031
3032 Your 'rm' program seems unable to run without file operands specified
3033 on the command line, even when the '-f' option is present. This is contrary
3034 to the behaviour of most rm programs out there, and not conforming with
3035 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3036
3037 Please tell bug-automake@gnu.org about your system, including the value
3038 of your $PATH and any error possibly output before this message. This
3039 can help us improve future automake versions.
3040
3041 END
3042 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3043 echo 'Configuration will proceed anyway, since you have set the' >&2
3044 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3045 echo >&2
3046 else
3047 cat >&2 <<'END'
3048 Aborting the configuration process, to ensure you take notice of the issue.
3049
3050 You can download and install GNU coreutils to get an 'rm' implementation
3051 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3052
3053 If you want to complete the configuration process using your problematic
3054 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3055 to "yes", and re-run configure.
3056
3057 END
3058 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3059 fi
3060 fi
3061
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3063 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3064 # Check whether --enable-maintainer-mode was given.
3065 if test "${enable_maintainer_mode+set}" = set; then :
3066 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3067 else
3068 USE_MAINTAINER_MODE=no
3069 fi
3070
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3072 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3073 if test $USE_MAINTAINER_MODE = yes; then
3074 MAINTAINER_MODE_TRUE=
3075 MAINTAINER_MODE_FALSE='#'
3076 else
3077 MAINTAINER_MODE_TRUE='#'
3078 MAINTAINER_MODE_FALSE=
3079 fi
3080
3081 MAINT=$MAINTAINER_MODE_TRUE
3082
3083
3084
3085 ac_config_headers="$ac_config_headers config.h"
3086
3087
3088
3089 # Checks for programs.
3090 DEPDIR="${am__leading_dot}deps"
3091
3092 ac_config_commands="$ac_config_commands depfiles"
3093
3094
3095 am_make=${MAKE-make}
3096 cat > confinc << 'END'
3097 am__doit:
3098 @echo this is the am__doit target
3099 .PHONY: am__doit
3100 END
3101 # If we don't find an include directive, just comment out the code.
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3103 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3104 am__include="#"
3105 am__quote=
3106 _am_result=none
3107 # First try GNU make style include.
3108 echo "include confinc" > confmf
3109 # Ignore all kinds of additional output from 'make'.
3110 case `$am_make -s -f confmf 2> /dev/null` in #(
3111 *the\ am__doit\ target*)
3112 am__include=include
3113 am__quote=
3114 _am_result=GNU
3115 ;;
3116 esac
3117 # Now try BSD make style include.
3118 if test "$am__include" = "#"; then
3119 echo '.include "confinc"' > confmf
3120 case `$am_make -s -f confmf 2> /dev/null` in #(
3121 *the\ am__doit\ target*)
3122 am__include=.include
3123 am__quote="\""
3124 _am_result=BSD
3125 ;;
3126 esac
3127 fi
3128
3129
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3131 $as_echo "$_am_result" >&6; }
3132 rm -f confinc confmf
3133
3134 # Check whether --enable-dependency-tracking was given.
3135 if test "${enable_dependency_tracking+set}" = set; then :
3136 enableval=$enable_dependency_tracking;
3137 fi
3138
3139 if test "x$enable_dependency_tracking" != xno; then
3140 am_depcomp="$ac_aux_dir/depcomp"
3141 AMDEPBACKSLASH='\'
3142 am__nodep='_no'
3143 fi
3144 if test "x$enable_dependency_tracking" != xno; then
3145 AMDEP_TRUE=
3146 AMDEP_FALSE='#'
3147 else
3148 AMDEP_TRUE='#'
3149 AMDEP_FALSE=
3150 fi
3151
3152
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3158 if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165 else
3166 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180 done
3181 done
3182 IFS=$as_save_IFS
3183
3184 fi
3185 fi
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3193 fi
3194
3195
3196 fi
3197 if test -z "$ac_cv_prog_CC"; then
3198 ac_ct_CC=$CC
3199 # Extract the first word of "gcc", so it can be a program name with args.
3200 set dummy gcc; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_CC="gcc"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222 IFS=$as_save_IFS
3223
3224 fi
3225 fi
3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227 if test -n "$ac_ct_CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229 $as_echo "$ac_ct_CC" >&6; }
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 fi
3234
3235 if test "x$ac_ct_CC" = x; then
3236 CC=""
3237 else
3238 case $cross_compiling:$ac_tool_warned in
3239 yes:)
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3243 esac
3244 CC=$ac_ct_CC
3245 fi
3246 else
3247 CC="$ac_cv_prog_CC"
3248 fi
3249
3250 if test -z "$CC"; then
3251 if test -n "$ac_tool_prefix"; then
3252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}cc; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_CC+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test -n "$CC"; then
3260 ac_cv_prog_CC="$CC" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_CC="${ac_tool_prefix}cc"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 break 2
3272 fi
3273 done
3274 done
3275 IFS=$as_save_IFS
3276
3277 fi
3278 fi
3279 CC=$ac_cv_prog_CC
3280 if test -n "$CC"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3282 $as_echo "$CC" >&6; }
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 fi
3287
3288
3289 fi
3290 fi
3291 if test -z "$CC"; then
3292 # Extract the first word of "cc", so it can be a program name with args.
3293 set dummy cc; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_CC+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3301 else
3302 ac_prog_rejected=no
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3311 ac_prog_rejected=yes
3312 continue
3313 fi
3314 ac_cv_prog_CC="cc"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 if test $ac_prog_rejected = yes; then
3323 # We found a bogon in the path, so make sure we never use it.
3324 set dummy $ac_cv_prog_CC
3325 shift
3326 if test $# != 0; then
3327 # We chose a different compiler from the bogus one.
3328 # However, it has the same basename, so the bogon will be chosen
3329 # first if we set CC to just the basename; use the full file name.
3330 shift
3331 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3332 fi
3333 fi
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 fi
3347 if test -z "$CC"; then
3348 if test -n "$ac_tool_prefix"; then
3349 for ac_prog in cl.exe
3350 do
3351 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_CC+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388 test -n "$CC" && break
3389 done
3390 fi
3391 if test -z "$CC"; then
3392 ac_ct_CC=$CC
3393 for ac_prog in cl.exe
3394 do
3395 # Extract the first word of "$ac_prog", so it can be a program name with args.
3396 set dummy $ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 if test -n "$ac_ct_CC"; then
3403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_ac_ct_CC="$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423 if test -n "$ac_ct_CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3425 $as_echo "$ac_ct_CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432 test -n "$ac_ct_CC" && break
3433 done
3434
3435 if test "x$ac_ct_CC" = x; then
3436 CC=""
3437 else
3438 case $cross_compiling:$ac_tool_warned in
3439 yes:)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442 ac_tool_warned=yes ;;
3443 esac
3444 CC=$ac_ct_CC
3445 fi
3446 fi
3447
3448 fi
3449
3450
3451 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "no acceptable C compiler found in \$PATH
3454 See \`config.log' for more details" "$LINENO" 5; }
3455
3456 # Provide some information about the compiler.
3457 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3458 set X $ac_compile
3459 ac_compiler=$2
3460 for ac_option in --version -v -V -qversion; do
3461 { { ac_try="$ac_compiler $ac_option >&5"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3469 ac_status=$?
3470 if test -s conftest.err; then
3471 sed '10a\
3472 ... rest of stderr output deleted ...
3473 10q' conftest.err >conftest.er1
3474 cat conftest.er1 >&5
3475 fi
3476 rm -f conftest.er1 conftest.err
3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478 test $ac_status = 0; }
3479 done
3480
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 ac_clean_files_save=$ac_clean_files
3493 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3494 # Try to create an executable without -o first, disregard a.out.
3495 # It will help us diagnose broken compilers, and finding out an intuition
3496 # of exeext.
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3498 $as_echo_n "checking whether the C compiler works... " >&6; }
3499 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3500
3501 # The possible output files:
3502 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3503
3504 ac_rmfiles=
3505 for ac_file in $ac_files
3506 do
3507 case $ac_file in
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3510 esac
3511 done
3512 rm -f $ac_rmfiles
3513
3514 if { { ac_try="$ac_link_default"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_link_default") 2>&5
3522 ac_status=$?
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; then :
3525 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3526 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3527 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3528 # so that the user can short-circuit this test for compilers unknown to
3529 # Autoconf.
3530 for ac_file in $ac_files ''
3531 do
3532 test -f "$ac_file" || continue
3533 case $ac_file in
3534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3535 ;;
3536 [ab].out )
3537 # We found the default executable, but exeext='' is most
3538 # certainly right.
3539 break;;
3540 *.* )
3541 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3542 then :; else
3543 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 fi
3545 # We set ac_cv_exeext here because the later test for it is not
3546 # safe: cross compilers may not add the suffix if given an `-o'
3547 # argument, so we may need to know it at that point already.
3548 # Even if this section looks crufty: it has the advantage of
3549 # actually working.
3550 break;;
3551 * )
3552 break;;
3553 esac
3554 done
3555 test "$ac_cv_exeext" = no && ac_cv_exeext=
3556
3557 else
3558 ac_file=''
3559 fi
3560 if test -z "$ac_file"; then :
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 $as_echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3565
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error 77 "C compiler cannot create executables
3569 See \`config.log' for more details" "$LINENO" 5; }
3570 else
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3572 $as_echo "yes" >&6; }
3573 fi
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3575 $as_echo_n "checking for C compiler default output file name... " >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3577 $as_echo "$ac_file" >&6; }
3578 ac_exeext=$ac_cv_exeext
3579
3580 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3581 ac_clean_files=$ac_clean_files_save
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3583 $as_echo_n "checking for suffix of executables... " >&6; }
3584 if { { ac_try="$ac_link"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_link") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3596 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3597 # work properly (i.e., refer to `conftest.exe'), while it won't with
3598 # `rm'.
3599 for ac_file in conftest.exe conftest conftest.*; do
3600 test -f "$ac_file" || continue
3601 case $ac_file in
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3604 break;;
3605 * ) break;;
3606 esac
3607 done
3608 else
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3612 See \`config.log' for more details" "$LINENO" 5; }
3613 fi
3614 rm -f conftest conftest$ac_cv_exeext
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3616 $as_echo "$ac_cv_exeext" >&6; }
3617
3618 rm -f conftest.$ac_ext
3619 EXEEXT=$ac_cv_exeext
3620 ac_exeext=$EXEEXT
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623 #include <stdio.h>
3624 int
3625 main ()
3626 {
3627 FILE *f = fopen ("conftest.out", "w");
3628 return ferror (f) || fclose (f) != 0;
3629
3630 ;
3631 return 0;
3632 }
3633 _ACEOF
3634 ac_clean_files="$ac_clean_files conftest.out"
3635 # Check that the compiler produces executables we can run. If not, either
3636 # the compiler is broken, or we cross compile.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3638 $as_echo_n "checking whether we are cross compiling... " >&6; }
3639 if test "$cross_compiling" != yes; then
3640 { { ac_try="$ac_link"
3641 case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644 esac
3645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646 $as_echo "$ac_try_echo"; } >&5
3647 (eval "$ac_link") 2>&5
3648 ac_status=$?
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }
3651 if { ac_try='./conftest$ac_cv_exeext'
3652 { { case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_try") 2>&5
3659 ac_status=$?
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; }; then
3662 cross_compiling=no
3663 else
3664 if test "$cross_compiling" = maybe; then
3665 cross_compiling=yes
3666 else
3667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error $? "cannot run C compiled programs.
3670 If you meant to cross compile, use \`--host'.
3671 See \`config.log' for more details" "$LINENO" 5; }
3672 fi
3673 fi
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3676 $as_echo "$cross_compiling" >&6; }
3677
3678 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3681 $as_echo_n "checking for suffix of object files... " >&6; }
3682 if ${ac_cv_objext+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3687
3688 int
3689 main ()
3690 {
3691
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 rm -f conftest.o conftest.obj
3697 if { { ac_try="$ac_compile"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_compile") 2>&5
3705 ac_status=$?
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }; then :
3708 for ac_file in conftest.o conftest.obj conftest.*; do
3709 test -f "$ac_file" || continue;
3710 case $ac_file in
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3712 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3713 break;;
3714 esac
3715 done
3716 else
3717 $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "cannot compute suffix of object files: cannot compile
3723 See \`config.log' for more details" "$LINENO" 5; }
3724 fi
3725 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3726 fi
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3728 $as_echo "$ac_cv_objext" >&6; }
3729 OBJEXT=$ac_cv_objext
3730 ac_objext=$OBJEXT
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3732 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3733 if ${ac_cv_c_compiler_gnu+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738
3739 int
3740 main ()
3741 {
3742 #ifndef __GNUC__
3743 choke me
3744 #endif
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"; then :
3751 ac_compiler_gnu=yes
3752 else
3753 ac_compiler_gnu=no
3754 fi
3755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3757
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3760 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3761 if test $ac_compiler_gnu = yes; then
3762 GCC=yes
3763 else
3764 GCC=
3765 fi
3766 ac_test_CFLAGS=${CFLAGS+set}
3767 ac_save_CFLAGS=$CFLAGS
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3769 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3770 if ${ac_cv_prog_cc_g+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 ac_save_c_werror_flag=$ac_c_werror_flag
3774 ac_c_werror_flag=yes
3775 ac_cv_prog_cc_g=no
3776 CFLAGS="-g"
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 if ac_fn_c_try_compile "$LINENO"; then :
3789 ac_cv_prog_cc_g=yes
3790 else
3791 CFLAGS=""
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794
3795 int
3796 main ()
3797 {
3798
3799 ;
3800 return 0;
3801 }
3802 _ACEOF
3803 if ac_fn_c_try_compile "$LINENO"; then :
3804
3805 else
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3807 CFLAGS="-g"
3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3810
3811 int
3812 main ()
3813 {
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 if ac_fn_c_try_compile "$LINENO"; then :
3820 ac_cv_prog_cc_g=yes
3821 fi
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 ac_c_werror_flag=$ac_save_c_werror_flag
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3830 $as_echo "$ac_cv_prog_cc_g" >&6; }
3831 if test "$ac_test_CFLAGS" = set; then
3832 CFLAGS=$ac_save_CFLAGS
3833 elif test $ac_cv_prog_cc_g = yes; then
3834 if test "$GCC" = yes; then
3835 CFLAGS="-g -O2"
3836 else
3837 CFLAGS="-g"
3838 fi
3839 else
3840 if test "$GCC" = yes; then
3841 CFLAGS="-O2"
3842 else
3843 CFLAGS=
3844 fi
3845 fi
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3847 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3848 if ${ac_cv_prog_cc_c89+:} false; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 ac_cv_prog_cc_c89=no
3852 ac_save_CC=$CC
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3855 #include <stdarg.h>
3856 #include <stdio.h>
3857 struct stat;
3858 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3859 struct buf { int x; };
3860 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3861 static char *e (p, i)
3862 char **p;
3863 int i;
3864 {
3865 return p[i];
3866 }
3867 static char *f (char * (*g) (char **, int), char **p, ...)
3868 {
3869 char *s;
3870 va_list v;
3871 va_start (v,p);
3872 s = g (p, va_arg (v,int));
3873 va_end (v);
3874 return s;
3875 }
3876
3877 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3878 function prototypes and stuff, but not '\xHH' hex character constants.
3879 These don't provoke an error unfortunately, instead are silently treated
3880 as 'x'. The following induces an error, until -std is added to get
3881 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3882 array size at least. It's necessary to write '\x00'==0 to get something
3883 that's true only with -std. */
3884 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3885
3886 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3887 inside strings and character constants. */
3888 #define FOO(x) 'x'
3889 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3890
3891 int test (int i, double x);
3892 struct s1 {int (*f) (int a);};
3893 struct s2 {int (*f) (double a);};
3894 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3895 int argc;
3896 char **argv;
3897 int
3898 main ()
3899 {
3900 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3906 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3907 do
3908 CC="$ac_save_CC $ac_arg"
3909 if ac_fn_c_try_compile "$LINENO"; then :
3910 ac_cv_prog_cc_c89=$ac_arg
3911 fi
3912 rm -f core conftest.err conftest.$ac_objext
3913 test "x$ac_cv_prog_cc_c89" != "xno" && break
3914 done
3915 rm -f conftest.$ac_ext
3916 CC=$ac_save_CC
3917
3918 fi
3919 # AC_CACHE_VAL
3920 case "x$ac_cv_prog_cc_c89" in
3921 x)
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3923 $as_echo "none needed" >&6; } ;;
3924 xno)
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3926 $as_echo "unsupported" >&6; } ;;
3927 *)
3928 CC="$CC $ac_cv_prog_cc_c89"
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3930 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3931 esac
3932 if test "x$ac_cv_prog_cc_c89" != xno; then :
3933
3934 fi
3935
3936 ac_ext=c
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3941
3942 ac_ext=c
3943 ac_cpp='$CPP $CPPFLAGS'
3944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3948 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3949 if ${am_cv_prog_cc_c_o+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954
3955 int
3956 main ()
3957 {
3958
3959 ;
3960 return 0;
3961 }
3962 _ACEOF
3963 # Make sure it works both with $CC and with simple cc.
3964 # Following AC_PROG_CC_C_O, we do the test twice because some
3965 # compilers refuse to overwrite an existing .o file with -o,
3966 # though they will create one.
3967 am_cv_prog_cc_c_o=yes
3968 for am_i in 1 2; do
3969 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3970 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } \
3974 && test -f conftest2.$ac_objext; then
3975 : OK
3976 else
3977 am_cv_prog_cc_c_o=no
3978 break
3979 fi
3980 done
3981 rm -f core conftest*
3982 unset am_i
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3985 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3986 if test "$am_cv_prog_cc_c_o" != yes; then
3987 # Losing compiler, so override with the script.
3988 # FIXME: It is wrong to rewrite CC.
3989 # But if we don't then we get into trouble of one sort or another.
3990 # A longer-term fix would be to have automake use am__CC in this case,
3991 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3992 CC="$am_aux_dir/compile $CC"
3993 fi
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999
4000
4001 depcc="$CC" am_compiler_list=
4002
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4004 $as_echo_n "checking dependency style of $depcc... " >&6; }
4005 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4006 $as_echo_n "(cached) " >&6
4007 else
4008 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4009 # We make a subdir and do the tests there. Otherwise we can end up
4010 # making bogus files that we don't know about and never remove. For
4011 # instance it was reported that on HP-UX the gcc test will end up
4012 # making a dummy file named 'D' -- because '-MD' means "put the output
4013 # in D".
4014 rm -rf conftest.dir
4015 mkdir conftest.dir
4016 # Copy depcomp to subdir because otherwise we won't find it if we're
4017 # using a relative directory.
4018 cp "$am_depcomp" conftest.dir
4019 cd conftest.dir
4020 # We will build objects and dependencies in a subdirectory because
4021 # it helps to detect inapplicable dependency modes. For instance
4022 # both Tru64's cc and ICC support -MD to output dependencies as a
4023 # side effect of compilation, but ICC will put the dependencies in
4024 # the current directory while Tru64 will put them in the object
4025 # directory.
4026 mkdir sub
4027
4028 am_cv_CC_dependencies_compiler_type=none
4029 if test "$am_compiler_list" = ""; then
4030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4031 fi
4032 am__universal=false
4033 case " $depcc " in #(
4034 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4035 esac
4036
4037 for depmode in $am_compiler_list; do
4038 # Setup a source with many dependencies, because some compilers
4039 # like to wrap large dependency lists on column 80 (with \), and
4040 # we should not choose a depcomp mode which is confused by this.
4041 #
4042 # We need to recreate these files for each test, as the compiler may
4043 # overwrite some of them when testing with obscure command lines.
4044 # This happens at least with the AIX C compiler.
4045 : > sub/conftest.c
4046 for i in 1 2 3 4 5 6; do
4047 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4048 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4049 # Solaris 10 /bin/sh.
4050 echo '/* dummy */' > sub/conftst$i.h
4051 done
4052 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4053
4054 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4055 # mode. It turns out that the SunPro C++ compiler does not properly
4056 # handle '-M -o', and we need to detect this. Also, some Intel
4057 # versions had trouble with output in subdirs.
4058 am__obj=sub/conftest.${OBJEXT-o}
4059 am__minus_obj="-o $am__obj"
4060 case $depmode in
4061 gcc)
4062 # This depmode causes a compiler race in universal mode.
4063 test "$am__universal" = false || continue
4064 ;;
4065 nosideeffect)
4066 # After this tag, mechanisms are not by side-effect, so they'll
4067 # only be used when explicitly requested.
4068 if test "x$enable_dependency_tracking" = xyes; then
4069 continue
4070 else
4071 break
4072 fi
4073 ;;
4074 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4075 # This compiler won't grok '-c -o', but also, the minuso test has
4076 # not run yet. These depmodes are late enough in the game, and
4077 # so weak that their functioning should not be impacted.
4078 am__obj=conftest.${OBJEXT-o}
4079 am__minus_obj=
4080 ;;
4081 none) break ;;
4082 esac
4083 if depmode=$depmode \
4084 source=sub/conftest.c object=$am__obj \
4085 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4086 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4087 >/dev/null 2>conftest.err &&
4088 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4089 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4090 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4091 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4092 # icc doesn't choke on unknown options, it will just issue warnings
4093 # or remarks (even with -Werror). So we grep stderr for any message
4094 # that says an option was ignored or not supported.
4095 # When given -MP, icc 7.0 and 7.1 complain thusly:
4096 # icc: Command line warning: ignoring option '-M'; no argument required
4097 # The diagnosis changed in icc 8.0:
4098 # icc: Command line remark: option '-MP' not supported
4099 if (grep 'ignoring option' conftest.err ||
4100 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4101 am_cv_CC_dependencies_compiler_type=$depmode
4102 break
4103 fi
4104 fi
4105 done
4106
4107 cd ..
4108 rm -rf conftest.dir
4109 else
4110 am_cv_CC_dependencies_compiler_type=none
4111 fi
4112
4113 fi
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4115 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4116 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4117
4118 if
4119 test "x$enable_dependency_tracking" != xno \
4120 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4121 am__fastdepCC_TRUE=
4122 am__fastdepCC_FALSE='#'
4123 else
4124 am__fastdepCC_TRUE='#'
4125 am__fastdepCC_FALSE=
4126 fi
4127
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4130 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4131 if ${ac_cv_prog_cc_c99+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 ac_cv_prog_cc_c99=no
4135 ac_save_CC=$CC
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <stdarg.h>
4139 #include <stdbool.h>
4140 #include <stdlib.h>
4141 #include <wchar.h>
4142 #include <stdio.h>
4143
4144 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4145 #define debug(...) fprintf (stderr, __VA_ARGS__)
4146 #define showlist(...) puts (#__VA_ARGS__)
4147 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4148 static void
4149 test_varargs_macros (void)
4150 {
4151 int x = 1234;
4152 int y = 5678;
4153 debug ("Flag");
4154 debug ("X = %d\n", x);
4155 showlist (The first, second, and third items.);
4156 report (x>y, "x is %d but y is %d", x, y);
4157 }
4158
4159 // Check long long types.
4160 #define BIG64 18446744073709551615ull
4161 #define BIG32 4294967295ul
4162 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4163 #if !BIG_OK
4164 your preprocessor is broken;
4165 #endif
4166 #if BIG_OK
4167 #else
4168 your preprocessor is broken;
4169 #endif
4170 static long long int bignum = -9223372036854775807LL;
4171 static unsigned long long int ubignum = BIG64;
4172
4173 struct incomplete_array
4174 {
4175 int datasize;
4176 double data[];
4177 };
4178
4179 struct named_init {
4180 int number;
4181 const wchar_t *name;
4182 double average;
4183 };
4184
4185 typedef const char *ccp;
4186
4187 static inline int
4188 test_restrict (ccp restrict text)
4189 {
4190 // See if C++-style comments work.
4191 // Iterate through items via the restricted pointer.
4192 // Also check for declarations in for loops.
4193 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4194 continue;
4195 return 0;
4196 }
4197
4198 // Check varargs and va_copy.
4199 static void
4200 test_varargs (const char *format, ...)
4201 {
4202 va_list args;
4203 va_start (args, format);
4204 va_list args_copy;
4205 va_copy (args_copy, args);
4206
4207 const char *str;
4208 int number;
4209 float fnumber;
4210
4211 while (*format)
4212 {
4213 switch (*format++)
4214 {
4215 case 's': // string
4216 str = va_arg (args_copy, const char *);
4217 break;
4218 case 'd': // int
4219 number = va_arg (args_copy, int);
4220 break;
4221 case 'f': // float
4222 fnumber = va_arg (args_copy, double);
4223 break;
4224 default:
4225 break;
4226 }
4227 }
4228 va_end (args_copy);
4229 va_end (args);
4230 }
4231
4232 int
4233 main ()
4234 {
4235
4236 // Check bool.
4237 _Bool success = false;
4238
4239 // Check restrict.
4240 if (test_restrict ("String literal") == 0)
4241 success = true;
4242 char *restrict newvar = "Another string";
4243
4244 // Check varargs.
4245 test_varargs ("s, d' f .", "string", 65, 34.234);
4246 test_varargs_macros ();
4247
4248 // Check flexible array members.
4249 struct incomplete_array *ia =
4250 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4251 ia->datasize = 10;
4252 for (int i = 0; i < ia->datasize; ++i)
4253 ia->data[i] = i * 1.234;
4254
4255 // Check named initializers.
4256 struct named_init ni = {
4257 .number = 34,
4258 .name = L"Test wide string",
4259 .average = 543.34343,
4260 };
4261
4262 ni.number = 58;
4263
4264 int dynamic_array[ni.number];
4265 dynamic_array[ni.number - 1] = 543;
4266
4267 // work around unused variable warnings
4268 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4269 || dynamic_array[ni.number - 1] != 543);
4270
4271 ;
4272 return 0;
4273 }
4274 _ACEOF
4275 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4276 do
4277 CC="$ac_save_CC $ac_arg"
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_prog_cc_c99=$ac_arg
4280 fi
4281 rm -f core conftest.err conftest.$ac_objext
4282 test "x$ac_cv_prog_cc_c99" != "xno" && break
4283 done
4284 rm -f conftest.$ac_ext
4285 CC=$ac_save_CC
4286
4287 fi
4288 # AC_CACHE_VAL
4289 case "x$ac_cv_prog_cc_c99" in
4290 x)
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4292 $as_echo "none needed" >&6; } ;;
4293 xno)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295 $as_echo "unsupported" >&6; } ;;
4296 *)
4297 CC="$CC $ac_cv_prog_cc_c99"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4299 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4300 esac
4301 if test "x$ac_cv_prog_cc_c99" != xno; then :
4302
4303 fi
4304
4305
4306 if test "$ac_cv_prog_cc_c99" = "no"; then :
4307 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4308 fi
4309 for ac_prog in 'bison -y' byacc
4310 do
4311 # Extract the first word of "$ac_prog", so it can be a program name with args.
4312 set dummy $ac_prog; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_YACC+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$YACC"; then
4319 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_prog_YACC="$ac_prog"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 break 2
4331 fi
4332 done
4333 done
4334 IFS=$as_save_IFS
4335
4336 fi
4337 fi
4338 YACC=$ac_cv_prog_YACC
4339 if test -n "$YACC"; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4341 $as_echo "$YACC" >&6; }
4342 else
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344 $as_echo "no" >&6; }
4345 fi
4346
4347
4348 test -n "$YACC" && break
4349 done
4350 test -n "$YACC" || YACC="yacc"
4351
4352
4353 for ac_prog in flex lex
4354 do
4355 # Extract the first word of "$ac_prog", so it can be a program name with args.
4356 set dummy $ac_prog; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_LEX+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$LEX"; then
4363 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_LEX="$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 fi
4381 fi
4382 LEX=$ac_cv_prog_LEX
4383 if test -n "$LEX"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4385 $as_echo "$LEX" >&6; }
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390
4391
4392 test -n "$LEX" && break
4393 done
4394 test -n "$LEX" || LEX=":"
4395
4396 if test "x$LEX" != "x:"; then
4397 cat >conftest.l <<_ACEOF
4398 %%
4399 a { ECHO; }
4400 b { REJECT; }
4401 c { yymore (); }
4402 d { yyless (1); }
4403 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4404 yyless ((input () != 0)); }
4405 f { unput (yytext[0]); }
4406 . { BEGIN INITIAL; }
4407 %%
4408 #ifdef YYTEXT_POINTER
4409 extern char *yytext;
4410 #endif
4411 int
4412 main (void)
4413 {
4414 return ! yylex () + ! yywrap ();
4415 }
4416 _ACEOF
4417 { { ac_try="$LEX conftest.l"
4418 case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424 (eval "$LEX conftest.l") 2>&5
4425 ac_status=$?
4426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427 test $ac_status = 0; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4429 $as_echo_n "checking lex output file root... " >&6; }
4430 if ${ac_cv_prog_lex_root+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433
4434 if test -f lex.yy.c; then
4435 ac_cv_prog_lex_root=lex.yy
4436 elif test -f lexyy.c; then
4437 ac_cv_prog_lex_root=lexyy
4438 else
4439 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4440 fi
4441 fi
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4443 $as_echo "$ac_cv_prog_lex_root" >&6; }
4444 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4445
4446 if test -z "${LEXLIB+set}"; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4448 $as_echo_n "checking lex library... " >&6; }
4449 if ${ac_cv_lib_lex+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452
4453 ac_save_LIBS=$LIBS
4454 ac_cv_lib_lex='none needed'
4455 for ac_lib in '' -lfl -ll; do
4456 LIBS="$ac_lib $ac_save_LIBS"
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459 `cat $LEX_OUTPUT_ROOT.c`
4460 _ACEOF
4461 if ac_fn_c_try_link "$LINENO"; then :
4462 ac_cv_lib_lex=$ac_lib
4463 fi
4464 rm -f core conftest.err conftest.$ac_objext \
4465 conftest$ac_exeext conftest.$ac_ext
4466 test "$ac_cv_lib_lex" != 'none needed' && break
4467 done
4468 LIBS=$ac_save_LIBS
4469
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4472 $as_echo "$ac_cv_lib_lex" >&6; }
4473 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4474 fi
4475
4476
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4478 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4479 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 # POSIX says lex can declare yytext either as a pointer or an array; the
4483 # default is implementation-dependent. Figure out which it is, since
4484 # not all implementations provide the %pointer and %array declarations.
4485 ac_cv_prog_lex_yytext_pointer=no
4486 ac_save_LIBS=$LIBS
4487 LIBS="$LEXLIB $ac_save_LIBS"
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490
4491 #define YYTEXT_POINTER 1
4492 `cat $LEX_OUTPUT_ROOT.c`
4493 _ACEOF
4494 if ac_fn_c_try_link "$LINENO"; then :
4495 ac_cv_prog_lex_yytext_pointer=yes
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext \
4498 conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_save_LIBS
4500
4501 fi
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4503 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4504 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4505
4506 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4507
4508 fi
4509 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4510
4511 fi
4512 if test "$LEX" = :; then
4513 LEX=${am_missing_run}flex
4514 fi
4515
4516
4517 # Initializing libtool.
4518
4519
4520
4521
4522
4523
4524
4525 case `pwd` in
4526 *\ * | *\ *)
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4528 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4529 esac
4530
4531
4532
4533 macro_version='2.4.2'
4534 macro_revision='1.3337'
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548 ltmain="$ac_aux_dir/ltmain.sh"
4549
4550 # Make sure we can run config.sub.
4551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4552 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4555 $as_echo_n "checking build system type... " >&6; }
4556 if ${ac_cv_build+:} false; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 ac_build_alias=$build_alias
4560 test "x$ac_build_alias" = x &&
4561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4562 test "x$ac_build_alias" = x &&
4563 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4565 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4566
4567 fi
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4569 $as_echo "$ac_cv_build" >&6; }
4570 case $ac_cv_build in
4571 *-*-*) ;;
4572 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4573 esac
4574 build=$ac_cv_build
4575 ac_save_IFS=$IFS; IFS='-'
4576 set x $ac_cv_build
4577 shift
4578 build_cpu=$1
4579 build_vendor=$2
4580 shift; shift
4581 # Remember, the first character of IFS is used to create $*,
4582 # except with old shells:
4583 build_os=$*
4584 IFS=$ac_save_IFS
4585 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4589 $as_echo_n "checking host system type... " >&6; }
4590 if ${ac_cv_host+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 if test "x$host_alias" = x; then
4594 ac_cv_host=$ac_cv_build
4595 else
4596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4597 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4598 fi
4599
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4602 $as_echo "$ac_cv_host" >&6; }
4603 case $ac_cv_host in
4604 *-*-*) ;;
4605 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4606 esac
4607 host=$ac_cv_host
4608 ac_save_IFS=$IFS; IFS='-'
4609 set x $ac_cv_host
4610 shift
4611 host_cpu=$1
4612 host_vendor=$2
4613 shift; shift
4614 # Remember, the first character of IFS is used to create $*,
4615 # except with old shells:
4616 host_os=$*
4617 IFS=$ac_save_IFS
4618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4619
4620
4621 # Backslashify metacharacters that are still active within
4622 # double-quoted strings.
4623 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4624
4625 # Same as above, but do not quote variable references.
4626 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4627
4628 # Sed substitution to delay expansion of an escaped shell variable in a
4629 # double_quote_subst'ed string.
4630 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4631
4632 # Sed substitution to delay expansion of an escaped single quote.
4633 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4634
4635 # Sed substitution to avoid accidental globbing in evaled expressions
4636 no_glob_subst='s/\*/\\\*/g'
4637
4638 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4639 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4640 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4643 $as_echo_n "checking how to print strings... " >&6; }
4644 # Test print first, because it will be a builtin if present.
4645 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4646 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4647 ECHO='print -r --'
4648 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4649 ECHO='printf %s\n'
4650 else
4651 # Use this function as a fallback that always works.
4652 func_fallback_echo ()
4653 {
4654 eval 'cat <<_LTECHO_EOF
4655 $1
4656 _LTECHO_EOF'
4657 }
4658 ECHO='func_fallback_echo'
4659 fi
4660
4661 # func_echo_all arg...
4662 # Invoke $ECHO with all args, space-separated.
4663 func_echo_all ()
4664 {
4665 $ECHO ""
4666 }
4667
4668 case "$ECHO" in
4669 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4670 $as_echo "printf" >&6; } ;;
4671 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4672 $as_echo "print -r" >&6; } ;;
4673 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4674 $as_echo "cat" >&6; } ;;
4675 esac
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4691 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4692 if ${ac_cv_path_SED+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4696 for ac_i in 1 2 3 4 5 6 7; do
4697 ac_script="$ac_script$as_nl$ac_script"
4698 done
4699 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4700 { ac_script=; unset ac_script;}
4701 if test -z "$SED"; then
4702 ac_path_SED_found=false
4703 # Loop through the user's path and test for each of PROGNAME-LIST
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707 IFS=$as_save_IFS
4708 test -z "$as_dir" && as_dir=.
4709 for ac_prog in sed gsed; do
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4712 as_fn_executable_p "$ac_path_SED" || continue
4713 # Check for GNU ac_path_SED and select it if it is found.
4714 # Check for GNU $ac_path_SED
4715 case `"$ac_path_SED" --version 2>&1` in
4716 *GNU*)
4717 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4718 *)
4719 ac_count=0
4720 $as_echo_n 0123456789 >"conftest.in"
4721 while :
4722 do
4723 cat "conftest.in" "conftest.in" >"conftest.tmp"
4724 mv "conftest.tmp" "conftest.in"
4725 cp "conftest.in" "conftest.nl"
4726 $as_echo '' >> "conftest.nl"
4727 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4729 as_fn_arith $ac_count + 1 && ac_count=$as_val
4730 if test $ac_count -gt ${ac_path_SED_max-0}; then
4731 # Best one so far, save it but keep looking for a better one
4732 ac_cv_path_SED="$ac_path_SED"
4733 ac_path_SED_max=$ac_count
4734 fi
4735 # 10*(2^10) chars as input seems more than enough
4736 test $ac_count -gt 10 && break
4737 done
4738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4739 esac
4740
4741 $ac_path_SED_found && break 3
4742 done
4743 done
4744 done
4745 IFS=$as_save_IFS
4746 if test -z "$ac_cv_path_SED"; then
4747 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4748 fi
4749 else
4750 ac_cv_path_SED=$SED
4751 fi
4752
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4755 $as_echo "$ac_cv_path_SED" >&6; }
4756 SED="$ac_cv_path_SED"
4757 rm -f conftest.sed
4758
4759 test -z "$SED" && SED=sed
4760 Xsed="$SED -e 1s/^X//"
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4773 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4774 if ${ac_cv_path_GREP+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -z "$GREP"; then
4778 ac_path_GREP_found=false
4779 # Loop through the user's path and test for each of PROGNAME-LIST
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4782 do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_prog in grep ggrep; do
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4788 as_fn_executable_p "$ac_path_GREP" || continue
4789 # Check for GNU ac_path_GREP and select it if it is found.
4790 # Check for GNU $ac_path_GREP
4791 case `"$ac_path_GREP" --version 2>&1` in
4792 *GNU*)
4793 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4794 *)
4795 ac_count=0
4796 $as_echo_n 0123456789 >"conftest.in"
4797 while :
4798 do
4799 cat "conftest.in" "conftest.in" >"conftest.tmp"
4800 mv "conftest.tmp" "conftest.in"
4801 cp "conftest.in" "conftest.nl"
4802 $as_echo 'GREP' >> "conftest.nl"
4803 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4804 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4805 as_fn_arith $ac_count + 1 && ac_count=$as_val
4806 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4807 # Best one so far, save it but keep looking for a better one
4808 ac_cv_path_GREP="$ac_path_GREP"
4809 ac_path_GREP_max=$ac_count
4810 fi
4811 # 10*(2^10) chars as input seems more than enough
4812 test $ac_count -gt 10 && break
4813 done
4814 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4815 esac
4816
4817 $ac_path_GREP_found && break 3
4818 done
4819 done
4820 done
4821 IFS=$as_save_IFS
4822 if test -z "$ac_cv_path_GREP"; then
4823 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4824 fi
4825 else
4826 ac_cv_path_GREP=$GREP
4827 fi
4828
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4831 $as_echo "$ac_cv_path_GREP" >&6; }
4832 GREP="$ac_cv_path_GREP"
4833
4834
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4836 $as_echo_n "checking for egrep... " >&6; }
4837 if ${ac_cv_path_EGREP+:} false; then :
4838 $as_echo_n "(cached) " >&6
4839 else
4840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4841 then ac_cv_path_EGREP="$GREP -E"
4842 else
4843 if test -z "$EGREP"; then
4844 ac_path_EGREP_found=false
4845 # Loop through the user's path and test for each of PROGNAME-LIST
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4848 do
4849 IFS=$as_save_IFS
4850 test -z "$as_dir" && as_dir=.
4851 for ac_prog in egrep; do
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4854 as_fn_executable_p "$ac_path_EGREP" || continue
4855 # Check for GNU ac_path_EGREP and select it if it is found.
4856 # Check for GNU $ac_path_EGREP
4857 case `"$ac_path_EGREP" --version 2>&1` in
4858 *GNU*)
4859 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4860 *)
4861 ac_count=0
4862 $as_echo_n 0123456789 >"conftest.in"
4863 while :
4864 do
4865 cat "conftest.in" "conftest.in" >"conftest.tmp"
4866 mv "conftest.tmp" "conftest.in"
4867 cp "conftest.in" "conftest.nl"
4868 $as_echo 'EGREP' >> "conftest.nl"
4869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4871 as_fn_arith $ac_count + 1 && ac_count=$as_val
4872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4873 # Best one so far, save it but keep looking for a better one
4874 ac_cv_path_EGREP="$ac_path_EGREP"
4875 ac_path_EGREP_max=$ac_count
4876 fi
4877 # 10*(2^10) chars as input seems more than enough
4878 test $ac_count -gt 10 && break
4879 done
4880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4881 esac
4882
4883 $ac_path_EGREP_found && break 3
4884 done
4885 done
4886 done
4887 IFS=$as_save_IFS
4888 if test -z "$ac_cv_path_EGREP"; then
4889 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4890 fi
4891 else
4892 ac_cv_path_EGREP=$EGREP
4893 fi
4894
4895 fi
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4898 $as_echo "$ac_cv_path_EGREP" >&6; }
4899 EGREP="$ac_cv_path_EGREP"
4900
4901
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4903 $as_echo_n "checking for fgrep... " >&6; }
4904 if ${ac_cv_path_FGREP+:} false; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4908 then ac_cv_path_FGREP="$GREP -F"
4909 else
4910 if test -z "$FGREP"; then
4911 ac_path_FGREP_found=false
4912 # Loop through the user's path and test for each of PROGNAME-LIST
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915 do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_prog in fgrep; do
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4921 as_fn_executable_p "$ac_path_FGREP" || continue
4922 # Check for GNU ac_path_FGREP and select it if it is found.
4923 # Check for GNU $ac_path_FGREP
4924 case `"$ac_path_FGREP" --version 2>&1` in
4925 *GNU*)
4926 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4927 *)
4928 ac_count=0
4929 $as_echo_n 0123456789 >"conftest.in"
4930 while :
4931 do
4932 cat "conftest.in" "conftest.in" >"conftest.tmp"
4933 mv "conftest.tmp" "conftest.in"
4934 cp "conftest.in" "conftest.nl"
4935 $as_echo 'FGREP' >> "conftest.nl"
4936 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938 as_fn_arith $ac_count + 1 && ac_count=$as_val
4939 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4940 # Best one so far, save it but keep looking for a better one
4941 ac_cv_path_FGREP="$ac_path_FGREP"
4942 ac_path_FGREP_max=$ac_count
4943 fi
4944 # 10*(2^10) chars as input seems more than enough
4945 test $ac_count -gt 10 && break
4946 done
4947 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948 esac
4949
4950 $ac_path_FGREP_found && break 3
4951 done
4952 done
4953 done
4954 IFS=$as_save_IFS
4955 if test -z "$ac_cv_path_FGREP"; then
4956 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4957 fi
4958 else
4959 ac_cv_path_FGREP=$FGREP
4960 fi
4961
4962 fi
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4965 $as_echo "$ac_cv_path_FGREP" >&6; }
4966 FGREP="$ac_cv_path_FGREP"
4967
4968
4969 test -z "$GREP" && GREP=grep
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 # Check whether --with-gnu-ld was given.
4990 if test "${with_gnu_ld+set}" = set; then :
4991 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4992 else
4993 with_gnu_ld=no
4994 fi
4995
4996 ac_prog=ld
4997 if test "$GCC" = yes; then
4998 # Check if gcc -print-prog-name=ld gives a path.
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5000 $as_echo_n "checking for ld used by $CC... " >&6; }
5001 case $host in
5002 *-*-mingw*)
5003 # gcc leaves a trailing carriage return which upsets mingw
5004 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5005 *)
5006 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5007 esac
5008 case $ac_prog in
5009 # Accept absolute paths.
5010 [\\/]* | ?:[\\/]*)
5011 re_direlt='/[^/][^/]*/\.\./'
5012 # Canonicalize the pathname of ld
5013 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5014 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5015 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5016 done
5017 test -z "$LD" && LD="$ac_prog"
5018 ;;
5019 "")
5020 # If it fails, then pretend we aren't using GCC.
5021 ac_prog=ld
5022 ;;
5023 *)
5024 # If it is relative, then search for the first ld in PATH.
5025 with_gnu_ld=unknown
5026 ;;
5027 esac
5028 elif test "$with_gnu_ld" = yes; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5030 $as_echo_n "checking for GNU ld... " >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5033 $as_echo_n "checking for non-GNU ld... " >&6; }
5034 fi
5035 if ${lt_cv_path_LD+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -z "$LD"; then
5039 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5040 for ac_dir in $PATH; do
5041 IFS="$lt_save_ifs"
5042 test -z "$ac_dir" && ac_dir=.
5043 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5044 lt_cv_path_LD="$ac_dir/$ac_prog"
5045 # Check to see if the program is GNU ld. I'd rather use --version,
5046 # but apparently some variants of GNU ld only accept -v.
5047 # Break only if it was the GNU/non-GNU ld that we prefer.
5048 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5049 *GNU* | *'with BFD'*)
5050 test "$with_gnu_ld" != no && break
5051 ;;
5052 *)
5053 test "$with_gnu_ld" != yes && break
5054 ;;
5055 esac
5056 fi
5057 done
5058 IFS="$lt_save_ifs"
5059 else
5060 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5061 fi
5062 fi
5063
5064 LD="$lt_cv_path_LD"
5065 if test -n "$LD"; then
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5067 $as_echo "$LD" >&6; }
5068 else
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5074 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5075 if ${lt_cv_prog_gnu_ld+:} false; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5079 case `$LD -v 2>&1 </dev/null` in
5080 *GNU* | *'with BFD'*)
5081 lt_cv_prog_gnu_ld=yes
5082 ;;
5083 *)
5084 lt_cv_prog_gnu_ld=no
5085 ;;
5086 esac
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5089 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5090 with_gnu_ld=$lt_cv_prog_gnu_ld
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5101 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5102 if ${lt_cv_path_NM+:} false; then :
5103 $as_echo_n "(cached) " >&6
5104 else
5105 if test -n "$NM"; then
5106 # Let the user override the test.
5107 lt_cv_path_NM="$NM"
5108 else
5109 lt_nm_to_check="${ac_tool_prefix}nm"
5110 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5111 lt_nm_to_check="$lt_nm_to_check nm"
5112 fi
5113 for lt_tmp_nm in $lt_nm_to_check; do
5114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5115 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5116 IFS="$lt_save_ifs"
5117 test -z "$ac_dir" && ac_dir=.
5118 tmp_nm="$ac_dir/$lt_tmp_nm"
5119 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5120 # Check to see if the nm accepts a BSD-compat flag.
5121 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5122 # nm: unknown option "B" ignored
5123 # Tru64's nm complains that /dev/null is an invalid object file
5124 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5125 */dev/null* | *'Invalid file or object type'*)
5126 lt_cv_path_NM="$tmp_nm -B"
5127 break
5128 ;;
5129 *)
5130 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5131 */dev/null*)
5132 lt_cv_path_NM="$tmp_nm -p"
5133 break
5134 ;;
5135 *)
5136 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5137 continue # so that we can try to find one that supports BSD flags
5138 ;;
5139 esac
5140 ;;
5141 esac
5142 fi
5143 done
5144 IFS="$lt_save_ifs"
5145 done
5146 : ${lt_cv_path_NM=no}
5147 fi
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5150 $as_echo "$lt_cv_path_NM" >&6; }
5151 if test "$lt_cv_path_NM" != "no"; then
5152 NM="$lt_cv_path_NM"
5153 else
5154 # Didn't find any BSD compatible name lister, look for dumpbin.
5155 if test -n "$DUMPBIN"; then :
5156 # Let the user override the test.
5157 else
5158 if test -n "$ac_tool_prefix"; then
5159 for ac_prog in dumpbin "link -dump"
5160 do
5161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_DUMPBIN+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$DUMPBIN"; then
5169 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 DUMPBIN=$ac_cv_prog_DUMPBIN
5189 if test -n "$DUMPBIN"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5191 $as_echo "$DUMPBIN" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 fi
5196
5197
5198 test -n "$DUMPBIN" && break
5199 done
5200 fi
5201 if test -z "$DUMPBIN"; then
5202 ac_ct_DUMPBIN=$DUMPBIN
5203 for ac_prog in dumpbin "link -dump"
5204 do
5205 # Extract the first word of "$ac_prog", so it can be a program name with args.
5206 set dummy $ac_prog; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$ac_ct_DUMPBIN"; then
5213 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 fi
5231 fi
5232 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5233 if test -n "$ac_ct_DUMPBIN"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5235 $as_echo "$ac_ct_DUMPBIN" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240
5241
5242 test -n "$ac_ct_DUMPBIN" && break
5243 done
5244
5245 if test "x$ac_ct_DUMPBIN" = x; then
5246 DUMPBIN=":"
5247 else
5248 case $cross_compiling:$ac_tool_warned in
5249 yes:)
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5252 ac_tool_warned=yes ;;
5253 esac
5254 DUMPBIN=$ac_ct_DUMPBIN
5255 fi
5256 fi
5257
5258 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5259 *COFF*)
5260 DUMPBIN="$DUMPBIN -symbols"
5261 ;;
5262 *)
5263 DUMPBIN=:
5264 ;;
5265 esac
5266 fi
5267
5268 if test "$DUMPBIN" != ":"; then
5269 NM="$DUMPBIN"
5270 fi
5271 fi
5272 test -z "$NM" && NM=nm
5273
5274
5275
5276
5277
5278
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5280 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5281 if ${lt_cv_nm_interface+:} false; then :
5282 $as_echo_n "(cached) " >&6
5283 else
5284 lt_cv_nm_interface="BSD nm"
5285 echo "int some_variable = 0;" > conftest.$ac_ext
5286 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5287 (eval "$ac_compile" 2>conftest.err)
5288 cat conftest.err >&5
5289 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5290 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5291 cat conftest.err >&5
5292 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5293 cat conftest.out >&5
5294 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5295 lt_cv_nm_interface="MS dumpbin"
5296 fi
5297 rm -f conftest*
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5300 $as_echo "$lt_cv_nm_interface" >&6; }
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5303 $as_echo_n "checking whether ln -s works... " >&6; }
5304 LN_S=$as_ln_s
5305 if test "$LN_S" = "ln -s"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5307 $as_echo "yes" >&6; }
5308 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5310 $as_echo "no, using $LN_S" >&6; }
5311 fi
5312
5313 # find the maximum length of command line arguments
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5315 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5316 if ${lt_cv_sys_max_cmd_len+:} false; then :
5317 $as_echo_n "(cached) " >&6
5318 else
5319 i=0
5320 teststring="ABCD"
5321
5322 case $build_os in
5323 msdosdjgpp*)
5324 # On DJGPP, this test can blow up pretty badly due to problems in libc
5325 # (any single argument exceeding 2000 bytes causes a buffer overrun
5326 # during glob expansion). Even if it were fixed, the result of this
5327 # check would be larger than it should be.
5328 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5329 ;;
5330
5331 gnu*)
5332 # Under GNU Hurd, this test is not required because there is
5333 # no limit to the length of command line arguments.
5334 # Libtool will interpret -1 as no limit whatsoever
5335 lt_cv_sys_max_cmd_len=-1;
5336 ;;
5337
5338 cygwin* | mingw* | cegcc*)
5339 # On Win9x/ME, this test blows up -- it succeeds, but takes
5340 # about 5 minutes as the teststring grows exponentially.
5341 # Worse, since 9x/ME are not pre-emptively multitasking,
5342 # you end up with a "frozen" computer, even though with patience
5343 # the test eventually succeeds (with a max line length of 256k).
5344 # Instead, let's just punt: use the minimum linelength reported by
5345 # all of the supported platforms: 8192 (on NT/2K/XP).
5346 lt_cv_sys_max_cmd_len=8192;
5347 ;;
5348
5349 mint*)
5350 # On MiNT this can take a long time and run out of memory.
5351 lt_cv_sys_max_cmd_len=8192;
5352 ;;
5353
5354 amigaos*)
5355 # On AmigaOS with pdksh, this test takes hours, literally.
5356 # So we just punt and use a minimum line length of 8192.
5357 lt_cv_sys_max_cmd_len=8192;
5358 ;;
5359
5360 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5361 # This has been around since 386BSD, at least. Likely further.
5362 if test -x /sbin/sysctl; then
5363 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5364 elif test -x /usr/sbin/sysctl; then
5365 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5366 else
5367 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5368 fi
5369 # And add a safety zone
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5372 ;;
5373
5374 interix*)
5375 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5376 lt_cv_sys_max_cmd_len=196608
5377 ;;
5378
5379 os2*)
5380 # The test takes a long time on OS/2.
5381 lt_cv_sys_max_cmd_len=8192
5382 ;;
5383
5384 osf*)
5385 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5386 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5387 # nice to cause kernel panics so lets avoid the loop below.
5388 # First set a reasonable default.
5389 lt_cv_sys_max_cmd_len=16384
5390 #
5391 if test -x /sbin/sysconfig; then
5392 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5393 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5394 esac
5395 fi
5396 ;;
5397 sco3.2v5*)
5398 lt_cv_sys_max_cmd_len=102400
5399 ;;
5400 sysv5* | sco5v6* | sysv4.2uw2*)
5401 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5402 if test -n "$kargmax"; then
5403 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5404 else
5405 lt_cv_sys_max_cmd_len=32768
5406 fi
5407 ;;
5408 *)
5409 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5410 if test -n "$lt_cv_sys_max_cmd_len"; then
5411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5413 else
5414 # Make teststring a little bigger before we do anything with it.
5415 # a 1K string should be a reasonable start.
5416 for i in 1 2 3 4 5 6 7 8 ; do
5417 teststring=$teststring$teststring
5418 done
5419 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5420 # If test is not a shell built-in, we'll probably end up computing a
5421 # maximum length that is only half of the actual maximum length, but
5422 # we can't tell.
5423 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5424 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5425 test $i != 17 # 1/2 MB should be enough
5426 do
5427 i=`expr $i + 1`
5428 teststring=$teststring$teststring
5429 done
5430 # Only check the string length outside the loop.
5431 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5432 teststring=
5433 # Add a significant safety factor because C++ compilers can tack on
5434 # massive amounts of additional arguments before passing them to the
5435 # linker. It appears as though 1/2 is a usable value.
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5437 fi
5438 ;;
5439 esac
5440
5441 fi
5442
5443 if test -n $lt_cv_sys_max_cmd_len ; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5445 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5448 $as_echo "none" >&6; }
5449 fi
5450 max_cmd_len=$lt_cv_sys_max_cmd_len
5451
5452
5453
5454
5455
5456
5457 : ${CP="cp -f"}
5458 : ${MV="mv -f"}
5459 : ${RM="rm -f"}
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5462 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5463 # Try some XSI features
5464 xsi_shell=no
5465 ( _lt_dummy="a/b/c"
5466 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5467 = c,a/b,b/c, \
5468 && eval 'test $(( 1 + 1 )) -eq 2 \
5469 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5470 && xsi_shell=yes
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5472 $as_echo "$xsi_shell" >&6; }
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5476 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5477 lt_shell_append=no
5478 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5479 >/dev/null 2>&1 \
5480 && lt_shell_append=yes
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5482 $as_echo "$lt_shell_append" >&6; }
5483
5484
5485 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5486 lt_unset=unset
5487 else
5488 lt_unset=false
5489 fi
5490
5491
5492
5493
5494
5495 # test EBCDIC or ASCII
5496 case `echo X|tr X '\101'` in
5497 A) # ASCII based system
5498 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5499 lt_SP2NL='tr \040 \012'
5500 lt_NL2SP='tr \015\012 \040\040'
5501 ;;
5502 *) # EBCDIC based system
5503 lt_SP2NL='tr \100 \n'
5504 lt_NL2SP='tr \r\n \100\100'
5505 ;;
5506 esac
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5517 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5518 if ${lt_cv_to_host_file_cmd+:} false; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 case $host in
5522 *-*-mingw* )
5523 case $build in
5524 *-*-mingw* ) # actually msys
5525 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5526 ;;
5527 *-*-cygwin* )
5528 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5529 ;;
5530 * ) # otherwise, assume *nix
5531 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5532 ;;
5533 esac
5534 ;;
5535 *-*-cygwin* )
5536 case $build in
5537 *-*-mingw* ) # actually msys
5538 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5539 ;;
5540 *-*-cygwin* )
5541 lt_cv_to_host_file_cmd=func_convert_file_noop
5542 ;;
5543 * ) # otherwise, assume *nix
5544 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5545 ;;
5546 esac
5547 ;;
5548 * ) # unhandled hosts (and "normal" native builds)
5549 lt_cv_to_host_file_cmd=func_convert_file_noop
5550 ;;
5551 esac
5552
5553 fi
5554
5555 to_host_file_cmd=$lt_cv_to_host_file_cmd
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5557 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5558
5559
5560
5561
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5564 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5565 if ${lt_cv_to_tool_file_cmd+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 #assume ordinary cross tools, or native build.
5569 lt_cv_to_tool_file_cmd=func_convert_file_noop
5570 case $host in
5571 *-*-mingw* )
5572 case $build in
5573 *-*-mingw* ) # actually msys
5574 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5575 ;;
5576 esac
5577 ;;
5578 esac
5579
5580 fi
5581
5582 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5584 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5585
5586
5587
5588
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5591 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5592 if ${lt_cv_ld_reload_flag+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 lt_cv_ld_reload_flag='-r'
5596 fi
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5598 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5599 reload_flag=$lt_cv_ld_reload_flag
5600 case $reload_flag in
5601 "" | " "*) ;;
5602 *) reload_flag=" $reload_flag" ;;
5603 esac
5604 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5605 case $host_os in
5606 cygwin* | mingw* | pw32* | cegcc*)
5607 if test "$GCC" != yes; then
5608 reload_cmds=false
5609 fi
5610 ;;
5611 darwin*)
5612 if test "$GCC" = yes; then
5613 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5614 else
5615 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5616 fi
5617 ;;
5618 esac
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 if test -n "$ac_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5630 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_OBJDUMP+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$OBJDUMP"; then
5637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5653
5654 fi
5655 fi
5656 OBJDUMP=$ac_cv_prog_OBJDUMP
5657 if test -n "$OBJDUMP"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5659 $as_echo "$OBJDUMP" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 fi
5664
5665
5666 fi
5667 if test -z "$ac_cv_prog_OBJDUMP"; then
5668 ac_ct_OBJDUMP=$OBJDUMP
5669 # Extract the first word of "objdump", so it can be a program name with args.
5670 set dummy objdump; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if test -n "$ac_ct_OBJDUMP"; then
5677 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5681 do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5689 fi
5690 done
5691 done
5692 IFS=$as_save_IFS
5693
5694 fi
5695 fi
5696 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5697 if test -n "$ac_ct_OBJDUMP"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5699 $as_echo "$ac_ct_OBJDUMP" >&6; }
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 fi
5704
5705 if test "x$ac_ct_OBJDUMP" = x; then
5706 OBJDUMP="false"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709 yes:)
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5712 ac_tool_warned=yes ;;
5713 esac
5714 OBJDUMP=$ac_ct_OBJDUMP
5715 fi
5716 else
5717 OBJDUMP="$ac_cv_prog_OBJDUMP"
5718 fi
5719
5720 test -z "$OBJDUMP" && OBJDUMP=objdump
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5731 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5732 if ${lt_cv_deplibs_check_method+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734 else
5735 lt_cv_file_magic_cmd='$MAGIC_CMD'
5736 lt_cv_file_magic_test_file=
5737 lt_cv_deplibs_check_method='unknown'
5738 # Need to set the preceding variable on all platforms that support
5739 # interlibrary dependencies.
5740 # 'none' -- dependencies not supported.
5741 # `unknown' -- same as none, but documents that we really don't know.
5742 # 'pass_all' -- all dependencies passed with no checks.
5743 # 'test_compile' -- check by making test program.
5744 # 'file_magic [[regex]]' -- check by looking for files in library path
5745 # which responds to the $file_magic_cmd with a given extended regex.
5746 # If you have `file' or equivalent on your system and you're not sure
5747 # whether `pass_all' will *always* work, you probably want this one.
5748
5749 case $host_os in
5750 aix[4-9]*)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 beos*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758 bsdi[45]*)
5759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5760 lt_cv_file_magic_cmd='/usr/bin/file -L'
5761 lt_cv_file_magic_test_file=/shlib/libc.so
5762 ;;
5763
5764 cygwin*)
5765 # func_win32_libid is a shell function defined in ltmain.sh
5766 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5767 lt_cv_file_magic_cmd='func_win32_libid'
5768 ;;
5769
5770 mingw* | pw32*)
5771 # Base MSYS/MinGW do not provide the 'file' command needed by
5772 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5773 # unless we find 'file', for example because we are cross-compiling.
5774 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5775 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5777 lt_cv_file_magic_cmd='func_win32_libid'
5778 else
5779 # Keep this pattern in sync with the one in func_win32_libid.
5780 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5781 lt_cv_file_magic_cmd='$OBJDUMP -f'
5782 fi
5783 ;;
5784
5785 cegcc*)
5786 # use the weaker test based on 'objdump'. See mingw*.
5787 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5788 lt_cv_file_magic_cmd='$OBJDUMP -f'
5789 ;;
5790
5791 darwin* | rhapsody*)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794
5795 freebsd* | dragonfly*)
5796 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5797 case $host_cpu in
5798 i*86 )
5799 # Not sure whether the presence of OpenBSD here was a mistake.
5800 # Let's accept both of them until this is cleared up.
5801 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5802 lt_cv_file_magic_cmd=/usr/bin/file
5803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5804 ;;
5805 esac
5806 else
5807 lt_cv_deplibs_check_method=pass_all
5808 fi
5809 ;;
5810
5811 gnu*)
5812 lt_cv_deplibs_check_method=pass_all
5813 ;;
5814
5815 haiku*)
5816 lt_cv_deplibs_check_method=pass_all
5817 ;;
5818
5819 hpux10.20* | hpux11*)
5820 lt_cv_file_magic_cmd=/usr/bin/file
5821 case $host_cpu in
5822 ia64*)
5823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5824 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5825 ;;
5826 hppa*64*)
5827 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5828 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5829 ;;
5830 *)
5831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5832 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5833 ;;
5834 esac
5835 ;;
5836
5837 interix[3-9]*)
5838 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5840 ;;
5841
5842 irix5* | irix6* | nonstopux*)
5843 case $LD in
5844 *-32|*"-32 ") libmagic=32-bit;;
5845 *-n32|*"-n32 ") libmagic=N32;;
5846 *-64|*"-64 ") libmagic=64-bit;;
5847 *) libmagic=never-match;;
5848 esac
5849 lt_cv_deplibs_check_method=pass_all
5850 ;;
5851
5852 # This must be glibc/ELF.
5853 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5854 lt_cv_deplibs_check_method=pass_all
5855 ;;
5856
5857 netbsd*)
5858 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5860 else
5861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5862 fi
5863 ;;
5864
5865 newos6*)
5866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5867 lt_cv_file_magic_cmd=/usr/bin/file
5868 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5869 ;;
5870
5871 *nto* | *qnx*)
5872 lt_cv_deplibs_check_method=pass_all
5873 ;;
5874
5875 openbsd*)
5876 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5878 else
5879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5880 fi
5881 ;;
5882
5883 osf3* | osf4* | osf5*)
5884 lt_cv_deplibs_check_method=pass_all
5885 ;;
5886
5887 rdos*)
5888 lt_cv_deplibs_check_method=pass_all
5889 ;;
5890
5891 solaris*)
5892 lt_cv_deplibs_check_method=pass_all
5893 ;;
5894
5895 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5896 lt_cv_deplibs_check_method=pass_all
5897 ;;
5898
5899 sysv4 | sysv4.3*)
5900 case $host_vendor in
5901 motorola)
5902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5903 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5904 ;;
5905 ncr)
5906 lt_cv_deplibs_check_method=pass_all
5907 ;;
5908 sequent)
5909 lt_cv_file_magic_cmd='/bin/file'
5910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5911 ;;
5912 sni)
5913 lt_cv_file_magic_cmd='/bin/file'
5914 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5915 lt_cv_file_magic_test_file=/lib/libc.so
5916 ;;
5917 siemens)
5918 lt_cv_deplibs_check_method=pass_all
5919 ;;
5920 pc)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923 esac
5924 ;;
5925
5926 tpf*)
5927 lt_cv_deplibs_check_method=pass_all
5928 ;;
5929 esac
5930
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5933 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5934
5935 file_magic_glob=
5936 want_nocaseglob=no
5937 if test "$build" = "$host"; then
5938 case $host_os in
5939 mingw* | pw32*)
5940 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5941 want_nocaseglob=yes
5942 else
5943 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5944 fi
5945 ;;
5946 esac
5947 fi
5948
5949 file_magic_cmd=$lt_cv_file_magic_cmd
5950 deplibs_check_method=$lt_cv_deplibs_check_method
5951 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974 if test -n "$ac_tool_prefix"; then
5975 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5976 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978 $as_echo_n "checking for $ac_word... " >&6; }
5979 if ${ac_cv_prog_DLLTOOL+:} false; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 if test -n "$DLLTOOL"; then
5983 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5984 else
5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 for as_dir in $PATH
5987 do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
5991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996 done
5997 done
5998 IFS=$as_save_IFS
5999
6000 fi
6001 fi
6002 DLLTOOL=$ac_cv_prog_DLLTOOL
6003 if test -n "$DLLTOOL"; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6005 $as_echo "$DLLTOOL" >&6; }
6006 else
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 $as_echo "no" >&6; }
6009 fi
6010
6011
6012 fi
6013 if test -z "$ac_cv_prog_DLLTOOL"; then
6014 ac_ct_DLLTOOL=$DLLTOOL
6015 # Extract the first word of "dlltool", so it can be a program name with args.
6016 set dummy dlltool; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$ac_ct_DLLTOOL"; then
6023 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6032 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040 fi
6041 fi
6042 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6043 if test -n "$ac_ct_DLLTOOL"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6045 $as_echo "$ac_ct_DLLTOOL" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 fi
6050
6051 if test "x$ac_ct_DLLTOOL" = x; then
6052 DLLTOOL="false"
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055 yes:)
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6058 ac_tool_warned=yes ;;
6059 esac
6060 DLLTOOL=$ac_ct_DLLTOOL
6061 fi
6062 else
6063 DLLTOOL="$ac_cv_prog_DLLTOOL"
6064 fi
6065
6066 test -z "$DLLTOOL" && DLLTOOL=dlltool
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6078 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6079 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 lt_cv_sharedlib_from_linklib_cmd='unknown'
6083
6084 case $host_os in
6085 cygwin* | mingw* | pw32* | cegcc*)
6086 # two different shell functions defined in ltmain.sh
6087 # decide which to use based on capabilities of $DLLTOOL
6088 case `$DLLTOOL --help 2>&1` in
6089 *--identify-strict*)
6090 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6091 ;;
6092 *)
6093 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6094 ;;
6095 esac
6096 ;;
6097 *)
6098 # fallback: assume linklib IS sharedlib
6099 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6100 ;;
6101 esac
6102
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6105 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6106 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6107 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6108
6109
6110
6111
6112
6113
6114
6115 if test -n "$ac_tool_prefix"; then
6116 for ac_prog in ar
6117 do
6118 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6119 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_AR+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$AR"; then
6126 ac_cv_prog_AR="$AR" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139 done
6140 done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 AR=$ac_cv_prog_AR
6146 if test -n "$AR"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6148 $as_echo "$AR" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155 test -n "$AR" && break
6156 done
6157 fi
6158 if test -z "$AR"; then
6159 ac_ct_AR=$AR
6160 for ac_prog in ar
6161 do
6162 # Extract the first word of "$ac_prog", so it can be a program name with args.
6163 set dummy $ac_prog; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$ac_ct_AR"; then
6170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_ac_ct_AR="$ac_prog"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6182 fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6186
6187 fi
6188 fi
6189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6190 if test -n "$ac_ct_AR"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6192 $as_echo "$ac_ct_AR" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6196 fi
6197
6198
6199 test -n "$ac_ct_AR" && break
6200 done
6201
6202 if test "x$ac_ct_AR" = x; then
6203 AR="false"
6204 else
6205 case $cross_compiling:$ac_tool_warned in
6206 yes:)
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6209 ac_tool_warned=yes ;;
6210 esac
6211 AR=$ac_ct_AR
6212 fi
6213 fi
6214
6215 : ${AR=ar}
6216 : ${AR_FLAGS=cru}
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6229 $as_echo_n "checking for archiver @FILE support... " >&6; }
6230 if ${lt_cv_ar_at_file+:} false; then :
6231 $as_echo_n "(cached) " >&6
6232 else
6233 lt_cv_ar_at_file=no
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236
6237 int
6238 main ()
6239 {
6240
6241 ;
6242 return 0;
6243 }
6244 _ACEOF
6245 if ac_fn_c_try_compile "$LINENO"; then :
6246 echo conftest.$ac_objext > conftest.lst
6247 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6249 (eval $lt_ar_try) 2>&5
6250 ac_status=$?
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; }
6253 if test "$ac_status" -eq 0; then
6254 # Ensure the archiver fails upon bogus file names.
6255 rm -f conftest.$ac_objext libconftest.a
6256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6257 (eval $lt_ar_try) 2>&5
6258 ac_status=$?
6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260 test $ac_status = 0; }
6261 if test "$ac_status" -ne 0; then
6262 lt_cv_ar_at_file=@
6263 fi
6264 fi
6265 rm -f conftest.* libconftest.a
6266
6267 fi
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269
6270 fi
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6272 $as_echo "$lt_cv_ar_at_file" >&6; }
6273
6274 if test "x$lt_cv_ar_at_file" = xno; then
6275 archiver_list_spec=
6276 else
6277 archiver_list_spec=$lt_cv_ar_at_file
6278 fi
6279
6280
6281
6282
6283
6284
6285
6286 if test -n "$ac_tool_prefix"; then
6287 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6288 set dummy ${ac_tool_prefix}strip; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_STRIP+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 if test -n "$STRIP"; then
6295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 STRIP=$ac_cv_prog_STRIP
6315 if test -n "$STRIP"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6317 $as_echo "$STRIP" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323
6324 fi
6325 if test -z "$ac_cv_prog_STRIP"; then
6326 ac_ct_STRIP=$STRIP
6327 # Extract the first word of "strip", so it can be a program name with args.
6328 set dummy strip; ac_word=$2
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330 $as_echo_n "checking for $ac_word... " >&6; }
6331 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 if test -n "$ac_ct_STRIP"; then
6335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6336 else
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 for as_dir in $PATH
6339 do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_ac_ct_STRIP="strip"
6345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348 done
6349 done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6355 if test -n "$ac_ct_STRIP"; then
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6357 $as_echo "$ac_ct_STRIP" >&6; }
6358 else
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 $as_echo "no" >&6; }
6361 fi
6362
6363 if test "x$ac_ct_STRIP" = x; then
6364 STRIP=":"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 STRIP=$ac_ct_STRIP
6373 fi
6374 else
6375 STRIP="$ac_cv_prog_STRIP"
6376 fi
6377
6378 test -z "$STRIP" && STRIP=:
6379
6380
6381
6382
6383
6384
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_RANLIB+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$RANLIB"; then
6394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407 done
6408 done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 RANLIB=$ac_cv_prog_RANLIB
6414 if test -n "$RANLIB"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6416 $as_echo "$RANLIB" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422
6423 fi
6424 if test -z "$ac_cv_prog_RANLIB"; then
6425 ac_ct_RANLIB=$RANLIB
6426 # Extract the first word of "ranlib", so it can be a program name with args.
6427 set dummy ranlib; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test -n "$ac_ct_RANLIB"; then
6434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439 IFS=$as_save_IFS
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443 ac_cv_prog_ac_ct_RANLIB="ranlib"
6444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 break 2
6446 fi
6447 done
6448 done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6454 if test -n "$ac_ct_RANLIB"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6456 $as_echo "$ac_ct_RANLIB" >&6; }
6457 else
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462 if test "x$ac_ct_RANLIB" = x; then
6463 RANLIB=":"
6464 else
6465 case $cross_compiling:$ac_tool_warned in
6466 yes:)
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6469 ac_tool_warned=yes ;;
6470 esac
6471 RANLIB=$ac_ct_RANLIB
6472 fi
6473 else
6474 RANLIB="$ac_cv_prog_RANLIB"
6475 fi
6476
6477 test -z "$RANLIB" && RANLIB=:
6478
6479
6480
6481
6482
6483
6484 # Determine commands to create old-style static archives.
6485 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6486 old_postinstall_cmds='chmod 644 $oldlib'
6487 old_postuninstall_cmds=
6488
6489 if test -n "$RANLIB"; then
6490 case $host_os in
6491 openbsd*)
6492 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6493 ;;
6494 *)
6495 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6496 ;;
6497 esac
6498 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6499 fi
6500
6501 case $host_os in
6502 darwin*)
6503 lock_old_archive_extraction=yes ;;
6504 *)
6505 lock_old_archive_extraction=no ;;
6506 esac
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 # If no C compiler was specified, use CC.
6547 LTCC=${LTCC-"$CC"}
6548
6549 # If no C compiler flags were specified, use CFLAGS.
6550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6551
6552 # Allow CC to be a program name with arguments.
6553 compiler=$CC
6554
6555
6556 # Check for command to grab the raw symbol name followed by C symbol from nm.
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6558 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6559 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562
6563 # These are sane defaults that work on at least a few old systems.
6564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6565
6566 # Character class describing NM global symbol codes.
6567 symcode='[BCDEGRST]'
6568
6569 # Regexp to match symbols that can be accessed directly from C.
6570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6571
6572 # Define system-specific variables.
6573 case $host_os in
6574 aix*)
6575 symcode='[BCDT]'
6576 ;;
6577 cygwin* | mingw* | pw32* | cegcc*)
6578 symcode='[ABCDGISTW]'
6579 ;;
6580 hpux*)
6581 if test "$host_cpu" = ia64; then
6582 symcode='[ABCDEGRST]'
6583 fi
6584 ;;
6585 irix* | nonstopux*)
6586 symcode='[BCDEGRST]'
6587 ;;
6588 osf*)
6589 symcode='[BCDEGQRST]'
6590 ;;
6591 solaris*)
6592 symcode='[BDRT]'
6593 ;;
6594 sco3.2v5*)
6595 symcode='[DT]'
6596 ;;
6597 sysv4.2uw2*)
6598 symcode='[DT]'
6599 ;;
6600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6601 symcode='[ABDT]'
6602 ;;
6603 sysv4)
6604 symcode='[DFNSTU]'
6605 ;;
6606 esac
6607
6608 # If we're using GNU nm, then use its standard symbol codes.
6609 case `$NM -V 2>&1` in
6610 *GNU* | *'with BFD'*)
6611 symcode='[ABCDGIRSTW]' ;;
6612 esac
6613
6614 # Transform an extracted symbol line into a proper C declaration.
6615 # Some systems (esp. on ia64) link data and code symbols differently,
6616 # so use this general approach.
6617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6618
6619 # Transform an extracted symbol line into symbol name and symbol address
6620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6621 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6622
6623 # Handle CRLF in mingw tool chain
6624 opt_cr=
6625 case $build_os in
6626 mingw*)
6627 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6628 ;;
6629 esac
6630
6631 # Try without a prefix underscore, then with it.
6632 for ac_symprfx in "" "_"; do
6633
6634 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6635 symxfrm="\\1 $ac_symprfx\\2 \\2"
6636
6637 # Write the raw and C identifiers.
6638 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6639 # Fake it for dumpbin and say T for any non-static function
6640 # and D for any global variable.
6641 # Also find C++ and __fastcall symbols from MSVC++,
6642 # which start with @ or ?.
6643 lt_cv_sys_global_symbol_pipe="$AWK '"\
6644 " {last_section=section; section=\$ 3};"\
6645 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6646 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6647 " \$ 0!~/External *\|/{next};"\
6648 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6649 " {if(hide[section]) next};"\
6650 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6651 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6652 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6653 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6654 " ' prfx=^$ac_symprfx"
6655 else
6656 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6657 fi
6658 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6659
6660 # Check to see that the pipe works correctly.
6661 pipe_works=no
6662
6663 rm -f conftest*
6664 cat > conftest.$ac_ext <<_LT_EOF
6665 #ifdef __cplusplus
6666 extern "C" {
6667 #endif
6668 char nm_test_var;
6669 void nm_test_func(void);
6670 void nm_test_func(void){}
6671 #ifdef __cplusplus
6672 }
6673 #endif
6674 int main(){nm_test_var='a';nm_test_func();return(0);}
6675 _LT_EOF
6676
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 # Now try to grab the symbols.
6683 nlist=conftest.nm
6684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6685 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6686 ac_status=$?
6687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688 test $ac_status = 0; } && test -s "$nlist"; then
6689 # Try sorting and uniquifying the output.
6690 if sort "$nlist" | uniq > "$nlist"T; then
6691 mv -f "$nlist"T "$nlist"
6692 else
6693 rm -f "$nlist"T
6694 fi
6695
6696 # Make sure that we snagged all the symbols we need.
6697 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6698 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6699 cat <<_LT_EOF > conftest.$ac_ext
6700 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6701 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6702 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6703 relocations are performed -- see ld's documentation on pseudo-relocs. */
6704 # define LT_DLSYM_CONST
6705 #elif defined(__osf__)
6706 /* This system does not cope well with relocations in const data. */
6707 # define LT_DLSYM_CONST
6708 #else
6709 # define LT_DLSYM_CONST const
6710 #endif
6711
6712 #ifdef __cplusplus
6713 extern "C" {
6714 #endif
6715
6716 _LT_EOF
6717 # Now generate the symbol file.
6718 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6719
6720 cat <<_LT_EOF >> conftest.$ac_ext
6721
6722 /* The mapping between symbol names and symbols. */
6723 LT_DLSYM_CONST struct {
6724 const char *name;
6725 void *address;
6726 }
6727 lt__PROGRAM__LTX_preloaded_symbols[] =
6728 {
6729 { "@PROGRAM@", (void *) 0 },
6730 _LT_EOF
6731 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6732 cat <<\_LT_EOF >> conftest.$ac_ext
6733 {0, (void *) 0}
6734 };
6735
6736 /* This works around a problem in FreeBSD linker */
6737 #ifdef FREEBSD_WORKAROUND
6738 static const void *lt_preloaded_setup() {
6739 return lt__PROGRAM__LTX_preloaded_symbols;
6740 }
6741 #endif
6742
6743 #ifdef __cplusplus
6744 }
6745 #endif
6746 _LT_EOF
6747 # Now try linking the two files.
6748 mv conftest.$ac_objext conftstm.$ac_objext
6749 lt_globsym_save_LIBS=$LIBS
6750 lt_globsym_save_CFLAGS=$CFLAGS
6751 LIBS="conftstm.$ac_objext"
6752 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6754 (eval $ac_link) 2>&5
6755 ac_status=$?
6756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6757 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6758 pipe_works=yes
6759 fi
6760 LIBS=$lt_globsym_save_LIBS
6761 CFLAGS=$lt_globsym_save_CFLAGS
6762 else
6763 echo "cannot find nm_test_func in $nlist" >&5
6764 fi
6765 else
6766 echo "cannot find nm_test_var in $nlist" >&5
6767 fi
6768 else
6769 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6770 fi
6771 else
6772 echo "$progname: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6774 fi
6775 rm -rf conftest* conftst*
6776
6777 # Do not use the global_symbol_pipe unless it works.
6778 if test "$pipe_works" = yes; then
6779 break
6780 else
6781 lt_cv_sys_global_symbol_pipe=
6782 fi
6783 done
6784
6785 fi
6786
6787 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6788 lt_cv_sys_global_symbol_to_cdecl=
6789 fi
6790 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6792 $as_echo "failed" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6795 $as_echo "ok" >&6; }
6796 fi
6797
6798 # Response file support.
6799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6800 nm_file_list_spec='@'
6801 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6802 nm_file_list_spec='@'
6803 fi
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6832 $as_echo_n "checking for sysroot... " >&6; }
6833
6834 # Check whether --with-sysroot was given.
6835 if test "${with_sysroot+set}" = set; then :
6836 withval=$with_sysroot;
6837 else
6838 with_sysroot=no
6839 fi
6840
6841
6842 lt_sysroot=
6843 case ${with_sysroot} in #(
6844 yes)
6845 if test "$GCC" = yes; then
6846 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6847 fi
6848 ;; #(
6849 /*)
6850 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6851 ;; #(
6852 no|'')
6853 ;; #(
6854 *)
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6856 $as_echo "${with_sysroot}" >&6; }
6857 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6858 ;;
6859 esac
6860
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6862 $as_echo "${lt_sysroot:-no}" >&6; }
6863
6864
6865
6866
6867
6868 # Check whether --enable-libtool-lock was given.
6869 if test "${enable_libtool_lock+set}" = set; then :
6870 enableval=$enable_libtool_lock;
6871 fi
6872
6873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6874
6875 # Some flags need to be propagated to the compiler or linker for good
6876 # libtool support.
6877 case $host in
6878 ia64-*-hpux*)
6879 # Find out which ABI we are using.
6880 echo 'int i;' > conftest.$ac_ext
6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6882 (eval $ac_compile) 2>&5
6883 ac_status=$?
6884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; }; then
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *ELF-32*)
6888 HPUX_IA64_MODE="32"
6889 ;;
6890 *ELF-64*)
6891 HPUX_IA64_MODE="64"
6892 ;;
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
6897 *-*-irix6*)
6898 # Find out which ABI we are using.
6899 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; }; then
6905 if test "$lt_cv_prog_gnu_ld" = yes; then
6906 case `/usr/bin/file conftest.$ac_objext` in
6907 *32-bit*)
6908 LD="${LD-ld} -melf32bsmip"
6909 ;;
6910 *N32*)
6911 LD="${LD-ld} -melf32bmipn32"
6912 ;;
6913 *64-bit*)
6914 LD="${LD-ld} -melf64bmip"
6915 ;;
6916 esac
6917 else
6918 case `/usr/bin/file conftest.$ac_objext` in
6919 *32-bit*)
6920 LD="${LD-ld} -32"
6921 ;;
6922 *N32*)
6923 LD="${LD-ld} -n32"
6924 ;;
6925 *64-bit*)
6926 LD="${LD-ld} -64"
6927 ;;
6928 esac
6929 fi
6930 fi
6931 rm -rf conftest*
6932 ;;
6933
6934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6936 # Find out which ABI we are using.
6937 echo 'int i;' > conftest.$ac_ext
6938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939 (eval $ac_compile) 2>&5
6940 ac_status=$?
6941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942 test $ac_status = 0; }; then
6943 case `/usr/bin/file conftest.o` in
6944 *32-bit*)
6945 case $host in
6946 x86_64-*kfreebsd*-gnu)
6947 LD="${LD-ld} -m elf_i386_fbsd"
6948 ;;
6949 x86_64-*linux*)
6950 LD="${LD-ld} -m elf_i386"
6951 ;;
6952 ppc64-*linux*|powerpc64-*linux*)
6953 LD="${LD-ld} -m elf32ppclinux"
6954 ;;
6955 s390x-*linux*)
6956 LD="${LD-ld} -m elf_s390"
6957 ;;
6958 sparc64-*linux*)
6959 LD="${LD-ld} -m elf32_sparc"
6960 ;;
6961 esac
6962 ;;
6963 *64-bit*)
6964 case $host in
6965 x86_64-*kfreebsd*-gnu)
6966 LD="${LD-ld} -m elf_x86_64_fbsd"
6967 ;;
6968 x86_64-*linux*)
6969 LD="${LD-ld} -m elf_x86_64"
6970 ;;
6971 ppc*-*linux*|powerpc*-*linux*)
6972 LD="${LD-ld} -m elf64ppc"
6973 ;;
6974 s390*-*linux*|s390*-*tpf*)
6975 LD="${LD-ld} -m elf64_s390"
6976 ;;
6977 sparc*-*linux*)
6978 LD="${LD-ld} -m elf64_sparc"
6979 ;;
6980 esac
6981 ;;
6982 esac
6983 fi
6984 rm -rf conftest*
6985 ;;
6986
6987 *-*-sco3.2v5*)
6988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6989 SAVE_CFLAGS="$CFLAGS"
6990 CFLAGS="$CFLAGS -belf"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6992 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6993 if ${lt_cv_cc_needs_belf+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 ac_ext=c
6997 ac_cpp='$CPP $CPPFLAGS'
6998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004
7005 int
7006 main ()
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"; then :
7014 lt_cv_cc_needs_belf=yes
7015 else
7016 lt_cv_cc_needs_belf=no
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 ac_ext=c
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025
7026 fi
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7028 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7029 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7030 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7031 CFLAGS="$SAVE_CFLAGS"
7032 fi
7033 ;;
7034 *-*solaris*)
7035 # Find out which ABI we are using.
7036 echo 'int i;' > conftest.$ac_ext
7037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7038 (eval $ac_compile) 2>&5
7039 ac_status=$?
7040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 test $ac_status = 0; }; then
7042 case `/usr/bin/file conftest.o` in
7043 *64-bit*)
7044 case $lt_cv_prog_gnu_ld in
7045 yes*)
7046 case $host in
7047 i?86-*-solaris*)
7048 LD="${LD-ld} -m elf_x86_64"
7049 ;;
7050 sparc*-*-solaris*)
7051 LD="${LD-ld} -m elf64_sparc"
7052 ;;
7053 esac
7054 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7055 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7056 LD="${LD-ld}_sol2"
7057 fi
7058 ;;
7059 *)
7060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7061 LD="${LD-ld} -64"
7062 fi
7063 ;;
7064 esac
7065 ;;
7066 esac
7067 fi
7068 rm -rf conftest*
7069 ;;
7070 esac
7071
7072 need_locks="$enable_libtool_lock"
7073
7074 if test -n "$ac_tool_prefix"; then
7075 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}mt; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 if test -n "$MANIFEST_TOOL"; then
7083 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7103 if test -n "$MANIFEST_TOOL"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7105 $as_echo "$MANIFEST_TOOL" >&6; }
7106 else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7114 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7115 # Extract the first word of "mt", so it can be a program name with args.
7116 set dummy mt; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 if test -n "$ac_ct_MANIFEST_TOOL"; then
7123 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7135 fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7143 if test -n "$ac_ct_MANIFEST_TOOL"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7145 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7146 else
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7152 MANIFEST_TOOL=":"
7153 else
7154 case $cross_compiling:$ac_tool_warned in
7155 yes:)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7161 fi
7162 else
7163 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7164 fi
7165
7166 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7168 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7169 if ${lt_cv_path_mainfest_tool+:} false; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 lt_cv_path_mainfest_tool=no
7173 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7174 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7175 cat conftest.err >&5
7176 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7177 lt_cv_path_mainfest_tool=yes
7178 fi
7179 rm -f conftest*
7180 fi
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7182 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7183 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7184 MANIFEST_TOOL=:
7185 fi
7186
7187
7188
7189
7190
7191
7192 case $host_os in
7193 rhapsody* | darwin*)
7194 if test -n "$ac_tool_prefix"; then
7195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7196 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 if test -n "$DSYMUTIL"; then
7203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208 IFS=$as_save_IFS
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 break 2
7215 fi
7216 done
7217 done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7223 if test -n "$DSYMUTIL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7225 $as_echo "$DSYMUTIL" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231
7232 fi
7233 if test -z "$ac_cv_prog_DSYMUTIL"; then
7234 ac_ct_DSYMUTIL=$DSYMUTIL
7235 # Extract the first word of "dsymutil", so it can be a program name with args.
7236 set dummy dsymutil; ac_word=$2
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 $as_echo_n "checking for $ac_word... " >&6; }
7239 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7240 $as_echo_n "(cached) " >&6
7241 else
7242 if test -n "$ac_ct_DSYMUTIL"; then
7243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7244 else
7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246 for as_dir in $PATH
7247 do
7248 IFS=$as_save_IFS
7249 test -z "$as_dir" && as_dir=.
7250 for ac_exec_ext in '' $ac_executable_extensions; do
7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 break 2
7255 fi
7256 done
7257 done
7258 IFS=$as_save_IFS
7259
7260 fi
7261 fi
7262 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7263 if test -n "$ac_ct_DSYMUTIL"; then
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7265 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7266 else
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7268 $as_echo "no" >&6; }
7269 fi
7270
7271 if test "x$ac_ct_DSYMUTIL" = x; then
7272 DSYMUTIL=":"
7273 else
7274 case $cross_compiling:$ac_tool_warned in
7275 yes:)
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7278 ac_tool_warned=yes ;;
7279 esac
7280 DSYMUTIL=$ac_ct_DSYMUTIL
7281 fi
7282 else
7283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7284 fi
7285
7286 if test -n "$ac_tool_prefix"; then
7287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_NMEDIT+:} false; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 if test -n "$NMEDIT"; then
7295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7307 fi
7308 done
7309 done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 NMEDIT=$ac_cv_prog_NMEDIT
7315 if test -n "$NMEDIT"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7317 $as_echo "$NMEDIT" >&6; }
7318 else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323
7324 fi
7325 if test -z "$ac_cv_prog_NMEDIT"; then
7326 ac_ct_NMEDIT=$NMEDIT
7327 # Extract the first word of "nmedit", so it can be a program name with args.
7328 set dummy nmedit; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 if test -n "$ac_ct_NMEDIT"; then
7335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348 done
7349 done
7350 IFS=$as_save_IFS
7351
7352 fi
7353 fi
7354 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7355 if test -n "$ac_ct_NMEDIT"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7357 $as_echo "$ac_ct_NMEDIT" >&6; }
7358 else
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7361 fi
7362
7363 if test "x$ac_ct_NMEDIT" = x; then
7364 NMEDIT=":"
7365 else
7366 case $cross_compiling:$ac_tool_warned in
7367 yes:)
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7371 esac
7372 NMEDIT=$ac_ct_NMEDIT
7373 fi
7374 else
7375 NMEDIT="$ac_cv_prog_NMEDIT"
7376 fi
7377
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_LIPO+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 if test -n "$LIPO"; then
7387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 LIPO=$ac_cv_prog_LIPO
7407 if test -n "$LIPO"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7409 $as_echo "$LIPO" >&6; }
7410 else
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415
7416 fi
7417 if test -z "$ac_cv_prog_LIPO"; then
7418 ac_ct_LIPO=$LIPO
7419 # Extract the first word of "lipo", so it can be a program name with args.
7420 set dummy lipo; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 if test -n "$ac_ct_LIPO"; then
7427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7428 else
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 for as_dir in $PATH
7431 do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_ac_ct_LIPO="lipo"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440 done
7441 done
7442 IFS=$as_save_IFS
7443
7444 fi
7445 fi
7446 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7447 if test -n "$ac_ct_LIPO"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7449 $as_echo "$ac_ct_LIPO" >&6; }
7450 else
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7453 fi
7454
7455 if test "x$ac_ct_LIPO" = x; then
7456 LIPO=":"
7457 else
7458 case $cross_compiling:$ac_tool_warned in
7459 yes:)
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462 ac_tool_warned=yes ;;
7463 esac
7464 LIPO=$ac_ct_LIPO
7465 fi
7466 else
7467 LIPO="$ac_cv_prog_LIPO"
7468 fi
7469
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7472 set dummy ${ac_tool_prefix}otool; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_OTOOL+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477 else
7478 if test -n "$OTOOL"; then
7479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492 done
7493 done
7494 IFS=$as_save_IFS
7495
7496 fi
7497 fi
7498 OTOOL=$ac_cv_prog_OTOOL
7499 if test -n "$OTOOL"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7501 $as_echo "$OTOOL" >&6; }
7502 else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7505 fi
7506
7507
7508 fi
7509 if test -z "$ac_cv_prog_OTOOL"; then
7510 ac_ct_OTOOL=$OTOOL
7511 # Extract the first word of "otool", so it can be a program name with args.
7512 set dummy otool; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 if test -n "$ac_ct_OTOOL"; then
7519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7520 else
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 for as_dir in $PATH
7523 do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_ac_ct_OTOOL="otool"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532 done
7533 done
7534 IFS=$as_save_IFS
7535
7536 fi
7537 fi
7538 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7539 if test -n "$ac_ct_OTOOL"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7541 $as_echo "$ac_ct_OTOOL" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 fi
7546
7547 if test "x$ac_ct_OTOOL" = x; then
7548 OTOOL=":"
7549 else
7550 case $cross_compiling:$ac_tool_warned in
7551 yes:)
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554 ac_tool_warned=yes ;;
7555 esac
7556 OTOOL=$ac_ct_OTOOL
7557 fi
7558 else
7559 OTOOL="$ac_cv_prog_OTOOL"
7560 fi
7561
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7564 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_OTOOL64+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 if test -n "$OTOOL64"; then
7571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584 done
7585 done
7586 IFS=$as_save_IFS
7587
7588 fi
7589 fi
7590 OTOOL64=$ac_cv_prog_OTOOL64
7591 if test -n "$OTOOL64"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7593 $as_echo "$OTOOL64" >&6; }
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599
7600 fi
7601 if test -z "$ac_cv_prog_OTOOL64"; then
7602 ac_ct_OTOOL64=$OTOOL64
7603 # Extract the first word of "otool64", so it can be a program name with args.
7604 set dummy otool64; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7610 if test -n "$ac_ct_OTOOL64"; then
7611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7612 else
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616 IFS=$as_save_IFS
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_ac_ct_OTOOL64="otool64"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 break 2
7623 fi
7624 done
7625 done
7626 IFS=$as_save_IFS
7627
7628 fi
7629 fi
7630 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7631 if test -n "$ac_ct_OTOOL64"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7633 $as_echo "$ac_ct_OTOOL64" >&6; }
7634 else
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7637 fi
7638
7639 if test "x$ac_ct_OTOOL64" = x; then
7640 OTOOL64=":"
7641 else
7642 case $cross_compiling:$ac_tool_warned in
7643 yes:)
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646 ac_tool_warned=yes ;;
7647 esac
7648 OTOOL64=$ac_ct_OTOOL64
7649 fi
7650 else
7651 OTOOL64="$ac_cv_prog_OTOOL64"
7652 fi
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7681 $as_echo_n "checking for -single_module linker flag... " >&6; }
7682 if ${lt_cv_apple_cc_single_mod+:} false; then :
7683 $as_echo_n "(cached) " >&6
7684 else
7685 lt_cv_apple_cc_single_mod=no
7686 if test -z "${LT_MULTI_MODULE}"; then
7687 # By default we will add the -single_module flag. You can override
7688 # by either setting the environment variable LT_MULTI_MODULE
7689 # non-empty at configure time, or by adding -multi_module to the
7690 # link flags.
7691 rm -rf libconftest.dylib*
7692 echo "int foo(void){return 1;}" > conftest.c
7693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7694 -dynamiclib -Wl,-single_module conftest.c" >&5
7695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7697 _lt_result=$?
7698 # If there is a non-empty error log, and "single_module"
7699 # appears in it, assume the flag caused a linker warning
7700 if test -s conftest.err && $GREP single_module conftest.err; then
7701 cat conftest.err >&5
7702 # Otherwise, if the output was created with a 0 exit code from
7703 # the compiler, it worked.
7704 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7705 lt_cv_apple_cc_single_mod=yes
7706 else
7707 cat conftest.err >&5
7708 fi
7709 rm -rf libconftest.dylib*
7710 rm -f conftest.*
7711 fi
7712 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7714 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7717 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7718 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 lt_cv_ld_exported_symbols_list=no
7722 save_LDFLAGS=$LDFLAGS
7723 echo "_main" > conftest.sym
7724 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7727
7728 int
7729 main ()
7730 {
7731
7732 ;
7733 return 0;
7734 }
7735 _ACEOF
7736 if ac_fn_c_try_link "$LINENO"; then :
7737 lt_cv_ld_exported_symbols_list=yes
7738 else
7739 lt_cv_ld_exported_symbols_list=no
7740 fi
7741 rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
7743 LDFLAGS="$save_LDFLAGS"
7744
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7747 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7748
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7750 $as_echo_n "checking for -force_load linker flag... " >&6; }
7751 if ${lt_cv_ld_force_load+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 lt_cv_ld_force_load=no
7755 cat > conftest.c << _LT_EOF
7756 int forced_loaded() { return 2;}
7757 _LT_EOF
7758 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7759 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7760 echo "$AR cru libconftest.a conftest.o" >&5
7761 $AR cru libconftest.a conftest.o 2>&5
7762 echo "$RANLIB libconftest.a" >&5
7763 $RANLIB libconftest.a 2>&5
7764 cat > conftest.c << _LT_EOF
7765 int main() { return 0;}
7766 _LT_EOF
7767 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7768 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7769 _lt_result=$?
7770 if test -s conftest.err && $GREP force_load conftest.err; then
7771 cat conftest.err >&5
7772 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7773 lt_cv_ld_force_load=yes
7774 else
7775 cat conftest.err >&5
7776 fi
7777 rm -f conftest.err libconftest.a conftest conftest.c
7778 rm -rf conftest.dSYM
7779
7780 fi
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7782 $as_echo "$lt_cv_ld_force_load" >&6; }
7783 case $host_os in
7784 rhapsody* | darwin1.[012])
7785 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7786 darwin1.*)
7787 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7788 darwin*) # darwin 5.x on
7789 # if running on 10.5 or later, the deployment target defaults
7790 # to the OS version, if on x86, and 10.4, the deployment
7791 # target defaults to 10.4. Don't you love it?
7792 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7793 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7794 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7795 10.[012]*)
7796 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7797 10.*)
7798 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7799 esac
7800 ;;
7801 esac
7802 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7803 _lt_dar_single_mod='$single_module'
7804 fi
7805 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7806 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7807 else
7808 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7809 fi
7810 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7811 _lt_dsymutil='~$DSYMUTIL $lib || :'
7812 else
7813 _lt_dsymutil=
7814 fi
7815 ;;
7816 esac
7817
7818 ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7824 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7825 # On Suns, sometimes $CPP names a directory.
7826 if test -n "$CPP" && test -d "$CPP"; then
7827 CPP=
7828 fi
7829 if test -z "$CPP"; then
7830 if ${ac_cv_prog_CPP+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 # Double quotes because CPP needs to be expanded
7834 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7835 do
7836 ac_preproc_ok=false
7837 for ac_c_preproc_warn_flag in '' yes
7838 do
7839 # Use a header file that comes with gcc, so configuring glibc
7840 # with a fresh cross-compiler works.
7841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7842 # <limits.h> exists even on freestanding compilers.
7843 # On the NeXT, cc -E runs the code through the compiler's parser,
7844 # not just through cpp. "Syntax error" is here to catch this case.
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7847 #ifdef __STDC__
7848 # include <limits.h>
7849 #else
7850 # include <assert.h>
7851 #endif
7852 Syntax error
7853 _ACEOF
7854 if ac_fn_c_try_cpp "$LINENO"; then :
7855
7856 else
7857 # Broken: fails on valid input.
7858 continue
7859 fi
7860 rm -f conftest.err conftest.i conftest.$ac_ext
7861
7862 # OK, works on sane cases. Now check whether nonexistent headers
7863 # can be detected and how.
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #include <ac_nonexistent.h>
7867 _ACEOF
7868 if ac_fn_c_try_cpp "$LINENO"; then :
7869 # Broken: success on invalid input.
7870 continue
7871 else
7872 # Passes both tests.
7873 ac_preproc_ok=:
7874 break
7875 fi
7876 rm -f conftest.err conftest.i conftest.$ac_ext
7877
7878 done
7879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7880 rm -f conftest.i conftest.err conftest.$ac_ext
7881 if $ac_preproc_ok; then :
7882 break
7883 fi
7884
7885 done
7886 ac_cv_prog_CPP=$CPP
7887
7888 fi
7889 CPP=$ac_cv_prog_CPP
7890 else
7891 ac_cv_prog_CPP=$CPP
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7894 $as_echo "$CPP" >&6; }
7895 ac_preproc_ok=false
7896 for ac_c_preproc_warn_flag in '' yes
7897 do
7898 # Use a header file that comes with gcc, so configuring glibc
7899 # with a fresh cross-compiler works.
7900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7901 # <limits.h> exists even on freestanding compilers.
7902 # On the NeXT, cc -E runs the code through the compiler's parser,
7903 # not just through cpp. "Syntax error" is here to catch this case.
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #ifdef __STDC__
7907 # include <limits.h>
7908 #else
7909 # include <assert.h>
7910 #endif
7911 Syntax error
7912 _ACEOF
7913 if ac_fn_c_try_cpp "$LINENO"; then :
7914
7915 else
7916 # Broken: fails on valid input.
7917 continue
7918 fi
7919 rm -f conftest.err conftest.i conftest.$ac_ext
7920
7921 # OK, works on sane cases. Now check whether nonexistent headers
7922 # can be detected and how.
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7925 #include <ac_nonexistent.h>
7926 _ACEOF
7927 if ac_fn_c_try_cpp "$LINENO"; then :
7928 # Broken: success on invalid input.
7929 continue
7930 else
7931 # Passes both tests.
7932 ac_preproc_ok=:
7933 break
7934 fi
7935 rm -f conftest.err conftest.i conftest.$ac_ext
7936
7937 done
7938 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7939 rm -f conftest.i conftest.err conftest.$ac_ext
7940 if $ac_preproc_ok; then :
7941
7942 else
7943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7945 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7946 See \`config.log' for more details" "$LINENO" 5; }
7947 fi
7948
7949 ac_ext=c
7950 ac_cpp='$CPP $CPPFLAGS'
7951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7954
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7957 $as_echo_n "checking for ANSI C header files... " >&6; }
7958 if ${ac_cv_header_stdc+:} false; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 #include <stdlib.h>
7964 #include <stdarg.h>
7965 #include <string.h>
7966 #include <float.h>
7967
7968 int
7969 main ()
7970 {
7971
7972 ;
7973 return 0;
7974 }
7975 _ACEOF
7976 if ac_fn_c_try_compile "$LINENO"; then :
7977 ac_cv_header_stdc=yes
7978 else
7979 ac_cv_header_stdc=no
7980 fi
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982
7983 if test $ac_cv_header_stdc = yes; then
7984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7987 #include <string.h>
7988
7989 _ACEOF
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 $EGREP "memchr" >/dev/null 2>&1; then :
7992
7993 else
7994 ac_cv_header_stdc=no
7995 fi
7996 rm -f conftest*
7997
7998 fi
7999
8000 if test $ac_cv_header_stdc = yes; then
8001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 #include <stdlib.h>
8005
8006 _ACEOF
8007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8008 $EGREP "free" >/dev/null 2>&1; then :
8009
8010 else
8011 ac_cv_header_stdc=no
8012 fi
8013 rm -f conftest*
8014
8015 fi
8016
8017 if test $ac_cv_header_stdc = yes; then
8018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8019 if test "$cross_compiling" = yes; then :
8020 :
8021 else
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 #include <ctype.h>
8025 #include <stdlib.h>
8026 #if ((' ' & 0x0FF) == 0x020)
8027 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8028 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8029 #else
8030 # define ISLOWER(c) \
8031 (('a' <= (c) && (c) <= 'i') \
8032 || ('j' <= (c) && (c) <= 'r') \
8033 || ('s' <= (c) && (c) <= 'z'))
8034 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8035 #endif
8036
8037 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8038 int
8039 main ()
8040 {
8041 int i;
8042 for (i = 0; i < 256; i++)
8043 if (XOR (islower (i), ISLOWER (i))
8044 || toupper (i) != TOUPPER (i))
8045 return 2;
8046 return 0;
8047 }
8048 _ACEOF
8049 if ac_fn_c_try_run "$LINENO"; then :
8050
8051 else
8052 ac_cv_header_stdc=no
8053 fi
8054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8055 conftest.$ac_objext conftest.beam conftest.$ac_ext
8056 fi
8057
8058 fi
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8061 $as_echo "$ac_cv_header_stdc" >&6; }
8062 if test $ac_cv_header_stdc = yes; then
8063
8064 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8065
8066 fi
8067
8068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8069 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8070 inttypes.h stdint.h unistd.h
8071 do :
8072 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8074 "
8075 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8076 cat >>confdefs.h <<_ACEOF
8077 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8078 _ACEOF
8079
8080 fi
8081
8082 done
8083
8084
8085 for ac_header in dlfcn.h
8086 do :
8087 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8088 "
8089 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8090 cat >>confdefs.h <<_ACEOF
8091 #define HAVE_DLFCN_H 1
8092 _ACEOF
8093
8094 fi
8095
8096 done
8097
8098
8099
8100
8101
8102 # Set options
8103 enable_dlopen=yes
8104 # Check whether --enable-static was given.
8105 if test "${enable_static+set}" = set; then :
8106 enableval=$enable_static; p=${PACKAGE-default}
8107 case $enableval in
8108 yes) enable_static=yes ;;
8109 no) enable_static=no ;;
8110 *)
8111 enable_static=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8115 IFS="$lt_save_ifs"
8116 if test "X$pkg" = "X$p"; then
8117 enable_static=yes
8118 fi
8119 done
8120 IFS="$lt_save_ifs"
8121 ;;
8122 esac
8123 else
8124 enable_static=no
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 enable_win32_dll=no
8138
8139
8140 # Check whether --enable-shared was given.
8141 if test "${enable_shared+set}" = set; then :
8142 enableval=$enable_shared; p=${PACKAGE-default}
8143 case $enableval in
8144 yes) enable_shared=yes ;;
8145 no) enable_shared=no ;;
8146 *)
8147 enable_shared=no
8148 # Look at the argument we got. We use all the common list separators.
8149 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8150 for pkg in $enableval; do
8151 IFS="$lt_save_ifs"
8152 if test "X$pkg" = "X$p"; then
8153 enable_shared=yes
8154 fi
8155 done
8156 IFS="$lt_save_ifs"
8157 ;;
8158 esac
8159 else
8160 enable_shared=yes
8161 fi
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 # Check whether --with-pic was given.
8174 if test "${with_pic+set}" = set; then :
8175 withval=$with_pic; lt_p=${PACKAGE-default}
8176 case $withval in
8177 yes|no) pic_mode=$withval ;;
8178 *)
8179 pic_mode=default
8180 # Look at the argument we got. We use all the common list separators.
8181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182 for lt_pkg in $withval; do
8183 IFS="$lt_save_ifs"
8184 if test "X$lt_pkg" = "X$lt_p"; then
8185 pic_mode=yes
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 ;;
8190 esac
8191 else
8192 pic_mode=default
8193 fi
8194
8195
8196 test -z "$pic_mode" && pic_mode=default
8197
8198
8199
8200
8201
8202
8203
8204 # Check whether --enable-fast-install was given.
8205 if test "${enable_fast_install+set}" = set; then :
8206 enableval=$enable_fast_install; p=${PACKAGE-default}
8207 case $enableval in
8208 yes) enable_fast_install=yes ;;
8209 no) enable_fast_install=no ;;
8210 *)
8211 enable_fast_install=no
8212 # Look at the argument we got. We use all the common list separators.
8213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8214 for pkg in $enableval; do
8215 IFS="$lt_save_ifs"
8216 if test "X$pkg" = "X$p"; then
8217 enable_fast_install=yes
8218 fi
8219 done
8220 IFS="$lt_save_ifs"
8221 ;;
8222 esac
8223 else
8224 enable_fast_install=yes
8225 fi
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237 # This can be used to rebuild libtool when needed
8238 LIBTOOL_DEPS="$ltmain"
8239
8240 # Always use our own libtool.
8241 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272 test -z "$LN_S" && LN_S="ln -s"
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287 if test -n "${ZSH_VERSION+set}" ; then
8288 setopt NO_GLOB_SUBST
8289 fi
8290
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8292 $as_echo_n "checking for objdir... " >&6; }
8293 if ${lt_cv_objdir+:} false; then :
8294 $as_echo_n "(cached) " >&6
8295 else
8296 rm -f .libs 2>/dev/null
8297 mkdir .libs 2>/dev/null
8298 if test -d .libs; then
8299 lt_cv_objdir=.libs
8300 else
8301 # MS-DOS does not allow filenames that begin with a dot.
8302 lt_cv_objdir=_libs
8303 fi
8304 rmdir .libs 2>/dev/null
8305 fi
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8307 $as_echo "$lt_cv_objdir" >&6; }
8308 objdir=$lt_cv_objdir
8309
8310
8311
8312
8313
8314 cat >>confdefs.h <<_ACEOF
8315 #define LT_OBJDIR "$lt_cv_objdir/"
8316 _ACEOF
8317
8318
8319
8320
8321 case $host_os in
8322 aix3*)
8323 # AIX sometimes has problems with the GCC collect2 program. For some
8324 # reason, if we set the COLLECT_NAMES environment variable, the problems
8325 # vanish in a puff of smoke.
8326 if test "X${COLLECT_NAMES+set}" != Xset; then
8327 COLLECT_NAMES=
8328 export COLLECT_NAMES
8329 fi
8330 ;;
8331 esac
8332
8333 # Global variables:
8334 ofile=libtool
8335 can_build_shared=yes
8336
8337 # All known linkers require a `.a' archive for static linking (except MSVC,
8338 # which needs '.lib').
8339 libext=a
8340
8341 with_gnu_ld="$lt_cv_prog_gnu_ld"
8342
8343 old_CC="$CC"
8344 old_CFLAGS="$CFLAGS"
8345
8346 # Set sane defaults for various variables
8347 test -z "$CC" && CC=cc
8348 test -z "$LTCC" && LTCC=$CC
8349 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8350 test -z "$LD" && LD=ld
8351 test -z "$ac_objext" && ac_objext=o
8352
8353 for cc_temp in $compiler""; do
8354 case $cc_temp in
8355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8357 \-*) ;;
8358 *) break;;
8359 esac
8360 done
8361 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8362
8363
8364 # Only perform the check for file, if the check method requires it
8365 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8366 case $deplibs_check_method in
8367 file_magic*)
8368 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8370 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8371 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 case $MAGIC_CMD in
8375 [\\/*] | ?:[\\/]*)
8376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8377 ;;
8378 *)
8379 lt_save_MAGIC_CMD="$MAGIC_CMD"
8380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8382 for ac_dir in $ac_dummy; do
8383 IFS="$lt_save_ifs"
8384 test -z "$ac_dir" && ac_dir=.
8385 if test -f $ac_dir/${ac_tool_prefix}file; then
8386 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8387 if test -n "$file_magic_test_file"; then
8388 case $deplibs_check_method in
8389 "file_magic "*)
8390 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8393 $EGREP "$file_magic_regex" > /dev/null; then
8394 :
8395 else
8396 cat <<_LT_EOF 1>&2
8397
8398 *** Warning: the command libtool uses to detect shared libraries,
8399 *** $file_magic_cmd, produces output that libtool cannot recognize.
8400 *** The result is that libtool may fail to recognize shared libraries
8401 *** as such. This will affect the creation of libtool libraries that
8402 *** depend on shared libraries, but programs linked with such libtool
8403 *** libraries will work regardless of this problem. Nevertheless, you
8404 *** may want to report the problem to your system manager and/or to
8405 *** bug-libtool@gnu.org
8406
8407 _LT_EOF
8408 fi ;;
8409 esac
8410 fi
8411 break
8412 fi
8413 done
8414 IFS="$lt_save_ifs"
8415 MAGIC_CMD="$lt_save_MAGIC_CMD"
8416 ;;
8417 esac
8418 fi
8419
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if test -n "$MAGIC_CMD"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8423 $as_echo "$MAGIC_CMD" >&6; }
8424 else
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429
8430
8431
8432
8433 if test -z "$lt_cv_path_MAGIC_CMD"; then
8434 if test -n "$ac_tool_prefix"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8436 $as_echo_n "checking for file... " >&6; }
8437 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 case $MAGIC_CMD in
8441 [\\/*] | ?:[\\/]*)
8442 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8443 ;;
8444 *)
8445 lt_save_MAGIC_CMD="$MAGIC_CMD"
8446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8447 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8448 for ac_dir in $ac_dummy; do
8449 IFS="$lt_save_ifs"
8450 test -z "$ac_dir" && ac_dir=.
8451 if test -f $ac_dir/file; then
8452 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8453 if test -n "$file_magic_test_file"; then
8454 case $deplibs_check_method in
8455 "file_magic "*)
8456 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8459 $EGREP "$file_magic_regex" > /dev/null; then
8460 :
8461 else
8462 cat <<_LT_EOF 1>&2
8463
8464 *** Warning: the command libtool uses to detect shared libraries,
8465 *** $file_magic_cmd, produces output that libtool cannot recognize.
8466 *** The result is that libtool may fail to recognize shared libraries
8467 *** as such. This will affect the creation of libtool libraries that
8468 *** depend on shared libraries, but programs linked with such libtool
8469 *** libraries will work regardless of this problem. Nevertheless, you
8470 *** may want to report the problem to your system manager and/or to
8471 *** bug-libtool@gnu.org
8472
8473 _LT_EOF
8474 fi ;;
8475 esac
8476 fi
8477 break
8478 fi
8479 done
8480 IFS="$lt_save_ifs"
8481 MAGIC_CMD="$lt_save_MAGIC_CMD"
8482 ;;
8483 esac
8484 fi
8485
8486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8487 if test -n "$MAGIC_CMD"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8489 $as_echo "$MAGIC_CMD" >&6; }
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8493 fi
8494
8495
8496 else
8497 MAGIC_CMD=:
8498 fi
8499 fi
8500
8501 fi
8502 ;;
8503 esac
8504
8505 # Use C for the default configuration in the libtool script
8506
8507 lt_save_CC="$CC"
8508 ac_ext=c
8509 ac_cpp='$CPP $CPPFLAGS'
8510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8513
8514
8515 # Source file extension for C test sources.
8516 ac_ext=c
8517
8518 # Object file extension for compiled C test sources.
8519 objext=o
8520 objext=$objext
8521
8522 # Code to be used in simple compile tests
8523 lt_simple_compile_test_code="int some_variable = 0;"
8524
8525 # Code to be used in simple link tests
8526 lt_simple_link_test_code='int main(){return(0);}'
8527
8528
8529
8530
8531
8532
8533
8534 # If no C compiler was specified, use CC.
8535 LTCC=${LTCC-"$CC"}
8536
8537 # If no C compiler flags were specified, use CFLAGS.
8538 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8539
8540 # Allow CC to be a program name with arguments.
8541 compiler=$CC
8542
8543 # Save the default compiler, since it gets overwritten when the other
8544 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8545 compiler_DEFAULT=$CC
8546
8547 # save warnings/boilerplate of simple test code
8548 ac_outfile=conftest.$ac_objext
8549 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8550 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8551 _lt_compiler_boilerplate=`cat conftest.err`
8552 $RM conftest*
8553
8554 ac_outfile=conftest.$ac_objext
8555 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8556 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8557 _lt_linker_boilerplate=`cat conftest.err`
8558 $RM -r conftest*
8559
8560
8561 ## CAVEAT EMPTOR:
8562 ## There is no encapsulation within the following macros, do not change
8563 ## the running order or otherwise move them around unless you know exactly
8564 ## what you are doing...
8565 if test -n "$compiler"; then
8566
8567 lt_prog_compiler_no_builtin_flag=
8568
8569 if test "$GCC" = yes; then
8570 case $cc_basename in
8571 nvcc*)
8572 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8573 *)
8574 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8575 esac
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8578 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8579 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581 else
8582 lt_cv_prog_compiler_rtti_exceptions=no
8583 ac_outfile=conftest.$ac_objext
8584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8585 lt_compiler_flag="-fno-rtti -fno-exceptions"
8586 # Insert the option either (1) after the last *FLAGS variable, or
8587 # (2) before a word containing "conftest.", or (3) at the end.
8588 # Note that $ac_compile itself does not contain backslashes and begins
8589 # with a dollar sign (not a hyphen), so the echo should work correctly.
8590 # The option is referenced via a variable to avoid confusing sed.
8591 lt_compile=`echo "$ac_compile" | $SED \
8592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8594 -e 's:$: $lt_compiler_flag:'`
8595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8596 (eval "$lt_compile" 2>conftest.err)
8597 ac_status=$?
8598 cat conftest.err >&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 if (exit $ac_status) && test -s "$ac_outfile"; then
8601 # The compiler can only warn and ignore the option if not recognized
8602 # So say no if there are warnings other than the usual output.
8603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8606 lt_cv_prog_compiler_rtti_exceptions=yes
8607 fi
8608 fi
8609 $RM conftest*
8610
8611 fi
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8613 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8614
8615 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8616 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8617 else
8618 :
8619 fi
8620
8621 fi
8622
8623
8624
8625
8626
8627
8628 lt_prog_compiler_wl=
8629 lt_prog_compiler_pic=
8630 lt_prog_compiler_static=
8631
8632
8633 if test "$GCC" = yes; then
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_static='-static'
8636
8637 case $host_os in
8638 aix*)
8639 # All AIX code is PIC.
8640 if test "$host_cpu" = ia64; then
8641 # AIX 5 now supports IA64 processor
8642 lt_prog_compiler_static='-Bstatic'
8643 fi
8644 ;;
8645
8646 amigaos*)
8647 case $host_cpu in
8648 powerpc)
8649 # see comment about AmigaOS4 .so support
8650 lt_prog_compiler_pic='-fPIC'
8651 ;;
8652 m68k)
8653 # FIXME: we need at least 68020 code to build shared libraries, but
8654 # adding the `-m68020' flag to GCC prevents building anything better,
8655 # like `-m68040'.
8656 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8657 ;;
8658 esac
8659 ;;
8660
8661 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8662 # PIC is the default for these OSes.
8663 ;;
8664
8665 mingw* | cygwin* | pw32* | os2* | cegcc*)
8666 # This hack is so that the source file can tell whether it is being
8667 # built for inclusion in a dll (and should export symbols for example).
8668 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8669 # (--disable-auto-import) libraries
8670 lt_prog_compiler_pic='-DDLL_EXPORT'
8671 ;;
8672
8673 darwin* | rhapsody*)
8674 # PIC is the default on this platform
8675 # Common symbols not allowed in MH_DYLIB files
8676 lt_prog_compiler_pic='-fno-common'
8677 ;;
8678
8679 haiku*)
8680 # PIC is the default for Haiku.
8681 # The "-static" flag exists, but is broken.
8682 lt_prog_compiler_static=
8683 ;;
8684
8685 hpux*)
8686 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8687 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8688 # sets the default TLS model and affects inlining.
8689 case $host_cpu in
8690 hppa*64*)
8691 # +Z the default
8692 ;;
8693 *)
8694 lt_prog_compiler_pic='-fPIC'
8695 ;;
8696 esac
8697 ;;
8698
8699 interix[3-9]*)
8700 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8701 # Instead, we relocate shared libraries at runtime.
8702 ;;
8703
8704 msdosdjgpp*)
8705 # Just because we use GCC doesn't mean we suddenly get shared libraries
8706 # on systems that don't support them.
8707 lt_prog_compiler_can_build_shared=no
8708 enable_shared=no
8709 ;;
8710
8711 *nto* | *qnx*)
8712 # QNX uses GNU C++, but need to define -shared option too, otherwise
8713 # it will coredump.
8714 lt_prog_compiler_pic='-fPIC -shared'
8715 ;;
8716
8717 sysv4*MP*)
8718 if test -d /usr/nec; then
8719 lt_prog_compiler_pic=-Kconform_pic
8720 fi
8721 ;;
8722
8723 *)
8724 lt_prog_compiler_pic='-fPIC'
8725 ;;
8726 esac
8727
8728 case $cc_basename in
8729 nvcc*) # Cuda Compiler Driver 2.2
8730 lt_prog_compiler_wl='-Xlinker '
8731 if test -n "$lt_prog_compiler_pic"; then
8732 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8733 fi
8734 ;;
8735 esac
8736 else
8737 # PORTME Check for flag to pass linker flags through the system compiler.
8738 case $host_os in
8739 aix*)
8740 lt_prog_compiler_wl='-Wl,'
8741 if test "$host_cpu" = ia64; then
8742 # AIX 5 now supports IA64 processor
8743 lt_prog_compiler_static='-Bstatic'
8744 else
8745 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8746 fi
8747 ;;
8748
8749 mingw* | cygwin* | pw32* | os2* | cegcc*)
8750 # This hack is so that the source file can tell whether it is being
8751 # built for inclusion in a dll (and should export symbols for example).
8752 lt_prog_compiler_pic='-DDLL_EXPORT'
8753 ;;
8754
8755 hpux9* | hpux10* | hpux11*)
8756 lt_prog_compiler_wl='-Wl,'
8757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8758 # not for PA HP-UX.
8759 case $host_cpu in
8760 hppa*64*|ia64*)
8761 # +Z the default
8762 ;;
8763 *)
8764 lt_prog_compiler_pic='+Z'
8765 ;;
8766 esac
8767 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8768 lt_prog_compiler_static='${wl}-a ${wl}archive'
8769 ;;
8770
8771 irix5* | irix6* | nonstopux*)
8772 lt_prog_compiler_wl='-Wl,'
8773 # PIC (with -KPIC) is the default.
8774 lt_prog_compiler_static='-non_shared'
8775 ;;
8776
8777 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8778 case $cc_basename in
8779 # old Intel for x86_64 which still supported -KPIC.
8780 ecc*)
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='-KPIC'
8783 lt_prog_compiler_static='-static'
8784 ;;
8785 # icc used to be incompatible with GCC.
8786 # ICC 10 doesn't accept -KPIC any more.
8787 icc* | ifort*)
8788 lt_prog_compiler_wl='-Wl,'
8789 lt_prog_compiler_pic='-fPIC'
8790 lt_prog_compiler_static='-static'
8791 ;;
8792 # Lahey Fortran 8.1.
8793 lf95*)
8794 lt_prog_compiler_wl='-Wl,'
8795 lt_prog_compiler_pic='--shared'
8796 lt_prog_compiler_static='--static'
8797 ;;
8798 nagfor*)
8799 # NAG Fortran compiler
8800 lt_prog_compiler_wl='-Wl,-Wl,,'
8801 lt_prog_compiler_pic='-PIC'
8802 lt_prog_compiler_static='-Bstatic'
8803 ;;
8804 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8805 # Portland Group compilers (*not* the Pentium gcc compiler,
8806 # which looks to be a dead project)
8807 lt_prog_compiler_wl='-Wl,'
8808 lt_prog_compiler_pic='-fpic'
8809 lt_prog_compiler_static='-Bstatic'
8810 ;;
8811 ccc*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # All Alpha code is PIC.
8814 lt_prog_compiler_static='-non_shared'
8815 ;;
8816 xl* | bgxl* | bgf* | mpixl*)
8817 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8818 lt_prog_compiler_wl='-Wl,'
8819 lt_prog_compiler_pic='-qpic'
8820 lt_prog_compiler_static='-qstaticlink'
8821 ;;
8822 *)
8823 case `$CC -V 2>&1 | sed 5q` in
8824 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8825 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 lt_prog_compiler_wl=''
8829 ;;
8830 *Sun\ F* | *Sun*Fortran*)
8831 lt_prog_compiler_pic='-KPIC'
8832 lt_prog_compiler_static='-Bstatic'
8833 lt_prog_compiler_wl='-Qoption ld '
8834 ;;
8835 *Sun\ C*)
8836 # Sun C 5.9
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 lt_prog_compiler_wl='-Wl,'
8840 ;;
8841 *Intel*\ [CF]*Compiler*)
8842 lt_prog_compiler_wl='-Wl,'
8843 lt_prog_compiler_pic='-fPIC'
8844 lt_prog_compiler_static='-static'
8845 ;;
8846 *Portland\ Group*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fpic'
8849 lt_prog_compiler_static='-Bstatic'
8850 ;;
8851 esac
8852 ;;
8853 esac
8854 ;;
8855
8856 newsos6)
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8859 ;;
8860
8861 *nto* | *qnx*)
8862 # QNX uses GNU C++, but need to define -shared option too, otherwise
8863 # it will coredump.
8864 lt_prog_compiler_pic='-fPIC -shared'
8865 ;;
8866
8867 osf3* | osf4* | osf5*)
8868 lt_prog_compiler_wl='-Wl,'
8869 # All OSF/1 code is PIC.
8870 lt_prog_compiler_static='-non_shared'
8871 ;;
8872
8873 rdos*)
8874 lt_prog_compiler_static='-non_shared'
8875 ;;
8876
8877 solaris*)
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-Bstatic'
8880 case $cc_basename in
8881 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8882 lt_prog_compiler_wl='-Qoption ld ';;
8883 *)
8884 lt_prog_compiler_wl='-Wl,';;
8885 esac
8886 ;;
8887
8888 sunos4*)
8889 lt_prog_compiler_wl='-Qoption ld '
8890 lt_prog_compiler_pic='-PIC'
8891 lt_prog_compiler_static='-Bstatic'
8892 ;;
8893
8894 sysv4 | sysv4.2uw2* | sysv4.3*)
8895 lt_prog_compiler_wl='-Wl,'
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 ;;
8899
8900 sysv4*MP*)
8901 if test -d /usr/nec ;then
8902 lt_prog_compiler_pic='-Kconform_pic'
8903 lt_prog_compiler_static='-Bstatic'
8904 fi
8905 ;;
8906
8907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-KPIC'
8910 lt_prog_compiler_static='-Bstatic'
8911 ;;
8912
8913 unicos*)
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_can_build_shared=no
8916 ;;
8917
8918 uts4*)
8919 lt_prog_compiler_pic='-pic'
8920 lt_prog_compiler_static='-Bstatic'
8921 ;;
8922
8923 *)
8924 lt_prog_compiler_can_build_shared=no
8925 ;;
8926 esac
8927 fi
8928
8929 case $host_os in
8930 # For platforms which do not support PIC, -DPIC is meaningless:
8931 *djgpp*)
8932 lt_prog_compiler_pic=
8933 ;;
8934 *)
8935 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8936 ;;
8937 esac
8938
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8940 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8941 if ${lt_cv_prog_compiler_pic+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8947 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8948 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8949
8950 #
8951 # Check to make sure the PIC flag actually works.
8952 #
8953 if test -n "$lt_prog_compiler_pic"; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8955 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8956 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8957 $as_echo_n "(cached) " >&6
8958 else
8959 lt_cv_prog_compiler_pic_works=no
8960 ac_outfile=conftest.$ac_objext
8961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8962 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8963 # Insert the option either (1) after the last *FLAGS variable, or
8964 # (2) before a word containing "conftest.", or (3) at the end.
8965 # Note that $ac_compile itself does not contain backslashes and begins
8966 # with a dollar sign (not a hyphen), so the echo should work correctly.
8967 # The option is referenced via a variable to avoid confusing sed.
8968 lt_compile=`echo "$ac_compile" | $SED \
8969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8971 -e 's:$: $lt_compiler_flag:'`
8972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8973 (eval "$lt_compile" 2>conftest.err)
8974 ac_status=$?
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 if (exit $ac_status) && test -s "$ac_outfile"; then
8978 # The compiler can only warn and ignore the option if not recognized
8979 # So say no if there are warnings other than the usual output.
8980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8981 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8982 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8983 lt_cv_prog_compiler_pic_works=yes
8984 fi
8985 fi
8986 $RM conftest*
8987
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8990 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8991
8992 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8993 case $lt_prog_compiler_pic in
8994 "" | " "*) ;;
8995 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8996 esac
8997 else
8998 lt_prog_compiler_pic=
8999 lt_prog_compiler_can_build_shared=no
9000 fi
9001
9002 fi
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014 #
9015 # Check to make sure the static flag actually works.
9016 #
9017 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9019 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9020 if ${lt_cv_prog_compiler_static_works+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 lt_cv_prog_compiler_static_works=no
9024 save_LDFLAGS="$LDFLAGS"
9025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9028 # The linker can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 if test -s conftest.err; then
9031 # Append any errors to the config.log.
9032 cat conftest.err 1>&5
9033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9035 if diff conftest.exp conftest.er2 >/dev/null; then
9036 lt_cv_prog_compiler_static_works=yes
9037 fi
9038 else
9039 lt_cv_prog_compiler_static_works=yes
9040 fi
9041 fi
9042 $RM -r conftest*
9043 LDFLAGS="$save_LDFLAGS"
9044
9045 fi
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9047 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9048
9049 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9050 :
9051 else
9052 lt_prog_compiler_static=
9053 fi
9054
9055
9056
9057
9058
9059
9060
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9062 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9063 if ${lt_cv_prog_compiler_c_o+:} false; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 lt_cv_prog_compiler_c_o=no
9067 $RM -r conftest 2>/dev/null
9068 mkdir conftest
9069 cd conftest
9070 mkdir out
9071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9072
9073 lt_compiler_flag="-o out/conftest2.$ac_objext"
9074 # Insert the option either (1) after the last *FLAGS variable, or
9075 # (2) before a word containing "conftest.", or (3) at the end.
9076 # Note that $ac_compile itself does not contain backslashes and begins
9077 # with a dollar sign (not a hyphen), so the echo should work correctly.
9078 lt_compile=`echo "$ac_compile" | $SED \
9079 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9081 -e 's:$: $lt_compiler_flag:'`
9082 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9083 (eval "$lt_compile" 2>out/conftest.err)
9084 ac_status=$?
9085 cat out/conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9088 then
9089 # The compiler can only warn and ignore the option if not recognized
9090 # So say no if there are warnings
9091 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9092 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9093 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9094 lt_cv_prog_compiler_c_o=yes
9095 fi
9096 fi
9097 chmod u+w . 2>&5
9098 $RM conftest*
9099 # SGI C++ compiler will create directory out/ii_files/ for
9100 # template instantiation
9101 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9102 $RM out/* && rmdir out
9103 cd ..
9104 $RM -r conftest
9105 $RM conftest*
9106
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9109 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9110
9111
9112
9113
9114
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9117 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9118 if ${lt_cv_prog_compiler_c_o+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 lt_cv_prog_compiler_c_o=no
9122 $RM -r conftest 2>/dev/null
9123 mkdir conftest
9124 cd conftest
9125 mkdir out
9126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9127
9128 lt_compiler_flag="-o out/conftest2.$ac_objext"
9129 # Insert the option either (1) after the last *FLAGS variable, or
9130 # (2) before a word containing "conftest.", or (3) at the end.
9131 # Note that $ac_compile itself does not contain backslashes and begins
9132 # with a dollar sign (not a hyphen), so the echo should work correctly.
9133 lt_compile=`echo "$ac_compile" | $SED \
9134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9136 -e 's:$: $lt_compiler_flag:'`
9137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9138 (eval "$lt_compile" 2>out/conftest.err)
9139 ac_status=$?
9140 cat out/conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9143 then
9144 # The compiler can only warn and ignore the option if not recognized
9145 # So say no if there are warnings
9146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9149 lt_cv_prog_compiler_c_o=yes
9150 fi
9151 fi
9152 chmod u+w . 2>&5
9153 $RM conftest*
9154 # SGI C++ compiler will create directory out/ii_files/ for
9155 # template instantiation
9156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9157 $RM out/* && rmdir out
9158 cd ..
9159 $RM -r conftest
9160 $RM conftest*
9161
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9164 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9165
9166
9167
9168
9169 hard_links="nottested"
9170 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9171 # do not overwrite the value of need_locks provided by the user
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9173 $as_echo_n "checking if we can lock with hard links... " >&6; }
9174 hard_links=yes
9175 $RM conftest*
9176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9177 touch conftest.a
9178 ln conftest.a conftest.b 2>&5 || hard_links=no
9179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9181 $as_echo "$hard_links" >&6; }
9182 if test "$hard_links" = no; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9184 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9185 need_locks=warn
9186 fi
9187 else
9188 need_locks=no
9189 fi
9190
9191
9192
9193
9194
9195
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9197 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9198
9199 runpath_var=
9200 allow_undefined_flag=
9201 always_export_symbols=no
9202 archive_cmds=
9203 archive_expsym_cmds=
9204 compiler_needs_object=no
9205 enable_shared_with_static_runtimes=no
9206 export_dynamic_flag_spec=
9207 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9208 hardcode_automatic=no
9209 hardcode_direct=no
9210 hardcode_direct_absolute=no
9211 hardcode_libdir_flag_spec=
9212 hardcode_libdir_separator=
9213 hardcode_minus_L=no
9214 hardcode_shlibpath_var=unsupported
9215 inherit_rpath=no
9216 link_all_deplibs=unknown
9217 module_cmds=
9218 module_expsym_cmds=
9219 old_archive_from_new_cmds=
9220 old_archive_from_expsyms_cmds=
9221 thread_safe_flag_spec=
9222 whole_archive_flag_spec=
9223 # include_expsyms should be a list of space-separated symbols to be *always*
9224 # included in the symbol list
9225 include_expsyms=
9226 # exclude_expsyms can be an extended regexp of symbols to exclude
9227 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9228 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9229 # as well as any symbol that contains `d'.
9230 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9231 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9232 # platforms (ab)use it in PIC code, but their linkers get confused if
9233 # the symbol is explicitly referenced. Since portable code cannot
9234 # rely on this symbol name, it's probably fine to never include it in
9235 # preloaded symbol tables.
9236 # Exclude shared library initialization/finalization symbols.
9237 extract_expsyms_cmds=
9238
9239 case $host_os in
9240 cygwin* | mingw* | pw32* | cegcc*)
9241 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9242 # When not using gcc, we currently assume that we are using
9243 # Microsoft Visual C++.
9244 if test "$GCC" != yes; then
9245 with_gnu_ld=no
9246 fi
9247 ;;
9248 interix*)
9249 # we just hope/assume this is gcc and not c89 (= MSVC++)
9250 with_gnu_ld=yes
9251 ;;
9252 openbsd*)
9253 with_gnu_ld=no
9254 ;;
9255 esac
9256
9257 ld_shlibs=yes
9258
9259 # On some targets, GNU ld is compatible enough with the native linker
9260 # that we're better off using the native interface for both.
9261 lt_use_gnu_ld_interface=no
9262 if test "$with_gnu_ld" = yes; then
9263 case $host_os in
9264 aix*)
9265 # The AIX port of GNU ld has always aspired to compatibility
9266 # with the native linker. However, as the warning in the GNU ld
9267 # block says, versions before 2.19.5* couldn't really create working
9268 # shared libraries, regardless of the interface used.
9269 case `$LD -v 2>&1` in
9270 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9271 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9272 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9273 *)
9274 lt_use_gnu_ld_interface=yes
9275 ;;
9276 esac
9277 ;;
9278 *)
9279 lt_use_gnu_ld_interface=yes
9280 ;;
9281 esac
9282 fi
9283
9284 if test "$lt_use_gnu_ld_interface" = yes; then
9285 # If archive_cmds runs LD, not CC, wlarc should be empty
9286 wlarc='${wl}'
9287
9288 # Set some defaults for GNU ld with shared library support. These
9289 # are reset later if shared libraries are not supported. Putting them
9290 # here allows them to be overridden if necessary.
9291 runpath_var=LD_RUN_PATH
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 export_dynamic_flag_spec='${wl}--export-dynamic'
9294 # ancient GNU ld didn't support --whole-archive et. al.
9295 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9296 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9297 else
9298 whole_archive_flag_spec=
9299 fi
9300 supports_anon_versioning=no
9301 case `$LD -v 2>&1` in
9302 *GNU\ gold*) supports_anon_versioning=yes ;;
9303 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9304 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9305 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9306 *\ 2.11.*) ;; # other 2.11 versions
9307 *) supports_anon_versioning=yes ;;
9308 esac
9309
9310 # See if GNU ld supports shared libraries.
9311 case $host_os in
9312 aix[3-9]*)
9313 # On AIX/PPC, the GNU linker is very broken
9314 if test "$host_cpu" != ia64; then
9315 ld_shlibs=no
9316 cat <<_LT_EOF 1>&2
9317
9318 *** Warning: the GNU linker, at least up to release 2.19, is reported
9319 *** to be unable to reliably create shared libraries on AIX.
9320 *** Therefore, libtool is disabling shared libraries support. If you
9321 *** really care for shared libraries, you may want to install binutils
9322 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9323 *** You will then need to restart the configuration process.
9324
9325 _LT_EOF
9326 fi
9327 ;;
9328
9329 amigaos*)
9330 case $host_cpu in
9331 powerpc)
9332 # see comment about AmigaOS4 .so support
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_expsym_cmds=''
9335 ;;
9336 m68k)
9337 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9338 hardcode_libdir_flag_spec='-L$libdir'
9339 hardcode_minus_L=yes
9340 ;;
9341 esac
9342 ;;
9343
9344 beos*)
9345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9346 allow_undefined_flag=unsupported
9347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9348 # support --undefined. This deserves some investigation. FIXME
9349 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 else
9351 ld_shlibs=no
9352 fi
9353 ;;
9354
9355 cygwin* | mingw* | pw32* | cegcc*)
9356 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9357 # as there is no search path for DLLs.
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 export_dynamic_flag_spec='${wl}--export-all-symbols'
9360 allow_undefined_flag=unsupported
9361 always_export_symbols=no
9362 enable_shared_with_static_runtimes=yes
9363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9364 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9365
9366 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9368 # If the export-symbols file already is a .def file (1st line
9369 # is EXPORTS), use it as is; otherwise, prepend...
9370 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9371 cp $export_symbols $output_objdir/$soname.def;
9372 else
9373 echo EXPORTS > $output_objdir/$soname.def;
9374 cat $export_symbols >> $output_objdir/$soname.def;
9375 fi~
9376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9377 else
9378 ld_shlibs=no
9379 fi
9380 ;;
9381
9382 haiku*)
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 link_all_deplibs=yes
9385 ;;
9386
9387 interix[3-9]*)
9388 hardcode_direct=no
9389 hardcode_shlibpath_var=no
9390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9391 export_dynamic_flag_spec='${wl}-E'
9392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9393 # Instead, shared libraries are loaded at an image base (0x10000000 by
9394 # default) and relocated if they conflict, which is a slow very memory
9395 # consuming and fragmenting process. To avoid this, we pick a random,
9396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9399 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9400 ;;
9401
9402 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9403 tmp_diet=no
9404 if test "$host_os" = linux-dietlibc; then
9405 case $cc_basename in
9406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9407 esac
9408 fi
9409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9410 && test "$tmp_diet" = no
9411 then
9412 tmp_addflag=' $pic_flag'
9413 tmp_sharedflag='-shared'
9414 case $cc_basename,$host_cpu in
9415 pgcc*) # Portland Group C compiler
9416 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9417 tmp_addflag=' $pic_flag'
9418 ;;
9419 pgf77* | pgf90* | pgf95* | pgfortran*)
9420 # Portland Group f77 and f90 compilers
9421 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9422 tmp_addflag=' $pic_flag -Mnomain' ;;
9423 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9424 tmp_addflag=' -i_dynamic' ;;
9425 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9426 tmp_addflag=' -i_dynamic -nofor_main' ;;
9427 ifc* | ifort*) # Intel Fortran compiler
9428 tmp_addflag=' -nofor_main' ;;
9429 lf95*) # Lahey Fortran 8.1
9430 whole_archive_flag_spec=
9431 tmp_sharedflag='--shared' ;;
9432 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9433 tmp_sharedflag='-qmkshrobj'
9434 tmp_addflag= ;;
9435 nvcc*) # Cuda Compiler Driver 2.2
9436 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9437 compiler_needs_object=yes
9438 ;;
9439 esac
9440 case `$CC -V 2>&1 | sed 5q` in
9441 *Sun\ C*) # Sun C 5.9
9442 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9443 compiler_needs_object=yes
9444 tmp_sharedflag='-G' ;;
9445 *Sun\ F*) # Sun Fortran 8.3
9446 tmp_sharedflag='-G' ;;
9447 esac
9448 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449
9450 if test "x$supports_anon_versioning" = xyes; then
9451 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9453 echo "local: *; };" >> $output_objdir/$libname.ver~
9454 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9455 fi
9456
9457 case $cc_basename in
9458 xlf* | bgf* | bgxlf* | mpixlf*)
9459 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9460 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9462 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9463 if test "x$supports_anon_versioning" = xyes; then
9464 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9465 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9466 echo "local: *; };" >> $output_objdir/$libname.ver~
9467 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9468 fi
9469 ;;
9470 esac
9471 else
9472 ld_shlibs=no
9473 fi
9474 ;;
9475
9476 netbsd*)
9477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9478 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9479 wlarc=
9480 else
9481 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483 fi
9484 ;;
9485
9486 solaris*)
9487 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9488 ld_shlibs=no
9489 cat <<_LT_EOF 1>&2
9490
9491 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9492 *** create shared libraries on Solaris systems. Therefore, libtool
9493 *** is disabling shared libraries support. We urge you to upgrade GNU
9494 *** binutils to release 2.9.1 or newer. Another option is to modify
9495 *** your PATH or compiler configuration so that the native linker is
9496 *** used, and then restart.
9497
9498 _LT_EOF
9499 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9500 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9501 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9502 else
9503 ld_shlibs=no
9504 fi
9505 ;;
9506
9507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9508 case `$LD -v 2>&1` in
9509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9510 ld_shlibs=no
9511 cat <<_LT_EOF 1>&2
9512
9513 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9514 *** reliably create shared libraries on SCO systems. Therefore, libtool
9515 *** is disabling shared libraries support. We urge you to upgrade GNU
9516 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9517 *** your PATH or compiler configuration so that the native linker is
9518 *** used, and then restart.
9519
9520 _LT_EOF
9521 ;;
9522 *)
9523 # For security reasons, it is highly recommended that you always
9524 # use absolute paths for naming shared libraries, and exclude the
9525 # DT_RUNPATH tag from executables and libraries. But doing so
9526 # requires that you compile everything twice, which is a pain.
9527 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9531 else
9532 ld_shlibs=no
9533 fi
9534 ;;
9535 esac
9536 ;;
9537
9538 sunos4*)
9539 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9540 wlarc=
9541 hardcode_direct=yes
9542 hardcode_shlibpath_var=no
9543 ;;
9544
9545 *)
9546 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9547 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9549 else
9550 ld_shlibs=no
9551 fi
9552 ;;
9553 esac
9554
9555 if test "$ld_shlibs" = no; then
9556 runpath_var=
9557 hardcode_libdir_flag_spec=
9558 export_dynamic_flag_spec=
9559 whole_archive_flag_spec=
9560 fi
9561 else
9562 # PORTME fill in a description of your system's linker (not GNU ld)
9563 case $host_os in
9564 aix3*)
9565 allow_undefined_flag=unsupported
9566 always_export_symbols=yes
9567 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9568 # Note: this linker hardcodes the directories in LIBPATH if there
9569 # are no directories specified by -L.
9570 hardcode_minus_L=yes
9571 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9572 # Neither direct hardcoding nor static linking is supported with a
9573 # broken collect2.
9574 hardcode_direct=unsupported
9575 fi
9576 ;;
9577
9578 aix[4-9]*)
9579 if test "$host_cpu" = ia64; then
9580 # On IA64, the linker does run time linking by default, so we don't
9581 # have to do anything special.
9582 aix_use_runtimelinking=no
9583 exp_sym_flag='-Bexport'
9584 no_entry_flag=""
9585 else
9586 # If we're using GNU nm, then we don't want the "-C" option.
9587 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9588 # Also, AIX nm treats weak defined symbols like other global
9589 # defined symbols, whereas GNU nm marks them as "W".
9590 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9591 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9592 else
9593 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9594 fi
9595 aix_use_runtimelinking=no
9596
9597 # Test if we are trying to use run time linking or normal
9598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9599 # need to do runtime linking.
9600 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9601 for ld_flag in $LDFLAGS; do
9602 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9603 aix_use_runtimelinking=yes
9604 break
9605 fi
9606 done
9607 ;;
9608 esac
9609
9610 exp_sym_flag='-bexport'
9611 no_entry_flag='-bnoentry'
9612 fi
9613
9614 # When large executables or shared objects are built, AIX ld can
9615 # have problems creating the table of contents. If linking a library
9616 # or program results in "error TOC overflow" add -mminimal-toc to
9617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9619
9620 archive_cmds=''
9621 hardcode_direct=yes
9622 hardcode_direct_absolute=yes
9623 hardcode_libdir_separator=':'
9624 link_all_deplibs=yes
9625 file_list_spec='${wl}-f,'
9626
9627 if test "$GCC" = yes; then
9628 case $host_os in aix4.[012]|aix4.[012].*)
9629 # We only want to do this on AIX 4.2 and lower, the check
9630 # below for broken collect2 doesn't work under 4.3+
9631 collect2name=`${CC} -print-prog-name=collect2`
9632 if test -f "$collect2name" &&
9633 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9634 then
9635 # We have reworked collect2
9636 :
9637 else
9638 # We have old collect2
9639 hardcode_direct=unsupported
9640 # It fails to find uninstalled libraries when the uninstalled
9641 # path is not listed in the libpath. Setting hardcode_minus_L
9642 # to unsupported forces relinking
9643 hardcode_minus_L=yes
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_libdir_separator=
9646 fi
9647 ;;
9648 esac
9649 shared_flag='-shared'
9650 if test "$aix_use_runtimelinking" = yes; then
9651 shared_flag="$shared_flag "'${wl}-G'
9652 fi
9653 else
9654 # not using gcc
9655 if test "$host_cpu" = ia64; then
9656 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9657 # chokes on -Wl,-G. The following line is correct:
9658 shared_flag='-G'
9659 else
9660 if test "$aix_use_runtimelinking" = yes; then
9661 shared_flag='${wl}-G'
9662 else
9663 shared_flag='${wl}-bM:SRE'
9664 fi
9665 fi
9666 fi
9667
9668 export_dynamic_flag_spec='${wl}-bexpall'
9669 # It seems that -bexpall does not export symbols beginning with
9670 # underscore (_), so it is better to generate a list of symbols to export.
9671 always_export_symbols=yes
9672 if test "$aix_use_runtimelinking" = yes; then
9673 # Warning - without using the other runtime loading flags (-brtl),
9674 # -berok will link without error, but may produce a broken library.
9675 allow_undefined_flag='-berok'
9676 # Determine the default libpath from the value encoded in an
9677 # empty executable.
9678 if test "${lt_cv_aix_libpath+set}" = set; then
9679 aix_libpath=$lt_cv_aix_libpath
9680 else
9681 if ${lt_cv_aix_libpath_+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685 /* end confdefs.h. */
9686
9687 int
9688 main ()
9689 {
9690
9691 ;
9692 return 0;
9693 }
9694 _ACEOF
9695 if ac_fn_c_try_link "$LINENO"; then :
9696
9697 lt_aix_libpath_sed='
9698 /Import File Strings/,/^$/ {
9699 /^0/ {
9700 s/^0 *\([^ ]*\) *$/\1/
9701 p
9702 }
9703 }'
9704 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9705 # Check for a 64-bit object if we didn't find anything.
9706 if test -z "$lt_cv_aix_libpath_"; then
9707 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708 fi
9709 fi
9710 rm -f core conftest.err conftest.$ac_objext \
9711 conftest$ac_exeext conftest.$ac_ext
9712 if test -z "$lt_cv_aix_libpath_"; then
9713 lt_cv_aix_libpath_="/usr/lib:/lib"
9714 fi
9715
9716 fi
9717
9718 aix_libpath=$lt_cv_aix_libpath_
9719 fi
9720
9721 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9722 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9723 else
9724 if test "$host_cpu" = ia64; then
9725 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9726 allow_undefined_flag="-z nodefs"
9727 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9728 else
9729 # Determine the default libpath from the value encoded in an
9730 # empty executable.
9731 if test "${lt_cv_aix_libpath+set}" = set; then
9732 aix_libpath=$lt_cv_aix_libpath
9733 else
9734 if ${lt_cv_aix_libpath_+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9739
9740 int
9741 main ()
9742 {
9743
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 if ac_fn_c_try_link "$LINENO"; then :
9749
9750 lt_aix_libpath_sed='
9751 /Import File Strings/,/^$/ {
9752 /^0/ {
9753 s/^0 *\([^ ]*\) *$/\1/
9754 p
9755 }
9756 }'
9757 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9758 # Check for a 64-bit object if we didn't find anything.
9759 if test -z "$lt_cv_aix_libpath_"; then
9760 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761 fi
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext \
9764 conftest$ac_exeext conftest.$ac_ext
9765 if test -z "$lt_cv_aix_libpath_"; then
9766 lt_cv_aix_libpath_="/usr/lib:/lib"
9767 fi
9768
9769 fi
9770
9771 aix_libpath=$lt_cv_aix_libpath_
9772 fi
9773
9774 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9775 # Warning - without using the other run time loading flags,
9776 # -berok will link without error, but may produce a broken library.
9777 no_undefined_flag=' ${wl}-bernotok'
9778 allow_undefined_flag=' ${wl}-berok'
9779 if test "$with_gnu_ld" = yes; then
9780 # We only use this code for GNU lds that support --whole-archive.
9781 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9782 else
9783 # Exported symbols can be pulled into shared objects from archives
9784 whole_archive_flag_spec='$convenience'
9785 fi
9786 archive_cmds_need_lc=yes
9787 # This is similar to how AIX traditionally builds its shared libraries.
9788 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9789 fi
9790 fi
9791 ;;
9792
9793 amigaos*)
9794 case $host_cpu in
9795 powerpc)
9796 # see comment about AmigaOS4 .so support
9797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 archive_expsym_cmds=''
9799 ;;
9800 m68k)
9801 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9802 hardcode_libdir_flag_spec='-L$libdir'
9803 hardcode_minus_L=yes
9804 ;;
9805 esac
9806 ;;
9807
9808 bsdi[45]*)
9809 export_dynamic_flag_spec=-rdynamic
9810 ;;
9811
9812 cygwin* | mingw* | pw32* | cegcc*)
9813 # When not using gcc, we currently assume that we are using
9814 # Microsoft Visual C++.
9815 # hardcode_libdir_flag_spec is actually meaningless, as there is
9816 # no search path for DLLs.
9817 case $cc_basename in
9818 cl*)
9819 # Native MSVC
9820 hardcode_libdir_flag_spec=' '
9821 allow_undefined_flag=unsupported
9822 always_export_symbols=yes
9823 file_list_spec='@'
9824 # Tell ltmain to make .lib files, not .a files.
9825 libext=lib
9826 # Tell ltmain to make .dll files, not .so files.
9827 shrext_cmds=".dll"
9828 # FIXME: Setting linknames here is a bad hack.
9829 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9830 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9831 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9832 else
9833 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9834 fi~
9835 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9836 linknames='
9837 # The linker will not automatically build a static lib if we build a DLL.
9838 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9839 enable_shared_with_static_runtimes=yes
9840 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9841 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9842 # Don't use ranlib
9843 old_postinstall_cmds='chmod 644 $oldlib'
9844 postlink_cmds='lt_outputfile="@OUTPUT@"~
9845 lt_tool_outputfile="@TOOL_OUTPUT@"~
9846 case $lt_outputfile in
9847 *.exe|*.EXE) ;;
9848 *)
9849 lt_outputfile="$lt_outputfile.exe"
9850 lt_tool_outputfile="$lt_tool_outputfile.exe"
9851 ;;
9852 esac~
9853 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9854 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9855 $RM "$lt_outputfile.manifest";
9856 fi'
9857 ;;
9858 *)
9859 # Assume MSVC wrapper
9860 hardcode_libdir_flag_spec=' '
9861 allow_undefined_flag=unsupported
9862 # Tell ltmain to make .lib files, not .a files.
9863 libext=lib
9864 # Tell ltmain to make .dll files, not .so files.
9865 shrext_cmds=".dll"
9866 # FIXME: Setting linknames here is a bad hack.
9867 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9868 # The linker will automatically build a .lib file if we build a DLL.
9869 old_archive_from_new_cmds='true'
9870 # FIXME: Should let the user specify the lib program.
9871 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9872 enable_shared_with_static_runtimes=yes
9873 ;;
9874 esac
9875 ;;
9876
9877 darwin* | rhapsody*)
9878
9879
9880 archive_cmds_need_lc=no
9881 hardcode_direct=no
9882 hardcode_automatic=yes
9883 hardcode_shlibpath_var=unsupported
9884 if test "$lt_cv_ld_force_load" = "yes"; then
9885 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9886
9887 else
9888 whole_archive_flag_spec=''
9889 fi
9890 link_all_deplibs=yes
9891 allow_undefined_flag="$_lt_dar_allow_undefined"
9892 case $cc_basename in
9893 ifort*) _lt_dar_can_shared=yes ;;
9894 *) _lt_dar_can_shared=$GCC ;;
9895 esac
9896 if test "$_lt_dar_can_shared" = "yes"; then
9897 output_verbose_link_cmd=func_echo_all
9898 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9899 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9900 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9901 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9902
9903 else
9904 ld_shlibs=no
9905 fi
9906
9907 ;;
9908
9909 dgux*)
9910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911 hardcode_libdir_flag_spec='-L$libdir'
9912 hardcode_shlibpath_var=no
9913 ;;
9914
9915 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9916 # support. Future versions do this automatically, but an explicit c++rt0.o
9917 # does not break anything, and helps significantly (at the cost of a little
9918 # extra space).
9919 freebsd2.2*)
9920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9921 hardcode_libdir_flag_spec='-R$libdir'
9922 hardcode_direct=yes
9923 hardcode_shlibpath_var=no
9924 ;;
9925
9926 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9927 freebsd2.*)
9928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9929 hardcode_direct=yes
9930 hardcode_minus_L=yes
9931 hardcode_shlibpath_var=no
9932 ;;
9933
9934 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9935 freebsd* | dragonfly*)
9936 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9937 hardcode_libdir_flag_spec='-R$libdir'
9938 hardcode_direct=yes
9939 hardcode_shlibpath_var=no
9940 ;;
9941
9942 hpux9*)
9943 if test "$GCC" = yes; then
9944 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9945 else
9946 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9947 fi
9948 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9949 hardcode_libdir_separator=:
9950 hardcode_direct=yes
9951
9952 # hardcode_minus_L: Not really in the search PATH,
9953 # but as the default location of the library.
9954 hardcode_minus_L=yes
9955 export_dynamic_flag_spec='${wl}-E'
9956 ;;
9957
9958 hpux10*)
9959 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9960 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9961 else
9962 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9963 fi
9964 if test "$with_gnu_ld" = no; then
9965 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9966 hardcode_libdir_separator=:
9967 hardcode_direct=yes
9968 hardcode_direct_absolute=yes
9969 export_dynamic_flag_spec='${wl}-E'
9970 # hardcode_minus_L: Not really in the search PATH,
9971 # but as the default location of the library.
9972 hardcode_minus_L=yes
9973 fi
9974 ;;
9975
9976 hpux11*)
9977 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9978 case $host_cpu in
9979 hppa*64*)
9980 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9981 ;;
9982 ia64*)
9983 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9984 ;;
9985 *)
9986 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987 ;;
9988 esac
9989 else
9990 case $host_cpu in
9991 hppa*64*)
9992 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 ;;
9994 ia64*)
9995 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9996 ;;
9997 *)
9998
9999 # Older versions of the 11.00 compiler do not understand -b yet
10000 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10002 $as_echo_n "checking if $CC understands -b... " >&6; }
10003 if ${lt_cv_prog_compiler__b+:} false; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 lt_cv_prog_compiler__b=no
10007 save_LDFLAGS="$LDFLAGS"
10008 LDFLAGS="$LDFLAGS -b"
10009 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10010 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10011 # The linker can only warn and ignore the option if not recognized
10012 # So say no if there are warnings
10013 if test -s conftest.err; then
10014 # Append any errors to the config.log.
10015 cat conftest.err 1>&5
10016 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10018 if diff conftest.exp conftest.er2 >/dev/null; then
10019 lt_cv_prog_compiler__b=yes
10020 fi
10021 else
10022 lt_cv_prog_compiler__b=yes
10023 fi
10024 fi
10025 $RM -r conftest*
10026 LDFLAGS="$save_LDFLAGS"
10027
10028 fi
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10030 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10031
10032 if test x"$lt_cv_prog_compiler__b" = xyes; then
10033 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10034 else
10035 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10036 fi
10037
10038 ;;
10039 esac
10040 fi
10041 if test "$with_gnu_ld" = no; then
10042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10043 hardcode_libdir_separator=:
10044
10045 case $host_cpu in
10046 hppa*64*|ia64*)
10047 hardcode_direct=no
10048 hardcode_shlibpath_var=no
10049 ;;
10050 *)
10051 hardcode_direct=yes
10052 hardcode_direct_absolute=yes
10053 export_dynamic_flag_spec='${wl}-E'
10054
10055 # hardcode_minus_L: Not really in the search PATH,
10056 # but as the default location of the library.
10057 hardcode_minus_L=yes
10058 ;;
10059 esac
10060 fi
10061 ;;
10062
10063 irix5* | irix6* | nonstopux*)
10064 if test "$GCC" = yes; then
10065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10066 # Try to use the -exported_symbol ld option, if it does not
10067 # work, assume that -exports_file does not work either and
10068 # implicitly export all symbols.
10069 # This should be the same for all languages, so no per-tag cache variable.
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10071 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10072 if ${lt_cv_irix_exported_symbol+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 save_LDFLAGS="$LDFLAGS"
10076 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10079 int foo (void) { return 0; }
10080 _ACEOF
10081 if ac_fn_c_try_link "$LINENO"; then :
10082 lt_cv_irix_exported_symbol=yes
10083 else
10084 lt_cv_irix_exported_symbol=no
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LDFLAGS="$save_LDFLAGS"
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10091 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10092 if test "$lt_cv_irix_exported_symbol" = yes; then
10093 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10094 fi
10095 else
10096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10098 fi
10099 archive_cmds_need_lc='no'
10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101 hardcode_libdir_separator=:
10102 inherit_rpath=yes
10103 link_all_deplibs=yes
10104 ;;
10105
10106 netbsd*)
10107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10109 else
10110 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10111 fi
10112 hardcode_libdir_flag_spec='-R$libdir'
10113 hardcode_direct=yes
10114 hardcode_shlibpath_var=no
10115 ;;
10116
10117 newsos6)
10118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119 hardcode_direct=yes
10120 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10121 hardcode_libdir_separator=:
10122 hardcode_shlibpath_var=no
10123 ;;
10124
10125 *nto* | *qnx*)
10126 ;;
10127
10128 openbsd*)
10129 if test -f /usr/libexec/ld.so; then
10130 hardcode_direct=yes
10131 hardcode_shlibpath_var=no
10132 hardcode_direct_absolute=yes
10133 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10134 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10135 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10137 export_dynamic_flag_spec='${wl}-E'
10138 else
10139 case $host_os in
10140 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10142 hardcode_libdir_flag_spec='-R$libdir'
10143 ;;
10144 *)
10145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10146 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10147 ;;
10148 esac
10149 fi
10150 else
10151 ld_shlibs=no
10152 fi
10153 ;;
10154
10155 os2*)
10156 hardcode_libdir_flag_spec='-L$libdir'
10157 hardcode_minus_L=yes
10158 allow_undefined_flag=unsupported
10159 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10160 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10161 ;;
10162
10163 osf3*)
10164 if test "$GCC" = yes; then
10165 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10166 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10167 else
10168 allow_undefined_flag=' -expect_unresolved \*'
10169 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10170 fi
10171 archive_cmds_need_lc='no'
10172 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10173 hardcode_libdir_separator=:
10174 ;;
10175
10176 osf4* | osf5*) # as osf3* with the addition of -msym flag
10177 if test "$GCC" = yes; then
10178 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10179 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10181 else
10182 allow_undefined_flag=' -expect_unresolved \*'
10183 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10184 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10185 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10186
10187 # Both c and cxx compiler support -rpath directly
10188 hardcode_libdir_flag_spec='-rpath $libdir'
10189 fi
10190 archive_cmds_need_lc='no'
10191 hardcode_libdir_separator=:
10192 ;;
10193
10194 solaris*)
10195 no_undefined_flag=' -z defs'
10196 if test "$GCC" = yes; then
10197 wlarc='${wl}'
10198 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10200 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10201 else
10202 case `$CC -V 2>&1` in
10203 *"Compilers 5.0"*)
10204 wlarc=''
10205 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10208 ;;
10209 *)
10210 wlarc='${wl}'
10211 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10212 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10213 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10214 ;;
10215 esac
10216 fi
10217 hardcode_libdir_flag_spec='-R$libdir'
10218 hardcode_shlibpath_var=no
10219 case $host_os in
10220 solaris2.[0-5] | solaris2.[0-5].*) ;;
10221 *)
10222 # The compiler driver will combine and reorder linker options,
10223 # but understands `-z linker_flag'. GCC discards it without `$wl',
10224 # but is careful enough not to reorder.
10225 # Supported since Solaris 2.6 (maybe 2.5.1?)
10226 if test "$GCC" = yes; then
10227 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10228 else
10229 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10230 fi
10231 ;;
10232 esac
10233 link_all_deplibs=yes
10234 ;;
10235
10236 sunos4*)
10237 if test "x$host_vendor" = xsequent; then
10238 # Use $CC to link under sequent, because it throws in some extra .o
10239 # files that make .init and .fini sections work.
10240 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10241 else
10242 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10243 fi
10244 hardcode_libdir_flag_spec='-L$libdir'
10245 hardcode_direct=yes
10246 hardcode_minus_L=yes
10247 hardcode_shlibpath_var=no
10248 ;;
10249
10250 sysv4)
10251 case $host_vendor in
10252 sni)
10253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254 hardcode_direct=yes # is this really true???
10255 ;;
10256 siemens)
10257 ## LD is ld it makes a PLAMLIB
10258 ## CC just makes a GrossModule.
10259 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10260 reload_cmds='$CC -r -o $output$reload_objs'
10261 hardcode_direct=no
10262 ;;
10263 motorola)
10264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10265 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10266 ;;
10267 esac
10268 runpath_var='LD_RUN_PATH'
10269 hardcode_shlibpath_var=no
10270 ;;
10271
10272 sysv4.3*)
10273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10274 hardcode_shlibpath_var=no
10275 export_dynamic_flag_spec='-Bexport'
10276 ;;
10277
10278 sysv4*MP*)
10279 if test -d /usr/nec; then
10280 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10281 hardcode_shlibpath_var=no
10282 runpath_var=LD_RUN_PATH
10283 hardcode_runpath_var=yes
10284 ld_shlibs=yes
10285 fi
10286 ;;
10287
10288 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10289 no_undefined_flag='${wl}-z,text'
10290 archive_cmds_need_lc=no
10291 hardcode_shlibpath_var=no
10292 runpath_var='LD_RUN_PATH'
10293
10294 if test "$GCC" = yes; then
10295 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 else
10298 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10299 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 fi
10301 ;;
10302
10303 sysv5* | sco3.2v5* | sco5v6*)
10304 # Note: We can NOT use -z defs as we might desire, because we do not
10305 # link with -lc, and that would cause any symbols used from libc to
10306 # always be unresolved, which means just about no library would
10307 # ever link correctly. If we're not using GNU ld we use -z text
10308 # though, which does catch some bad symbols but isn't as heavy-handed
10309 # as -z defs.
10310 no_undefined_flag='${wl}-z,text'
10311 allow_undefined_flag='${wl}-z,nodefs'
10312 archive_cmds_need_lc=no
10313 hardcode_shlibpath_var=no
10314 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10315 hardcode_libdir_separator=':'
10316 link_all_deplibs=yes
10317 export_dynamic_flag_spec='${wl}-Bexport'
10318 runpath_var='LD_RUN_PATH'
10319
10320 if test "$GCC" = yes; then
10321 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 else
10324 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326 fi
10327 ;;
10328
10329 uts4*)
10330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331 hardcode_libdir_flag_spec='-L$libdir'
10332 hardcode_shlibpath_var=no
10333 ;;
10334
10335 *)
10336 ld_shlibs=no
10337 ;;
10338 esac
10339
10340 if test x$host_vendor = xsni; then
10341 case $host in
10342 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10343 export_dynamic_flag_spec='${wl}-Blargedynsym'
10344 ;;
10345 esac
10346 fi
10347 fi
10348
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10350 $as_echo "$ld_shlibs" >&6; }
10351 test "$ld_shlibs" = no && can_build_shared=no
10352
10353 with_gnu_ld=$with_gnu_ld
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369 #
10370 # Do we need to explicitly link libc?
10371 #
10372 case "x$archive_cmds_need_lc" in
10373 x|xyes)
10374 # Assume -lc should be added
10375 archive_cmds_need_lc=yes
10376
10377 if test "$enable_shared" = yes && test "$GCC" = yes; then
10378 case $archive_cmds in
10379 *'~'*)
10380 # FIXME: we may have to deal with multi-command sequences.
10381 ;;
10382 '$CC '*)
10383 # Test whether the compiler implicitly links with -lc since on some
10384 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10385 # to ld, don't add -lc before -lgcc.
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10387 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10388 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 $RM conftest*
10392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10393
10394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10395 (eval $ac_compile) 2>&5
10396 ac_status=$?
10397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10398 test $ac_status = 0; } 2>conftest.err; then
10399 soname=conftest
10400 lib=conftest
10401 libobjs=conftest.$ac_objext
10402 deplibs=
10403 wl=$lt_prog_compiler_wl
10404 pic_flag=$lt_prog_compiler_pic
10405 compiler_flags=-v
10406 linker_flags=-v
10407 verstring=
10408 output_objdir=.
10409 libname=conftest
10410 lt_save_allow_undefined_flag=$allow_undefined_flag
10411 allow_undefined_flag=
10412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10413 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10414 ac_status=$?
10415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10416 test $ac_status = 0; }
10417 then
10418 lt_cv_archive_cmds_need_lc=no
10419 else
10420 lt_cv_archive_cmds_need_lc=yes
10421 fi
10422 allow_undefined_flag=$lt_save_allow_undefined_flag
10423 else
10424 cat conftest.err 1>&5
10425 fi
10426 $RM conftest*
10427
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10430 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10431 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10432 ;;
10433 esac
10434 fi
10435 ;;
10436 esac
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10591
10592 if test "$GCC" = yes; then
10593 case $host_os in
10594 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10595 *) lt_awk_arg="/^libraries:/" ;;
10596 esac
10597 case $host_os in
10598 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10599 *) lt_sed_strip_eq="s,=/,/,g" ;;
10600 esac
10601 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10602 case $lt_search_path_spec in
10603 *\;*)
10604 # if the path contains ";" then we assume it to be the separator
10605 # otherwise default to the standard path separator (i.e. ":") - it is
10606 # assumed that no part of a normal pathname contains ";" but that should
10607 # okay in the real world where ";" in dirpaths is itself problematic.
10608 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10609 ;;
10610 *)
10611 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10612 ;;
10613 esac
10614 # Ok, now we have the path, separated by spaces, we can step through it
10615 # and add multilib dir if necessary.
10616 lt_tmp_lt_search_path_spec=
10617 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10618 for lt_sys_path in $lt_search_path_spec; do
10619 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10621 else
10622 test -d "$lt_sys_path" && \
10623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10624 fi
10625 done
10626 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10627 BEGIN {RS=" "; FS="/|\n";} {
10628 lt_foo="";
10629 lt_count=0;
10630 for (lt_i = NF; lt_i > 0; lt_i--) {
10631 if ($lt_i != "" && $lt_i != ".") {
10632 if ($lt_i == "..") {
10633 lt_count++;
10634 } else {
10635 if (lt_count == 0) {
10636 lt_foo="/" $lt_i lt_foo;
10637 } else {
10638 lt_count--;
10639 }
10640 }
10641 }
10642 }
10643 if (lt_foo != "") { lt_freq[lt_foo]++; }
10644 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10645 }'`
10646 # AWK program above erroneously prepends '/' to C:/dos/paths
10647 # for these hosts.
10648 case $host_os in
10649 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10650 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10651 esac
10652 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10653 else
10654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10655 fi
10656 library_names_spec=
10657 libname_spec='lib$name'
10658 soname_spec=
10659 shrext_cmds=".so"
10660 postinstall_cmds=
10661 postuninstall_cmds=
10662 finish_cmds=
10663 finish_eval=
10664 shlibpath_var=
10665 shlibpath_overrides_runpath=unknown
10666 version_type=none
10667 dynamic_linker="$host_os ld.so"
10668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10669 need_lib_prefix=unknown
10670 hardcode_into_libs=no
10671
10672 # when you set need_version to no, make sure it does not cause -set_version
10673 # flags to be left without arguments
10674 need_version=unknown
10675
10676 case $host_os in
10677 aix3*)
10678 version_type=linux # correct to gnu/linux during the next big refactor
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10680 shlibpath_var=LIBPATH
10681
10682 # AIX 3 has no versioning support, so we append a major version to the name.
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 ;;
10685
10686 aix[4-9]*)
10687 version_type=linux # correct to gnu/linux during the next big refactor
10688 need_lib_prefix=no
10689 need_version=no
10690 hardcode_into_libs=yes
10691 if test "$host_cpu" = ia64; then
10692 # AIX 5 supports IA64
10693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 else
10696 # With GCC up to 2.95.x, collect2 would create an import file
10697 # for dependence libraries. The import file would start with
10698 # the line `#! .'. This would cause the generated library to
10699 # depend on `.', always an invalid library. This was fixed in
10700 # development snapshots of GCC prior to 3.0.
10701 case $host_os in
10702 aix4 | aix4.[01] | aix4.[01].*)
10703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10704 echo ' yes '
10705 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10706 :
10707 else
10708 can_build_shared=no
10709 fi
10710 ;;
10711 esac
10712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10713 # soname into executable. Probably we can add versioning support to
10714 # collect2, so additional links can be useful in future.
10715 if test "$aix_use_runtimelinking" = yes; then
10716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10717 # instead of lib<name>.a to let people know that these are not
10718 # typical AIX shared libraries.
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 else
10721 # We preserve .a as extension for shared libraries through AIX4.2
10722 # and later when we are not doing run time linking.
10723 library_names_spec='${libname}${release}.a $libname.a'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 fi
10726 shlibpath_var=LIBPATH
10727 fi
10728 ;;
10729
10730 amigaos*)
10731 case $host_cpu in
10732 powerpc)
10733 # Since July 2007 AmigaOS4 officially supports .so libraries.
10734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 ;;
10737 m68k)
10738 library_names_spec='$libname.ixlibrary $libname.a'
10739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10740 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10741 ;;
10742 esac
10743 ;;
10744
10745 beos*)
10746 library_names_spec='${libname}${shared_ext}'
10747 dynamic_linker="$host_os ld.so"
10748 shlibpath_var=LIBRARY_PATH
10749 ;;
10750
10751 bsdi[45]*)
10752 version_type=linux # correct to gnu/linux during the next big refactor
10753 need_version=no
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10760 # the default ld.so.conf also contains /usr/contrib/lib and
10761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10762 # libtool to hard-code these into programs
10763 ;;
10764
10765 cygwin* | mingw* | pw32* | cegcc*)
10766 version_type=windows
10767 shrext_cmds=".dll"
10768 need_version=no
10769 need_lib_prefix=no
10770
10771 case $GCC,$cc_basename in
10772 yes,*)
10773 # gcc
10774 library_names_spec='$libname.dll.a'
10775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10776 postinstall_cmds='base_file=`basename \${file}`~
10777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10778 dldir=$destdir/`dirname \$dlpath`~
10779 test -d \$dldir || mkdir -p \$dldir~
10780 $install_prog $dir/$dlname \$dldir/$dlname~
10781 chmod a+x \$dldir/$dlname~
10782 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10783 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10784 fi'
10785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10786 dlpath=$dir/\$dldll~
10787 $RM \$dlpath'
10788 shlibpath_overrides_runpath=yes
10789
10790 case $host_os in
10791 cygwin*)
10792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10793 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10794
10795 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10796 ;;
10797 mingw* | cegcc*)
10798 # MinGW DLLs use traditional 'lib' prefix
10799 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10800 ;;
10801 pw32*)
10802 # pw32 DLLs use 'pw' prefix rather than 'lib'
10803 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10804 ;;
10805 esac
10806 dynamic_linker='Win32 ld.exe'
10807 ;;
10808
10809 *,cl*)
10810 # Native MSVC
10811 libname_spec='$name'
10812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10813 library_names_spec='${libname}.dll.lib'
10814
10815 case $build_os in
10816 mingw*)
10817 sys_lib_search_path_spec=
10818 lt_save_ifs=$IFS
10819 IFS=';'
10820 for lt_path in $LIB
10821 do
10822 IFS=$lt_save_ifs
10823 # Let DOS variable expansion print the short 8.3 style file name.
10824 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10825 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10826 done
10827 IFS=$lt_save_ifs
10828 # Convert to MSYS style.
10829 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10830 ;;
10831 cygwin*)
10832 # Convert to unix form, then to dos form, then back to unix form
10833 # but this time dos style (no spaces!) so that the unix form looks
10834 # like /cygdrive/c/PROGRA~1:/cygdr...
10835 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10836 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10837 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10838 ;;
10839 *)
10840 sys_lib_search_path_spec="$LIB"
10841 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10842 # It is most probably a Windows format PATH.
10843 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10844 else
10845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10846 fi
10847 # FIXME: find the short name or the path components, as spaces are
10848 # common. (e.g. "Program Files" -> "PROGRA~1")
10849 ;;
10850 esac
10851
10852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10853 postinstall_cmds='base_file=`basename \${file}`~
10854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10855 dldir=$destdir/`dirname \$dlpath`~
10856 test -d \$dldir || mkdir -p \$dldir~
10857 $install_prog $dir/$dlname \$dldir/$dlname'
10858 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10859 dlpath=$dir/\$dldll~
10860 $RM \$dlpath'
10861 shlibpath_overrides_runpath=yes
10862 dynamic_linker='Win32 link.exe'
10863 ;;
10864
10865 *)
10866 # Assume MSVC wrapper
10867 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10868 dynamic_linker='Win32 ld.exe'
10869 ;;
10870 esac
10871 # FIXME: first we should search . and the directory the executable is in
10872 shlibpath_var=PATH
10873 ;;
10874
10875 darwin* | rhapsody*)
10876 dynamic_linker="$host_os dyld"
10877 version_type=darwin
10878 need_lib_prefix=no
10879 need_version=no
10880 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10881 soname_spec='${libname}${release}${major}$shared_ext'
10882 shlibpath_overrides_runpath=yes
10883 shlibpath_var=DYLD_LIBRARY_PATH
10884 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10885
10886 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10888 ;;
10889
10890 dgux*)
10891 version_type=linux # correct to gnu/linux during the next big refactor
10892 need_lib_prefix=no
10893 need_version=no
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 ;;
10898
10899 freebsd* | dragonfly*)
10900 # DragonFly does not have aout. When/if they implement a new
10901 # versioning mechanism, adjust this.
10902 if test -x /usr/bin/objformat; then
10903 objformat=`/usr/bin/objformat`
10904 else
10905 case $host_os in
10906 freebsd[23].*) objformat=aout ;;
10907 *) objformat=elf ;;
10908 esac
10909 fi
10910 version_type=freebsd-$objformat
10911 case $version_type in
10912 freebsd-elf*)
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10914 need_version=no
10915 need_lib_prefix=no
10916 ;;
10917 freebsd-*)
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10919 need_version=yes
10920 ;;
10921 esac
10922 shlibpath_var=LD_LIBRARY_PATH
10923 case $host_os in
10924 freebsd2.*)
10925 shlibpath_overrides_runpath=yes
10926 ;;
10927 freebsd3.[01]* | freebsdelf3.[01]*)
10928 shlibpath_overrides_runpath=yes
10929 hardcode_into_libs=yes
10930 ;;
10931 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10932 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10933 shlibpath_overrides_runpath=no
10934 hardcode_into_libs=yes
10935 ;;
10936 *) # from 4.6 on, and DragonFly
10937 shlibpath_overrides_runpath=yes
10938 hardcode_into_libs=yes
10939 ;;
10940 esac
10941 ;;
10942
10943 gnu*)
10944 version_type=linux # correct to gnu/linux during the next big refactor
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10950 shlibpath_overrides_runpath=no
10951 hardcode_into_libs=yes
10952 ;;
10953
10954 haiku*)
10955 version_type=linux # correct to gnu/linux during the next big refactor
10956 need_lib_prefix=no
10957 need_version=no
10958 dynamic_linker="$host_os runtime_loader"
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 shlibpath_var=LIBRARY_PATH
10962 shlibpath_overrides_runpath=yes
10963 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10964 hardcode_into_libs=yes
10965 ;;
10966
10967 hpux9* | hpux10* | hpux11*)
10968 # Give a soname corresponding to the major version so that dld.sl refuses to
10969 # link against other versions.
10970 version_type=sunos
10971 need_lib_prefix=no
10972 need_version=no
10973 case $host_cpu in
10974 ia64*)
10975 shrext_cmds='.so'
10976 hardcode_into_libs=yes
10977 dynamic_linker="$host_os dld.so"
10978 shlibpath_var=LD_LIBRARY_PATH
10979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 soname_spec='${libname}${release}${shared_ext}$major'
10982 if test "X$HPUX_IA64_MODE" = X32; then
10983 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10984 else
10985 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10986 fi
10987 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10988 ;;
10989 hppa*64*)
10990 shrext_cmds='.sl'
10991 hardcode_into_libs=yes
10992 dynamic_linker="$host_os dld.sl"
10993 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996 soname_spec='${libname}${release}${shared_ext}$major'
10997 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10998 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10999 ;;
11000 *)
11001 shrext_cmds='.sl'
11002 dynamic_linker="$host_os dld.sl"
11003 shlibpath_var=SHLIB_PATH
11004 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 ;;
11008 esac
11009 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11010 postinstall_cmds='chmod 555 $lib'
11011 # or fails outright, so override atomically:
11012 install_override_mode=555
11013 ;;
11014
11015 interix[3-9]*)
11016 version_type=linux # correct to gnu/linux during the next big refactor
11017 need_lib_prefix=no
11018 need_version=no
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11022 shlibpath_var=LD_LIBRARY_PATH
11023 shlibpath_overrides_runpath=no
11024 hardcode_into_libs=yes
11025 ;;
11026
11027 irix5* | irix6* | nonstopux*)
11028 case $host_os in
11029 nonstopux*) version_type=nonstopux ;;
11030 *)
11031 if test "$lt_cv_prog_gnu_ld" = yes; then
11032 version_type=linux # correct to gnu/linux during the next big refactor
11033 else
11034 version_type=irix
11035 fi ;;
11036 esac
11037 need_lib_prefix=no
11038 need_version=no
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11041 case $host_os in
11042 irix5* | nonstopux*)
11043 libsuff= shlibsuff=
11044 ;;
11045 *)
11046 case $LD in # libtool.m4 will add one of these switches to LD
11047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11048 libsuff= shlibsuff= libmagic=32-bit;;
11049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11050 libsuff=32 shlibsuff=N32 libmagic=N32;;
11051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11053 *) libsuff= shlibsuff= libmagic=never-match;;
11054 esac
11055 ;;
11056 esac
11057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11058 shlibpath_overrides_runpath=no
11059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11061 hardcode_into_libs=yes
11062 ;;
11063
11064 # No shared lib support for Linux oldld, aout, or coff.
11065 linux*oldld* | linux*aout* | linux*coff*)
11066 dynamic_linker=no
11067 ;;
11068
11069 # This must be glibc/ELF.
11070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11071 version_type=linux # correct to gnu/linux during the next big refactor
11072 need_lib_prefix=no
11073 need_version=no
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11077 shlibpath_var=LD_LIBRARY_PATH
11078 shlibpath_overrides_runpath=no
11079
11080 # Some binutils ld are patched to set DT_RUNPATH
11081 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084 lt_cv_shlibpath_overrides_runpath=no
11085 save_LDFLAGS=$LDFLAGS
11086 save_libdir=$libdir
11087 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11088 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11091
11092 int
11093 main ()
11094 {
11095
11096 ;
11097 return 0;
11098 }
11099 _ACEOF
11100 if ac_fn_c_try_link "$LINENO"; then :
11101 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11102 lt_cv_shlibpath_overrides_runpath=yes
11103 fi
11104 fi
11105 rm -f core conftest.err conftest.$ac_objext \
11106 conftest$ac_exeext conftest.$ac_ext
11107 LDFLAGS=$save_LDFLAGS
11108 libdir=$save_libdir
11109
11110 fi
11111
11112 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11113
11114 # This implies no fast_install, which is unacceptable.
11115 # Some rework will be needed to allow for fast_install
11116 # before this can be enabled.
11117 hardcode_into_libs=yes
11118
11119 # Append ld.so.conf contents to the search path
11120 if test -f /etc/ld.so.conf; then
11121 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11122 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11123 fi
11124
11125 # We used to test for /lib/ld.so.1 and disable shared libraries on
11126 # powerpc, because MkLinux only supported shared libraries with the
11127 # GNU dynamic linker. Since this was broken with cross compilers,
11128 # most powerpc-linux boxes support dynamic linking these days and
11129 # people can always --disable-shared, the test was removed, and we
11130 # assume the GNU/Linux dynamic linker is in use.
11131 dynamic_linker='GNU/Linux ld.so'
11132 ;;
11133
11134 netbsd*)
11135 version_type=sunos
11136 need_lib_prefix=no
11137 need_version=no
11138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11141 dynamic_linker='NetBSD (a.out) ld.so'
11142 else
11143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 dynamic_linker='NetBSD ld.elf_so'
11146 fi
11147 shlibpath_var=LD_LIBRARY_PATH
11148 shlibpath_overrides_runpath=yes
11149 hardcode_into_libs=yes
11150 ;;
11151
11152 newsos6)
11153 version_type=linux # correct to gnu/linux during the next big refactor
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=yes
11157 ;;
11158
11159 *nto* | *qnx*)
11160 version_type=qnx
11161 need_lib_prefix=no
11162 need_version=no
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LD_LIBRARY_PATH
11166 shlibpath_overrides_runpath=no
11167 hardcode_into_libs=yes
11168 dynamic_linker='ldqnx.so'
11169 ;;
11170
11171 openbsd*)
11172 version_type=sunos
11173 sys_lib_dlsearch_path_spec="/usr/lib"
11174 need_lib_prefix=no
11175 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11176 case $host_os in
11177 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11178 *) need_version=no ;;
11179 esac
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11184 case $host_os in
11185 openbsd2.[89] | openbsd2.[89].*)
11186 shlibpath_overrides_runpath=no
11187 ;;
11188 *)
11189 shlibpath_overrides_runpath=yes
11190 ;;
11191 esac
11192 else
11193 shlibpath_overrides_runpath=yes
11194 fi
11195 ;;
11196
11197 os2*)
11198 libname_spec='$name'
11199 shrext_cmds=".dll"
11200 need_lib_prefix=no
11201 library_names_spec='$libname${shared_ext} $libname.a'
11202 dynamic_linker='OS/2 ld.exe'
11203 shlibpath_var=LIBPATH
11204 ;;
11205
11206 osf3* | osf4* | osf5*)
11207 version_type=osf
11208 need_lib_prefix=no
11209 need_version=no
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11214 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11215 ;;
11216
11217 rdos*)
11218 dynamic_linker=no
11219 ;;
11220
11221 solaris*)
11222 version_type=linux # correct to gnu/linux during the next big refactor
11223 need_lib_prefix=no
11224 need_version=no
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11230 # ldd complains unless libraries are executable
11231 postinstall_cmds='chmod +x $lib'
11232 ;;
11233
11234 sunos4*)
11235 version_type=sunos
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11237 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11238 shlibpath_var=LD_LIBRARY_PATH
11239 shlibpath_overrides_runpath=yes
11240 if test "$with_gnu_ld" = yes; then
11241 need_lib_prefix=no
11242 fi
11243 need_version=yes
11244 ;;
11245
11246 sysv4 | sysv4.3*)
11247 version_type=linux # correct to gnu/linux during the next big refactor
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 case $host_vendor in
11252 sni)
11253 shlibpath_overrides_runpath=no
11254 need_lib_prefix=no
11255 runpath_var=LD_RUN_PATH
11256 ;;
11257 siemens)
11258 need_lib_prefix=no
11259 ;;
11260 motorola)
11261 need_lib_prefix=no
11262 need_version=no
11263 shlibpath_overrides_runpath=no
11264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11265 ;;
11266 esac
11267 ;;
11268
11269 sysv4*MP*)
11270 if test -d /usr/nec ;then
11271 version_type=linux # correct to gnu/linux during the next big refactor
11272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11273 soname_spec='$libname${shared_ext}.$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11275 fi
11276 ;;
11277
11278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11279 version_type=freebsd-elf
11280 need_lib_prefix=no
11281 need_version=no
11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11283 soname_spec='${libname}${release}${shared_ext}$major'
11284 shlibpath_var=LD_LIBRARY_PATH
11285 shlibpath_overrides_runpath=yes
11286 hardcode_into_libs=yes
11287 if test "$with_gnu_ld" = yes; then
11288 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11289 else
11290 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11291 case $host_os in
11292 sco3.2v5*)
11293 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11294 ;;
11295 esac
11296 fi
11297 sys_lib_dlsearch_path_spec='/usr/lib'
11298 ;;
11299
11300 tpf*)
11301 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11302 version_type=linux # correct to gnu/linux during the next big refactor
11303 need_lib_prefix=no
11304 need_version=no
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306 shlibpath_var=LD_LIBRARY_PATH
11307 shlibpath_overrides_runpath=no
11308 hardcode_into_libs=yes
11309 ;;
11310
11311 uts4*)
11312 version_type=linux # correct to gnu/linux during the next big refactor
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 ;;
11317
11318 *)
11319 dynamic_linker=no
11320 ;;
11321 esac
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11323 $as_echo "$dynamic_linker" >&6; }
11324 test "$dynamic_linker" = no && can_build_shared=no
11325
11326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11327 if test "$GCC" = yes; then
11328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11329 fi
11330
11331 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11332 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11333 fi
11334 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11335 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11336 fi
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11430 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11431 hardcode_action=
11432 if test -n "$hardcode_libdir_flag_spec" ||
11433 test -n "$runpath_var" ||
11434 test "X$hardcode_automatic" = "Xyes" ; then
11435
11436 # We can hardcode non-existent directories.
11437 if test "$hardcode_direct" != no &&
11438 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11439 # have to relink, otherwise we might link with an installed library
11440 # when we should be linking with a yet-to-be-installed one
11441 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11442 test "$hardcode_minus_L" != no; then
11443 # Linking always hardcodes the temporary library directory.
11444 hardcode_action=relink
11445 else
11446 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11447 hardcode_action=immediate
11448 fi
11449 else
11450 # We cannot hardcode anything, or else we can only hardcode existing
11451 # directories.
11452 hardcode_action=unsupported
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11455 $as_echo "$hardcode_action" >&6; }
11456
11457 if test "$hardcode_action" = relink ||
11458 test "$inherit_rpath" = yes; then
11459 # Fast installation is not supported
11460 enable_fast_install=no
11461 elif test "$shlibpath_overrides_runpath" = yes ||
11462 test "$enable_shared" = no; then
11463 # Fast installation is not necessary
11464 enable_fast_install=needless
11465 fi
11466
11467
11468
11469
11470
11471
11472 if test "x$enable_dlopen" != xyes; then
11473 enable_dlopen=unknown
11474 enable_dlopen_self=unknown
11475 enable_dlopen_self_static=unknown
11476 else
11477 lt_cv_dlopen=no
11478 lt_cv_dlopen_libs=
11479
11480 case $host_os in
11481 beos*)
11482 lt_cv_dlopen="load_add_on"
11483 lt_cv_dlopen_libs=
11484 lt_cv_dlopen_self=yes
11485 ;;
11486
11487 mingw* | pw32* | cegcc*)
11488 lt_cv_dlopen="LoadLibrary"
11489 lt_cv_dlopen_libs=
11490 ;;
11491
11492 cygwin*)
11493 lt_cv_dlopen="dlopen"
11494 lt_cv_dlopen_libs=
11495 ;;
11496
11497 darwin*)
11498 # if libdl is installed we need to link against it
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11500 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11501 if ${ac_cv_lib_dl_dlopen+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 ac_check_lib_save_LIBS=$LIBS
11505 LIBS="-ldl $LIBS"
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11508
11509 /* Override any GCC internal prototype to avoid an error.
11510 Use char because int might match the return type of a GCC
11511 builtin and then its argument prototype would still apply. */
11512 #ifdef __cplusplus
11513 extern "C"
11514 #endif
11515 char dlopen ();
11516 int
11517 main ()
11518 {
11519 return dlopen ();
11520 ;
11521 return 0;
11522 }
11523 _ACEOF
11524 if ac_fn_c_try_link "$LINENO"; then :
11525 ac_cv_lib_dl_dlopen=yes
11526 else
11527 ac_cv_lib_dl_dlopen=no
11528 fi
11529 rm -f core conftest.err conftest.$ac_objext \
11530 conftest$ac_exeext conftest.$ac_ext
11531 LIBS=$ac_check_lib_save_LIBS
11532 fi
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11534 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11535 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11537 else
11538
11539 lt_cv_dlopen="dyld"
11540 lt_cv_dlopen_libs=
11541 lt_cv_dlopen_self=yes
11542
11543 fi
11544
11545 ;;
11546
11547 *)
11548 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11549 if test "x$ac_cv_func_shl_load" = xyes; then :
11550 lt_cv_dlopen="shl_load"
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11553 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11554 if ${ac_cv_lib_dld_shl_load+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 ac_check_lib_save_LIBS=$LIBS
11558 LIBS="-ldld $LIBS"
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563 Use char because int might match the return type of a GCC
11564 builtin and then its argument prototype would still apply. */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char shl_load ();
11569 int
11570 main ()
11571 {
11572 return shl_load ();
11573 ;
11574 return 0;
11575 }
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"; then :
11578 ac_cv_lib_dld_shl_load=yes
11579 else
11580 ac_cv_lib_dld_shl_load=no
11581 fi
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11587 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11588 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11589 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11590 else
11591 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11592 if test "x$ac_cv_func_dlopen" = xyes; then :
11593 lt_cv_dlopen="dlopen"
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11597 if ${ac_cv_lib_dl_dlopen+:} false; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 ac_check_lib_save_LIBS=$LIBS
11601 LIBS="-ldl $LIBS"
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11604
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char dlopen ();
11612 int
11613 main ()
11614 {
11615 return dlopen ();
11616 ;
11617 return 0;
11618 }
11619 _ACEOF
11620 if ac_fn_c_try_link "$LINENO"; then :
11621 ac_cv_lib_dl_dlopen=yes
11622 else
11623 ac_cv_lib_dl_dlopen=no
11624 fi
11625 rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_check_lib_save_LIBS
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11631 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11635 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11636 if ${ac_cv_lib_svld_dlopen+:} false; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 ac_check_lib_save_LIBS=$LIBS
11640 LIBS="-lsvld $LIBS"
11641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 /* end confdefs.h. */
11643
11644 /* Override any GCC internal prototype to avoid an error.
11645 Use char because int might match the return type of a GCC
11646 builtin and then its argument prototype would still apply. */
11647 #ifdef __cplusplus
11648 extern "C"
11649 #endif
11650 char dlopen ();
11651 int
11652 main ()
11653 {
11654 return dlopen ();
11655 ;
11656 return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"; then :
11660 ac_cv_lib_svld_dlopen=yes
11661 else
11662 ac_cv_lib_svld_dlopen=no
11663 fi
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_lib_save_LIBS
11667 fi
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11669 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11670 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11671 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11674 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11675 if ${ac_cv_lib_dld_dld_link+:} false; then :
11676 $as_echo_n "(cached) " >&6
11677 else
11678 ac_check_lib_save_LIBS=$LIBS
11679 LIBS="-ldld $LIBS"
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11682
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply. */
11686 #ifdef __cplusplus
11687 extern "C"
11688 #endif
11689 char dld_link ();
11690 int
11691 main ()
11692 {
11693 return dld_link ();
11694 ;
11695 return 0;
11696 }
11697 _ACEOF
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 ac_cv_lib_dld_dld_link=yes
11700 else
11701 ac_cv_lib_dld_dld_link=no
11702 fi
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11706 fi
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11708 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11709 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11710 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11711 fi
11712
11713
11714 fi
11715
11716
11717 fi
11718
11719
11720 fi
11721
11722
11723 fi
11724
11725
11726 fi
11727
11728 ;;
11729 esac
11730
11731 if test "x$lt_cv_dlopen" != xno; then
11732 enable_dlopen=yes
11733 else
11734 enable_dlopen=no
11735 fi
11736
11737 case $lt_cv_dlopen in
11738 dlopen)
11739 save_CPPFLAGS="$CPPFLAGS"
11740 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11741
11742 save_LDFLAGS="$LDFLAGS"
11743 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11744
11745 save_LIBS="$LIBS"
11746 LIBS="$lt_cv_dlopen_libs $LIBS"
11747
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11749 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11750 if ${lt_cv_dlopen_self+:} false; then :
11751 $as_echo_n "(cached) " >&6
11752 else
11753 if test "$cross_compiling" = yes; then :
11754 lt_cv_dlopen_self=cross
11755 else
11756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11757 lt_status=$lt_dlunknown
11758 cat > conftest.$ac_ext <<_LT_EOF
11759 #line $LINENO "configure"
11760 #include "confdefs.h"
11761
11762 #if HAVE_DLFCN_H
11763 #include <dlfcn.h>
11764 #endif
11765
11766 #include <stdio.h>
11767
11768 #ifdef RTLD_GLOBAL
11769 # define LT_DLGLOBAL RTLD_GLOBAL
11770 #else
11771 # ifdef DL_GLOBAL
11772 # define LT_DLGLOBAL DL_GLOBAL
11773 # else
11774 # define LT_DLGLOBAL 0
11775 # endif
11776 #endif
11777
11778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11779 find out it does not work in some platform. */
11780 #ifndef LT_DLLAZY_OR_NOW
11781 # ifdef RTLD_LAZY
11782 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11783 # else
11784 # ifdef DL_LAZY
11785 # define LT_DLLAZY_OR_NOW DL_LAZY
11786 # else
11787 # ifdef RTLD_NOW
11788 # define LT_DLLAZY_OR_NOW RTLD_NOW
11789 # else
11790 # ifdef DL_NOW
11791 # define LT_DLLAZY_OR_NOW DL_NOW
11792 # else
11793 # define LT_DLLAZY_OR_NOW 0
11794 # endif
11795 # endif
11796 # endif
11797 # endif
11798 #endif
11799
11800 /* When -fvisbility=hidden is used, assume the code has been annotated
11801 correspondingly for the symbols needed. */
11802 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11803 int fnord () __attribute__((visibility("default")));
11804 #endif
11805
11806 int fnord () { return 42; }
11807 int main ()
11808 {
11809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11810 int status = $lt_dlunknown;
11811
11812 if (self)
11813 {
11814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11815 else
11816 {
11817 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11818 else puts (dlerror ());
11819 }
11820 /* dlclose (self); */
11821 }
11822 else
11823 puts (dlerror ());
11824
11825 return status;
11826 }
11827 _LT_EOF
11828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11832 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11833 (./conftest; exit; ) >&5 2>/dev/null
11834 lt_status=$?
11835 case x$lt_status in
11836 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11837 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11838 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11839 esac
11840 else :
11841 # compilation failed
11842 lt_cv_dlopen_self=no
11843 fi
11844 fi
11845 rm -fr conftest*
11846
11847
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11850 $as_echo "$lt_cv_dlopen_self" >&6; }
11851
11852 if test "x$lt_cv_dlopen_self" = xyes; then
11853 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11855 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11856 if ${lt_cv_dlopen_self_static+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 if test "$cross_compiling" = yes; then :
11860 lt_cv_dlopen_self_static=cross
11861 else
11862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11863 lt_status=$lt_dlunknown
11864 cat > conftest.$ac_ext <<_LT_EOF
11865 #line $LINENO "configure"
11866 #include "confdefs.h"
11867
11868 #if HAVE_DLFCN_H
11869 #include <dlfcn.h>
11870 #endif
11871
11872 #include <stdio.h>
11873
11874 #ifdef RTLD_GLOBAL
11875 # define LT_DLGLOBAL RTLD_GLOBAL
11876 #else
11877 # ifdef DL_GLOBAL
11878 # define LT_DLGLOBAL DL_GLOBAL
11879 # else
11880 # define LT_DLGLOBAL 0
11881 # endif
11882 #endif
11883
11884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11885 find out it does not work in some platform. */
11886 #ifndef LT_DLLAZY_OR_NOW
11887 # ifdef RTLD_LAZY
11888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11889 # else
11890 # ifdef DL_LAZY
11891 # define LT_DLLAZY_OR_NOW DL_LAZY
11892 # else
11893 # ifdef RTLD_NOW
11894 # define LT_DLLAZY_OR_NOW RTLD_NOW
11895 # else
11896 # ifdef DL_NOW
11897 # define LT_DLLAZY_OR_NOW DL_NOW
11898 # else
11899 # define LT_DLLAZY_OR_NOW 0
11900 # endif
11901 # endif
11902 # endif
11903 # endif
11904 #endif
11905
11906 /* When -fvisbility=hidden is used, assume the code has been annotated
11907 correspondingly for the symbols needed. */
11908 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11909 int fnord () __attribute__((visibility("default")));
11910 #endif
11911
11912 int fnord () { return 42; }
11913 int main ()
11914 {
11915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11916 int status = $lt_dlunknown;
11917
11918 if (self)
11919 {
11920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11921 else
11922 {
11923 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11924 else puts (dlerror ());
11925 }
11926 /* dlclose (self); */
11927 }
11928 else
11929 puts (dlerror ());
11930
11931 return status;
11932 }
11933 _LT_EOF
11934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11935 (eval $ac_link) 2>&5
11936 ac_status=$?
11937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11938 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11939 (./conftest; exit; ) >&5 2>/dev/null
11940 lt_status=$?
11941 case x$lt_status in
11942 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11943 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11944 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11945 esac
11946 else :
11947 # compilation failed
11948 lt_cv_dlopen_self_static=no
11949 fi
11950 fi
11951 rm -fr conftest*
11952
11953
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11956 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11957 fi
11958
11959 CPPFLAGS="$save_CPPFLAGS"
11960 LDFLAGS="$save_LDFLAGS"
11961 LIBS="$save_LIBS"
11962 ;;
11963 esac
11964
11965 case $lt_cv_dlopen_self in
11966 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11967 *) enable_dlopen_self=unknown ;;
11968 esac
11969
11970 case $lt_cv_dlopen_self_static in
11971 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11972 *) enable_dlopen_self_static=unknown ;;
11973 esac
11974 fi
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992 striplib=
11993 old_striplib=
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11995 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11996 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11997 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11998 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12000 $as_echo "yes" >&6; }
12001 else
12002 # FIXME - insert some real tests, host_os isn't really good enough
12003 case $host_os in
12004 darwin*)
12005 if test -n "$STRIP" ; then
12006 striplib="$STRIP -x"
12007 old_striplib="$STRIP -S"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12009 $as_echo "yes" >&6; }
12010 else
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014 ;;
12015 *)
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12018 ;;
12019 esac
12020 fi
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033 # Report which library types will actually be built
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12035 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12037 $as_echo "$can_build_shared" >&6; }
12038
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12040 $as_echo_n "checking whether to build shared libraries... " >&6; }
12041 test "$can_build_shared" = "no" && enable_shared=no
12042
12043 # On AIX, shared libraries and static libraries use the same namespace, and
12044 # are all built from PIC.
12045 case $host_os in
12046 aix3*)
12047 test "$enable_shared" = yes && enable_static=no
12048 if test -n "$RANLIB"; then
12049 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12050 postinstall_cmds='$RANLIB $lib'
12051 fi
12052 ;;
12053
12054 aix[4-9]*)
12055 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12056 test "$enable_shared" = yes && enable_static=no
12057 fi
12058 ;;
12059 esac
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12061 $as_echo "$enable_shared" >&6; }
12062
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12064 $as_echo_n "checking whether to build static libraries... " >&6; }
12065 # Make sure either enable_shared or enable_static is yes.
12066 test "$enable_shared" = yes || enable_static=yes
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12068 $as_echo "$enable_static" >&6; }
12069
12070
12071
12072
12073 fi
12074 ac_ext=c
12075 ac_cpp='$CPP $CPPFLAGS'
12076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12079
12080 CC="$lt_save_CC"
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096 ac_config_commands="$ac_config_commands libtool"
12097
12098
12099
12100
12101 # Only expand once:
12102
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12105 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12106 if ${libltdl_cv_shlibext+:} false; then :
12107 $as_echo_n "(cached) " >&6
12108 else
12109
12110 module=yes
12111 eval libltdl_cv_shlibext=$shrext_cmds
12112 module=no
12113 eval libltdl_cv_shrext=$shrext_cmds
12114
12115 fi
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12117 $as_echo "$libltdl_cv_shlibext" >&6; }
12118 if test -n "$libltdl_cv_shlibext"; then
12119
12120 cat >>confdefs.h <<_ACEOF
12121 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12122 _ACEOF
12123
12124 fi
12125 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12126
12127 cat >>confdefs.h <<_ACEOF
12128 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12129 _ACEOF
12130
12131 fi
12132
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12134 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12135 if ${lt_cv_module_path_var+:} false; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 lt_cv_module_path_var="$shlibpath_var"
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12141 $as_echo "$lt_cv_module_path_var" >&6; }
12142 if test -n "$lt_cv_module_path_var"; then
12143
12144 cat >>confdefs.h <<_ACEOF
12145 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12146 _ACEOF
12147
12148 fi
12149
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12151 $as_echo_n "checking for the default library search path... " >&6; }
12152 if ${lt_cv_sys_dlsearch_path+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12156 fi
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12158 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12159 if test -n "$lt_cv_sys_dlsearch_path"; then
12160 sys_dlsearch_path=
12161 for dir in $lt_cv_sys_dlsearch_path; do
12162 if test -z "$sys_dlsearch_path"; then
12163 sys_dlsearch_path="$dir"
12164 else
12165 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12166 fi
12167 done
12168
12169 cat >>confdefs.h <<_ACEOF
12170 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12171 _ACEOF
12172
12173 fi
12174
12175
12176 LT_DLLOADERS=
12177
12178
12179 ac_ext=c
12180 ac_cpp='$CPP $CPPFLAGS'
12181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12184
12185
12186 LIBADD_DLOPEN=
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12188 $as_echo_n "checking for library containing dlopen... " >&6; }
12189 if ${ac_cv_search_dlopen+:} false; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192 ac_func_search_save_LIBS=$LIBS
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195
12196 /* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 char dlopen ();
12203 int
12204 main ()
12205 {
12206 return dlopen ();
12207 ;
12208 return 0;
12209 }
12210 _ACEOF
12211 for ac_lib in '' dl; do
12212 if test -z "$ac_lib"; then
12213 ac_res="none required"
12214 else
12215 ac_res=-l$ac_lib
12216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12217 fi
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_search_dlopen=$ac_res
12220 fi
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext
12223 if ${ac_cv_search_dlopen+:} false; then :
12224 break
12225 fi
12226 done
12227 if ${ac_cv_search_dlopen+:} false; then :
12228
12229 else
12230 ac_cv_search_dlopen=no
12231 fi
12232 rm conftest.$ac_ext
12233 LIBS=$ac_func_search_save_LIBS
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12236 $as_echo "$ac_cv_search_dlopen" >&6; }
12237 ac_res=$ac_cv_search_dlopen
12238 if test "$ac_res" != no; then :
12239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12240
12241 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12242
12243 if test "$ac_cv_search_dlopen" != "none required" ; then
12244 LIBADD_DLOPEN="-ldl"
12245 fi
12246 libltdl_cv_lib_dl_dlopen="yes"
12247 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12248 else
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 #if HAVE_DLFCN_H
12252 # include <dlfcn.h>
12253 #endif
12254
12255 int
12256 main ()
12257 {
12258 dlopen(0, 0);
12259 ;
12260 return 0;
12261 }
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"; then :
12264
12265 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12266
12267 libltdl_cv_func_dlopen="yes"
12268 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12269 else
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12271 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12272 if ${ac_cv_lib_svld_dlopen+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-lsvld $LIBS"
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12279
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char dlopen ();
12287 int
12288 main ()
12289 {
12290 return dlopen ();
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_lib_svld_dlopen=yes
12297 else
12298 ac_cv_lib_svld_dlopen=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12305 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12306 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12307
12308 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12309
12310 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12311 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12312 fi
12313
12314 fi
12315 rm -f core conftest.err conftest.$ac_objext \
12316 conftest$ac_exeext conftest.$ac_ext
12317 fi
12318
12319 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12320 then
12321 lt_save_LIBS="$LIBS"
12322 LIBS="$LIBS $LIBADD_DLOPEN"
12323 for ac_func in dlerror
12324 do :
12325 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12326 if test "x$ac_cv_func_dlerror" = xyes; then :
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_DLERROR 1
12329 _ACEOF
12330
12331 fi
12332 done
12333
12334 LIBS="$lt_save_LIBS"
12335 fi
12336
12337
12338 LIBADD_SHL_LOAD=
12339 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12340 if test "x$ac_cv_func_shl_load" = xyes; then :
12341
12342 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12343
12344 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12345 else
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12347 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12348 if ${ac_cv_lib_dld_shl_load+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 ac_check_lib_save_LIBS=$LIBS
12352 LIBS="-ldld $LIBS"
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355
12356 /* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
12359 #ifdef __cplusplus
12360 extern "C"
12361 #endif
12362 char shl_load ();
12363 int
12364 main ()
12365 {
12366 return shl_load ();
12367 ;
12368 return 0;
12369 }
12370 _ACEOF
12371 if ac_fn_c_try_link "$LINENO"; then :
12372 ac_cv_lib_dld_shl_load=yes
12373 else
12374 ac_cv_lib_dld_shl_load=no
12375 fi
12376 rm -f core conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12381 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12382 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12383
12384 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12385
12386 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12387 LIBADD_SHL_LOAD="-ldld"
12388 fi
12389
12390 fi
12391
12392
12393
12394 case $host_os in
12395 darwin[1567].*)
12396 # We only want this for pre-Mac OS X 10.4.
12397 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12398 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12399
12400 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12401
12402 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12403 fi
12404
12405 ;;
12406 beos*)
12407 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12408 ;;
12409 cygwin* | mingw* | os2* | pw32*)
12410 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12411 "
12412 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12413 ac_have_decl=1
12414 else
12415 ac_have_decl=0
12416 fi
12417
12418 cat >>confdefs.h <<_ACEOF
12419 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12420 _ACEOF
12421
12422 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12423 ;;
12424 esac
12425
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12427 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12428 if ${ac_cv_lib_dld_dld_link+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 ac_check_lib_save_LIBS=$LIBS
12432 LIBS="-ldld $LIBS"
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12439 #ifdef __cplusplus
12440 extern "C"
12441 #endif
12442 char dld_link ();
12443 int
12444 main ()
12445 {
12446 return dld_link ();
12447 ;
12448 return 0;
12449 }
12450 _ACEOF
12451 if ac_fn_c_try_link "$LINENO"; then :
12452 ac_cv_lib_dld_dld_link=yes
12453 else
12454 ac_cv_lib_dld_dld_link=no
12455 fi
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 LIBS=$ac_check_lib_save_LIBS
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12461 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12462 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12463
12464 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12465
12466 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12467 fi
12468
12469
12470
12471
12472 LT_DLPREOPEN=
12473 if test -n "$LT_DLLOADERS"
12474 then
12475 for lt_loader in $LT_DLLOADERS; do
12476 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12477 done
12478
12479 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12480
12481 fi
12482
12483
12484 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12485
12486
12487 ac_ext=c
12488 ac_cpp='$CPP $CPPFLAGS'
12489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12492
12493
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12495 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12496 if ${lt_cv_sys_symbol_underscore+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 lt_cv_sys_symbol_underscore=no
12500 cat > conftest.$ac_ext <<_LT_EOF
12501 void nm_test_func(){}
12502 int main(){nm_test_func;return 0;}
12503 _LT_EOF
12504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12505 (eval $ac_compile) 2>&5
12506 ac_status=$?
12507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12508 test $ac_status = 0; }; then
12509 # Now try to grab the symbols.
12510 ac_nlist=conftest.nm
12511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12512 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12513 ac_status=$?
12514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12515 test $ac_status = 0; } && test -s "$ac_nlist"; then
12516 # See whether the symbols have a leading underscore.
12517 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12518 lt_cv_sys_symbol_underscore=yes
12519 else
12520 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12521 :
12522 else
12523 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12524 fi
12525 fi
12526 else
12527 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12528 fi
12529 else
12530 echo "configure: failed program was:" >&5
12531 cat conftest.c >&5
12532 fi
12533 rm -rf conftest*
12534
12535 fi
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12537 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12538 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12539
12540
12541 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12542 if test x"$libltdl_cv_func_dlopen" = xyes ||
12543 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12545 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12546 if ${libltdl_cv_need_uscore+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 libltdl_cv_need_uscore=unknown
12550 save_LIBS="$LIBS"
12551 LIBS="$LIBS $LIBADD_DLOPEN"
12552 if test "$cross_compiling" = yes; then :
12553 libltdl_cv_need_uscore=cross
12554 else
12555 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12556 lt_status=$lt_dlunknown
12557 cat > conftest.$ac_ext <<_LT_EOF
12558 #line $LINENO "configure"
12559 #include "confdefs.h"
12560
12561 #if HAVE_DLFCN_H
12562 #include <dlfcn.h>
12563 #endif
12564
12565 #include <stdio.h>
12566
12567 #ifdef RTLD_GLOBAL
12568 # define LT_DLGLOBAL RTLD_GLOBAL
12569 #else
12570 # ifdef DL_GLOBAL
12571 # define LT_DLGLOBAL DL_GLOBAL
12572 # else
12573 # define LT_DLGLOBAL 0
12574 # endif
12575 #endif
12576
12577 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12578 find out it does not work in some platform. */
12579 #ifndef LT_DLLAZY_OR_NOW
12580 # ifdef RTLD_LAZY
12581 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12582 # else
12583 # ifdef DL_LAZY
12584 # define LT_DLLAZY_OR_NOW DL_LAZY
12585 # else
12586 # ifdef RTLD_NOW
12587 # define LT_DLLAZY_OR_NOW RTLD_NOW
12588 # else
12589 # ifdef DL_NOW
12590 # define LT_DLLAZY_OR_NOW DL_NOW
12591 # else
12592 # define LT_DLLAZY_OR_NOW 0
12593 # endif
12594 # endif
12595 # endif
12596 # endif
12597 #endif
12598
12599 /* When -fvisbility=hidden is used, assume the code has been annotated
12600 correspondingly for the symbols needed. */
12601 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12602 int fnord () __attribute__((visibility("default")));
12603 #endif
12604
12605 int fnord () { return 42; }
12606 int main ()
12607 {
12608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12609 int status = $lt_dlunknown;
12610
12611 if (self)
12612 {
12613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12614 else
12615 {
12616 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12617 else puts (dlerror ());
12618 }
12619 /* dlclose (self); */
12620 }
12621 else
12622 puts (dlerror ());
12623
12624 return status;
12625 }
12626 _LT_EOF
12627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12628 (eval $ac_link) 2>&5
12629 ac_status=$?
12630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12631 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12632 (./conftest; exit; ) >&5 2>/dev/null
12633 lt_status=$?
12634 case x$lt_status in
12635 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12636 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12637 x$lt_dlunknown|x*) ;;
12638 esac
12639 else :
12640 # compilation failed
12641
12642 fi
12643 fi
12644 rm -fr conftest*
12645
12646 LIBS="$save_LIBS"
12647
12648 fi
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12650 $as_echo "$libltdl_cv_need_uscore" >&6; }
12651 fi
12652 fi
12653
12654 if test x"$libltdl_cv_need_uscore" = xyes; then
12655
12656 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12657
12658 fi
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12661 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12662 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 # PORTME does your system automatically load deplibs for dlopen?
12666 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12667 # For now, we just catch OSes we know something about -- in the
12668 # future, we'll try test this programmatically.
12669 lt_cv_sys_dlopen_deplibs=unknown
12670 case $host_os in
12671 aix3*|aix4.1.*|aix4.2.*)
12672 # Unknown whether this is true for these versions of AIX, but
12673 # we want this `case' here to explicitly catch those versions.
12674 lt_cv_sys_dlopen_deplibs=unknown
12675 ;;
12676 aix[4-9]*)
12677 lt_cv_sys_dlopen_deplibs=yes
12678 ;;
12679 amigaos*)
12680 case $host_cpu in
12681 powerpc)
12682 lt_cv_sys_dlopen_deplibs=no
12683 ;;
12684 esac
12685 ;;
12686 darwin*)
12687 # Assuming the user has installed a libdl from somewhere, this is true
12688 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12689 lt_cv_sys_dlopen_deplibs=yes
12690 ;;
12691 freebsd* | dragonfly*)
12692 lt_cv_sys_dlopen_deplibs=yes
12693 ;;
12694 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12695 # GNU and its variants, using gnu ld.so (Glibc)
12696 lt_cv_sys_dlopen_deplibs=yes
12697 ;;
12698 hpux10*|hpux11*)
12699 lt_cv_sys_dlopen_deplibs=yes
12700 ;;
12701 interix*)
12702 lt_cv_sys_dlopen_deplibs=yes
12703 ;;
12704 irix[12345]*|irix6.[01]*)
12705 # Catch all versions of IRIX before 6.2, and indicate that we don't
12706 # know how it worked for any of those versions.
12707 lt_cv_sys_dlopen_deplibs=unknown
12708 ;;
12709 irix*)
12710 # The case above catches anything before 6.2, and it's known that
12711 # at 6.2 and later dlopen does load deplibs.
12712 lt_cv_sys_dlopen_deplibs=yes
12713 ;;
12714 netbsd*)
12715 lt_cv_sys_dlopen_deplibs=yes
12716 ;;
12717 openbsd*)
12718 lt_cv_sys_dlopen_deplibs=yes
12719 ;;
12720 osf[1234]*)
12721 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12722 # it did *not* use an RPATH in a shared library to find objects the
12723 # library depends on, so we explicitly say `no'.
12724 lt_cv_sys_dlopen_deplibs=no
12725 ;;
12726 osf5.0|osf5.0a|osf5.1)
12727 # dlopen *does* load deplibs and with the right loader patch applied
12728 # it even uses RPATH in a shared library to search for shared objects
12729 # that the library depends on, but there's no easy way to know if that
12730 # patch is installed. Since this is the case, all we can really
12731 # say is unknown -- it depends on the patch being installed. If
12732 # it is, this changes to `yes'. Without it, it would be `no'.
12733 lt_cv_sys_dlopen_deplibs=unknown
12734 ;;
12735 osf*)
12736 # the two cases above should catch all versions of osf <= 5.1. Read
12737 # the comments above for what we know about them.
12738 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12739 # is used to find them so we can finally say `yes'.
12740 lt_cv_sys_dlopen_deplibs=yes
12741 ;;
12742 qnx*)
12743 lt_cv_sys_dlopen_deplibs=yes
12744 ;;
12745 solaris*)
12746 lt_cv_sys_dlopen_deplibs=yes
12747 ;;
12748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12749 libltdl_cv_sys_dlopen_deplibs=yes
12750 ;;
12751 esac
12752
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12755 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12756 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12757
12758 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12759
12760 fi
12761
12762 :
12763
12764 for ac_header in argz.h
12765 do :
12766 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12767 "
12768 if test "x$ac_cv_header_argz_h" = xyes; then :
12769 cat >>confdefs.h <<_ACEOF
12770 #define HAVE_ARGZ_H 1
12771 _ACEOF
12772
12773 fi
12774
12775 done
12776
12777
12778 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12779 # include <argz.h>
12780 #endif
12781 "
12782 if test "x$ac_cv_type_error_t" = xyes; then :
12783
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_ERROR_T 1
12786 _ACEOF
12787
12788
12789 else
12790
12791 $as_echo "#define error_t int" >>confdefs.h
12792
12793
12794 $as_echo "#define __error_t_defined 1" >>confdefs.h
12795
12796 fi
12797
12798
12799 ARGZ_H=
12800 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12801 argz_next argz_stringify
12802 do :
12803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12805 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12806 cat >>confdefs.h <<_ACEOF
12807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12808 _ACEOF
12809
12810 else
12811 ARGZ_H=argz.h;
12812
12813 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12814
12815 fi
12816 done
12817
12818
12819 if test -z "$ARGZ_H"; then :
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12821 $as_echo_n "checking if argz actually works... " >&6; }
12822 if ${lt_cv_sys_argz_works+:} false; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 case $host_os in #(
12826 *cygwin*)
12827 lt_cv_sys_argz_works=no
12828 if test "$cross_compiling" != no; then
12829 lt_cv_sys_argz_works="guessing no"
12830 else
12831 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12832 save_IFS=$IFS
12833 IFS=-.
12834 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12835 IFS=$save_IFS
12836 lt_os_major=${2-0}
12837 lt_os_minor=${3-0}
12838 lt_os_micro=${4-0}
12839 if test "$lt_os_major" -gt 1 \
12840 || { test "$lt_os_major" -eq 1 \
12841 && { test "$lt_os_minor" -gt 5 \
12842 || { test "$lt_os_minor" -eq 5 \
12843 && test "$lt_os_micro" -gt 24; }; }; }; then
12844 lt_cv_sys_argz_works=yes
12845 fi
12846 fi
12847 ;; #(
12848 *) lt_cv_sys_argz_works=yes ;;
12849 esac
12850 fi
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12852 $as_echo "$lt_cv_sys_argz_works" >&6; }
12853 if test "$lt_cv_sys_argz_works" = yes; then :
12854
12855 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12856
12857 else
12858 ARGZ_H=argz.h
12859
12860
12861 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12862
12863 fi
12864 fi
12865
12866
12867
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12869 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12870 if ${libltdl_cv_preloaded_symbols+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12874 libltdl_cv_preloaded_symbols=yes
12875 else
12876 libltdl_cv_preloaded_symbols=no
12877 fi
12878
12879 fi
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12881 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12882 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12883
12884 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12885
12886 fi
12887
12888 # Set options
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900 # Check whether --with-included_ltdl was given.
12901 if test "${with_included_ltdl+set}" = set; then :
12902 withval=$with_included_ltdl;
12903 fi
12904
12905
12906 if test "x$with_included_ltdl" != xyes; then
12907 # We are not being forced to use the included libltdl sources, so
12908 # decide whether there is a useful installed version we can use.
12909 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12910
12911 "
12912 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12913 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12914 #include <ltdl.h>
12915 "
12916 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12918 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12919 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12920 $as_echo_n "(cached) " >&6
12921 else
12922 ac_check_lib_save_LIBS=$LIBS
12923 LIBS="-lltdl $LIBS"
12924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926
12927 /* Override any GCC internal prototype to avoid an error.
12928 Use char because int might match the return type of a GCC
12929 builtin and then its argument prototype would still apply. */
12930 #ifdef __cplusplus
12931 extern "C"
12932 #endif
12933 char lt_dladvise_preload ();
12934 int
12935 main ()
12936 {
12937 return lt_dladvise_preload ();
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_link "$LINENO"; then :
12943 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12944 else
12945 ac_cv_lib_ltdl_lt_dladvise_preload=no
12946 fi
12947 rm -f core conftest.err conftest.$ac_objext \
12948 conftest$ac_exeext conftest.$ac_ext
12949 LIBS=$ac_check_lib_save_LIBS
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12952 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12953 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12954 with_included_ltdl=no
12955 else
12956 with_included_ltdl=yes
12957 fi
12958
12959 else
12960 with_included_ltdl=yes
12961 fi
12962
12963 else
12964 with_included_ltdl=yes
12965 fi
12966
12967
12968 fi
12969
12970
12971
12972
12973 # Check whether --with-ltdl_include was given.
12974 if test "${with_ltdl_include+set}" = set; then :
12975 withval=$with_ltdl_include;
12976 fi
12977
12978
12979 if test -n "$with_ltdl_include"; then
12980 if test -f "$with_ltdl_include/ltdl.h"; then :
12981 else
12982 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12983 fi
12984 else
12985 with_ltdl_include=no
12986 fi
12987
12988
12989 # Check whether --with-ltdl_lib was given.
12990 if test "${with_ltdl_lib+set}" = set; then :
12991 withval=$with_ltdl_lib;
12992 fi
12993
12994
12995 if test -n "$with_ltdl_lib"; then
12996 if test -f "$with_ltdl_lib/libltdl.la"; then :
12997 else
12998 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12999 fi
13000 else
13001 with_ltdl_lib=no
13002 fi
13003
13004 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13005 ,yes,no,no,)
13006 case $enable_ltdl_convenience in
13007 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13008 "") enable_ltdl_convenience=yes
13009 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13010 esac
13011 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13012 LTDLDEPS=$LIBLTDL
13013 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13014
13015
13016
13017
13018
13019 # For backwards non-gettext consistent compatibility...
13020 INCLTDL="$LTDLINCL"
13021
13022
13023 ;;
13024 ,no,no,no,)
13025 # If the included ltdl is not to be used, then use the
13026 # preinstalled libltdl we found.
13027
13028 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
13029
13030 LIBLTDL=-lltdl
13031 LTDLDEPS=
13032 LTDLINCL=
13033 ;;
13034 ,no*,no,*)
13035 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13036 ;;
13037 *) with_included_ltdl=no
13038 LIBLTDL="-L$with_ltdl_lib -lltdl"
13039 LTDLDEPS=
13040 LTDLINCL="-I$with_ltdl_include"
13041 ;;
13042 esac
13043 INCLTDL="$LTDLINCL"
13044
13045 # Report our decision...
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13047 $as_echo_n "checking where to find libltdl headers... " >&6; }
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13049 $as_echo "$LTDLINCL" >&6; }
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13051 $as_echo_n "checking where to find libltdl library... " >&6; }
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13053 $as_echo "$LIBLTDL" >&6; }
13054
13055
13056
13057 # Check whether --enable-ltdl-install was given.
13058 if test "${enable_ltdl_install+set}" = set; then :
13059 enableval=$enable_ltdl_install;
13060 fi
13061
13062
13063 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13064 *yes*) ;;
13065 *) enable_ltdl_convenience=yes ;;
13066 esac
13067
13068 if test x"${enable_ltdl_install-no}" != xno; then
13069 INSTALL_LTDL_TRUE=
13070 INSTALL_LTDL_FALSE='#'
13071 else
13072 INSTALL_LTDL_TRUE='#'
13073 INSTALL_LTDL_FALSE=
13074 fi
13075
13076 if test x"${enable_ltdl_convenience-no}" != xno; then
13077 CONVENIENCE_LTDL_TRUE=
13078 CONVENIENCE_LTDL_FALSE='#'
13079 else
13080 CONVENIENCE_LTDL_TRUE='#'
13081 CONVENIENCE_LTDL_FALSE=
13082 fi
13083
13084
13085
13086
13087
13088
13089 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13090 # the user used. This is so that ltdl.h can pick up the parent projects
13091 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13092 # definitions required by ltdl.c.
13093 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13094
13095
13096
13097 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13098 do :
13099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13100 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13101 "
13102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13103 cat >>confdefs.h <<_ACEOF
13104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13105 _ACEOF
13106
13107 fi
13108
13109 done
13110
13111
13112 for ac_func in closedir opendir readdir
13113 do :
13114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13117 cat >>confdefs.h <<_ACEOF
13118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13119 _ACEOF
13120
13121 else
13122
13123
13124 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13125
13126 fi
13127 done
13128
13129 for ac_func in strlcat strlcpy
13130 do :
13131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13133 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13134 cat >>confdefs.h <<_ACEOF
13135 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13136 _ACEOF
13137
13138 else
13139
13140
13141 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13142
13143 fi
13144 done
13145
13146
13147
13148 cat >>confdefs.h <<_ACEOF
13149 #define LT_LIBEXT "$libext"
13150 _ACEOF
13151
13152
13153 name=
13154 eval "lt_libprefix=\"$libname_spec\""
13155
13156 cat >>confdefs.h <<_ACEOF
13157 #define LT_LIBPREFIX "$lt_libprefix"
13158 _ACEOF
13159
13160
13161 name=ltdl
13162 eval "LTDLOPEN=\"$libname_spec\""
13163
13164
13165
13166
13167
13168
13169
13170
13171 # Only expand once:
13172
13173
13174 LIBTOOL="$LIBTOOL --silent"
13175
13176 # Checks for libraries.
13177
13178
13179 if test "X$CC" != "X"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13181 $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13182 if ${ssp_cv_cc+:} false; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 ssp_old_cflags="$CFLAGS"
13186 CFLAGS="$CFLAGS -fstack-protector"
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189
13190 int
13191 main ()
13192 {
13193
13194 ;
13195 return 0;
13196 }
13197 _ACEOF
13198 if ac_fn_c_try_compile "$LINENO"; then :
13199 ssp_cv_cc=yes
13200 else
13201 ssp_cv_cc=no
13202 fi
13203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13204 CFLAGS="$ssp_old_cflags"
13205
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13208 $as_echo "$ssp_cv_cc" >&6; }
13209 if test $ssp_cv_cc = yes; then
13210 CFLAGS="$CFLAGS -fstack-protector"
13211
13212 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13213
13214 fi
13215 fi
13216
13217
13218
13219
13220
13221
13222 for flag in -fno-strict-aliasing; do
13223 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
13225 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
13226 if eval \${$as_CACHEVAR+:} false; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229
13230 ax_check_save_flags=$CFLAGS
13231 CFLAGS="$CFLAGS $flag"
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234
13235 int
13236 main ()
13237 {
13238
13239 ;
13240 return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_compile "$LINENO"; then :
13244 eval "$as_CACHEVAR=yes"
13245 else
13246 eval "$as_CACHEVAR=no"
13247 fi
13248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249 CFLAGS=$ax_check_save_flags
13250 fi
13251 eval ac_res=\$$as_CACHEVAR
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13253 $as_echo "$ac_res" >&6; }
13254 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13255 if ${CFLAGS+:} false; then :
13256 case " $CFLAGS " in
13257 *" $flag "*)
13258 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
13259 (: CFLAGS already contains $flag) 2>&5
13260 ac_status=$?
13261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13262 test $ac_status = 0; }
13263 ;;
13264 *)
13265 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
13266 (: CFLAGS="$CFLAGS $flag") 2>&5
13267 ac_status=$?
13268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13269 test $ac_status = 0; }
13270 CFLAGS="$CFLAGS $flag"
13271 ;;
13272 esac
13273 else
13274 CFLAGS="$flag"
13275 fi
13276
13277 else
13278 :
13279 fi
13280
13281 done
13282
13283
13284
13285 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13286 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13287
13288 else
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13290 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13291 if ${ac_cv_search_getaddrinfo+:} false; then :
13292 $as_echo_n "(cached) " >&6
13293 else
13294 ac_func_search_save_LIBS=$LIBS
13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h. */
13297
13298 /* Override any GCC internal prototype to avoid an error.
13299 Use char because int might match the return type of a GCC
13300 builtin and then its argument prototype would still apply. */
13301 #ifdef __cplusplus
13302 extern "C"
13303 #endif
13304 char getaddrinfo ();
13305 int
13306 main ()
13307 {
13308 return getaddrinfo ();
13309 ;
13310 return 0;
13311 }
13312 _ACEOF
13313 for ac_lib in '' nsl; do
13314 if test -z "$ac_lib"; then
13315 ac_res="none required"
13316 else
13317 ac_res=-l$ac_lib
13318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13319 fi
13320 if ac_fn_c_try_link "$LINENO"; then :
13321 ac_cv_search_getaddrinfo=$ac_res
13322 fi
13323 rm -f core conftest.err conftest.$ac_objext \
13324 conftest$ac_exeext
13325 if ${ac_cv_search_getaddrinfo+:} false; then :
13326 break
13327 fi
13328 done
13329 if ${ac_cv_search_getaddrinfo+:} false; then :
13330
13331 else
13332 ac_cv_search_getaddrinfo=no
13333 fi
13334 rm conftest.$ac_ext
13335 LIBS=$ac_func_search_save_LIBS
13336 fi
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13338 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13339 ac_res=$ac_cv_search_getaddrinfo
13340 if test "$ac_res" != no; then :
13341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13342
13343 fi
13344
13345 fi
13346
13347 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13348 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13349
13350 else
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13352 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13353 if ${ac_cv_search_getnameinfo+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 ac_func_search_save_LIBS=$LIBS
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13359
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13363 #ifdef __cplusplus
13364 extern "C"
13365 #endif
13366 char getnameinfo ();
13367 int
13368 main ()
13369 {
13370 return getnameinfo ();
13371 ;
13372 return 0;
13373 }
13374 _ACEOF
13375 for ac_lib in '' nsl; do
13376 if test -z "$ac_lib"; then
13377 ac_res="none required"
13378 else
13379 ac_res=-l$ac_lib
13380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13381 fi
13382 if ac_fn_c_try_link "$LINENO"; then :
13383 ac_cv_search_getnameinfo=$ac_res
13384 fi
13385 rm -f core conftest.err conftest.$ac_objext \
13386 conftest$ac_exeext
13387 if ${ac_cv_search_getnameinfo+:} false; then :
13388 break
13389 fi
13390 done
13391 if ${ac_cv_search_getnameinfo+:} false; then :
13392
13393 else
13394 ac_cv_search_getnameinfo=no
13395 fi
13396 rm conftest.$ac_ext
13397 LIBS=$ac_func_search_save_LIBS
13398 fi
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13400 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13401 ac_res=$ac_cv_search_getnameinfo
13402 if test "$ac_res" != no; then :
13403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13404
13405 fi
13406
13407 fi
13408
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13410 $as_echo_n "checking for library containing socket... " >&6; }
13411 if ${ac_cv_search_socket+:} false; then :
13412 $as_echo_n "(cached) " >&6
13413 else
13414 ac_func_search_save_LIBS=$LIBS
13415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416 /* end confdefs.h. */
13417
13418 /* Override any GCC internal prototype to avoid an error.
13419 Use char because int might match the return type of a GCC
13420 builtin and then its argument prototype would still apply. */
13421 #ifdef __cplusplus
13422 extern "C"
13423 #endif
13424 char socket ();
13425 int
13426 main ()
13427 {
13428 return socket ();
13429 ;
13430 return 0;
13431 }
13432 _ACEOF
13433 for ac_lib in '' socket; do
13434 if test -z "$ac_lib"; then
13435 ac_res="none required"
13436 else
13437 ac_res=-l$ac_lib
13438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13439 fi
13440 if ac_fn_c_try_link "$LINENO"; then :
13441 ac_cv_search_socket=$ac_res
13442 fi
13443 rm -f core conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext
13445 if ${ac_cv_search_socket+:} false; then :
13446 break
13447 fi
13448 done
13449 if ${ac_cv_search_socket+:} false; then :
13450
13451 else
13452 ac_cv_search_socket=no
13453 fi
13454 rm conftest.$ac_ext
13455 LIBS=$ac_func_search_save_LIBS
13456 fi
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13458 $as_echo "$ac_cv_search_socket" >&6; }
13459 ac_res=$ac_cv_search_socket
13460 if test "$ac_res" != no; then :
13461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13462
13463 else
13464 as_fn_error $? "socket library not found" "$LINENO" 5
13465 fi
13466
13467 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13468 #include <sys/socket.h>
13469 #include <netdb.h>
13470
13471 "
13472 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13473
13474 cat >>confdefs.h <<_ACEOF
13475 #define HAVE_STRUCT_SOCKADDR_IN 1
13476 _ACEOF
13477
13478
13479 fi
13480 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13481 #include <sys/socket.h>
13482 #include <netdb.h>
13483
13484 "
13485 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13486
13487 cat >>confdefs.h <<_ACEOF
13488 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13489 _ACEOF
13490
13491
13492 fi
13493 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13494 #include <sys/socket.h>
13495 #include <netdb.h>
13496
13497 "
13498 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13499
13500 cat >>confdefs.h <<_ACEOF
13501 #define HAVE_STRUCT_ADDRINFO 1
13502 _ACEOF
13503
13504
13505 fi
13506
13507 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13508 <sys/socket.h>
13509 "
13510 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13511
13512 cat >>confdefs.h <<_ACEOF
13513 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13514 _ACEOF
13515
13516
13517 fi
13518
13519
13520
13521 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13522 "
13523 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13524
13525 $as_echo "#define IPV6 1" >>confdefs.h
13526
13527 fi
13528
13529
13530
13531 # Checks for typedefs, structures, and compiler characteristics.
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13533 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13534 if ${ac_cv_c_bigendian+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 ac_cv_c_bigendian=unknown
13538 # See if we're dealing with a universal compiler.
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541 #ifndef __APPLE_CC__
13542 not a universal capable compiler
13543 #endif
13544 typedef int dummy;
13545
13546 _ACEOF
13547 if ac_fn_c_try_compile "$LINENO"; then :
13548
13549 # Check for potential -arch flags. It is not universal unless
13550 # there are at least two -arch flags with different values.
13551 ac_arch=
13552 ac_prev=
13553 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13554 if test -n "$ac_prev"; then
13555 case $ac_word in
13556 i?86 | x86_64 | ppc | ppc64)
13557 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13558 ac_arch=$ac_word
13559 else
13560 ac_cv_c_bigendian=universal
13561 break
13562 fi
13563 ;;
13564 esac
13565 ac_prev=
13566 elif test "x$ac_word" = "x-arch"; then
13567 ac_prev=arch
13568 fi
13569 done
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 if test $ac_cv_c_bigendian = unknown; then
13573 # See if sys/param.h defines the BYTE_ORDER macro.
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576 #include <sys/types.h>
13577 #include <sys/param.h>
13578
13579 int
13580 main ()
13581 {
13582 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13583 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13584 && LITTLE_ENDIAN)
13585 bogus endian macros
13586 #endif
13587
13588 ;
13589 return 0;
13590 }
13591 _ACEOF
13592 if ac_fn_c_try_compile "$LINENO"; then :
13593 # It does; now see whether it defined to BIG_ENDIAN or not.
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 #include <sys/types.h>
13597 #include <sys/param.h>
13598
13599 int
13600 main ()
13601 {
13602 #if BYTE_ORDER != BIG_ENDIAN
13603 not big endian
13604 #endif
13605
13606 ;
13607 return 0;
13608 }
13609 _ACEOF
13610 if ac_fn_c_try_compile "$LINENO"; then :
13611 ac_cv_c_bigendian=yes
13612 else
13613 ac_cv_c_bigendian=no
13614 fi
13615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 fi
13619 if test $ac_cv_c_bigendian = unknown; then
13620 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 #include <limits.h>
13624
13625 int
13626 main ()
13627 {
13628 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13629 bogus endian macros
13630 #endif
13631
13632 ;
13633 return 0;
13634 }
13635 _ACEOF
13636 if ac_fn_c_try_compile "$LINENO"; then :
13637 # It does; now see whether it defined to _BIG_ENDIAN or not.
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13640 #include <limits.h>
13641
13642 int
13643 main ()
13644 {
13645 #ifndef _BIG_ENDIAN
13646 not big endian
13647 #endif
13648
13649 ;
13650 return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"; then :
13654 ac_cv_c_bigendian=yes
13655 else
13656 ac_cv_c_bigendian=no
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659 fi
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 fi
13662 if test $ac_cv_c_bigendian = unknown; then
13663 # Compile a test program.
13664 if test "$cross_compiling" = yes; then :
13665 # Try to guess by grepping values from an object file.
13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13668 short int ascii_mm[] =
13669 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13670 short int ascii_ii[] =
13671 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13672 int use_ascii (int i) {
13673 return ascii_mm[i] + ascii_ii[i];
13674 }
13675 short int ebcdic_ii[] =
13676 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13677 short int ebcdic_mm[] =
13678 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13679 int use_ebcdic (int i) {
13680 return ebcdic_mm[i] + ebcdic_ii[i];
13681 }
13682 extern int foo;
13683
13684 int
13685 main ()
13686 {
13687 return use_ascii (foo) == use_ebcdic (foo);
13688 ;
13689 return 0;
13690 }
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"; then :
13693 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13694 ac_cv_c_bigendian=yes
13695 fi
13696 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13697 if test "$ac_cv_c_bigendian" = unknown; then
13698 ac_cv_c_bigendian=no
13699 else
13700 # finding both strings is unlikely to happen, but who knows?
13701 ac_cv_c_bigendian=unknown
13702 fi
13703 fi
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13706 else
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h. */
13709 $ac_includes_default
13710 int
13711 main ()
13712 {
13713
13714 /* Are we little or big endian? From Harbison&Steele. */
13715 union
13716 {
13717 long int l;
13718 char c[sizeof (long int)];
13719 } u;
13720 u.l = 1;
13721 return u.c[sizeof (long int) - 1] == 1;
13722
13723 ;
13724 return 0;
13725 }
13726 _ACEOF
13727 if ac_fn_c_try_run "$LINENO"; then :
13728 ac_cv_c_bigendian=no
13729 else
13730 ac_cv_c_bigendian=yes
13731 fi
13732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13733 conftest.$ac_objext conftest.beam conftest.$ac_ext
13734 fi
13735
13736 fi
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13739 $as_echo "$ac_cv_c_bigendian" >&6; }
13740 case $ac_cv_c_bigendian in #(
13741 yes)
13742 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13743 ;; #(
13744 no)
13745 ;; #(
13746 universal)
13747
13748 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13749
13750 ;; #(
13751 *)
13752 as_fn_error $? "unknown endianness
13753 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13754 esac
13755
13756
13757 # Checks for library functions.
13758
13759
13760
13761 for ac_func in $ac_func_list
13762 do :
13763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13766 cat >>confdefs.h <<_ACEOF
13767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13768 _ACEOF
13769
13770 fi
13771 done
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783 # Checks for header files.
13784
13785
13786
13787 for ac_header in $ac_header_list
13788 do :
13789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13790 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13791 "
13792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13793 cat >>confdefs.h <<_ACEOF
13794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13795 _ACEOF
13796
13797 fi
13798
13799 done
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13818 $as_echo_n "checking for library containing crypt... " >&6; }
13819 if ${ac_cv_search_crypt+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821 else
13822 ac_func_search_save_LIBS=$LIBS
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13825
13826 /* Override any GCC internal prototype to avoid an error.
13827 Use char because int might match the return type of a GCC
13828 builtin and then its argument prototype would still apply. */
13829 #ifdef __cplusplus
13830 extern "C"
13831 #endif
13832 char crypt ();
13833 int
13834 main ()
13835 {
13836 return crypt ();
13837 ;
13838 return 0;
13839 }
13840 _ACEOF
13841 for ac_lib in '' crypt; do
13842 if test -z "$ac_lib"; then
13843 ac_res="none required"
13844 else
13845 ac_res=-l$ac_lib
13846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13847 fi
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 ac_cv_search_crypt=$ac_res
13850 fi
13851 rm -f core conftest.err conftest.$ac_objext \
13852 conftest$ac_exeext
13853 if ${ac_cv_search_crypt+:} false; then :
13854 break
13855 fi
13856 done
13857 if ${ac_cv_search_crypt+:} false; then :
13858
13859 else
13860 ac_cv_search_crypt=no
13861 fi
13862 rm conftest.$ac_ext
13863 LIBS=$ac_func_search_save_LIBS
13864 fi
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13866 $as_echo "$ac_cv_search_crypt" >&6; }
13867 ac_res=$ac_cv_search_crypt
13868 if test "$ac_res" != no; then :
13869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13870
13871 fi
13872
13873
13874 # Check whether --enable-libgeoip was given.
13875 if test "${enable_libgeoip+set}" = set; then :
13876 enableval=$enable_libgeoip;
13877 else
13878 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13879 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13881 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13882 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 ac_func_search_save_LIBS=$LIBS
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13892 #ifdef __cplusplus
13893 extern "C"
13894 #endif
13895 char GeoIP_id_by_ipnum_v6_gl ();
13896 int
13897 main ()
13898 {
13899 return GeoIP_id_by_ipnum_v6_gl ();
13900 ;
13901 return 0;
13902 }
13903 _ACEOF
13904 for ac_lib in '' GeoIP; do
13905 if test -z "$ac_lib"; then
13906 ac_res="none required"
13907 else
13908 ac_res=-l$ac_lib
13909 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13910 fi
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13913 fi
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext
13916 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13917 break
13918 fi
13919 done
13920 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13921
13922 else
13923 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13924 fi
13925 rm conftest.$ac_ext
13926 LIBS=$ac_func_search_save_LIBS
13927 fi
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13929 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13930 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13931 if test "$ac_res" != no; then :
13932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13933
13934 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13935
13936 fi
13937
13938 fi
13939
13940
13941 fi
13942
13943
13944
13945 # Check whether --enable-openssl was given.
13946 if test "${enable_openssl+set}" = set; then :
13947 enableval=$enable_openssl; cf_enable_openssl=$enableval
13948 else
13949 cf_enable_openssl="auto"
13950 fi
13951
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13953 $as_echo_n "checking for OpenSSL... " >&6; }
13954 if test "$cf_enable_openssl" != "no"; then
13955 cf_openssl_basedir=""
13956 if test "$cf_enable_openssl" != "auto" &&
13957 test "$cf_enable_openssl" != "yes"; then
13958 cf_openssl_basedir="${cf_enable_openssl}"
13959 else
13960 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13961 /opt /opt/openssl /usr/local/openssl; do
13962 if test -f "${dirs}/include/openssl/opensslv.h"; then
13963 cf_openssl_basedir="${dirs}"
13964 break
13965 fi
13966 done
13967 unset dirs
13968 fi
13969
13970 if test ! -z "$cf_openssl_basedir"; then
13971 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13972 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13973 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13974 else
13975 cf_openssl_basedir=""
13976 fi
13977 else
13978 if test -f "/usr/include/openssl/opensslv.h"; then
13979 cf_openssl_basedir="/usr"
13980 fi
13981 fi
13982
13983 if test ! -z "$cf_openssl_basedir"; then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13985 $as_echo "$cf_openssl_basedir" >&6; }
13986 cf_enable_openssl="yes"
13987 else
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13989 $as_echo "not found. Please check your path." >&6; }
13990 cf_enable_openssl="no"
13991 fi
13992 unset cf_openssl_basedir
13993 else
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13995 $as_echo "disabled" >&6; }
13996 fi
13997
13998 if test "$cf_enable_openssl" != "no"; then :
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
14000 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
14001 if test "$cross_compiling" = yes; then :
14002 cf_openssl_version_ok=no
14003 else
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006
14007
14008 #include <openssl/opensslv.h>
14009 #include <stdlib.h>
14010 int
14011 main ()
14012 {
14013 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
14014 ;
14015 return 0;
14016 }
14017 _ACEOF
14018 if ac_fn_c_try_run "$LINENO"; then :
14019 cf_openssl_version_ok=yes
14020 else
14021 cf_openssl_version_ok=no
14022 fi
14023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14024 conftest.$ac_objext conftest.beam conftest.$ac_ext
14025 fi
14026
14027
14028 if test "$cf_openssl_version_ok" = "yes"; then :
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14030 $as_echo "found" >&6; }
14031
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
14033 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
14034 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
14035 $as_echo_n "(cached) " >&6
14036 else
14037 ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lcrypto $LIBS"
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14045 #ifdef __cplusplus
14046 extern "C"
14047 #endif
14048 char RSA_free ();
14049 int
14050 main ()
14051 {
14052 return RSA_free ();
14053 ;
14054 return 0;
14055 }
14056 _ACEOF
14057 if ac_fn_c_try_link "$LINENO"; then :
14058 ac_cv_lib_crypto_RSA_free=yes
14059 else
14060 ac_cv_lib_crypto_RSA_free=no
14061 fi
14062 rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext conftest.$ac_ext
14064 LIBS=$ac_check_lib_save_LIBS
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14067 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14068 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14069 cat >>confdefs.h <<_ACEOF
14070 #define HAVE_LIBCRYPTO 1
14071 _ACEOF
14072
14073 LIBS="-lcrypto $LIBS"
14074
14075 fi
14076
14077 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14079 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14080 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 ac_check_lib_save_LIBS=$LIBS
14084 LIBS="-lssl $LIBS"
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087
14088 /* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
14091 #ifdef __cplusplus
14092 extern "C"
14093 #endif
14094 char SSL_connect ();
14095 int
14096 main ()
14097 {
14098 return SSL_connect ();
14099 ;
14100 return 0;
14101 }
14102 _ACEOF
14103 if ac_fn_c_try_link "$LINENO"; then :
14104 ac_cv_lib_ssl_SSL_connect=yes
14105 else
14106 ac_cv_lib_ssl_SSL_connect=no
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14111 fi
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14113 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14114 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14115 cat >>confdefs.h <<_ACEOF
14116 #define HAVE_LIBSSL 1
14117 _ACEOF
14118
14119 LIBS="-lssl $LIBS"
14120
14121 fi
14122
14123 fi
14124
14125 else
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14127 $as_echo "no - OpenSSL support disabled" >&6; }
14128 cf_enable_openssl="no"
14129 fi
14130 fi
14131
14132 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14133 ENABLE_SSL_TRUE=
14134 ENABLE_SSL_FALSE='#'
14135 else
14136 ENABLE_SSL_TRUE='#'
14137 ENABLE_SSL_FALSE=
14138 fi
14139
14140
14141
14142 # Check whether --enable-assert was given.
14143 if test "${enable_assert+set}" = set; then :
14144 enableval=$enable_assert; assert=$enableval
14145 else
14146 assert=no
14147 fi
14148
14149
14150 if test "$assert" = "no"; then :
14151
14152 $as_echo "#define NDEBUG 1" >>confdefs.h
14153
14154 fi
14155
14156
14157 $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14158
14159
14160 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14161
14162
14163 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14164
14165
14166 $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14167
14168
14169 $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14170
14171
14172 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
14173
14174
14175 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14176
14177
14178 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14179
14180
14181 $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14182
14183
14184 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14185
14186
14187 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14188
14189
14190 $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14191
14192
14193 $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14194
14195
14196 $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14197
14198
14199 # Argument processing.
14200
14201 desired_iopoll_mechanism="none"
14202 # Check whether --enable-kqueue was given.
14203 if test "${enable_kqueue+set}" = set; then :
14204 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14205 fi
14206
14207 # Check whether --enable-epoll was given.
14208 if test "${enable_epoll+set}" = set; then :
14209 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14210 fi
14211
14212 # Check whether --enable-devpoll was given.
14213 if test "${enable_devpoll+set}" = set; then :
14214 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14215 fi
14216
14217 # Check whether --enable-poll was given.
14218 if test "${enable_poll+set}" = set; then :
14219 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14220 fi
14221
14222 # Check whether --enable-select was given.
14223 if test "${enable_select+set}" = set; then :
14224 enableval=$enable_select; desired_iopoll_mechanism="select"
14225 fi
14226
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14228 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14229 iopoll_mechanism_none=0
14230
14231 cat >>confdefs.h <<_ACEOF
14232 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14233 _ACEOF
14234
14235 iopoll_mechanism_kqueue=1
14236
14237 cat >>confdefs.h <<_ACEOF
14238 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14239 _ACEOF
14240
14241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14242 /* end confdefs.h. */
14243 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14245 #define kevent innocuous_kevent
14246
14247 /* System header to define __stub macros and hopefully few prototypes,
14248 which can conflict with char kevent (); below.
14249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14250 <limits.h> exists even on freestanding compilers. */
14251
14252 #ifdef __STDC__
14253 # include <limits.h>
14254 #else
14255 # include <assert.h>
14256 #endif
14257
14258 #undef kevent
14259
14260 /* Override any GCC internal prototype to avoid an error.
14261 Use char because int might match the return type of a GCC
14262 builtin and then its argument prototype would still apply. */
14263 #ifdef __cplusplus
14264 extern "C"
14265 #endif
14266 char kevent ();
14267 /* The GNU C library defines this for functions which it implements
14268 to always fail with ENOSYS. Some functions are actually named
14269 something starting with __ and the normal name is an alias. */
14270 #if defined __stub_kevent || defined __stub___kevent
14271 choke me
14272 #endif
14273
14274 int
14275 main ()
14276 {
14277 return kevent ();
14278 ;
14279 return 0;
14280 }
14281 _ACEOF
14282 if ac_fn_c_try_link "$LINENO"; then :
14283 is_kqueue_mechanism_available="yes"
14284 else
14285 is_kqueue_mechanism_available="no"
14286 fi
14287 rm -f core conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14289 iopoll_mechanism_epoll=2
14290
14291 cat >>confdefs.h <<_ACEOF
14292 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14293 _ACEOF
14294
14295 if test "$cross_compiling" = yes; then :
14296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14298 as_fn_error $? "cannot run test program while cross compiling
14299 See \`config.log' for more details" "$LINENO" 5; }
14300 else
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14303
14304 #include <sys/epoll.h>
14305 #include <sys/syscall.h>
14306 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14307 #if !defined(__NR_epoll_create)
14308 #if defined(__ia64__)
14309 #define __NR_epoll_create 1243
14310 #elif defined(__x86_64__)
14311 #define __NR_epoll_create 214
14312 #elif defined(__sparc64__) || defined(__sparc__)
14313 #define __NR_epoll_create 193
14314 #elif defined(__s390__) || defined(__m68k__)
14315 #define __NR_epoll_create 249
14316 #elif defined(__ppc64__) || defined(__ppc__)
14317 #define __NR_epoll_create 236
14318 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14319 #define __NR_epoll_create 224
14320 #elif defined(__alpha__)
14321 #define __NR_epoll_create 407
14322 #elif defined(__sh64__)
14323 #define __NR_epoll_create 282
14324 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14325 #define __NR_epoll_create 254
14326 #else
14327 #error No system call numbers defined for epoll family.
14328 #endif
14329 #endif
14330 _syscall1(int, epoll_create, int, size)
14331 #endif
14332
14333 int
14334 main ()
14335 {
14336 return epoll_create(256) == -1 ? 1 : 0
14337 ;
14338 return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_run "$LINENO"; then :
14342 is_epoll_mechanism_available="yes"
14343 else
14344 is_epoll_mechanism_available="no"
14345 fi
14346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14347 conftest.$ac_objext conftest.beam conftest.$ac_ext
14348 fi
14349
14350 iopoll_mechanism_devpoll=3
14351
14352 cat >>confdefs.h <<_ACEOF
14353 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14354 _ACEOF
14355
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14358 #include <devpoll.h>
14359 int
14360 main ()
14361 {
14362
14363 ;
14364 return 0;
14365 }
14366 _ACEOF
14367 if ac_fn_c_try_compile "$LINENO"; then :
14368 is_devpoll_mechanism_available="yes"
14369 else
14370 is_devpoll_mechanism_available="no"
14371 fi
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 if test "$is_devpoll_mechanism_available" = "yes" ; then
14374
14375 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14376
14377 fi
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14380 #include <sys/devpoll.h>
14381 int
14382 main ()
14383 {
14384
14385 ;
14386 return 0;
14387 }
14388 _ACEOF
14389 if ac_fn_c_try_compile "$LINENO"; then :
14390 is_devpoll_mechanism_available="yes"
14391 else
14392 is_devpoll_mechanism_available="no"
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14395 if test "$is_devpoll_mechanism_available" = "yes" ; then
14396
14397 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14398
14399 fi
14400 iopoll_mechanism_poll=4
14401
14402 cat >>confdefs.h <<_ACEOF
14403 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14404 _ACEOF
14405
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14410 #define poll innocuous_poll
14411
14412 /* System header to define __stub macros and hopefully few prototypes,
14413 which can conflict with char poll (); below.
14414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14415 <limits.h> exists even on freestanding compilers. */
14416
14417 #ifdef __STDC__
14418 # include <limits.h>
14419 #else
14420 # include <assert.h>
14421 #endif
14422
14423 #undef poll
14424
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14428 #ifdef __cplusplus
14429 extern "C"
14430 #endif
14431 char poll ();
14432 /* The GNU C library defines this for functions which it implements
14433 to always fail with ENOSYS. Some functions are actually named
14434 something starting with __ and the normal name is an alias. */
14435 #if defined __stub_poll || defined __stub___poll
14436 choke me
14437 #endif
14438
14439 int
14440 main ()
14441 {
14442 return poll ();
14443 ;
14444 return 0;
14445 }
14446 _ACEOF
14447 if ac_fn_c_try_link "$LINENO"; then :
14448 is_poll_mechanism_available="yes"
14449 else
14450 is_poll_mechanism_available="no"
14451 fi
14452 rm -f core conftest.err conftest.$ac_objext \
14453 conftest$ac_exeext conftest.$ac_ext
14454 iopoll_mechanism_select=5
14455
14456 cat >>confdefs.h <<_ACEOF
14457 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14458 _ACEOF
14459
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 /* Define select to an innocuous variant, in case <limits.h> declares select.
14463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14464 #define select innocuous_select
14465
14466 /* System header to define __stub macros and hopefully few prototypes,
14467 which can conflict with char select (); below.
14468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14469 <limits.h> exists even on freestanding compilers. */
14470
14471 #ifdef __STDC__
14472 # include <limits.h>
14473 #else
14474 # include <assert.h>
14475 #endif
14476
14477 #undef select
14478
14479 /* Override any GCC internal prototype to avoid an error.
14480 Use char because int might match the return type of a GCC
14481 builtin and then its argument prototype would still apply. */
14482 #ifdef __cplusplus
14483 extern "C"
14484 #endif
14485 char select ();
14486 /* The GNU C library defines this for functions which it implements
14487 to always fail with ENOSYS. Some functions are actually named
14488 something starting with __ and the normal name is an alias. */
14489 #if defined __stub_select || defined __stub___select
14490 choke me
14491 #endif
14492
14493 int
14494 main ()
14495 {
14496 return select ();
14497 ;
14498 return 0;
14499 }
14500 _ACEOF
14501 if ac_fn_c_try_link "$LINENO"; then :
14502 is_select_mechanism_available="yes"
14503 else
14504 is_select_mechanism_available="no"
14505 fi
14506 rm -f core conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
14508 optimal_iopoll_mechanism="none"
14509 for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14510 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14511 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14512 optimal_iopoll_mechanism="$mechanism"
14513 break
14514 fi
14515 done
14516 if test "$desired_iopoll_mechanism" = "none" ; then
14517 if test "$optimal_iopoll_mechanism" = "none" ; then
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14519 $as_echo "none" >&6; }
14520 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14521 else
14522 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14524 $as_echo "$selected_iopoll_mechanism" >&6; }
14525 fi
14526 else
14527 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14528 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14529 selected_iopoll_mechanism=$desired_iopoll_mechanism
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14531 $as_echo "$selected_iopoll_mechanism" >&6; }
14532 else
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14534 $as_echo "none" >&6; }
14535 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14536 fi
14537 fi
14538 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14539
14540 cat >>confdefs.h <<_ACEOF
14541 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14542 _ACEOF
14543
14544
14545
14546 # Check whether --enable-debugging was given.
14547 if test "${enable_debugging+set}" = set; then :
14548 enableval=$enable_debugging; debugging="$enableval"
14549 else
14550 debugging="no"
14551 fi
14552
14553 if test "$debugging" = "yes" ; then
14554 CFLAGS="-Wall -g -O0"
14555 fi
14556
14557
14558 # Check whether --enable-warnings was given.
14559 if test "${enable_warnings+set}" = set; then :
14560 enableval=$enable_warnings; warnings="$enableval"
14561 else
14562 warnings="no"
14563 fi
14564
14565 if test "$warnings" = "yes" ; then
14566
14567
14568
14569
14570 for flag in -Wall; do
14571 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14573 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14574 if eval \${$as_CACHEVAR+:} false; then :
14575 $as_echo_n "(cached) " >&6
14576 else
14577
14578 ax_check_save_flags=$CFLAGS
14579 CFLAGS="$CFLAGS $flag"
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14582
14583 int
14584 main ()
14585 {
14586
14587 ;
14588 return 0;
14589 }
14590 _ACEOF
14591 if ac_fn_c_try_compile "$LINENO"; then :
14592 eval "$as_CACHEVAR=yes"
14593 else
14594 eval "$as_CACHEVAR=no"
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 CFLAGS=$ax_check_save_flags
14598 fi
14599 eval ac_res=\$$as_CACHEVAR
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14601 $as_echo "$ac_res" >&6; }
14602 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14603 if ${CFLAGS+:} false; then :
14604 case " $CFLAGS " in
14605 *" $flag "*)
14606 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14607 (: CFLAGS already contains $flag) 2>&5
14608 ac_status=$?
14609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14610 test $ac_status = 0; }
14611 ;;
14612 *)
14613 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14614 (: CFLAGS="$CFLAGS $flag") 2>&5
14615 ac_status=$?
14616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }
14618 CFLAGS="$CFLAGS $flag"
14619 ;;
14620 esac
14621 else
14622 CFLAGS="$flag"
14623 fi
14624
14625 else
14626 :
14627 fi
14628
14629 done
14630
14631
14632
14633
14634
14635 for flag in -Wextra; do
14636 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14638 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14639 if eval \${$as_CACHEVAR+:} false; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642
14643 ax_check_save_flags=$CFLAGS
14644 CFLAGS="$CFLAGS $flag"
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647
14648 int
14649 main ()
14650 {
14651
14652 ;
14653 return 0;
14654 }
14655 _ACEOF
14656 if ac_fn_c_try_compile "$LINENO"; then :
14657 eval "$as_CACHEVAR=yes"
14658 else
14659 eval "$as_CACHEVAR=no"
14660 fi
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 CFLAGS=$ax_check_save_flags
14663 fi
14664 eval ac_res=\$$as_CACHEVAR
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14666 $as_echo "$ac_res" >&6; }
14667 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14668 if ${CFLAGS+:} false; then :
14669 case " $CFLAGS " in
14670 *" $flag "*)
14671 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14672 (: CFLAGS already contains $flag) 2>&5
14673 ac_status=$?
14674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14675 test $ac_status = 0; }
14676 ;;
14677 *)
14678 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14679 (: CFLAGS="$CFLAGS $flag") 2>&5
14680 ac_status=$?
14681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14682 test $ac_status = 0; }
14683 CFLAGS="$CFLAGS $flag"
14684 ;;
14685 esac
14686 else
14687 CFLAGS="$flag"
14688 fi
14689
14690 else
14691 :
14692 fi
14693
14694 done
14695
14696
14697
14698
14699
14700 for flag in -Wno-unused; do
14701 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14703 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14704 if eval \${$as_CACHEVAR+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707
14708 ax_check_save_flags=$CFLAGS
14709 CFLAGS="$CFLAGS $flag"
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14712
14713 int
14714 main ()
14715 {
14716
14717 ;
14718 return 0;
14719 }
14720 _ACEOF
14721 if ac_fn_c_try_compile "$LINENO"; then :
14722 eval "$as_CACHEVAR=yes"
14723 else
14724 eval "$as_CACHEVAR=no"
14725 fi
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727 CFLAGS=$ax_check_save_flags
14728 fi
14729 eval ac_res=\$$as_CACHEVAR
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14731 $as_echo "$ac_res" >&6; }
14732 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14733 if ${CFLAGS+:} false; then :
14734 case " $CFLAGS " in
14735 *" $flag "*)
14736 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14737 (: CFLAGS already contains $flag) 2>&5
14738 ac_status=$?
14739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14740 test $ac_status = 0; }
14741 ;;
14742 *)
14743 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14744 (: CFLAGS="$CFLAGS $flag") 2>&5
14745 ac_status=$?
14746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14747 test $ac_status = 0; }
14748 CFLAGS="$CFLAGS $flag"
14749 ;;
14750 esac
14751 else
14752 CFLAGS="$flag"
14753 fi
14754
14755 else
14756 :
14757 fi
14758
14759 done
14760
14761
14762
14763
14764
14765 for flag in -Wcast-qual; do
14766 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14768 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14769 if eval \${$as_CACHEVAR+:} false; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772
14773 ax_check_save_flags=$CFLAGS
14774 CFLAGS="$CFLAGS $flag"
14775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776 /* end confdefs.h. */
14777
14778 int
14779 main ()
14780 {
14781
14782 ;
14783 return 0;
14784 }
14785 _ACEOF
14786 if ac_fn_c_try_compile "$LINENO"; then :
14787 eval "$as_CACHEVAR=yes"
14788 else
14789 eval "$as_CACHEVAR=no"
14790 fi
14791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792 CFLAGS=$ax_check_save_flags
14793 fi
14794 eval ac_res=\$$as_CACHEVAR
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14796 $as_echo "$ac_res" >&6; }
14797 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14798 if ${CFLAGS+:} false; then :
14799 case " $CFLAGS " in
14800 *" $flag "*)
14801 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14802 (: CFLAGS already contains $flag) 2>&5
14803 ac_status=$?
14804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14805 test $ac_status = 0; }
14806 ;;
14807 *)
14808 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14809 (: CFLAGS="$CFLAGS $flag") 2>&5
14810 ac_status=$?
14811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14812 test $ac_status = 0; }
14813 CFLAGS="$CFLAGS $flag"
14814 ;;
14815 esac
14816 else
14817 CFLAGS="$flag"
14818 fi
14819
14820 else
14821 :
14822 fi
14823
14824 done
14825
14826
14827
14828
14829
14830 for flag in -Wcast-align; do
14831 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14833 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14834 if eval \${$as_CACHEVAR+:} false; then :
14835 $as_echo_n "(cached) " >&6
14836 else
14837
14838 ax_check_save_flags=$CFLAGS
14839 CFLAGS="$CFLAGS $flag"
14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14841 /* end confdefs.h. */
14842
14843 int
14844 main ()
14845 {
14846
14847 ;
14848 return 0;
14849 }
14850 _ACEOF
14851 if ac_fn_c_try_compile "$LINENO"; then :
14852 eval "$as_CACHEVAR=yes"
14853 else
14854 eval "$as_CACHEVAR=no"
14855 fi
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857 CFLAGS=$ax_check_save_flags
14858 fi
14859 eval ac_res=\$$as_CACHEVAR
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14861 $as_echo "$ac_res" >&6; }
14862 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14863 if ${CFLAGS+:} false; then :
14864 case " $CFLAGS " in
14865 *" $flag "*)
14866 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14867 (: CFLAGS already contains $flag) 2>&5
14868 ac_status=$?
14869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14870 test $ac_status = 0; }
14871 ;;
14872 *)
14873 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14874 (: CFLAGS="$CFLAGS $flag") 2>&5
14875 ac_status=$?
14876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14877 test $ac_status = 0; }
14878 CFLAGS="$CFLAGS $flag"
14879 ;;
14880 esac
14881 else
14882 CFLAGS="$flag"
14883 fi
14884
14885 else
14886 :
14887 fi
14888
14889 done
14890
14891
14892
14893
14894
14895 for flag in -Wbad-function-cast; do
14896 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14898 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14899 if eval \${$as_CACHEVAR+:} false; then :
14900 $as_echo_n "(cached) " >&6
14901 else
14902
14903 ax_check_save_flags=$CFLAGS
14904 CFLAGS="$CFLAGS $flag"
14905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14906 /* end confdefs.h. */
14907
14908 int
14909 main ()
14910 {
14911
14912 ;
14913 return 0;
14914 }
14915 _ACEOF
14916 if ac_fn_c_try_compile "$LINENO"; then :
14917 eval "$as_CACHEVAR=yes"
14918 else
14919 eval "$as_CACHEVAR=no"
14920 fi
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 CFLAGS=$ax_check_save_flags
14923 fi
14924 eval ac_res=\$$as_CACHEVAR
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14926 $as_echo "$ac_res" >&6; }
14927 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14928 if ${CFLAGS+:} false; then :
14929 case " $CFLAGS " in
14930 *" $flag "*)
14931 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14932 (: CFLAGS already contains $flag) 2>&5
14933 ac_status=$?
14934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14935 test $ac_status = 0; }
14936 ;;
14937 *)
14938 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14939 (: CFLAGS="$CFLAGS $flag") 2>&5
14940 ac_status=$?
14941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14942 test $ac_status = 0; }
14943 CFLAGS="$CFLAGS $flag"
14944 ;;
14945 esac
14946 else
14947 CFLAGS="$flag"
14948 fi
14949
14950 else
14951 :
14952 fi
14953
14954 done
14955
14956
14957
14958
14959
14960 for flag in -Wlogical-op; do
14961 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14963 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14964 if eval \${$as_CACHEVAR+:} false; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967
14968 ax_check_save_flags=$CFLAGS
14969 CFLAGS="$CFLAGS $flag"
14970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14971 /* end confdefs.h. */
14972
14973 int
14974 main ()
14975 {
14976
14977 ;
14978 return 0;
14979 }
14980 _ACEOF
14981 if ac_fn_c_try_compile "$LINENO"; then :
14982 eval "$as_CACHEVAR=yes"
14983 else
14984 eval "$as_CACHEVAR=no"
14985 fi
14986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987 CFLAGS=$ax_check_save_flags
14988 fi
14989 eval ac_res=\$$as_CACHEVAR
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14991 $as_echo "$ac_res" >&6; }
14992 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14993 if ${CFLAGS+:} false; then :
14994 case " $CFLAGS " in
14995 *" $flag "*)
14996 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14997 (: CFLAGS already contains $flag) 2>&5
14998 ac_status=$?
14999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15000 test $ac_status = 0; }
15001 ;;
15002 *)
15003 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15004 (: CFLAGS="$CFLAGS $flag") 2>&5
15005 ac_status=$?
15006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15007 test $ac_status = 0; }
15008 CFLAGS="$CFLAGS $flag"
15009 ;;
15010 esac
15011 else
15012 CFLAGS="$flag"
15013 fi
15014
15015 else
15016 :
15017 fi
15018
15019 done
15020
15021
15022
15023
15024
15025 for flag in -Wmissing-declarations; do
15026 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15028 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15029 if eval \${$as_CACHEVAR+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032
15033 ax_check_save_flags=$CFLAGS
15034 CFLAGS="$CFLAGS $flag"
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037
15038 int
15039 main ()
15040 {
15041
15042 ;
15043 return 0;
15044 }
15045 _ACEOF
15046 if ac_fn_c_try_compile "$LINENO"; then :
15047 eval "$as_CACHEVAR=yes"
15048 else
15049 eval "$as_CACHEVAR=no"
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 CFLAGS=$ax_check_save_flags
15053 fi
15054 eval ac_res=\$$as_CACHEVAR
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15056 $as_echo "$ac_res" >&6; }
15057 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15058 if ${CFLAGS+:} false; then :
15059 case " $CFLAGS " in
15060 *" $flag "*)
15061 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15062 (: CFLAGS already contains $flag) 2>&5
15063 ac_status=$?
15064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15065 test $ac_status = 0; }
15066 ;;
15067 *)
15068 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15069 (: CFLAGS="$CFLAGS $flag") 2>&5
15070 ac_status=$?
15071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15072 test $ac_status = 0; }
15073 CFLAGS="$CFLAGS $flag"
15074 ;;
15075 esac
15076 else
15077 CFLAGS="$flag"
15078 fi
15079
15080 else
15081 :
15082 fi
15083
15084 done
15085
15086
15087
15088
15089
15090 for flag in -Wmissing-include-dirs; do
15091 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15093 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15094 if eval \${$as_CACHEVAR+:} false; then :
15095 $as_echo_n "(cached) " >&6
15096 else
15097
15098 ax_check_save_flags=$CFLAGS
15099 CFLAGS="$CFLAGS $flag"
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102
15103 int
15104 main ()
15105 {
15106
15107 ;
15108 return 0;
15109 }
15110 _ACEOF
15111 if ac_fn_c_try_compile "$LINENO"; then :
15112 eval "$as_CACHEVAR=yes"
15113 else
15114 eval "$as_CACHEVAR=no"
15115 fi
15116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117 CFLAGS=$ax_check_save_flags
15118 fi
15119 eval ac_res=\$$as_CACHEVAR
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15121 $as_echo "$ac_res" >&6; }
15122 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15123 if ${CFLAGS+:} false; then :
15124 case " $CFLAGS " in
15125 *" $flag "*)
15126 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15127 (: CFLAGS already contains $flag) 2>&5
15128 ac_status=$?
15129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15130 test $ac_status = 0; }
15131 ;;
15132 *)
15133 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15134 (: CFLAGS="$CFLAGS $flag") 2>&5
15135 ac_status=$?
15136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15137 test $ac_status = 0; }
15138 CFLAGS="$CFLAGS $flag"
15139 ;;
15140 esac
15141 else
15142 CFLAGS="$flag"
15143 fi
15144
15145 else
15146 :
15147 fi
15148
15149 done
15150
15151
15152
15153
15154
15155 for flag in -Wmissing-prototypes; do
15156 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15158 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15159 if eval \${$as_CACHEVAR+:} false; then :
15160 $as_echo_n "(cached) " >&6
15161 else
15162
15163 ax_check_save_flags=$CFLAGS
15164 CFLAGS="$CFLAGS $flag"
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167
15168 int
15169 main ()
15170 {
15171
15172 ;
15173 return 0;
15174 }
15175 _ACEOF
15176 if ac_fn_c_try_compile "$LINENO"; then :
15177 eval "$as_CACHEVAR=yes"
15178 else
15179 eval "$as_CACHEVAR=no"
15180 fi
15181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15182 CFLAGS=$ax_check_save_flags
15183 fi
15184 eval ac_res=\$$as_CACHEVAR
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15186 $as_echo "$ac_res" >&6; }
15187 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15188 if ${CFLAGS+:} false; then :
15189 case " $CFLAGS " in
15190 *" $flag "*)
15191 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15192 (: CFLAGS already contains $flag) 2>&5
15193 ac_status=$?
15194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15195 test $ac_status = 0; }
15196 ;;
15197 *)
15198 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15199 (: CFLAGS="$CFLAGS $flag") 2>&5
15200 ac_status=$?
15201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15202 test $ac_status = 0; }
15203 CFLAGS="$CFLAGS $flag"
15204 ;;
15205 esac
15206 else
15207 CFLAGS="$flag"
15208 fi
15209
15210 else
15211 :
15212 fi
15213
15214 done
15215
15216
15217
15218
15219
15220 for flag in -Wnested-externs; do
15221 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15223 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15224 if eval \${$as_CACHEVAR+:} false; then :
15225 $as_echo_n "(cached) " >&6
15226 else
15227
15228 ax_check_save_flags=$CFLAGS
15229 CFLAGS="$CFLAGS $flag"
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15232
15233 int
15234 main ()
15235 {
15236
15237 ;
15238 return 0;
15239 }
15240 _ACEOF
15241 if ac_fn_c_try_compile "$LINENO"; then :
15242 eval "$as_CACHEVAR=yes"
15243 else
15244 eval "$as_CACHEVAR=no"
15245 fi
15246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15247 CFLAGS=$ax_check_save_flags
15248 fi
15249 eval ac_res=\$$as_CACHEVAR
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15251 $as_echo "$ac_res" >&6; }
15252 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15253 if ${CFLAGS+:} false; then :
15254 case " $CFLAGS " in
15255 *" $flag "*)
15256 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15257 (: CFLAGS already contains $flag) 2>&5
15258 ac_status=$?
15259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15260 test $ac_status = 0; }
15261 ;;
15262 *)
15263 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15264 (: CFLAGS="$CFLAGS $flag") 2>&5
15265 ac_status=$?
15266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15267 test $ac_status = 0; }
15268 CFLAGS="$CFLAGS $flag"
15269 ;;
15270 esac
15271 else
15272 CFLAGS="$flag"
15273 fi
15274
15275 else
15276 :
15277 fi
15278
15279 done
15280
15281
15282
15283
15284
15285 for flag in -Wpointer-arith; do
15286 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15288 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15289 if eval \${$as_CACHEVAR+:} false; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292
15293 ax_check_save_flags=$CFLAGS
15294 CFLAGS="$CFLAGS $flag"
15295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296 /* end confdefs.h. */
15297
15298 int
15299 main ()
15300 {
15301
15302 ;
15303 return 0;
15304 }
15305 _ACEOF
15306 if ac_fn_c_try_compile "$LINENO"; then :
15307 eval "$as_CACHEVAR=yes"
15308 else
15309 eval "$as_CACHEVAR=no"
15310 fi
15311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15312 CFLAGS=$ax_check_save_flags
15313 fi
15314 eval ac_res=\$$as_CACHEVAR
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15316 $as_echo "$ac_res" >&6; }
15317 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15318 if ${CFLAGS+:} false; then :
15319 case " $CFLAGS " in
15320 *" $flag "*)
15321 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15322 (: CFLAGS already contains $flag) 2>&5
15323 ac_status=$?
15324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15325 test $ac_status = 0; }
15326 ;;
15327 *)
15328 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15329 (: CFLAGS="$CFLAGS $flag") 2>&5
15330 ac_status=$?
15331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15332 test $ac_status = 0; }
15333 CFLAGS="$CFLAGS $flag"
15334 ;;
15335 esac
15336 else
15337 CFLAGS="$flag"
15338 fi
15339
15340 else
15341 :
15342 fi
15343
15344 done
15345
15346
15347
15348
15349
15350 for flag in -Wredundant-decls; do
15351 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15353 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15354 if eval \${$as_CACHEVAR+:} false; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15357
15358 ax_check_save_flags=$CFLAGS
15359 CFLAGS="$CFLAGS $flag"
15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15361 /* end confdefs.h. */
15362
15363 int
15364 main ()
15365 {
15366
15367 ;
15368 return 0;
15369 }
15370 _ACEOF
15371 if ac_fn_c_try_compile "$LINENO"; then :
15372 eval "$as_CACHEVAR=yes"
15373 else
15374 eval "$as_CACHEVAR=no"
15375 fi
15376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15377 CFLAGS=$ax_check_save_flags
15378 fi
15379 eval ac_res=\$$as_CACHEVAR
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15381 $as_echo "$ac_res" >&6; }
15382 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15383 if ${CFLAGS+:} false; then :
15384 case " $CFLAGS " in
15385 *" $flag "*)
15386 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15387 (: CFLAGS already contains $flag) 2>&5
15388 ac_status=$?
15389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15390 test $ac_status = 0; }
15391 ;;
15392 *)
15393 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15394 (: CFLAGS="$CFLAGS $flag") 2>&5
15395 ac_status=$?
15396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15397 test $ac_status = 0; }
15398 CFLAGS="$CFLAGS $flag"
15399 ;;
15400 esac
15401 else
15402 CFLAGS="$flag"
15403 fi
15404
15405 else
15406 :
15407 fi
15408
15409 done
15410
15411
15412
15413
15414
15415 for flag in -Wshadow; do
15416 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15418 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15419 if eval \${$as_CACHEVAR+:} false; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15422
15423 ax_check_save_flags=$CFLAGS
15424 CFLAGS="$CFLAGS $flag"
15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h. */
15427
15428 int
15429 main ()
15430 {
15431
15432 ;
15433 return 0;
15434 }
15435 _ACEOF
15436 if ac_fn_c_try_compile "$LINENO"; then :
15437 eval "$as_CACHEVAR=yes"
15438 else
15439 eval "$as_CACHEVAR=no"
15440 fi
15441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15442 CFLAGS=$ax_check_save_flags
15443 fi
15444 eval ac_res=\$$as_CACHEVAR
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15446 $as_echo "$ac_res" >&6; }
15447 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15448 if ${CFLAGS+:} false; then :
15449 case " $CFLAGS " in
15450 *" $flag "*)
15451 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15452 (: CFLAGS already contains $flag) 2>&5
15453 ac_status=$?
15454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15455 test $ac_status = 0; }
15456 ;;
15457 *)
15458 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15459 (: CFLAGS="$CFLAGS $flag") 2>&5
15460 ac_status=$?
15461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15462 test $ac_status = 0; }
15463 CFLAGS="$CFLAGS $flag"
15464 ;;
15465 esac
15466 else
15467 CFLAGS="$flag"
15468 fi
15469
15470 else
15471 :
15472 fi
15473
15474 done
15475
15476
15477
15478
15479
15480 for flag in -Wwrite-strings; do
15481 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15483 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15484 if eval \${$as_CACHEVAR+:} false; then :
15485 $as_echo_n "(cached) " >&6
15486 else
15487
15488 ax_check_save_flags=$CFLAGS
15489 CFLAGS="$CFLAGS $flag"
15490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15491 /* end confdefs.h. */
15492
15493 int
15494 main ()
15495 {
15496
15497 ;
15498 return 0;
15499 }
15500 _ACEOF
15501 if ac_fn_c_try_compile "$LINENO"; then :
15502 eval "$as_CACHEVAR=yes"
15503 else
15504 eval "$as_CACHEVAR=no"
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 CFLAGS=$ax_check_save_flags
15508 fi
15509 eval ac_res=\$$as_CACHEVAR
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15511 $as_echo "$ac_res" >&6; }
15512 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15513 if ${CFLAGS+:} false; then :
15514 case " $CFLAGS " in
15515 *" $flag "*)
15516 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15517 (: CFLAGS already contains $flag) 2>&5
15518 ac_status=$?
15519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15520 test $ac_status = 0; }
15521 ;;
15522 *)
15523 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15524 (: CFLAGS="$CFLAGS $flag") 2>&5
15525 ac_status=$?
15526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15527 test $ac_status = 0; }
15528 CFLAGS="$CFLAGS $flag"
15529 ;;
15530 esac
15531 else
15532 CFLAGS="$flag"
15533 fi
15534
15535 else
15536 :
15537 fi
15538
15539 done
15540
15541
15542
15543
15544
15545 for flag in -Wundef; do
15546 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15548 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15549 if eval \${$as_CACHEVAR+:} false; then :
15550 $as_echo_n "(cached) " >&6
15551 else
15552
15553 ax_check_save_flags=$CFLAGS
15554 CFLAGS="$CFLAGS $flag"
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557
15558 int
15559 main ()
15560 {
15561
15562 ;
15563 return 0;
15564 }
15565 _ACEOF
15566 if ac_fn_c_try_compile "$LINENO"; then :
15567 eval "$as_CACHEVAR=yes"
15568 else
15569 eval "$as_CACHEVAR=no"
15570 fi
15571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15572 CFLAGS=$ax_check_save_flags
15573 fi
15574 eval ac_res=\$$as_CACHEVAR
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15576 $as_echo "$ac_res" >&6; }
15577 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15578 if ${CFLAGS+:} false; then :
15579 case " $CFLAGS " in
15580 *" $flag "*)
15581 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15582 (: CFLAGS already contains $flag) 2>&5
15583 ac_status=$?
15584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15585 test $ac_status = 0; }
15586 ;;
15587 *)
15588 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15589 (: CFLAGS="$CFLAGS $flag") 2>&5
15590 ac_status=$?
15591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15592 test $ac_status = 0; }
15593 CFLAGS="$CFLAGS $flag"
15594 ;;
15595 esac
15596 else
15597 CFLAGS="$flag"
15598 fi
15599
15600 else
15601 :
15602 fi
15603
15604 done
15605
15606 fi
15607
15608
15609
15610 prefix_NONE=
15611 exec_prefix_NONE=
15612 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15613 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15614 eval ac_define_dir="\"$prefix\""
15615 eval ac_define_dir="\"$ac_define_dir\""
15616 PREFIX="$ac_define_dir"
15617
15618
15619 cat >>confdefs.h <<_ACEOF
15620 #define PREFIX "$ac_define_dir"
15621 _ACEOF
15622
15623 test "$prefix_NONE" && prefix=NONE
15624 test "$exec_prefix_NONE" && exec_prefix=NONE
15625
15626
15627 prefix_NONE=
15628 exec_prefix_NONE=
15629 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15630 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15631 eval ac_define_dir="\"$sysconfdir\""
15632 eval ac_define_dir="\"$ac_define_dir\""
15633 SYSCONFDIR="$ac_define_dir"
15634
15635
15636 cat >>confdefs.h <<_ACEOF
15637 #define SYSCONFDIR "$ac_define_dir"
15638 _ACEOF
15639
15640 test "$prefix_NONE" && prefix=NONE
15641 test "$exec_prefix_NONE" && exec_prefix=NONE
15642
15643
15644 prefix_NONE=
15645 exec_prefix_NONE=
15646 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15647 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15648 eval ac_define_dir="\"$libdir\""
15649 eval ac_define_dir="\"$ac_define_dir\""
15650 LIBDIR="$ac_define_dir"
15651
15652
15653 cat >>confdefs.h <<_ACEOF
15654 #define LIBDIR "$ac_define_dir"
15655 _ACEOF
15656
15657 test "$prefix_NONE" && prefix=NONE
15658 test "$exec_prefix_NONE" && exec_prefix=NONE
15659
15660
15661 prefix_NONE=
15662 exec_prefix_NONE=
15663 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15664 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15665 eval ac_define_dir="\"$datadir\""
15666 eval ac_define_dir="\"$ac_define_dir\""
15667 DATADIR="$ac_define_dir"
15668
15669
15670 cat >>confdefs.h <<_ACEOF
15671 #define DATADIR "$ac_define_dir"
15672 _ACEOF
15673
15674 test "$prefix_NONE" && prefix=NONE
15675 test "$exec_prefix_NONE" && exec_prefix=NONE
15676
15677
15678 prefix_NONE=
15679 exec_prefix_NONE=
15680 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15681 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15682 eval ac_define_dir="\"$localstatedir\""
15683 eval ac_define_dir="\"$ac_define_dir\""
15684 LOCALSTATEDIR="$ac_define_dir"
15685
15686
15687 cat >>confdefs.h <<_ACEOF
15688 #define LOCALSTATEDIR "$ac_define_dir"
15689 _ACEOF
15690
15691 test "$prefix_NONE" && prefix=NONE
15692 test "$exec_prefix_NONE" && exec_prefix=NONE
15693
15694
15695 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
15696
15697
15698 cat >confcache <<\_ACEOF
15699 # This file is a shell script that caches the results of configure
15700 # tests run on this system so they can be shared between configure
15701 # scripts and configure runs, see configure's option --config-cache.
15702 # It is not useful on other systems. If it contains results you don't
15703 # want to keep, you may remove or edit it.
15704 #
15705 # config.status only pays attention to the cache file if you give it
15706 # the --recheck option to rerun configure.
15707 #
15708 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15709 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15710 # following values.
15711
15712 _ACEOF
15713
15714 # The following way of writing the cache mishandles newlines in values,
15715 # but we know of no workaround that is simple, portable, and efficient.
15716 # So, we kill variables containing newlines.
15717 # Ultrix sh set writes to stderr and can't be redirected directly,
15718 # and sets the high bit in the cache file unless we assign to the vars.
15719 (
15720 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15721 eval ac_val=\$$ac_var
15722 case $ac_val in #(
15723 *${as_nl}*)
15724 case $ac_var in #(
15725 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15726 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15727 esac
15728 case $ac_var in #(
15729 _ | IFS | as_nl) ;; #(
15730 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15731 *) { eval $ac_var=; unset $ac_var;} ;;
15732 esac ;;
15733 esac
15734 done
15735
15736 (set) 2>&1 |
15737 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15738 *${as_nl}ac_space=\ *)
15739 # `set' does not quote correctly, so add quotes: double-quote
15740 # substitution turns \\\\ into \\, and sed turns \\ into \.
15741 sed -n \
15742 "s/'/'\\\\''/g;
15743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15744 ;; #(
15745 *)
15746 # `set' quotes correctly as required by POSIX, so do not add quotes.
15747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15748 ;;
15749 esac |
15750 sort
15751 ) |
15752 sed '
15753 /^ac_cv_env_/b end
15754 t clear
15755 :clear
15756 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15757 t end
15758 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15759 :end' >>confcache
15760 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15761 if test -w "$cache_file"; then
15762 if test "x$cache_file" != "x/dev/null"; then
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15764 $as_echo "$as_me: updating cache $cache_file" >&6;}
15765 if test ! -f "$cache_file" || test -h "$cache_file"; then
15766 cat confcache >"$cache_file"
15767 else
15768 case $cache_file in #(
15769 */* | ?:*)
15770 mv -f confcache "$cache_file"$$ &&
15771 mv -f "$cache_file"$$ "$cache_file" ;; #(
15772 *)
15773 mv -f confcache "$cache_file" ;;
15774 esac
15775 fi
15776 fi
15777 else
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15779 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15780 fi
15781 fi
15782 rm -f confcache
15783
15784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15785 # Let make expand exec_prefix.
15786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15787
15788 DEFS=-DHAVE_CONFIG_H
15789
15790 ac_libobjs=
15791 ac_ltlibobjs=
15792 U=
15793 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15794 # 1. Remove the extension, and $U if already installed.
15795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15796 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15798 # will be set to the directory where LIBOBJS objects are built.
15799 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15800 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15801 done
15802 LIBOBJS=$ac_libobjs
15803
15804 LTLIBOBJS=$ac_ltlibobjs
15805
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15808 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15809 if test -n "$am_sleep_pid"; then
15810 # Hide warnings about reused PIDs.
15811 wait $am_sleep_pid 2>/dev/null
15812 fi
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15814 $as_echo "done" >&6; }
15815 if test -n "$EXEEXT"; then
15816 am__EXEEXT_TRUE=
15817 am__EXEEXT_FALSE='#'
15818 else
15819 am__EXEEXT_TRUE='#'
15820 am__EXEEXT_FALSE=
15821 fi
15822
15823 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15824 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15826 fi
15827 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15828 as_fn_error $? "conditional \"AMDEP\" was never defined.
15829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15830 fi
15831 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15832 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15834 fi
15835 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
15836 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
15837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15838 fi
15839 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
15840 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
15841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15842 fi
15843 LT_CONFIG_H=config.h
15844
15845 _ltdl_libobjs=
15846 _ltdl_ltlibobjs=
15847 if test -n "$_LT_LIBOBJS"; then
15848 # Remove the extension.
15849 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
15850 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
15851 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
15852 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
15853 done
15854 fi
15855 ltdl_LIBOBJS=$_ltdl_libobjs
15856
15857 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
15858
15859
15860
15861 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15862 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15864 fi
15865
15866 : "${CONFIG_STATUS=./config.status}"
15867 ac_write_fail=0
15868 ac_clean_files_save=$ac_clean_files
15869 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15871 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15872 as_write_fail=0
15873 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15874 #! $SHELL
15875 # Generated by $as_me.
15876 # Run this file to recreate the current configuration.
15877 # Compiler output produced by configure, useful for debugging
15878 # configure, is in config.log if it exists.
15879
15880 debug=false
15881 ac_cs_recheck=false
15882 ac_cs_silent=false
15883
15884 SHELL=\${CONFIG_SHELL-$SHELL}
15885 export SHELL
15886 _ASEOF
15887 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15888 ## -------------------- ##
15889 ## M4sh Initialization. ##
15890 ## -------------------- ##
15891
15892 # Be more Bourne compatible
15893 DUALCASE=1; export DUALCASE # for MKS sh
15894 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15895 emulate sh
15896 NULLCMD=:
15897 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15898 # is contrary to our usage. Disable this feature.
15899 alias -g '${1+"$@"}'='"$@"'
15900 setopt NO_GLOB_SUBST
15901 else
15902 case `(set -o) 2>/dev/null` in #(
15903 *posix*) :
15904 set -o posix ;; #(
15905 *) :
15906 ;;
15907 esac
15908 fi
15909
15910
15911 as_nl='
15912 '
15913 export as_nl
15914 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15915 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15916 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15918 # Prefer a ksh shell builtin over an external printf program on Solaris,
15919 # but without wasting forks for bash or zsh.
15920 if test -z "$BASH_VERSION$ZSH_VERSION" \
15921 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15922 as_echo='print -r --'
15923 as_echo_n='print -rn --'
15924 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15925 as_echo='printf %s\n'
15926 as_echo_n='printf %s'
15927 else
15928 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15929 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15930 as_echo_n='/usr/ucb/echo -n'
15931 else
15932 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15933 as_echo_n_body='eval
15934 arg=$1;
15935 case $arg in #(
15936 *"$as_nl"*)
15937 expr "X$arg" : "X\\(.*\\)$as_nl";
15938 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15939 esac;
15940 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15941 '
15942 export as_echo_n_body
15943 as_echo_n='sh -c $as_echo_n_body as_echo'
15944 fi
15945 export as_echo_body
15946 as_echo='sh -c $as_echo_body as_echo'
15947 fi
15948
15949 # The user is always right.
15950 if test "${PATH_SEPARATOR+set}" != set; then
15951 PATH_SEPARATOR=:
15952 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15953 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15954 PATH_SEPARATOR=';'
15955 }
15956 fi
15957
15958
15959 # IFS
15960 # We need space, tab and new line, in precisely that order. Quoting is
15961 # there to prevent editors from complaining about space-tab.
15962 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15963 # splitting by setting IFS to empty value.)
15964 IFS=" "" $as_nl"
15965
15966 # Find who we are. Look in the path if we contain no directory separator.
15967 as_myself=
15968 case $0 in #((
15969 *[\\/]* ) as_myself=$0 ;;
15970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15971 for as_dir in $PATH
15972 do
15973 IFS=$as_save_IFS
15974 test -z "$as_dir" && as_dir=.
15975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15976 done
15977 IFS=$as_save_IFS
15978
15979 ;;
15980 esac
15981 # We did not find ourselves, most probably we were run as `sh COMMAND'
15982 # in which case we are not to be found in the path.
15983 if test "x$as_myself" = x; then
15984 as_myself=$0
15985 fi
15986 if test ! -f "$as_myself"; then
15987 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15988 exit 1
15989 fi
15990
15991 # Unset variables that we do not need and which cause bugs (e.g. in
15992 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15993 # suppresses any "Segmentation fault" message there. '((' could
15994 # trigger a bug in pdksh 5.2.14.
15995 for as_var in BASH_ENV ENV MAIL MAILPATH
15996 do eval test x\${$as_var+set} = xset \
15997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15998 done
15999 PS1='$ '
16000 PS2='> '
16001 PS4='+ '
16002
16003 # NLS nuisances.
16004 LC_ALL=C
16005 export LC_ALL
16006 LANGUAGE=C
16007 export LANGUAGE
16008
16009 # CDPATH.
16010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16011
16012
16013 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16014 # ----------------------------------------
16015 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16016 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16017 # script with STATUS, using 1 if that was 0.
16018 as_fn_error ()
16019 {
16020 as_status=$1; test $as_status -eq 0 && as_status=1
16021 if test "$4"; then
16022 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16023 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16024 fi
16025 $as_echo "$as_me: error: $2" >&2
16026 as_fn_exit $as_status
16027 } # as_fn_error
16028
16029
16030 # as_fn_set_status STATUS
16031 # -----------------------
16032 # Set $? to STATUS, without forking.
16033 as_fn_set_status ()
16034 {
16035 return $1
16036 } # as_fn_set_status
16037
16038 # as_fn_exit STATUS
16039 # -----------------
16040 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16041 as_fn_exit ()
16042 {
16043 set +e
16044 as_fn_set_status $1
16045 exit $1
16046 } # as_fn_exit
16047
16048 # as_fn_unset VAR
16049 # ---------------
16050 # Portably unset VAR.
16051 as_fn_unset ()
16052 {
16053 { eval $1=; unset $1;}
16054 }
16055 as_unset=as_fn_unset
16056 # as_fn_append VAR VALUE
16057 # ----------------------
16058 # Append the text in VALUE to the end of the definition contained in VAR. Take
16059 # advantage of any shell optimizations that allow amortized linear growth over
16060 # repeated appends, instead of the typical quadratic growth present in naive
16061 # implementations.
16062 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16063 eval 'as_fn_append ()
16064 {
16065 eval $1+=\$2
16066 }'
16067 else
16068 as_fn_append ()
16069 {
16070 eval $1=\$$1\$2
16071 }
16072 fi # as_fn_append
16073
16074 # as_fn_arith ARG...
16075 # ------------------
16076 # Perform arithmetic evaluation on the ARGs, and store the result in the
16077 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16078 # must be portable across $(()) and expr.
16079 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16080 eval 'as_fn_arith ()
16081 {
16082 as_val=$(( $* ))
16083 }'
16084 else
16085 as_fn_arith ()
16086 {
16087 as_val=`expr "$@" || test $? -eq 1`
16088 }
16089 fi # as_fn_arith
16090
16091
16092 if expr a : '\(a\)' >/dev/null 2>&1 &&
16093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16094 as_expr=expr
16095 else
16096 as_expr=false
16097 fi
16098
16099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16100 as_basename=basename
16101 else
16102 as_basename=false
16103 fi
16104
16105 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16106 as_dirname=dirname
16107 else
16108 as_dirname=false
16109 fi
16110
16111 as_me=`$as_basename -- "$0" ||
16112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16113 X"$0" : 'X\(//\)$' \| \
16114 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16115 $as_echo X/"$0" |
16116 sed '/^.*\/\([^/][^/]*\)\/*$/{
16117 s//\1/
16118 q
16119 }
16120 /^X\/\(\/\/\)$/{
16121 s//\1/
16122 q
16123 }
16124 /^X\/\(\/\).*/{
16125 s//\1/
16126 q
16127 }
16128 s/.*/./; q'`
16129
16130 # Avoid depending upon Character Ranges.
16131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16134 as_cr_digits='0123456789'
16135 as_cr_alnum=$as_cr_Letters$as_cr_digits
16136
16137 ECHO_C= ECHO_N= ECHO_T=
16138 case `echo -n x` in #(((((
16139 -n*)
16140 case `echo 'xy\c'` in
16141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16142 xy) ECHO_C='\c';;
16143 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16144 ECHO_T=' ';;
16145 esac;;
16146 *)
16147 ECHO_N='-n';;
16148 esac
16149
16150 rm -f conf$$ conf$$.exe conf$$.file
16151 if test -d conf$$.dir; then
16152 rm -f conf$$.dir/conf$$.file
16153 else
16154 rm -f conf$$.dir
16155 mkdir conf$$.dir 2>/dev/null
16156 fi
16157 if (echo >conf$$.file) 2>/dev/null; then
16158 if ln -s conf$$.file conf$$ 2>/dev/null; then
16159 as_ln_s='ln -s'
16160 # ... but there are two gotchas:
16161 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16162 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16163 # In both cases, we have to default to `cp -pR'.
16164 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16165 as_ln_s='cp -pR'
16166 elif ln conf$$.file conf$$ 2>/dev/null; then
16167 as_ln_s=ln
16168 else
16169 as_ln_s='cp -pR'
16170 fi
16171 else
16172 as_ln_s='cp -pR'
16173 fi
16174 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16175 rmdir conf$$.dir 2>/dev/null
16176
16177
16178 # as_fn_mkdir_p
16179 # -------------
16180 # Create "$as_dir" as a directory, including parents if necessary.
16181 as_fn_mkdir_p ()
16182 {
16183
16184 case $as_dir in #(
16185 -*) as_dir=./$as_dir;;
16186 esac
16187 test -d "$as_dir" || eval $as_mkdir_p || {
16188 as_dirs=
16189 while :; do
16190 case $as_dir in #(
16191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16192 *) as_qdir=$as_dir;;
16193 esac
16194 as_dirs="'$as_qdir' $as_dirs"
16195 as_dir=`$as_dirname -- "$as_dir" ||
16196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16197 X"$as_dir" : 'X\(//\)[^/]' \| \
16198 X"$as_dir" : 'X\(//\)$' \| \
16199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16200 $as_echo X"$as_dir" |
16201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16202 s//\1/
16203 q
16204 }
16205 /^X\(\/\/\)[^/].*/{
16206 s//\1/
16207 q
16208 }
16209 /^X\(\/\/\)$/{
16210 s//\1/
16211 q
16212 }
16213 /^X\(\/\).*/{
16214 s//\1/
16215 q
16216 }
16217 s/.*/./; q'`
16218 test -d "$as_dir" && break
16219 done
16220 test -z "$as_dirs" || eval "mkdir $as_dirs"
16221 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16222
16223
16224 } # as_fn_mkdir_p
16225 if mkdir -p . 2>/dev/null; then
16226 as_mkdir_p='mkdir -p "$as_dir"'
16227 else
16228 test -d ./-p && rmdir ./-p
16229 as_mkdir_p=false
16230 fi
16231
16232
16233 # as_fn_executable_p FILE
16234 # -----------------------
16235 # Test if FILE is an executable regular file.
16236 as_fn_executable_p ()
16237 {
16238 test -f "$1" && test -x "$1"
16239 } # as_fn_executable_p
16240 as_test_x='test -x'
16241 as_executable_p=as_fn_executable_p
16242
16243 # Sed expression to map a string onto a valid CPP name.
16244 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16245
16246 # Sed expression to map a string onto a valid variable name.
16247 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16248
16249
16250 exec 6>&1
16251 ## ----------------------------------- ##
16252 ## Main body of $CONFIG_STATUS script. ##
16253 ## ----------------------------------- ##
16254 _ASEOF
16255 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16256
16257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16258 # Save the log message, to keep $0 and so on meaningful, and to
16259 # report actual input values of CONFIG_FILES etc. instead of their
16260 # values after options handling.
16261 ac_log="
16262 This file was extended by ircd-hybrid $as_me 8.2.0beta4, which was
16263 generated by GNU Autoconf 2.69. Invocation command line was
16264
16265 CONFIG_FILES = $CONFIG_FILES
16266 CONFIG_HEADERS = $CONFIG_HEADERS
16267 CONFIG_LINKS = $CONFIG_LINKS
16268 CONFIG_COMMANDS = $CONFIG_COMMANDS
16269 $ $0 $@
16270
16271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16272 "
16273
16274 _ACEOF
16275
16276 case $ac_config_files in *"
16277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16278 esac
16279
16280 case $ac_config_headers in *"
16281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16282 esac
16283
16284
16285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16286 # Files that config.status was made for.
16287 config_files="$ac_config_files"
16288 config_headers="$ac_config_headers"
16289 config_commands="$ac_config_commands"
16290
16291 _ACEOF
16292
16293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16294 ac_cs_usage="\
16295 \`$as_me' instantiates files and other configuration actions
16296 from templates according to the current configuration. Unless the files
16297 and actions are specified as TAGs, all are instantiated by default.
16298
16299 Usage: $0 [OPTION]... [TAG]...
16300
16301 -h, --help print this help, then exit
16302 -V, --version print version number and configuration settings, then exit
16303 --config print configuration, then exit
16304 -q, --quiet, --silent
16305 do not print progress messages
16306 -d, --debug don't remove temporary files
16307 --recheck update $as_me by reconfiguring in the same conditions
16308 --file=FILE[:TEMPLATE]
16309 instantiate the configuration file FILE
16310 --header=FILE[:TEMPLATE]
16311 instantiate the configuration header FILE
16312
16313 Configuration files:
16314 $config_files
16315
16316 Configuration headers:
16317 $config_headers
16318
16319 Configuration commands:
16320 $config_commands
16321
16322 Report bugs to <bugs@ircd-hybrid.org>."
16323
16324 _ACEOF
16325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16326 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16327 ac_cs_version="\\
16328 ircd-hybrid config.status 8.2.0beta4
16329 configured by $0, generated by GNU Autoconf 2.69,
16330 with options \\"\$ac_cs_config\\"
16331
16332 Copyright (C) 2012 Free Software Foundation, Inc.
16333 This config.status script is free software; the Free Software Foundation
16334 gives unlimited permission to copy, distribute and modify it."
16335
16336 ac_pwd='$ac_pwd'
16337 srcdir='$srcdir'
16338 INSTALL='$INSTALL'
16339 MKDIR_P='$MKDIR_P'
16340 AWK='$AWK'
16341 test -n "\$AWK" || AWK=awk
16342 _ACEOF
16343
16344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16345 # The default lists apply if the user does not specify any file.
16346 ac_need_defaults=:
16347 while test $# != 0
16348 do
16349 case $1 in
16350 --*=?*)
16351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16353 ac_shift=:
16354 ;;
16355 --*=)
16356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16357 ac_optarg=
16358 ac_shift=:
16359 ;;
16360 *)
16361 ac_option=$1
16362 ac_optarg=$2
16363 ac_shift=shift
16364 ;;
16365 esac
16366
16367 case $ac_option in
16368 # Handling of the options.
16369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16370 ac_cs_recheck=: ;;
16371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16372 $as_echo "$ac_cs_version"; exit ;;
16373 --config | --confi | --conf | --con | --co | --c )
16374 $as_echo "$ac_cs_config"; exit ;;
16375 --debug | --debu | --deb | --de | --d | -d )
16376 debug=: ;;
16377 --file | --fil | --fi | --f )
16378 $ac_shift
16379 case $ac_optarg in
16380 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16381 '') as_fn_error $? "missing file argument" ;;
16382 esac
16383 as_fn_append CONFIG_FILES " '$ac_optarg'"
16384 ac_need_defaults=false;;
16385 --header | --heade | --head | --hea )
16386 $ac_shift
16387 case $ac_optarg in
16388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16389 esac
16390 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16391 ac_need_defaults=false;;
16392 --he | --h)
16393 # Conflict between --help and --header
16394 as_fn_error $? "ambiguous option: \`$1'
16395 Try \`$0 --help' for more information.";;
16396 --help | --hel | -h )
16397 $as_echo "$ac_cs_usage"; exit ;;
16398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16400 ac_cs_silent=: ;;
16401
16402 # This is an error.
16403 -*) as_fn_error $? "unrecognized option: \`$1'
16404 Try \`$0 --help' for more information." ;;
16405
16406 *) as_fn_append ac_config_targets " $1"
16407 ac_need_defaults=false ;;
16408
16409 esac
16410 shift
16411 done
16412
16413 ac_configure_extra_args=
16414
16415 if $ac_cs_silent; then
16416 exec 6>/dev/null
16417 ac_configure_extra_args="$ac_configure_extra_args --silent"
16418 fi
16419
16420 _ACEOF
16421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16422 if \$ac_cs_recheck; then
16423 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16424 shift
16425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16426 CONFIG_SHELL='$SHELL'
16427 export CONFIG_SHELL
16428 exec "\$@"
16429 fi
16430
16431 _ACEOF
16432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16433 exec 5>>config.log
16434 {
16435 echo
16436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16437 ## Running $as_me. ##
16438 _ASBOX
16439 $as_echo "$ac_log"
16440 } >&5
16441
16442 _ACEOF
16443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16444 #
16445 # INIT-COMMANDS
16446 #
16447 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16448
16449
16450 # The HP-UX ksh and POSIX shell print the target directory to stdout
16451 # if CDPATH is set.
16452 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16453
16454 sed_quote_subst='$sed_quote_subst'
16455 double_quote_subst='$double_quote_subst'
16456 delay_variable_subst='$delay_variable_subst'
16457 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16458 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16459 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16460 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16461 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16462 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16463 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16464 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16465 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16466 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16467 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16468 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16469 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16470 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16471 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16472 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16473 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16474 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16475 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16476 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16477 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16478 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16479 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16480 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16481 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16482 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16483 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16484 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16485 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16486 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16487 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16488 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16489 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16490 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16491 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16492 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16493 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16494 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16495 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16496 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16497 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16498 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16499 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16500 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16501 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16502 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16503 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16504 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16505 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16506 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16507 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16508 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16509 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16510 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16511 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16512 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16513 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16514 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16515 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16516 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16517 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16518 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16519 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16520 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16521 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16522 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16523 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16524 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16525 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16526 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16527 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16528 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16529 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16530 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16531 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16532 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16533 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16534 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16535 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16536 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16537 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16538 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16539 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16540 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16541 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16542 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16543 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16544 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16545 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16546 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16547 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16548 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16549 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16550 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16551 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16552 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16553 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16554 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16555 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16556 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16557 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16558 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16559 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16560 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16561 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16562 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16563 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16564 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16565 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16566 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16567 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16568 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16569 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16570 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16571 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16572 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16573 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16574 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16575 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16576 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16577 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16578 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16579 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16580 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16581 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16582 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16583 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16584 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16585 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16586 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16587
16588 LTCC='$LTCC'
16589 LTCFLAGS='$LTCFLAGS'
16590 compiler='$compiler_DEFAULT'
16591
16592 # A function that is used when there is no print builtin or printf.
16593 func_fallback_echo ()
16594 {
16595 eval 'cat <<_LTECHO_EOF
16596 \$1
16597 _LTECHO_EOF'
16598 }
16599
16600 # Quote evaled strings.
16601 for var in SHELL \
16602 ECHO \
16603 PATH_SEPARATOR \
16604 SED \
16605 GREP \
16606 EGREP \
16607 FGREP \
16608 LD \
16609 NM \
16610 LN_S \
16611 lt_SP2NL \
16612 lt_NL2SP \
16613 reload_flag \
16614 OBJDUMP \
16615 deplibs_check_method \
16616 file_magic_cmd \
16617 file_magic_glob \
16618 want_nocaseglob \
16619 DLLTOOL \
16620 sharedlib_from_linklib_cmd \
16621 AR \
16622 AR_FLAGS \
16623 archiver_list_spec \
16624 STRIP \
16625 RANLIB \
16626 CC \
16627 CFLAGS \
16628 compiler \
16629 lt_cv_sys_global_symbol_pipe \
16630 lt_cv_sys_global_symbol_to_cdecl \
16631 lt_cv_sys_global_symbol_to_c_name_address \
16632 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16633 nm_file_list_spec \
16634 lt_prog_compiler_no_builtin_flag \
16635 lt_prog_compiler_pic \
16636 lt_prog_compiler_wl \
16637 lt_prog_compiler_static \
16638 lt_cv_prog_compiler_c_o \
16639 need_locks \
16640 MANIFEST_TOOL \
16641 DSYMUTIL \
16642 NMEDIT \
16643 LIPO \
16644 OTOOL \
16645 OTOOL64 \
16646 shrext_cmds \
16647 export_dynamic_flag_spec \
16648 whole_archive_flag_spec \
16649 compiler_needs_object \
16650 with_gnu_ld \
16651 allow_undefined_flag \
16652 no_undefined_flag \
16653 hardcode_libdir_flag_spec \
16654 hardcode_libdir_separator \
16655 exclude_expsyms \
16656 include_expsyms \
16657 file_list_spec \
16658 variables_saved_for_relink \
16659 libname_spec \
16660 library_names_spec \
16661 soname_spec \
16662 install_override_mode \
16663 finish_eval \
16664 old_striplib \
16665 striplib; do
16666 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16667 *[\\\\\\\`\\"\\\$]*)
16668 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16669 ;;
16670 *)
16671 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16672 ;;
16673 esac
16674 done
16675
16676 # Double-quote double-evaled strings.
16677 for var in reload_cmds \
16678 old_postinstall_cmds \
16679 old_postuninstall_cmds \
16680 old_archive_cmds \
16681 extract_expsyms_cmds \
16682 old_archive_from_new_cmds \
16683 old_archive_from_expsyms_cmds \
16684 archive_cmds \
16685 archive_expsym_cmds \
16686 module_cmds \
16687 module_expsym_cmds \
16688 export_symbols_cmds \
16689 prelink_cmds \
16690 postlink_cmds \
16691 postinstall_cmds \
16692 postuninstall_cmds \
16693 finish_cmds \
16694 sys_lib_search_path_spec \
16695 sys_lib_dlsearch_path_spec; do
16696 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16697 *[\\\\\\\`\\"\\\$]*)
16698 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16699 ;;
16700 *)
16701 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16702 ;;
16703 esac
16704 done
16705
16706 ac_aux_dir='$ac_aux_dir'
16707 xsi_shell='$xsi_shell'
16708 lt_shell_append='$lt_shell_append'
16709
16710 # See if we are running on zsh, and set the options which allow our
16711 # commands through without removal of \ escapes INIT.
16712 if test -n "\${ZSH_VERSION+set}" ; then
16713 setopt NO_GLOB_SUBST
16714 fi
16715
16716
16717 PACKAGE='$PACKAGE'
16718 VERSION='$VERSION'
16719 TIMESTAMP='$TIMESTAMP'
16720 RM='$RM'
16721 ofile='$ofile'
16722
16723
16724
16725
16726 _ACEOF
16727
16728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16729
16730 # Handling of arguments.
16731 for ac_config_target in $ac_config_targets
16732 do
16733 case $ac_config_target in
16734 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16735 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16736 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16737 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16738 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16739 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
16740 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16741 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
16742 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16743 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
16744 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16745
16746 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16747 esac
16748 done
16749
16750
16751 # If the user did not use the arguments to specify the items to instantiate,
16752 # then the envvar interface is used. Set only those that are not.
16753 # We use the long form for the default assignment because of an extremely
16754 # bizarre bug on SunOS 4.1.3.
16755 if $ac_need_defaults; then
16756 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16757 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16758 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16759 fi
16760
16761 # Have a temporary directory for convenience. Make it in the build tree
16762 # simply because there is no reason against having it here, and in addition,
16763 # creating and moving files from /tmp can sometimes cause problems.
16764 # Hook for its removal unless debugging.
16765 # Note that there is a small window in which the directory will not be cleaned:
16766 # after its creation but before its name has been assigned to `$tmp'.
16767 $debug ||
16768 {
16769 tmp= ac_tmp=
16770 trap 'exit_status=$?
16771 : "${ac_tmp:=$tmp}"
16772 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16773 ' 0
16774 trap 'as_fn_exit 1' 1 2 13 15
16775 }
16776 # Create a (secure) tmp directory for tmp files.
16777
16778 {
16779 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16780 test -d "$tmp"
16781 } ||
16782 {
16783 tmp=./conf$$-$RANDOM
16784 (umask 077 && mkdir "$tmp")
16785 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16786 ac_tmp=$tmp
16787
16788 # Set up the scripts for CONFIG_FILES section.
16789 # No need to generate them if there are no CONFIG_FILES.
16790 # This happens for instance with `./config.status config.h'.
16791 if test -n "$CONFIG_FILES"; then
16792
16793
16794 ac_cr=`echo X | tr X '\015'`
16795 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16796 # But we know of no other shell where ac_cr would be empty at this
16797 # point, so we can use a bashism as a fallback.
16798 if test "x$ac_cr" = x; then
16799 eval ac_cr=\$\'\\r\'
16800 fi
16801 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16802 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16803 ac_cs_awk_cr='\\r'
16804 else
16805 ac_cs_awk_cr=$ac_cr
16806 fi
16807
16808 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16809 _ACEOF
16810
16811
16812 {
16813 echo "cat >conf$$subs.awk <<_ACEOF" &&
16814 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16815 echo "_ACEOF"
16816 } >conf$$subs.sh ||
16817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16818 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16819 ac_delim='%!_!# '
16820 for ac_last_try in false false false false false :; do
16821 . ./conf$$subs.sh ||
16822 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16823
16824 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16825 if test $ac_delim_n = $ac_delim_num; then
16826 break
16827 elif $ac_last_try; then
16828 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16829 else
16830 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16831 fi
16832 done
16833 rm -f conf$$subs.sh
16834
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16837 _ACEOF
16838 sed -n '
16839 h
16840 s/^/S["/; s/!.*/"]=/
16841 p
16842 g
16843 s/^[^!]*!//
16844 :repl
16845 t repl
16846 s/'"$ac_delim"'$//
16847 t delim
16848 :nl
16849 h
16850 s/\(.\{148\}\)..*/\1/
16851 t more1
16852 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16853 p
16854 n
16855 b repl
16856 :more1
16857 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16858 p
16859 g
16860 s/.\{148\}//
16861 t nl
16862 :delim
16863 h
16864 s/\(.\{148\}\)..*/\1/
16865 t more2
16866 s/["\\]/\\&/g; s/^/"/; s/$/"/
16867 p
16868 b
16869 :more2
16870 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16871 p
16872 g
16873 s/.\{148\}//
16874 t delim
16875 ' <conf$$subs.awk | sed '
16876 /^[^""]/{
16877 N
16878 s/\n//
16879 }
16880 ' >>$CONFIG_STATUS || ac_write_fail=1
16881 rm -f conf$$subs.awk
16882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16883 _ACAWK
16884 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16885 for (key in S) S_is_set[key] = 1
16886 FS = ""
16887
16888 }
16889 {
16890 line = $ 0
16891 nfields = split(line, field, "@")
16892 substed = 0
16893 len = length(field[1])
16894 for (i = 2; i < nfields; i++) {
16895 key = field[i]
16896 keylen = length(key)
16897 if (S_is_set[key]) {
16898 value = S[key]
16899 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16900 len += length(value) + length(field[++i])
16901 substed = 1
16902 } else
16903 len += 1 + keylen
16904 }
16905
16906 print line
16907 }
16908
16909 _ACAWK
16910 _ACEOF
16911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16912 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16913 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16914 else
16915 cat
16916 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16917 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16918 _ACEOF
16919
16920 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16921 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16922 # trailing colons and then remove the whole line if VPATH becomes empty
16923 # (actually we leave an empty line to preserve line numbers).
16924 if test "x$srcdir" = x.; then
16925 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16926 h
16927 s///
16928 s/^/:/
16929 s/[ ]*$/:/
16930 s/:\$(srcdir):/:/g
16931 s/:\${srcdir}:/:/g
16932 s/:@srcdir@:/:/g
16933 s/^:*//
16934 s/:*$//
16935 x
16936 s/\(=[ ]*\).*/\1/
16937 G
16938 s/\n//
16939 s/^[^=]*=[ ]*$//
16940 }'
16941 fi
16942
16943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16944 fi # test -n "$CONFIG_FILES"
16945
16946 # Set up the scripts for CONFIG_HEADERS section.
16947 # No need to generate them if there are no CONFIG_HEADERS.
16948 # This happens for instance with `./config.status Makefile'.
16949 if test -n "$CONFIG_HEADERS"; then
16950 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16951 BEGIN {
16952 _ACEOF
16953
16954 # Transform confdefs.h into an awk script `defines.awk', embedded as
16955 # here-document in config.status, that substitutes the proper values into
16956 # config.h.in to produce config.h.
16957
16958 # Create a delimiter string that does not exist in confdefs.h, to ease
16959 # handling of long lines.
16960 ac_delim='%!_!# '
16961 for ac_last_try in false false :; do
16962 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16963 if test -z "$ac_tt"; then
16964 break
16965 elif $ac_last_try; then
16966 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16967 else
16968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16969 fi
16970 done
16971
16972 # For the awk script, D is an array of macro values keyed by name,
16973 # likewise P contains macro parameters if any. Preserve backslash
16974 # newline sequences.
16975
16976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16977 sed -n '
16978 s/.\{148\}/&'"$ac_delim"'/g
16979 t rset
16980 :rset
16981 s/^[ ]*#[ ]*define[ ][ ]*/ /
16982 t def
16983 d
16984 :def
16985 s/\\$//
16986 t bsnl
16987 s/["\\]/\\&/g
16988 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16989 D["\1"]=" \3"/p
16990 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16991 d
16992 :bsnl
16993 s/["\\]/\\&/g
16994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16995 D["\1"]=" \3\\\\\\n"\\/p
16996 t cont
16997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16998 t cont
16999 d
17000 :cont
17001 n
17002 s/.\{148\}/&'"$ac_delim"'/g
17003 t clear
17004 :clear
17005 s/\\$//
17006 t bsnlc
17007 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17008 d
17009 :bsnlc
17010 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17011 b cont
17012 ' <confdefs.h | sed '
17013 s/'"$ac_delim"'/"\\\
17014 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17015
17016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17017 for (key in D) D_is_set[key] = 1
17018 FS = ""
17019 }
17020 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17021 line = \$ 0
17022 split(line, arg, " ")
17023 if (arg[1] == "#") {
17024 defundef = arg[2]
17025 mac1 = arg[3]
17026 } else {
17027 defundef = substr(arg[1], 2)
17028 mac1 = arg[2]
17029 }
17030 split(mac1, mac2, "(") #)
17031 macro = mac2[1]
17032 prefix = substr(line, 1, index(line, defundef) - 1)
17033 if (D_is_set[macro]) {
17034 # Preserve the white space surrounding the "#".
17035 print prefix "define", macro P[macro] D[macro]
17036 next
17037 } else {
17038 # Replace #undef with comments. This is necessary, for example,
17039 # in the case of _POSIX_SOURCE, which is predefined and required
17040 # on some systems where configure will not decide to define it.
17041 if (defundef == "undef") {
17042 print "/*", prefix defundef, macro, "*/"
17043 next
17044 }
17045 }
17046 }
17047 { print }
17048 _ACAWK
17049 _ACEOF
17050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17051 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17052 fi # test -n "$CONFIG_HEADERS"
17053
17054
17055 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17056 shift
17057 for ac_tag
17058 do
17059 case $ac_tag in
17060 :[FHLC]) ac_mode=$ac_tag; continue;;
17061 esac
17062 case $ac_mode$ac_tag in
17063 :[FHL]*:*);;
17064 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17065 :[FH]-) ac_tag=-:-;;
17066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17067 esac
17068 ac_save_IFS=$IFS
17069 IFS=:
17070 set x $ac_tag
17071 IFS=$ac_save_IFS
17072 shift
17073 ac_file=$1
17074 shift
17075
17076 case $ac_mode in
17077 :L) ac_source=$1;;
17078 :[FH])
17079 ac_file_inputs=
17080 for ac_f
17081 do
17082 case $ac_f in
17083 -) ac_f="$ac_tmp/stdin";;
17084 *) # Look for the file first in the build tree, then in the source tree
17085 # (if the path is not absolute). The absolute path cannot be DOS-style,
17086 # because $ac_f cannot contain `:'.
17087 test -f "$ac_f" ||
17088 case $ac_f in
17089 [\\/$]*) false;;
17090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17091 esac ||
17092 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17093 esac
17094 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17095 as_fn_append ac_file_inputs " '$ac_f'"
17096 done
17097
17098 # Let's still pretend it is `configure' which instantiates (i.e., don't
17099 # use $as_me), people would be surprised to read:
17100 # /* config.h. Generated by config.status. */
17101 configure_input='Generated from '`
17102 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17103 `' by configure.'
17104 if test x"$ac_file" != x-; then
17105 configure_input="$ac_file. $configure_input"
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17107 $as_echo "$as_me: creating $ac_file" >&6;}
17108 fi
17109 # Neutralize special characters interpreted by sed in replacement strings.
17110 case $configure_input in #(
17111 *\&* | *\|* | *\\* )
17112 ac_sed_conf_input=`$as_echo "$configure_input" |
17113 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17114 *) ac_sed_conf_input=$configure_input;;
17115 esac
17116
17117 case $ac_tag in
17118 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17120 esac
17121 ;;
17122 esac
17123
17124 ac_dir=`$as_dirname -- "$ac_file" ||
17125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17126 X"$ac_file" : 'X\(//\)[^/]' \| \
17127 X"$ac_file" : 'X\(//\)$' \| \
17128 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17129 $as_echo X"$ac_file" |
17130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17131 s//\1/
17132 q
17133 }
17134 /^X\(\/\/\)[^/].*/{
17135 s//\1/
17136 q
17137 }
17138 /^X\(\/\/\)$/{
17139 s//\1/
17140 q
17141 }
17142 /^X\(\/\).*/{
17143 s//\1/
17144 q
17145 }
17146 s/.*/./; q'`
17147 as_dir="$ac_dir"; as_fn_mkdir_p
17148 ac_builddir=.
17149
17150 case "$ac_dir" in
17151 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17152 *)
17153 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17154 # A ".." for each directory in $ac_dir_suffix.
17155 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17156 case $ac_top_builddir_sub in
17157 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17158 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17159 esac ;;
17160 esac
17161 ac_abs_top_builddir=$ac_pwd
17162 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17163 # for backward compatibility:
17164 ac_top_builddir=$ac_top_build_prefix
17165
17166 case $srcdir in
17167 .) # We are building in place.
17168 ac_srcdir=.
17169 ac_top_srcdir=$ac_top_builddir_sub
17170 ac_abs_top_srcdir=$ac_pwd ;;
17171 [\\/]* | ?:[\\/]* ) # Absolute name.
17172 ac_srcdir=$srcdir$ac_dir_suffix;
17173 ac_top_srcdir=$srcdir
17174 ac_abs_top_srcdir=$srcdir ;;
17175 *) # Relative name.
17176 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17177 ac_top_srcdir=$ac_top_build_prefix$srcdir
17178 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17179 esac
17180 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17181
17182
17183 case $ac_mode in
17184 :F)
17185 #
17186 # CONFIG_FILE
17187 #
17188
17189 case $INSTALL in
17190 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17191 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17192 esac
17193 ac_MKDIR_P=$MKDIR_P
17194 case $MKDIR_P in
17195 [\\/$]* | ?:[\\/]* ) ;;
17196 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17197 esac
17198 _ACEOF
17199
17200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17201 # If the template does not know about datarootdir, expand it.
17202 # FIXME: This hack should be removed a few years after 2.60.
17203 ac_datarootdir_hack=; ac_datarootdir_seen=
17204 ac_sed_dataroot='
17205 /datarootdir/ {
17206 p
17207 q
17208 }
17209 /@datadir@/p
17210 /@docdir@/p
17211 /@infodir@/p
17212 /@localedir@/p
17213 /@mandir@/p'
17214 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17215 *datarootdir*) ac_datarootdir_seen=yes;;
17216 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17218 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17219 _ACEOF
17220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17221 ac_datarootdir_hack='
17222 s&@datadir@&$datadir&g
17223 s&@docdir@&$docdir&g
17224 s&@infodir@&$infodir&g
17225 s&@localedir@&$localedir&g
17226 s&@mandir@&$mandir&g
17227 s&\\\${datarootdir}&$datarootdir&g' ;;
17228 esac
17229 _ACEOF
17230
17231 # Neutralize VPATH when `$srcdir' = `.'.
17232 # Shell code in configure.ac might set extrasub.
17233 # FIXME: do we really want to maintain this feature?
17234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17235 ac_sed_extra="$ac_vpsub
17236 $extrasub
17237 _ACEOF
17238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17239 :t
17240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17241 s|@configure_input@|$ac_sed_conf_input|;t t
17242 s&@top_builddir@&$ac_top_builddir_sub&;t t
17243 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17244 s&@srcdir@&$ac_srcdir&;t t
17245 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17246 s&@top_srcdir@&$ac_top_srcdir&;t t
17247 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17248 s&@builddir@&$ac_builddir&;t t
17249 s&@abs_builddir@&$ac_abs_builddir&;t t
17250 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17251 s&@INSTALL@&$ac_INSTALL&;t t
17252 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17253 $ac_datarootdir_hack
17254 "
17255 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17256 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17257
17258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17259 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17261 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17263 which seems to be undefined. Please make sure it is defined" >&5
17264 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17265 which seems to be undefined. Please make sure it is defined" >&2;}
17266
17267 rm -f "$ac_tmp/stdin"
17268 case $ac_file in
17269 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17270 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17271 esac \
17272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17273 ;;
17274 :H)
17275 #
17276 # CONFIG_HEADER
17277 #
17278 if test x"$ac_file" != x-; then
17279 {
17280 $as_echo "/* $configure_input */" \
17281 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17282 } >"$ac_tmp/config.h" \
17283 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17284 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17286 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17287 else
17288 rm -f "$ac_file"
17289 mv "$ac_tmp/config.h" "$ac_file" \
17290 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17291 fi
17292 else
17293 $as_echo "/* $configure_input */" \
17294 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17295 || as_fn_error $? "could not create -" "$LINENO" 5
17296 fi
17297 # Compute "$ac_file"'s index in $config_headers.
17298 _am_arg="$ac_file"
17299 _am_stamp_count=1
17300 for _am_header in $config_headers :; do
17301 case $_am_header in
17302 $_am_arg | $_am_arg:* )
17303 break ;;
17304 * )
17305 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17306 esac
17307 done
17308 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17309 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17310 X"$_am_arg" : 'X\(//\)[^/]' \| \
17311 X"$_am_arg" : 'X\(//\)$' \| \
17312 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17313 $as_echo X"$_am_arg" |
17314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17315 s//\1/
17316 q
17317 }
17318 /^X\(\/\/\)[^/].*/{
17319 s//\1/
17320 q
17321 }
17322 /^X\(\/\/\)$/{
17323 s//\1/
17324 q
17325 }
17326 /^X\(\/\).*/{
17327 s//\1/
17328 q
17329 }
17330 s/.*/./; q'`/stamp-h$_am_stamp_count
17331 ;;
17332
17333 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17334 $as_echo "$as_me: executing $ac_file commands" >&6;}
17335 ;;
17336 esac
17337
17338
17339 case $ac_file$ac_mode in
17340 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17341 # Older Autoconf quotes --file arguments for eval, but not when files
17342 # are listed without --file. Let's play safe and only enable the eval
17343 # if we detect the quoting.
17344 case $CONFIG_FILES in
17345 *\'*) eval set x "$CONFIG_FILES" ;;
17346 *) set x $CONFIG_FILES ;;
17347 esac
17348 shift
17349 for mf
17350 do
17351 # Strip MF so we end up with the name of the file.
17352 mf=`echo "$mf" | sed -e 's/:.*$//'`
17353 # Check whether this is an Automake generated Makefile or not.
17354 # We used to match only the files named 'Makefile.in', but
17355 # some people rename them; so instead we look at the file content.
17356 # Grep'ing the first line is not enough: some people post-process
17357 # each Makefile.in and add a new line on top of each file to say so.
17358 # Grep'ing the whole file is not good either: AIX grep has a line
17359 # limit of 2048, but all sed's we know have understand at least 4000.
17360 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17361 dirpart=`$as_dirname -- "$mf" ||
17362 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17363 X"$mf" : 'X\(//\)[^/]' \| \
17364 X"$mf" : 'X\(//\)$' \| \
17365 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17366 $as_echo X"$mf" |
17367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17368 s//\1/
17369 q
17370 }
17371 /^X\(\/\/\)[^/].*/{
17372 s//\1/
17373 q
17374 }
17375 /^X\(\/\/\)$/{
17376 s//\1/
17377 q
17378 }
17379 /^X\(\/\).*/{
17380 s//\1/
17381 q
17382 }
17383 s/.*/./; q'`
17384 else
17385 continue
17386 fi
17387 # Extract the definition of DEPDIR, am__include, and am__quote
17388 # from the Makefile without running 'make'.
17389 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17390 test -z "$DEPDIR" && continue
17391 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17392 test -z "$am__include" && continue
17393 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17394 # Find all dependency output files, they are included files with
17395 # $(DEPDIR) in their names. We invoke sed twice because it is the
17396 # simplest approach to changing $(DEPDIR) to its actual value in the
17397 # expansion.
17398 for file in `sed -n "
17399 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17400 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17401 # Make sure the directory exists.
17402 test -f "$dirpart/$file" && continue
17403 fdir=`$as_dirname -- "$file" ||
17404 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17405 X"$file" : 'X\(//\)[^/]' \| \
17406 X"$file" : 'X\(//\)$' \| \
17407 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17408 $as_echo X"$file" |
17409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17410 s//\1/
17411 q
17412 }
17413 /^X\(\/\/\)[^/].*/{
17414 s//\1/
17415 q
17416 }
17417 /^X\(\/\/\)$/{
17418 s//\1/
17419 q
17420 }
17421 /^X\(\/\).*/{
17422 s//\1/
17423 q
17424 }
17425 s/.*/./; q'`
17426 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17427 # echo "creating $dirpart/$file"
17428 echo '# dummy' > "$dirpart/$file"
17429 done
17430 done
17431 }
17432 ;;
17433 "libtool":C)
17434
17435 # See if we are running on zsh, and set the options which allow our
17436 # commands through without removal of \ escapes.
17437 if test -n "${ZSH_VERSION+set}" ; then
17438 setopt NO_GLOB_SUBST
17439 fi
17440
17441 cfgfile="${ofile}T"
17442 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17443 $RM "$cfgfile"
17444
17445 cat <<_LT_EOF >> "$cfgfile"
17446 #! $SHELL
17447
17448 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17449 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17450 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17451 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17452 #
17453 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17454 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17455 # Foundation, Inc.
17456 # Written by Gordon Matzigkeit, 1996
17457 #
17458 # This file is part of GNU Libtool.
17459 #
17460 # GNU Libtool is free software; you can redistribute it and/or
17461 # modify it under the terms of the GNU General Public License as
17462 # published by the Free Software Foundation; either version 2 of
17463 # the License, or (at your option) any later version.
17464 #
17465 # As a special exception to the GNU General Public License,
17466 # if you distribute this file as part of a program or library that
17467 # is built using GNU Libtool, you may include this file under the
17468 # same distribution terms that you use for the rest of that program.
17469 #
17470 # GNU Libtool is distributed in the hope that it will be useful,
17471 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17472 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17473 # GNU General Public License for more details.
17474 #
17475 # You should have received a copy of the GNU General Public License
17476 # along with GNU Libtool; see the file COPYING. If not, a copy
17477 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17478 # obtained by writing to the Free Software Foundation, Inc.,
17479 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17480
17481
17482 # The names of the tagged configurations supported by this script.
17483 available_tags=""
17484
17485 # ### BEGIN LIBTOOL CONFIG
17486
17487 # Which release of libtool.m4 was used?
17488 macro_version=$macro_version
17489 macro_revision=$macro_revision
17490
17491 # Whether or not to build static libraries.
17492 build_old_libs=$enable_static
17493
17494 # Whether or not to build shared libraries.
17495 build_libtool_libs=$enable_shared
17496
17497 # What type of objects to build.
17498 pic_mode=$pic_mode
17499
17500 # Whether or not to optimize for fast installation.
17501 fast_install=$enable_fast_install
17502
17503 # Shell to use when invoking shell scripts.
17504 SHELL=$lt_SHELL
17505
17506 # An echo program that protects backslashes.
17507 ECHO=$lt_ECHO
17508
17509 # The PATH separator for the build system.
17510 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17511
17512 # The host system.
17513 host_alias=$host_alias
17514 host=$host
17515 host_os=$host_os
17516
17517 # The build system.
17518 build_alias=$build_alias
17519 build=$build
17520 build_os=$build_os
17521
17522 # A sed program that does not truncate output.
17523 SED=$lt_SED
17524
17525 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17526 Xsed="\$SED -e 1s/^X//"
17527
17528 # A grep program that handles long lines.
17529 GREP=$lt_GREP
17530
17531 # An ERE matcher.
17532 EGREP=$lt_EGREP
17533
17534 # A literal string matcher.
17535 FGREP=$lt_FGREP
17536
17537 # A BSD- or MS-compatible name lister.
17538 NM=$lt_NM
17539
17540 # Whether we need soft or hard links.
17541 LN_S=$lt_LN_S
17542
17543 # What is the maximum length of a command?
17544 max_cmd_len=$max_cmd_len
17545
17546 # Object file suffix (normally "o").
17547 objext=$ac_objext
17548
17549 # Executable file suffix (normally "").
17550 exeext=$exeext
17551
17552 # whether the shell understands "unset".
17553 lt_unset=$lt_unset
17554
17555 # turn spaces into newlines.
17556 SP2NL=$lt_lt_SP2NL
17557
17558 # turn newlines into spaces.
17559 NL2SP=$lt_lt_NL2SP
17560
17561 # convert \$build file names to \$host format.
17562 to_host_file_cmd=$lt_cv_to_host_file_cmd
17563
17564 # convert \$build files to toolchain format.
17565 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17566
17567 # An object symbol dumper.
17568 OBJDUMP=$lt_OBJDUMP
17569
17570 # Method to check whether dependent libraries are shared objects.
17571 deplibs_check_method=$lt_deplibs_check_method
17572
17573 # Command to use when deplibs_check_method = "file_magic".
17574 file_magic_cmd=$lt_file_magic_cmd
17575
17576 # How to find potential files when deplibs_check_method = "file_magic".
17577 file_magic_glob=$lt_file_magic_glob
17578
17579 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17580 want_nocaseglob=$lt_want_nocaseglob
17581
17582 # DLL creation program.
17583 DLLTOOL=$lt_DLLTOOL
17584
17585 # Command to associate shared and link libraries.
17586 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17587
17588 # The archiver.
17589 AR=$lt_AR
17590
17591 # Flags to create an archive.
17592 AR_FLAGS=$lt_AR_FLAGS
17593
17594 # How to feed a file listing to the archiver.
17595 archiver_list_spec=$lt_archiver_list_spec
17596
17597 # A symbol stripping program.
17598 STRIP=$lt_STRIP
17599
17600 # Commands used to install an old-style archive.
17601 RANLIB=$lt_RANLIB
17602 old_postinstall_cmds=$lt_old_postinstall_cmds
17603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17604
17605 # Whether to use a lock for old archive extraction.
17606 lock_old_archive_extraction=$lock_old_archive_extraction
17607
17608 # A C compiler.
17609 LTCC=$lt_CC
17610
17611 # LTCC compiler flags.
17612 LTCFLAGS=$lt_CFLAGS
17613
17614 # Take the output of nm and produce a listing of raw symbols and C names.
17615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17616
17617 # Transform the output of nm in a proper C declaration.
17618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17619
17620 # Transform the output of nm in a C name address pair.
17621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17622
17623 # Transform the output of nm in a C name address pair when lib prefix is needed.
17624 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17625
17626 # Specify filename containing input files for \$NM.
17627 nm_file_list_spec=$lt_nm_file_list_spec
17628
17629 # The root where to search for dependent libraries,and in which our libraries should be installed.
17630 lt_sysroot=$lt_sysroot
17631
17632 # The name of the directory that contains temporary libtool files.
17633 objdir=$objdir
17634
17635 # Used to examine libraries when file_magic_cmd begins with "file".
17636 MAGIC_CMD=$MAGIC_CMD
17637
17638 # Must we lock files when doing compilation?
17639 need_locks=$lt_need_locks
17640
17641 # Manifest tool.
17642 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17643
17644 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17645 DSYMUTIL=$lt_DSYMUTIL
17646
17647 # Tool to change global to local symbols on Mac OS X.
17648 NMEDIT=$lt_NMEDIT
17649
17650 # Tool to manipulate fat objects and archives on Mac OS X.
17651 LIPO=$lt_LIPO
17652
17653 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17654 OTOOL=$lt_OTOOL
17655
17656 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17657 OTOOL64=$lt_OTOOL64
17658
17659 # Old archive suffix (normally "a").
17660 libext=$libext
17661
17662 # Shared library suffix (normally ".so").
17663 shrext_cmds=$lt_shrext_cmds
17664
17665 # The commands to extract the exported symbol list from a shared archive.
17666 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17667
17668 # Variables whose values should be saved in libtool wrapper scripts and
17669 # restored at link time.
17670 variables_saved_for_relink=$lt_variables_saved_for_relink
17671
17672 # Do we need the "lib" prefix for modules?
17673 need_lib_prefix=$need_lib_prefix
17674
17675 # Do we need a version for libraries?
17676 need_version=$need_version
17677
17678 # Library versioning type.
17679 version_type=$version_type
17680
17681 # Shared library runtime path variable.
17682 runpath_var=$runpath_var
17683
17684 # Shared library path variable.
17685 shlibpath_var=$shlibpath_var
17686
17687 # Is shlibpath searched before the hard-coded library search path?
17688 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17689
17690 # Format of library name prefix.
17691 libname_spec=$lt_libname_spec
17692
17693 # List of archive names. First name is the real one, the rest are links.
17694 # The last name is the one that the linker finds with -lNAME
17695 library_names_spec=$lt_library_names_spec
17696
17697 # The coded name of the library, if different from the real name.
17698 soname_spec=$lt_soname_spec
17699
17700 # Permission mode override for installation of shared libraries.
17701 install_override_mode=$lt_install_override_mode
17702
17703 # Command to use after installation of a shared archive.
17704 postinstall_cmds=$lt_postinstall_cmds
17705
17706 # Command to use after uninstallation of a shared archive.
17707 postuninstall_cmds=$lt_postuninstall_cmds
17708
17709 # Commands used to finish a libtool library installation in a directory.
17710 finish_cmds=$lt_finish_cmds
17711
17712 # As "finish_cmds", except a single script fragment to be evaled but
17713 # not shown.
17714 finish_eval=$lt_finish_eval
17715
17716 # Whether we should hardcode library paths into libraries.
17717 hardcode_into_libs=$hardcode_into_libs
17718
17719 # Compile-time system search path for libraries.
17720 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17721
17722 # Run-time system search path for libraries.
17723 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17724
17725 # Whether dlopen is supported.
17726 dlopen_support=$enable_dlopen
17727
17728 # Whether dlopen of programs is supported.
17729 dlopen_self=$enable_dlopen_self
17730
17731 # Whether dlopen of statically linked programs is supported.
17732 dlopen_self_static=$enable_dlopen_self_static
17733
17734 # Commands to strip libraries.
17735 old_striplib=$lt_old_striplib
17736 striplib=$lt_striplib
17737
17738
17739 # The linker used to build libraries.
17740 LD=$lt_LD
17741
17742 # How to create reloadable object files.
17743 reload_flag=$lt_reload_flag
17744 reload_cmds=$lt_reload_cmds
17745
17746 # Commands used to build an old-style archive.
17747 old_archive_cmds=$lt_old_archive_cmds
17748
17749 # A language specific compiler.
17750 CC=$lt_compiler
17751
17752 # Is the compiler the GNU compiler?
17753 with_gcc=$GCC
17754
17755 # Compiler flag to turn off builtin functions.
17756 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17757
17758 # Additional compiler flags for building library objects.
17759 pic_flag=$lt_lt_prog_compiler_pic
17760
17761 # How to pass a linker flag through the compiler.
17762 wl=$lt_lt_prog_compiler_wl
17763
17764 # Compiler flag to prevent dynamic linking.
17765 link_static_flag=$lt_lt_prog_compiler_static
17766
17767 # Does compiler simultaneously support -c and -o options?
17768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17769
17770 # Whether or not to add -lc for building shared libraries.
17771 build_libtool_need_lc=$archive_cmds_need_lc
17772
17773 # Whether or not to disallow shared libs when runtime libs are static.
17774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17775
17776 # Compiler flag to allow reflexive dlopens.
17777 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17778
17779 # Compiler flag to generate shared objects directly from archives.
17780 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17781
17782 # Whether the compiler copes with passing no objects directly.
17783 compiler_needs_object=$lt_compiler_needs_object
17784
17785 # Create an old-style archive from a shared archive.
17786 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17787
17788 # Create a temporary old-style archive to link instead of a shared archive.
17789 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17790
17791 # Commands used to build a shared archive.
17792 archive_cmds=$lt_archive_cmds
17793 archive_expsym_cmds=$lt_archive_expsym_cmds
17794
17795 # Commands used to build a loadable module if different from building
17796 # a shared archive.
17797 module_cmds=$lt_module_cmds
17798 module_expsym_cmds=$lt_module_expsym_cmds
17799
17800 # Whether we are building with GNU ld or not.
17801 with_gnu_ld=$lt_with_gnu_ld
17802
17803 # Flag that allows shared libraries with undefined symbols to be built.
17804 allow_undefined_flag=$lt_allow_undefined_flag
17805
17806 # Flag that enforces no undefined symbols.
17807 no_undefined_flag=$lt_no_undefined_flag
17808
17809 # Flag to hardcode \$libdir into a binary during linking.
17810 # This must work even if \$libdir does not exist
17811 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17812
17813 # Whether we need a single "-rpath" flag with a separated argument.
17814 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17815
17816 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17817 # DIR into the resulting binary.
17818 hardcode_direct=$hardcode_direct
17819
17820 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17821 # DIR into the resulting binary and the resulting library dependency is
17822 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17823 # library is relocated.
17824 hardcode_direct_absolute=$hardcode_direct_absolute
17825
17826 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17827 # into the resulting binary.
17828 hardcode_minus_L=$hardcode_minus_L
17829
17830 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17831 # into the resulting binary.
17832 hardcode_shlibpath_var=$hardcode_shlibpath_var
17833
17834 # Set to "yes" if building a shared library automatically hardcodes DIR
17835 # into the library and all subsequent libraries and executables linked
17836 # against it.
17837 hardcode_automatic=$hardcode_automatic
17838
17839 # Set to yes if linker adds runtime paths of dependent libraries
17840 # to runtime path list.
17841 inherit_rpath=$inherit_rpath
17842
17843 # Whether libtool must link a program against all its dependency libraries.
17844 link_all_deplibs=$link_all_deplibs
17845
17846 # Set to "yes" if exported symbols are required.
17847 always_export_symbols=$always_export_symbols
17848
17849 # The commands to list exported symbols.
17850 export_symbols_cmds=$lt_export_symbols_cmds
17851
17852 # Symbols that should not be listed in the preloaded symbols.
17853 exclude_expsyms=$lt_exclude_expsyms
17854
17855 # Symbols that must always be exported.
17856 include_expsyms=$lt_include_expsyms
17857
17858 # Commands necessary for linking programs (against libraries) with templates.
17859 prelink_cmds=$lt_prelink_cmds
17860
17861 # Commands necessary for finishing linking programs.
17862 postlink_cmds=$lt_postlink_cmds
17863
17864 # Specify filename containing input files.
17865 file_list_spec=$lt_file_list_spec
17866
17867 # How to hardcode a shared library path into an executable.
17868 hardcode_action=$hardcode_action
17869
17870 # ### END LIBTOOL CONFIG
17871
17872 _LT_EOF
17873
17874 case $host_os in
17875 aix3*)
17876 cat <<\_LT_EOF >> "$cfgfile"
17877 # AIX sometimes has problems with the GCC collect2 program. For some
17878 # reason, if we set the COLLECT_NAMES environment variable, the problems
17879 # vanish in a puff of smoke.
17880 if test "X${COLLECT_NAMES+set}" != Xset; then
17881 COLLECT_NAMES=
17882 export COLLECT_NAMES
17883 fi
17884 _LT_EOF
17885 ;;
17886 esac
17887
17888
17889 ltmain="$ac_aux_dir/ltmain.sh"
17890
17891
17892 # We use sed instead of cat because bash on DJGPP gets confused if
17893 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17894 # text mode, it properly converts lines to CR/LF. This bash problem
17895 # is reportedly fixed, but why not run on old versions too?
17896 sed '$q' "$ltmain" >> "$cfgfile" \
17897 || (rm -f "$cfgfile"; exit 1)
17898
17899 if test x"$xsi_shell" = xyes; then
17900 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17901 func_dirname ()\
17902 {\
17903 \ case ${1} in\
17904 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17905 \ * ) func_dirname_result="${3}" ;;\
17906 \ esac\
17907 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17908 && mv -f "$cfgfile.tmp" "$cfgfile" \
17909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17910 test 0 -eq $? || _lt_function_replace_fail=:
17911
17912
17913 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17914 func_basename ()\
17915 {\
17916 \ func_basename_result="${1##*/}"\
17917 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17918 && mv -f "$cfgfile.tmp" "$cfgfile" \
17919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17920 test 0 -eq $? || _lt_function_replace_fail=:
17921
17922
17923 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17924 func_dirname_and_basename ()\
17925 {\
17926 \ case ${1} in\
17927 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17928 \ * ) func_dirname_result="${3}" ;;\
17929 \ esac\
17930 \ func_basename_result="${1##*/}"\
17931 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17932 && mv -f "$cfgfile.tmp" "$cfgfile" \
17933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17934 test 0 -eq $? || _lt_function_replace_fail=:
17935
17936
17937 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17938 func_stripname ()\
17939 {\
17940 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17941 \ # positional parameters, so assign one to ordinary parameter first.\
17942 \ func_stripname_result=${3}\
17943 \ func_stripname_result=${func_stripname_result#"${1}"}\
17944 \ func_stripname_result=${func_stripname_result%"${2}"}\
17945 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17946 && mv -f "$cfgfile.tmp" "$cfgfile" \
17947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17948 test 0 -eq $? || _lt_function_replace_fail=:
17949
17950
17951 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17952 func_split_long_opt ()\
17953 {\
17954 \ func_split_long_opt_name=${1%%=*}\
17955 \ func_split_long_opt_arg=${1#*=}\
17956 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17957 && mv -f "$cfgfile.tmp" "$cfgfile" \
17958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17959 test 0 -eq $? || _lt_function_replace_fail=:
17960
17961
17962 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17963 func_split_short_opt ()\
17964 {\
17965 \ func_split_short_opt_arg=${1#??}\
17966 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17967 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17968 && mv -f "$cfgfile.tmp" "$cfgfile" \
17969 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17970 test 0 -eq $? || _lt_function_replace_fail=:
17971
17972
17973 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17974 func_lo2o ()\
17975 {\
17976 \ case ${1} in\
17977 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17978 \ *) func_lo2o_result=${1} ;;\
17979 \ esac\
17980 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17981 && mv -f "$cfgfile.tmp" "$cfgfile" \
17982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17983 test 0 -eq $? || _lt_function_replace_fail=:
17984
17985
17986 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17987 func_xform ()\
17988 {\
17989 func_xform_result=${1%.*}.lo\
17990 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17991 && mv -f "$cfgfile.tmp" "$cfgfile" \
17992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17993 test 0 -eq $? || _lt_function_replace_fail=:
17994
17995
17996 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17997 func_arith ()\
17998 {\
17999 func_arith_result=$(( $* ))\
18000 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18001 && mv -f "$cfgfile.tmp" "$cfgfile" \
18002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18003 test 0 -eq $? || _lt_function_replace_fail=:
18004
18005
18006 sed -e '/^func_len ()$/,/^} # func_len /c\
18007 func_len ()\
18008 {\
18009 func_len_result=${#1}\
18010 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18011 && mv -f "$cfgfile.tmp" "$cfgfile" \
18012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18013 test 0 -eq $? || _lt_function_replace_fail=:
18014
18015 fi
18016
18017 if test x"$lt_shell_append" = xyes; then
18018 sed -e '/^func_append ()$/,/^} # func_append /c\
18019 func_append ()\
18020 {\
18021 eval "${1}+=\\${2}"\
18022 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18023 && mv -f "$cfgfile.tmp" "$cfgfile" \
18024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18025 test 0 -eq $? || _lt_function_replace_fail=:
18026
18027
18028 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18029 func_append_quoted ()\
18030 {\
18031 \ func_quote_for_eval "${2}"\
18032 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18033 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18034 && mv -f "$cfgfile.tmp" "$cfgfile" \
18035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18036 test 0 -eq $? || _lt_function_replace_fail=:
18037
18038
18039 # Save a `func_append' function call where possible by direct use of '+='
18040 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18041 && mv -f "$cfgfile.tmp" "$cfgfile" \
18042 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18043 test 0 -eq $? || _lt_function_replace_fail=:
18044 else
18045 # Save a `func_append' function call even when '+=' is not available
18046 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18047 && mv -f "$cfgfile.tmp" "$cfgfile" \
18048 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18049 test 0 -eq $? || _lt_function_replace_fail=:
18050 fi
18051
18052 if test x"$_lt_function_replace_fail" = x":"; then
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18054 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18055 fi
18056
18057
18058 mv -f "$cfgfile" "$ofile" ||
18059 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18060 chmod +x "$ofile"
18061
18062 ;;
18063
18064 esac
18065 done # for ac_tag
18066
18067
18068 as_fn_exit 0
18069 _ACEOF
18070 ac_clean_files=$ac_clean_files_save
18071
18072 test $ac_write_fail = 0 ||
18073 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18074
18075
18076 # configure is writing to config.log, and then calls config.status.
18077 # config.status does its own redirection, appending to config.log.
18078 # Unfortunately, on DOS this fails, as config.log is still kept open
18079 # by configure, so config.status won't be able to write to it; its
18080 # output is simply discarded. So we exec the FD to /dev/null,
18081 # effectively closing config.log, so it can be properly (re)opened and
18082 # appended to by config.status. When coming back to configure, we
18083 # need to make the FD available again.
18084 if test "$no_create" != yes; then
18085 ac_cs_success=:
18086 ac_config_status_args=
18087 test "$silent" = yes &&
18088 ac_config_status_args="$ac_config_status_args --quiet"
18089 exec 5>/dev/null
18090 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18091 exec 5>>config.log
18092 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18093 # would make configure fail if this is the last instruction.
18094 $ac_cs_success || as_fn_exit 1
18095 fi
18096 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18098 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18099 fi
18100

Properties

Name Value
svn:eol-style native
svn:executable *