dnscrypt-proxy update: 1.4.1
[tomato.git] / release / src / router / dnscrypt / src / libevent-modified / configure
blobad73b7d248ed74d28f5d9791a1f2a7dd1f47b22b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libevent 2.0.21-stable-dev.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='libevent'
589 PACKAGE_TARNAME='libevent'
590 PACKAGE_VERSION='2.0.21-stable-dev'
591 PACKAGE_STRING='libevent 2.0.21-stable-dev'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="evdns.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 INSTALL_LIBEVENT_FALSE
636 INSTALL_LIBEVENT_TRUE
637 LIBEVENT_GC_SECTIONS
638 OPENSSL_FALSE
639 OPENSSL_TRUE
640 PTHREADS_FALSE
641 PTHREADS_TRUE
642 PTHREAD_CFLAGS
643 PTHREAD_LIBS
644 PTHREAD_CC
645 acx_pthread_config
646 SIGNAL_SUPPORT_FALSE
647 SIGNAL_SUPPORT_TRUE
648 EVPORT_BACKEND_FALSE
649 EVPORT_BACKEND_TRUE
650 EPOLL_BACKEND_FALSE
651 EPOLL_BACKEND_TRUE
652 LIBOBJS
653 KQUEUE_BACKEND_FALSE
654 KQUEUE_BACKEND_TRUE
655 DEVPOLL_BACKEND_FALSE
656 DEVPOLL_BACKEND_TRUE
657 POLL_BACKEND_FALSE
658 POLL_BACKEND_TRUE
659 SELECT_BACKEND_FALSE
660 SELECT_BACKEND_TRUE
661 BUILD_WITH_NO_UNDEFINED_FALSE
662 BUILD_WITH_NO_UNDEFINED_TRUE
663 BUILD_CYGWIN_FALSE
664 BUILD_CYGWIN_TRUE
665 BUILD_WIN32_FALSE
666 BUILD_WIN32_TRUE
667 OPENSSL_LIBS
668 OPENSSL_LIBADD
669 EV_LIB_GDI
670 EV_LIB_WS32
671 ZLIB_REGRESS_FALSE
672 ZLIB_REGRESS_TRUE
673 ZLIB_LIBS
674 BUILD_REGRESS_FALSE
675 BUILD_REGRESS_TRUE
676 LIBTOOL_DEPS
677 OTOOL64
678 OTOOL
679 LIPO
680 NMEDIT
681 DSYMUTIL
682 MANIFEST_TOOL
683 RANLIB
684 ac_ct_AR
686 DLLTOOL
687 OBJDUMP
689 ac_ct_DUMPBIN
690 DUMPBIN
692 FGREP
693 LIBTOOL
694 EGREP
695 GREP
698 LN_S
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 AM_BACKSLASH
725 AM_DEFAULT_VERBOSITY
726 AM_DEFAULT_V
727 AM_V
728 am__untar
729 am__tar
730 AMTAR
731 am__leading_dot
732 SET_MAKE
734 mkdir_p
735 MKDIR_P
736 INSTALL_STRIP_PROGRAM
737 STRIP
738 install_sh
739 MAKEINFO
740 AUTOHEADER
741 AUTOMAKE
742 AUTOCONF
743 ACLOCAL
744 VERSION
745 PACKAGE
746 CYGPATH_W
747 am__isrc
748 INSTALL_DATA
749 INSTALL_SCRIPT
750 INSTALL_PROGRAM
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_silent_rules
793 enable_dependency_tracking
794 enable_gcc_warnings
795 enable_thread_support
796 enable_malloc_replacement
797 enable_openssl
798 enable_debug_mode
799 enable_libevent_install
800 enable_libevent_regress
801 enable_function_sections
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 with_sysroot
808 enable_libtool_lock
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 CPP'
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
890 ac_dashdash=yes ;;
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
909 --config-cache | -C)
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 esac
1227 done
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1311 /^X\(\/\/\)$/{
1312 s//\1/
1315 /^X\(\/\).*/{
1316 s//\1/
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1324 else
1325 ac_srcdir_defaulted=no
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1353 # Report the --help message.
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures libevent 2.0.21-stable-dev to adapt to many kinds of systems.
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1366 Defaults for the options are specified in brackets.
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1390 For better control, use the options below.
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1414 cat <<\_ACEOF
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 _ACEOF
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of libevent 2.0.21-stable-dev:";;
1430 esac
1431 cat <<\_ACEOF
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-silent-rules less verbose build output (undo: "make V=1")
1438 --disable-silent-rules verbose build output (undo: "make V=0")
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --enable-gcc-warnings enable verbose warnings with GCC
1444 --disable-thread-support
1445 disable support for threading
1446 --disable-malloc-replacement
1447 disable support for replacing the memory mgt
1448 functions
1449 --disable-openssl disable support for openssl encryption
1450 --disable-debug-mode disable support for running in debug mode
1451 --disable-libevent-install, disable installation of libevent
1453 --enable-libevent-regress, enable regress in make check
1455 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static 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)
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1469 --with-sysroot=DIR Search for dependent libraries within DIR
1470 (or the compiler's sysroot if not specified).
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CPP C preprocessor
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1486 _ACEOF
1487 ac_status=$?
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
1496 ac_builddir=.
1498 case "$ac_dir" in
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508 esac
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1514 case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527 esac
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1547 cat <<\_ACEOF
1548 libevent configure 2.0.21-stable-dev
1549 generated by GNU Autoconf 2.69
1551 Copyright (C) 2012 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1554 _ACEOF
1555 exit
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1593 ac_retval=1
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1598 } # ac_fn_c_try_compile
1600 # ac_fn_c_try_cpp LINENO
1601 # ----------------------
1602 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_c_try_cpp ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1630 ac_retval=1
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_cpp
1637 # ac_fn_c_try_link LINENO
1638 # -----------------------
1639 # Try to link conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_link ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext conftest$ac_exeext
1644 if { { ac_try="$ac_link"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_link") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest$ac_exeext && {
1663 test "$cross_compiling" = yes ||
1664 test -x conftest$ac_exeext
1665 }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: failed program was:" >&5
1669 sed 's/^/| /' conftest.$ac_ext >&5
1671 ac_retval=1
1673 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1674 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1675 # interfere with the next link command; also delete a directory that is
1676 # left behind by Apple's compiler. We do this before executing the actions.
1677 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 as_fn_set_status $ac_retval
1681 } # ac_fn_c_try_link
1683 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1684 # -------------------------------------------------------
1685 # Tests whether HEADER exists and can be compiled using the include files in
1686 # INCLUDES, setting the cache variable VAR accordingly.
1687 ac_fn_c_check_header_compile ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if eval \${$3+:} false; then :
1693 $as_echo_n "(cached) " >&6
1694 else
1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696 /* end confdefs.h. */
1698 #include <$2>
1699 _ACEOF
1700 if ac_fn_c_try_compile "$LINENO"; then :
1701 eval "$3=yes"
1702 else
1703 eval "$3=no"
1705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709 $as_echo "$ac_res" >&6; }
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 } # ac_fn_c_check_header_compile
1714 # ac_fn_c_try_run LINENO
1715 # ----------------------
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1717 # that executables *can* be run.
1718 ac_fn_c_try_run ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_link"
1722 case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725 esac
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>&5
1729 ac_status=$?
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1732 { { case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_try") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; }; }; then :
1742 ac_retval=0
1743 else
1744 $as_echo "$as_me: program exited with status $ac_status" >&5
1745 $as_echo "$as_me: failed program was:" >&5
1746 sed 's/^/| /' conftest.$ac_ext >&5
1748 ac_retval=$ac_status
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_run
1756 # ac_fn_c_check_func LINENO FUNC VAR
1757 # ----------------------------------
1758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1759 ac_fn_c_check_func ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766 else
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1771 #define $2 innocuous_$2
1773 /* System header to define __stub macros and hopefully few prototypes,
1774 which can conflict with char $2 (); below.
1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1776 <limits.h> exists even on freestanding compilers. */
1778 #ifdef __STDC__
1779 # include <limits.h>
1780 #else
1781 # include <assert.h>
1782 #endif
1784 #undef $2
1786 /* Override any GCC internal prototype to avoid an error.
1787 Use char because int might match the return type of a GCC
1788 builtin and then its argument prototype would still apply. */
1789 #ifdef __cplusplus
1790 extern "C"
1791 #endif
1792 char $2 ();
1793 /* The GNU C library defines this for functions which it implements
1794 to always fail with ENOSYS. Some functions are actually named
1795 something starting with __ and the normal name is an alias. */
1796 #if defined __stub_$2 || defined __stub___$2
1797 choke me
1798 #endif
1801 main ()
1803 return $2 ();
1805 return 0;
1807 _ACEOF
1808 if ac_fn_c_try_link "$LINENO"; then :
1809 eval "$3=yes"
1810 else
1811 eval "$3=no"
1813 rm -f core conftest.err conftest.$ac_objext \
1814 conftest$ac_exeext conftest.$ac_ext
1816 eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 } # ac_fn_c_check_func
1823 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826 # the include files in INCLUDES and setting the cache variable VAR
1827 # accordingly.
1828 ac_fn_c_check_header_mongrel ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if eval \${$3+:} false; then :
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 else
1841 # Is the header compilable?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843 $as_echo_n "checking $2 usability... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 ac_header_compiler=yes
1851 else
1852 ac_header_compiler=no
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856 $as_echo "$ac_header_compiler" >&6; }
1858 # Is the header present?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860 $as_echo_n "checking $2 presence... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 #include <$2>
1864 _ACEOF
1865 if ac_fn_c_try_cpp "$LINENO"; then :
1866 ac_header_preproc=yes
1867 else
1868 ac_header_preproc=no
1870 rm -f conftest.err conftest.i conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872 $as_echo "$ac_header_preproc" >&6; }
1874 # So? What about this header?
1875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1876 yes:no: )
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 no:yes:* )
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1886 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1890 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 esac
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 eval "$3=\$ac_header_compiler"
1902 eval ac_res=\$$3
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_check_header_mongrel
1910 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1911 # ---------------------------------------------
1912 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1913 # accordingly.
1914 ac_fn_c_check_decl ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 as_decl_name=`echo $2|sed 's/ *(.*//'`
1918 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1920 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 main ()
1930 #ifndef $as_decl_name
1931 #ifdef __cplusplus
1932 (void) $as_decl_use;
1933 #else
1934 (void) $as_decl_name;
1935 #endif
1936 #endif
1939 return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$3=yes"
1944 else
1945 eval "$3=no"
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_decl
1956 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1957 # --------------------------------------------
1958 # Tries to find the compile-time value of EXPR in a program that includes
1959 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1960 # computed
1961 ac_fn_c_compute_int ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if test "$cross_compiling" = yes; then
1965 # Depending upon the size, compute the lo and hi bounds.
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 main ()
1972 static int test_array [1 - 2 * !(($2) >= 0)];
1973 test_array [0] = 0;
1974 return test_array [0];
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_lo=0 ac_mid=0
1982 while :; do
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1990 test_array [0] = 0;
1991 return test_array [0];
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_hi=$ac_mid; break
1999 else
2000 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2001 if test $ac_lo -le $ac_mid; then
2002 ac_lo= ac_hi=
2003 break
2005 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 done
2009 else
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2014 main ()
2016 static int test_array [1 - 2 * !(($2) < 0)];
2017 test_array [0] = 0;
2018 return test_array [0];
2021 return 0;
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 ac_hi=-1 ac_mid=-1
2026 while :; do
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2034 test_array [0] = 0;
2035 return test_array [0];
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_lo=$ac_mid; break
2043 else
2044 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2045 if test $ac_mid -le $ac_hi; then
2046 ac_lo= ac_hi=
2047 break
2049 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 done
2053 else
2054 ac_lo= ac_hi=
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 # Binary search between lo and hi bounds.
2060 while test "x$ac_lo" != "x$ac_hi"; do
2061 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2066 main ()
2068 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2069 test_array [0] = 0;
2070 return test_array [0];
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 ac_hi=$ac_mid
2078 else
2079 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 done
2083 case $ac_lo in #((
2084 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2085 '') ac_retval=1 ;;
2086 esac
2087 else
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2091 static long int longval () { return $2; }
2092 static unsigned long int ulongval () { return $2; }
2093 #include <stdio.h>
2094 #include <stdlib.h>
2096 main ()
2099 FILE *f = fopen ("conftest.val", "w");
2100 if (! f)
2101 return 1;
2102 if (($2) < 0)
2104 long int i = longval ();
2105 if (i != ($2))
2106 return 1;
2107 fprintf (f, "%ld", i);
2109 else
2111 unsigned long int i = ulongval ();
2112 if (i != ($2))
2113 return 1;
2114 fprintf (f, "%lu", i);
2116 /* Do not output a trailing newline, as this causes \r\n confusion
2117 on some platforms. */
2118 return ferror (f) || fclose (f) != 0;
2121 return 0;
2123 _ACEOF
2124 if ac_fn_c_try_run "$LINENO"; then :
2125 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2126 else
2127 ac_retval=1
2129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2130 conftest.$ac_objext conftest.beam conftest.$ac_ext
2131 rm -f conftest.val
2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2135 as_fn_set_status $ac_retval
2137 } # ac_fn_c_compute_int
2139 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140 # -------------------------------------------
2141 # Tests whether TYPE exists after having included INCLUDES, setting cache
2142 # variable VAR accordingly.
2143 ac_fn_c_check_type ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 $as_echo_n "checking for $2... " >&6; }
2148 if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 eval "$3=no"
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2156 main ()
2158 if (sizeof ($2))
2159 return 0;
2161 return 0;
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 if (sizeof (($2)))
2172 return 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2179 else
2180 eval "$3=yes"
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_type
2193 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2194 # ----------------------------------------------------
2195 # Tries to find if the field MEMBER exists in type AGGR, after including
2196 # INCLUDES, setting cache variable VAR accordingly.
2197 ac_fn_c_check_member ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2201 $as_echo_n "checking for $2.$3... " >&6; }
2202 if eval \${$4+:} false; then :
2203 $as_echo_n "(cached) " >&6
2204 else
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2209 main ()
2211 static $2 ac_aggr;
2212 if (ac_aggr.$3)
2213 return 0;
2215 return 0;
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 eval "$4=yes"
2220 else
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2225 main ()
2227 static $2 ac_aggr;
2228 if (sizeof ac_aggr.$3)
2229 return 0;
2231 return 0;
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 eval "$4=yes"
2236 else
2237 eval "$4=no"
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 eval ac_res=\$$4
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248 } # ac_fn_c_check_member
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2253 It was created by libevent $as_me 2.0.21-stable-dev, which was
2254 generated by GNU Autoconf 2.69. Invocation command line was
2256 $ $0 $@
2258 _ACEOF
2259 exec 5>>config.log
2261 cat <<_ASUNAME
2262 ## --------- ##
2263 ## Platform. ##
2264 ## --------- ##
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2283 _ASUNAME
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 $as_echo "PATH: $as_dir"
2291 done
2292 IFS=$as_save_IFS
2294 } >&5
2296 cat >&5 <<_ACEOF
2299 ## ----------- ##
2300 ## Core tests. ##
2301 ## ----------- ##
2303 _ACEOF
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2311 ac_configure_args=
2312 ac_configure_args0=
2313 ac_configure_args1=
2314 ac_must_keep_next=false
2315 for ac_pass in 1 2
2317 for ac_arg
2319 case $ac_arg in
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2323 continue ;;
2324 *\'*)
2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326 esac
2327 case $ac_pass in
2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2330 as_fn_append ac_configure_args1 " '$ac_arg'"
2331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2333 else
2334 case $ac_arg in
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341 esac
2343 -* ) ac_must_keep_next=true ;;
2344 esac
2346 as_fn_append ac_configure_args " '$ac_arg'"
2348 esac
2349 done
2350 done
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log. We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2362 echo
2364 $as_echo "## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##"
2367 echo
2368 # The following way of writing the cache mishandles newlines in values,
2370 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2371 eval ac_val=\$$ac_var
2372 case $ac_val in #(
2373 *${as_nl}*)
2374 case $ac_var in #(
2375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2377 esac
2378 case $ac_var in #(
2379 _ | IFS | as_nl) ;; #(
2380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2381 *) { eval $ac_var=; unset $ac_var;} ;;
2382 esac ;;
2383 esac
2384 done
2385 (set) 2>&1 |
2386 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2387 *${as_nl}ac_space=\ *)
2388 sed -n \
2389 "s/'\''/'\''\\\\'\'''\''/g;
2390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2391 ;; #(
2393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2395 esac |
2396 sort
2398 echo
2400 $as_echo "## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##"
2403 echo
2404 for ac_var in $ac_subst_vars
2406 eval ac_val=\$$ac_var
2407 case $ac_val in
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 esac
2410 $as_echo "$ac_var='\''$ac_val'\''"
2411 done | sort
2412 echo
2414 if test -n "$ac_subst_files"; then
2415 $as_echo "## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##"
2418 echo
2419 for ac_var in $ac_subst_files
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2430 if test -s confdefs.h; then
2431 $as_echo "## ----------- ##
2432 ## confdefs.h. ##
2433 ## ----------- ##"
2434 echo
2435 cat confdefs.h
2436 echo
2438 test "$ac_signal" != 0 &&
2439 $as_echo "$as_me: caught signal $ac_signal"
2440 $as_echo "$as_me: exit $exit_status"
2441 } >&5
2442 rm -f core *.core core.conftest.* &&
2443 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2444 exit $exit_status
2446 for ac_signal in 1 2 13 15; do
2447 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2448 done
2449 ac_signal=0
2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2452 rm -f -r conftest* confdefs.h
2454 $as_echo "/* confdefs.h */" > confdefs.h
2456 # Predefined preprocessor variables.
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_NAME "$PACKAGE_NAME"
2460 _ACEOF
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2464 _ACEOF
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_STRING "$PACKAGE_STRING"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_URL "$PACKAGE_URL"
2480 _ACEOF
2483 # Let the site file select an alternate cache file if it wants to.
2484 # Prefer an explicitly selected file to automatically selected ones.
2485 ac_site_file1=NONE
2486 ac_site_file2=NONE
2487 if test -n "$CONFIG_SITE"; then
2488 # We do not want a PATH search for config.site.
2489 case $CONFIG_SITE in #((
2490 -*) ac_site_file1=./$CONFIG_SITE;;
2491 */*) ac_site_file1=$CONFIG_SITE;;
2492 *) ac_site_file1=./$CONFIG_SITE;;
2493 esac
2494 elif test "x$prefix" != xNONE; then
2495 ac_site_file1=$prefix/share/config.site
2496 ac_site_file2=$prefix/etc/config.site
2497 else
2498 ac_site_file1=$ac_default_prefix/share/config.site
2499 ac_site_file2=$ac_default_prefix/etc/config.site
2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2503 test "x$ac_site_file" = xNONE && continue
2504 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507 sed 's/^/| /' "$ac_site_file" >&5
2508 . "$ac_site_file" \
2509 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 as_fn_error $? "failed to load site script $ac_site_file
2512 See \`config.log' for more details" "$LINENO" 5; }
2514 done
2516 if test -r "$cache_file"; then
2517 # Some versions of bash will fail to source /dev/null (special files
2518 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2519 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
2522 case $cache_file in
2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524 *) . "./$cache_file";;
2525 esac
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
2530 >$cache_file
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2542 set,)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,set)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,);;
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2569 fi;;
2570 esac
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2573 case $ac_new_val in
2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2576 esac
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580 esac
2582 done
2583 if $ac_cache_corrupted; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 am__api_version='1.14'
2604 ac_aux_dir=
2605 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2606 if test -f "$ac_dir/install-sh"; then
2607 ac_aux_dir=$ac_dir
2608 ac_install_sh="$ac_aux_dir/install-sh -c"
2609 break
2610 elif test -f "$ac_dir/install.sh"; then
2611 ac_aux_dir=$ac_dir
2612 ac_install_sh="$ac_aux_dir/install.sh -c"
2613 break
2614 elif test -f "$ac_dir/shtool"; then
2615 ac_aux_dir=$ac_dir
2616 ac_install_sh="$ac_aux_dir/shtool install -c"
2617 break
2619 done
2620 if test -z "$ac_aux_dir"; then
2621 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2624 # These three variables are undocumented and unsupported,
2625 # and are intended to be withdrawn in a future Autoconf release.
2626 # They can cause serious problems if a builder's source tree is in a directory
2627 # whose full name contains unusual characters.
2628 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2629 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2630 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2633 # Find a good install program. We prefer a C program (faster),
2634 # so one script is as good as another. But avoid the broken or
2635 # incompatible versions:
2636 # SysV /etc/install, /usr/sbin/install
2637 # SunOS /usr/etc/install
2638 # IRIX /sbin/install
2639 # AIX /bin/install
2640 # AmigaOS /C/install, which installs bootblocks on floppy discs
2641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644 # OS/2's system install, which has a completely different semantic
2645 # ./install, which can be erroneously created by make from ./install.sh.
2646 # Reject install programs that cannot install multiple files.
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2649 if test -z "$INSTALL"; then
2650 if ${ac_cv_path_install+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 # Account for people who put trailing slashes in PATH elements.
2659 case $as_dir/ in #((
2660 ./ | .// | /[cC]/* | \
2661 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2662 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2663 /usr/ucb/* ) ;;
2665 # OSF1 and SCO ODT 3.0 have their own names for install.
2666 # Don't use installbsd from OSF since it installs stuff as root
2667 # by default.
2668 for ac_prog in ginstall scoinst install; do
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2671 if test $ac_prog = install &&
2672 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2673 # AIX install. It has an incompatible calling convention.
2675 elif test $ac_prog = install &&
2676 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2677 # program-specific install script used by HP pwplus--don't use.
2679 else
2680 rm -rf conftest.one conftest.two conftest.dir
2681 echo one > conftest.one
2682 echo two > conftest.two
2683 mkdir conftest.dir
2684 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2685 test -s conftest.one && test -s conftest.two &&
2686 test -s conftest.dir/conftest.one &&
2687 test -s conftest.dir/conftest.two
2688 then
2689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2690 break 3
2694 done
2695 done
2697 esac
2699 done
2700 IFS=$as_save_IFS
2702 rm -rf conftest.one conftest.two conftest.dir
2705 if test "${ac_cv_path_install+set}" = set; then
2706 INSTALL=$ac_cv_path_install
2707 else
2708 # As a last resort, use the slow shell script. Don't cache a
2709 # value for INSTALL within a source directory, because that will
2710 # break other packages using the cache if that directory is
2711 # removed, or if the value is a relative name.
2712 INSTALL=$ac_install_sh
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2716 $as_echo "$INSTALL" >&6; }
2718 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2719 # It thinks the first close brace ends the variable substitution.
2720 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2727 $as_echo_n "checking whether build environment is sane... " >&6; }
2728 # Reject unsafe characters in $srcdir or the absolute working directory
2729 # name. Accept space and tab only in the latter.
2730 am_lf='
2732 case `pwd` in
2733 *[\\\"\#\$\&\'\`$am_lf]*)
2734 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2735 esac
2736 case $srcdir in
2737 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2738 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2739 esac
2741 # Do 'set' in a subshell so we don't clobber the current shell's
2742 # arguments. Must try -L first in case configure is actually a
2743 # symlink; some systems play weird games with the mod time of symlinks
2744 # (eg FreeBSD returns the mod time of the symlink's containing
2745 # directory).
2746 if (
2747 am_has_slept=no
2748 for am_try in 1 2; do
2749 echo "timestamp, slept: $am_has_slept" > conftest.file
2750 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2751 if test "$*" = "X"; then
2752 # -L didn't work.
2753 set X `ls -t "$srcdir/configure" conftest.file`
2755 if test "$*" != "X $srcdir/configure conftest.file" \
2756 && test "$*" != "X conftest.file $srcdir/configure"; then
2758 # If neither matched, then we have a broken ls. This can happen
2759 # if, for instance, CONFIG_SHELL is bash and it inherits a
2760 # broken ls alias from the environment. This has actually
2761 # happened. Such a system could not be considered "sane".
2762 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2763 alias in your environment" "$LINENO" 5
2765 if test "$2" = conftest.file || test $am_try -eq 2; then
2766 break
2768 # Just in case.
2769 sleep 1
2770 am_has_slept=yes
2771 done
2772 test "$2" = conftest.file
2774 then
2775 # Ok.
2777 else
2778 as_fn_error $? "newly created file is older than distributed files!
2779 Check your system clock" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2782 $as_echo "yes" >&6; }
2783 # If we didn't sleep, we still need to ensure time stamps of config.status and
2784 # generated files are strictly newer.
2785 am_sleep_pid=
2786 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2787 ( sleep 1 ) &
2788 am_sleep_pid=$!
2791 rm -f conftest.file
2793 test "$program_prefix" != NONE &&
2794 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2795 # Use a double $ so make ignores it.
2796 test "$program_suffix" != NONE &&
2797 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2798 # Double any \ or $.
2799 # By default was `s,x,x', remove it if useless.
2800 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2801 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2803 # expand $ac_aux_dir to an absolute path
2804 am_aux_dir=`cd $ac_aux_dir && pwd`
2806 if test x"${MISSING+set}" != xset; then
2807 case $am_aux_dir in
2808 *\ * | *\ *)
2809 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2811 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2812 esac
2814 # Use eval to expand $SHELL
2815 if eval "$MISSING --is-lightweight"; then
2816 am_missing_run="$MISSING "
2817 else
2818 am_missing_run=
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2820 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2823 if test x"${install_sh}" != xset; then
2824 case $am_aux_dir in
2825 *\ * | *\ *)
2826 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2828 install_sh="\${SHELL} $am_aux_dir/install-sh"
2829 esac
2832 # Installed binaries are usually stripped using 'strip' when the user
2833 # run "make install-strip". However 'strip' might not be the right
2834 # tool to use in cross-compilation environments, therefore Automake
2835 # will honor the 'STRIP' environment variable to overrule this program.
2836 if test "$cross_compiling" != no; then
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}strip; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if ${ac_cv_prog_STRIP+:} false; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test -n "$STRIP"; then
2846 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2859 done
2860 done
2861 IFS=$as_save_IFS
2865 STRIP=$ac_cv_prog_STRIP
2866 if test -n "$STRIP"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2868 $as_echo "$STRIP" >&6; }
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2876 if test -z "$ac_cv_prog_STRIP"; then
2877 ac_ct_STRIP=$STRIP
2878 # Extract the first word of "strip", so it can be a program name with args.
2879 set dummy strip; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test -n "$ac_ct_STRIP"; then
2886 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_ac_ct_STRIP="strip"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2899 done
2900 done
2901 IFS=$as_save_IFS
2905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2906 if test -n "$ac_ct_STRIP"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2908 $as_echo "$ac_ct_STRIP" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2914 if test "x$ac_ct_STRIP" = x; then
2915 STRIP=":"
2916 else
2917 case $cross_compiling:$ac_tool_warned in
2918 yes:)
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923 STRIP=$ac_ct_STRIP
2925 else
2926 STRIP="$ac_cv_prog_STRIP"
2930 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2933 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2934 if test -z "$MKDIR_P"; then
2935 if ${ac_cv_path_mkdir+:} false; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_prog in mkdir gmkdir; do
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2946 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2947 'mkdir (GNU coreutils) '* | \
2948 'mkdir (coreutils) '* | \
2949 'mkdir (fileutils) '4.1*)
2950 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2951 break 3;;
2952 esac
2953 done
2954 done
2955 done
2956 IFS=$as_save_IFS
2960 test -d ./--version && rmdir ./--version
2961 if test "${ac_cv_path_mkdir+set}" = set; then
2962 MKDIR_P="$ac_cv_path_mkdir -p"
2963 else
2964 # As a last resort, use the slow shell script. Don't cache a
2965 # value for MKDIR_P within a source directory, because that will
2966 # break other packages using the cache if that directory is
2967 # removed, or if the value is a relative name.
2968 MKDIR_P="$ac_install_sh -d"
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2972 $as_echo "$MKDIR_P" >&6; }
2974 for ac_prog in gawk mawk nawk awk
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_AWK+:} false; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 if test -n "$AWK"; then
2984 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993 ac_cv_prog_AWK="$ac_prog"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 break 2
2997 done
2998 done
2999 IFS=$as_save_IFS
3003 AWK=$ac_cv_prog_AWK
3004 if test -n "$AWK"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3006 $as_echo "$AWK" >&6; }
3007 else
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3013 test -n "$AWK" && break
3014 done
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3017 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3018 set x ${MAKE-make}
3019 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3020 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3021 $as_echo_n "(cached) " >&6
3022 else
3023 cat >conftest.make <<\_ACEOF
3024 SHELL = /bin/sh
3025 all:
3026 @echo '@@@%%%=$(MAKE)=@@@%%%'
3027 _ACEOF
3028 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3029 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3030 *@@@%%%=?*=@@@%%%*)
3031 eval ac_cv_prog_make_${ac_make}_set=yes;;
3033 eval ac_cv_prog_make_${ac_make}_set=no;;
3034 esac
3035 rm -f conftest.make
3037 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039 $as_echo "yes" >&6; }
3040 SET_MAKE=
3041 else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 SET_MAKE="MAKE=${MAKE-make}"
3047 rm -rf .tst 2>/dev/null
3048 mkdir .tst 2>/dev/null
3049 if test -d .tst; then
3050 am__leading_dot=.
3051 else
3052 am__leading_dot=_
3054 rmdir .tst 2>/dev/null
3056 # Check whether --enable-silent-rules was given.
3057 if test "${enable_silent_rules+set}" = set; then :
3058 enableval=$enable_silent_rules;
3061 case $enable_silent_rules in # (((
3062 yes) AM_DEFAULT_VERBOSITY=0;;
3063 no) AM_DEFAULT_VERBOSITY=1;;
3064 *) AM_DEFAULT_VERBOSITY=1;;
3065 esac
3066 am_make=${MAKE-make}
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3068 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3069 if ${am_cv_make_support_nested_variables+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if $as_echo 'TRUE=$(BAR$(V))
3073 BAR0=false
3074 BAR1=true
3076 am__doit:
3077 @$(TRUE)
3078 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3079 am_cv_make_support_nested_variables=yes
3080 else
3081 am_cv_make_support_nested_variables=no
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3085 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3086 if test $am_cv_make_support_nested_variables = yes; then
3087 AM_V='$(V)'
3088 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3089 else
3090 AM_V=$AM_DEFAULT_VERBOSITY
3091 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3093 AM_BACKSLASH='\'
3095 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3096 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3097 # is not polluted with repeated "-I."
3098 am__isrc=' -I$(srcdir)'
3099 # test to see if srcdir already configured
3100 if test -f $srcdir/config.status; then
3101 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3105 # test whether we have cygpath
3106 if test -z "$CYGPATH_W"; then
3107 if (cygpath --version) >/dev/null 2>/dev/null; then
3108 CYGPATH_W='cygpath -w'
3109 else
3110 CYGPATH_W=echo
3115 # Define the identity of the package.
3116 PACKAGE='libevent'
3117 VERSION='2.0.21-stable-dev'
3120 cat >>confdefs.h <<_ACEOF
3121 #define PACKAGE "$PACKAGE"
3122 _ACEOF
3125 cat >>confdefs.h <<_ACEOF
3126 #define VERSION "$VERSION"
3127 _ACEOF
3129 # Some tools Automake needs.
3131 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3134 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3137 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3140 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3143 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3145 # For better backward compatibility. To be removed once Automake 1.9.x
3146 # dies out for good. For more background, see:
3147 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3148 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3149 mkdir_p='$(MKDIR_P)'
3151 # We need awk for the "check" target. The system "awk" is bad on
3152 # some platforms.
3153 # Always define AMTAR for backward compatibility. Yes, it's still used
3154 # in the wild :-( We should find a proper way to deprecate it ...
3155 AMTAR='$${TAR-tar}'
3158 # We'll loop over all known methods to create a tar archive until one works.
3159 _am_tools='gnutar pax cpio none'
3161 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3168 # POSIX will say in a future version that running "rm -f" with no argument
3169 # is OK; and we want to be able to make that assumption in our Makefile
3170 # recipes. So use an aggressive probe to check that the usage we want is
3171 # actually supported "in the wild" to an acceptable degree.
3172 # See automake bug#10828.
3173 # To make any issue more visible, cause the running configure to be aborted
3174 # by default if the 'rm' program in use doesn't match our expectations; the
3175 # user can still override this though.
3176 if rm -f && rm -fr && rm -rf; then : OK; else
3177 cat >&2 <<'END'
3178 Oops!
3180 Your 'rm' program seems unable to run without file operands specified
3181 on the command line, even when the '-f' option is present. This is contrary
3182 to the behaviour of most rm programs out there, and not conforming with
3183 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3185 Please tell bug-automake@gnu.org about your system, including the value
3186 of your $PATH and any error possibly output before this message. This
3187 can help us improve future automake versions.
3190 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3191 echo 'Configuration will proceed anyway, since you have set the' >&2
3192 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3193 echo >&2
3194 else
3195 cat >&2 <<'END'
3196 Aborting the configuration process, to ensure you take notice of the issue.
3198 You can download and install GNU coreutils to get an 'rm' implementation
3199 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3201 If you want to complete the configuration process using your problematic
3202 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3203 to "yes", and re-run configure.
3206 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3209 ac_config_headers="$ac_config_headers config.h"
3212 $as_echo "#define NUMERIC_VERSION 0x02001501" >>confdefs.h
3215 if test "$prefix" = "NONE"; then
3216 prefix="/usr/local"
3219 # Make sure we can run config.sub.
3220 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3221 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3224 $as_echo_n "checking build system type... " >&6; }
3225 if ${ac_cv_build+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 ac_build_alias=$build_alias
3229 test "x$ac_build_alias" = x &&
3230 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3231 test "x$ac_build_alias" = x &&
3232 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3233 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3234 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3238 $as_echo "$ac_cv_build" >&6; }
3239 case $ac_cv_build in
3240 *-*-*) ;;
3241 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3242 esac
3243 build=$ac_cv_build
3244 ac_save_IFS=$IFS; IFS='-'
3245 set x $ac_cv_build
3246 shift
3247 build_cpu=$1
3248 build_vendor=$2
3249 shift; shift
3250 # Remember, the first character of IFS is used to create $*,
3251 # except with old shells:
3252 build_os=$*
3253 IFS=$ac_save_IFS
3254 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3258 $as_echo_n "checking host system type... " >&6; }
3259 if ${ac_cv_host+:} false; then :
3260 $as_echo_n "(cached) " >&6
3261 else
3262 if test "x$host_alias" = x; then
3263 ac_cv_host=$ac_cv_build
3264 else
3265 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3266 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3271 $as_echo "$ac_cv_host" >&6; }
3272 case $ac_cv_host in
3273 *-*-*) ;;
3274 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3275 esac
3276 host=$ac_cv_host
3277 ac_save_IFS=$IFS; IFS='-'
3278 set x $ac_cv_host
3279 shift
3280 host_cpu=$1
3281 host_vendor=$2
3282 shift; shift
3283 # Remember, the first character of IFS is used to create $*,
3284 # except with old shells:
3285 host_os=$*
3286 IFS=$ac_save_IFS
3287 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3291 case "$host_os" in
3293 osf5*)
3294 CFLAGS="$CFLAGS -D_OSF_SOURCE"
3296 esac
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3305 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3307 $as_echo_n "checking for $ac_word... " >&6; }
3308 if ${ac_cv_prog_CC+:} false; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 else
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3323 break 2
3325 done
3326 done
3327 IFS=$as_save_IFS
3331 CC=$ac_cv_prog_CC
3332 if test -n "$CC"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3334 $as_echo "$CC" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3337 $as_echo "no" >&6; }
3342 if test -z "$ac_cv_prog_CC"; then
3343 ac_ct_CC=$CC
3344 # Extract the first word of "gcc", so it can be a program name with args.
3345 set dummy gcc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$ac_ct_CC"; then
3352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_ac_ct_CC="gcc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3365 done
3366 done
3367 IFS=$as_save_IFS
3371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3372 if test -n "$ac_ct_CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3374 $as_echo "$ac_ct_CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3380 if test "x$ac_ct_CC" = x; then
3381 CC=""
3382 else
3383 case $cross_compiling:$ac_tool_warned in
3384 yes:)
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3387 ac_tool_warned=yes ;;
3388 esac
3389 CC=$ac_ct_CC
3391 else
3392 CC="$ac_cv_prog_CC"
3395 if test -z "$CC"; then
3396 if test -n "$ac_tool_prefix"; then
3397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3398 set dummy ${ac_tool_prefix}cc; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_CC="${ac_tool_prefix}cc"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3418 done
3419 done
3420 IFS=$as_save_IFS
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3436 if test -z "$CC"; then
3437 # Extract the first word of "cc", so it can be a program name with args.
3438 set dummy cc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 ac_prog_rejected=no
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456 ac_prog_rejected=yes
3457 continue
3459 ac_cv_prog_CC="cc"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3463 done
3464 done
3465 IFS=$as_save_IFS
3467 if test $ac_prog_rejected = yes; then
3468 # We found a bogon in the path, so make sure we never use it.
3469 set dummy $ac_cv_prog_CC
3470 shift
3471 if test $# != 0; then
3472 # We chose a different compiler from the bogus one.
3473 # However, it has the same basename, so the bogon will be chosen
3474 # first if we set CC to just the basename; use the full file name.
3475 shift
3476 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3492 if test -z "$CC"; then
3493 if test -n "$ac_tool_prefix"; then
3494 for ac_prog in cl.exe
3496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_prog_CC+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3517 done
3518 done
3519 IFS=$as_save_IFS
3523 CC=$ac_cv_prog_CC
3524 if test -n "$CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3526 $as_echo "$CC" >&6; }
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3533 test -n "$CC" && break
3534 done
3536 if test -z "$CC"; then
3537 ac_ct_CC=$CC
3538 for ac_prog in cl.exe
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy $ac_prog; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$ac_ct_CC"; then
3548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_ac_ct_CC="$ac_prog"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3561 done
3562 done
3563 IFS=$as_save_IFS
3567 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3568 if test -n "$ac_ct_CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3570 $as_echo "$ac_ct_CC" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3577 test -n "$ac_ct_CC" && break
3578 done
3580 if test "x$ac_ct_CC" = x; then
3581 CC=""
3582 else
3583 case $cross_compiling:$ac_tool_warned in
3584 yes:)
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned=yes ;;
3588 esac
3589 CC=$ac_ct_CC
3596 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598 as_fn_error $? "no acceptable C compiler found in \$PATH
3599 See \`config.log' for more details" "$LINENO" 5; }
3601 # Provide some information about the compiler.
3602 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3603 set X $ac_compile
3604 ac_compiler=$2
3605 for ac_option in --version -v -V -qversion; do
3606 { { ac_try="$ac_compiler $ac_option >&5"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3614 ac_status=$?
3615 if test -s conftest.err; then
3616 sed '10a\
3617 ... rest of stderr output deleted ...
3618 10q' conftest.err >conftest.er1
3619 cat conftest.er1 >&5
3621 rm -f conftest.er1 conftest.err
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }
3624 done
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3630 main ()
3634 return 0;
3636 _ACEOF
3637 ac_clean_files_save=$ac_clean_files
3638 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3639 # Try to create an executable without -o first, disregard a.out.
3640 # It will help us diagnose broken compilers, and finding out an intuition
3641 # of exeext.
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3643 $as_echo_n "checking whether the C compiler works... " >&6; }
3644 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3646 # The possible output files:
3647 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3649 ac_rmfiles=
3650 for ac_file in $ac_files
3652 case $ac_file in
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3655 esac
3656 done
3657 rm -f $ac_rmfiles
3659 if { { ac_try="$ac_link_default"
3660 case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665 $as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link_default") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }; then :
3670 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3671 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3672 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3673 # so that the user can short-circuit this test for compilers unknown to
3674 # Autoconf.
3675 for ac_file in $ac_files ''
3677 test -f "$ac_file" || continue
3678 case $ac_file in
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3681 [ab].out )
3682 # We found the default executable, but exeext='' is most
3683 # certainly right.
3684 break;;
3685 *.* )
3686 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3687 then :; else
3688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 # We set ac_cv_exeext here because the later test for it is not
3691 # safe: cross compilers may not add the suffix if given an `-o'
3692 # argument, so we may need to know it at that point already.
3693 # Even if this section looks crufty: it has the advantage of
3694 # actually working.
3695 break;;
3697 break;;
3698 esac
3699 done
3700 test "$ac_cv_exeext" = no && ac_cv_exeext=
3702 else
3703 ac_file=''
3705 if test -z "$ac_file"; then :
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3708 $as_echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error 77 "C compiler cannot create executables
3714 See \`config.log' for more details" "$LINENO" 5; }
3715 else
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3717 $as_echo "yes" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3720 $as_echo_n "checking for C compiler default output file name... " >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3722 $as_echo "$ac_file" >&6; }
3723 ac_exeext=$ac_cv_exeext
3725 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3726 ac_clean_files=$ac_clean_files_save
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3728 $as_echo_n "checking for suffix of executables... " >&6; }
3729 if { { ac_try="$ac_link"
3730 case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_link") 2>&5
3737 ac_status=$?
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; then :
3740 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3741 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3742 # work properly (i.e., refer to `conftest.exe'), while it won't with
3743 # `rm'.
3744 for ac_file in conftest.exe conftest conftest.*; do
3745 test -f "$ac_file" || continue
3746 case $ac_file in
3747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3748 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749 break;;
3750 * ) break;;
3751 esac
3752 done
3753 else
3754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3756 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3757 See \`config.log' for more details" "$LINENO" 5; }
3759 rm -f conftest conftest$ac_cv_exeext
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3761 $as_echo "$ac_cv_exeext" >&6; }
3763 rm -f conftest.$ac_ext
3764 EXEEXT=$ac_cv_exeext
3765 ac_exeext=$EXEEXT
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <stdio.h>
3770 main ()
3772 FILE *f = fopen ("conftest.out", "w");
3773 return ferror (f) || fclose (f) != 0;
3776 return 0;
3778 _ACEOF
3779 ac_clean_files="$ac_clean_files conftest.out"
3780 # Check that the compiler produces executables we can run. If not, either
3781 # the compiler is broken, or we cross compile.
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3783 $as_echo_n "checking whether we are cross compiling... " >&6; }
3784 if test "$cross_compiling" != yes; then
3785 { { ac_try="$ac_link"
3786 case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789 esac
3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791 $as_echo "$ac_try_echo"; } >&5
3792 (eval "$ac_link") 2>&5
3793 ac_status=$?
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }
3796 if { ac_try='./conftest$ac_cv_exeext'
3797 { { case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_try") 2>&5
3804 ac_status=$?
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }; }; then
3807 cross_compiling=no
3808 else
3809 if test "$cross_compiling" = maybe; then
3810 cross_compiling=yes
3811 else
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error $? "cannot run C compiled programs.
3815 If you meant to cross compile, use \`--host'.
3816 See \`config.log' for more details" "$LINENO" 5; }
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3821 $as_echo "$cross_compiling" >&6; }
3823 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3824 ac_clean_files=$ac_clean_files_save
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3826 $as_echo_n "checking for suffix of object files... " >&6; }
3827 if ${ac_cv_objext+:} false; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3834 main ()
3838 return 0;
3840 _ACEOF
3841 rm -f conftest.o conftest.obj
3842 if { { ac_try="$ac_compile"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compile") 2>&5
3850 ac_status=$?
3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852 test $ac_status = 0; }; then :
3853 for ac_file in conftest.o conftest.obj conftest.*; do
3854 test -f "$ac_file" || continue;
3855 case $ac_file in
3856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3857 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3858 break;;
3859 esac
3860 done
3861 else
3862 $as_echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3867 as_fn_error $? "cannot compute suffix of object files: cannot compile
3868 See \`config.log' for more details" "$LINENO" 5; }
3870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3873 $as_echo "$ac_cv_objext" >&6; }
3874 OBJEXT=$ac_cv_objext
3875 ac_objext=$OBJEXT
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3877 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3878 if ${ac_cv_c_compiler_gnu+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880 else
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3885 main ()
3887 #ifndef __GNUC__
3888 choke me
3889 #endif
3892 return 0;
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896 ac_compiler_gnu=yes
3897 else
3898 ac_compiler_gnu=no
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3905 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3906 if test $ac_compiler_gnu = yes; then
3907 GCC=yes
3908 else
3909 GCC=
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3914 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3915 if ${ac_cv_prog_cc_g+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 ac_save_c_werror_flag=$ac_c_werror_flag
3919 ac_c_werror_flag=yes
3920 ac_cv_prog_cc_g=no
3921 CFLAGS="-g"
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3926 main ()
3930 return 0;
3932 _ACEOF
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934 ac_cv_prog_cc_g=yes
3935 else
3936 CFLAGS=""
3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938 /* end confdefs.h. */
3941 main ()
3945 return 0;
3947 _ACEOF
3948 if ac_fn_c_try_compile "$LINENO"; then :
3950 else
3951 ac_c_werror_flag=$ac_save_c_werror_flag
3952 CFLAGS="-g"
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3957 main ()
3961 return 0;
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965 ac_cv_prog_cc_g=yes
3967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 ac_c_werror_flag=$ac_save_c_werror_flag
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3975 $as_echo "$ac_cv_prog_cc_g" >&6; }
3976 if test "$ac_test_CFLAGS" = set; then
3977 CFLAGS=$ac_save_CFLAGS
3978 elif test $ac_cv_prog_cc_g = yes; then
3979 if test "$GCC" = yes; then
3980 CFLAGS="-g -O2"
3981 else
3982 CFLAGS="-g"
3984 else
3985 if test "$GCC" = yes; then
3986 CFLAGS="-O2"
3987 else
3988 CFLAGS=
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3992 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3993 if ${ac_cv_prog_cc_c89+:} false; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 ac_cv_prog_cc_c89=no
3997 ac_save_CC=$CC
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000 #include <stdarg.h>
4001 #include <stdio.h>
4002 struct stat;
4003 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4004 struct buf { int x; };
4005 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4006 static char *e (p, i)
4007 char **p;
4008 int i;
4010 return p[i];
4012 static char *f (char * (*g) (char **, int), char **p, ...)
4014 char *s;
4015 va_list v;
4016 va_start (v,p);
4017 s = g (p, va_arg (v,int));
4018 va_end (v);
4019 return s;
4022 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4023 function prototypes and stuff, but not '\xHH' hex character constants.
4024 These don't provoke an error unfortunately, instead are silently treated
4025 as 'x'. The following induces an error, until -std is added to get
4026 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4027 array size at least. It's necessary to write '\x00'==0 to get something
4028 that's true only with -std. */
4029 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4031 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4032 inside strings and character constants. */
4033 #define FOO(x) 'x'
4034 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4036 int test (int i, double x);
4037 struct s1 {int (*f) (int a);};
4038 struct s2 {int (*f) (double a);};
4039 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4040 int argc;
4041 char **argv;
4043 main ()
4045 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4047 return 0;
4049 _ACEOF
4050 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4051 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4053 CC="$ac_save_CC $ac_arg"
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055 ac_cv_prog_cc_c89=$ac_arg
4057 rm -f core conftest.err conftest.$ac_objext
4058 test "x$ac_cv_prog_cc_c89" != "xno" && break
4059 done
4060 rm -f conftest.$ac_ext
4061 CC=$ac_save_CC
4064 # AC_CACHE_VAL
4065 case "x$ac_cv_prog_cc_c89" in
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4068 $as_echo "none needed" >&6; } ;;
4069 xno)
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4071 $as_echo "unsupported" >&6; } ;;
4073 CC="$CC $ac_cv_prog_cc_c89"
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4075 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4076 esac
4077 if test "x$ac_cv_prog_cc_c89" != xno; then :
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 ac_ext=c
4088 ac_cpp='$CPP $CPPFLAGS'
4089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4093 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4094 if ${am_cv_prog_cc_c_o+:} false; then :
4095 $as_echo_n "(cached) " >&6
4096 else
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4101 main ()
4105 return 0;
4107 _ACEOF
4108 # Make sure it works both with $CC and with simple cc.
4109 # Following AC_PROG_CC_C_O, we do the test twice because some
4110 # compilers refuse to overwrite an existing .o file with -o,
4111 # though they will create one.
4112 am_cv_prog_cc_c_o=yes
4113 for am_i in 1 2; do
4114 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4115 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); } \
4119 && test -f conftest2.$ac_objext; then
4120 : OK
4121 else
4122 am_cv_prog_cc_c_o=no
4123 break
4125 done
4126 rm -f core conftest*
4127 unset am_i
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4130 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4131 if test "$am_cv_prog_cc_c_o" != yes; then
4132 # Losing compiler, so override with the script.
4133 # FIXME: It is wrong to rewrite CC.
4134 # But if we don't then we get into trouble of one sort or another.
4135 # A longer-term fix would be to have automake use am__CC in this case,
4136 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4137 CC="$am_aux_dir/compile $CC"
4139 ac_ext=c
4140 ac_cpp='$CPP $CPPFLAGS'
4141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 DEPDIR="${am__leading_dot}deps"
4147 ac_config_commands="$ac_config_commands depfiles"
4150 am_make=${MAKE-make}
4151 cat > confinc << 'END'
4152 am__doit:
4153 @echo this is the am__doit target
4154 .PHONY: am__doit
4156 # If we don't find an include directive, just comment out the code.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4158 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4159 am__include="#"
4160 am__quote=
4161 _am_result=none
4162 # First try GNU make style include.
4163 echo "include confinc" > confmf
4164 # Ignore all kinds of additional output from 'make'.
4165 case `$am_make -s -f confmf 2> /dev/null` in #(
4166 *the\ am__doit\ target*)
4167 am__include=include
4168 am__quote=
4169 _am_result=GNU
4171 esac
4172 # Now try BSD make style include.
4173 if test "$am__include" = "#"; then
4174 echo '.include "confinc"' > confmf
4175 case `$am_make -s -f confmf 2> /dev/null` in #(
4176 *the\ am__doit\ target*)
4177 am__include=.include
4178 am__quote="\""
4179 _am_result=BSD
4181 esac
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4186 $as_echo "$_am_result" >&6; }
4187 rm -f confinc confmf
4189 # Check whether --enable-dependency-tracking was given.
4190 if test "${enable_dependency_tracking+set}" = set; then :
4191 enableval=$enable_dependency_tracking;
4194 if test "x$enable_dependency_tracking" != xno; then
4195 am_depcomp="$ac_aux_dir/depcomp"
4196 AMDEPBACKSLASH='\'
4197 am__nodep='_no'
4199 if test "x$enable_dependency_tracking" != xno; then
4200 AMDEP_TRUE=
4201 AMDEP_FALSE='#'
4202 else
4203 AMDEP_TRUE='#'
4204 AMDEP_FALSE=
4209 depcc="$CC" am_compiler_list=
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4212 $as_echo_n "checking dependency style of $depcc... " >&6; }
4213 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4217 # We make a subdir and do the tests there. Otherwise we can end up
4218 # making bogus files that we don't know about and never remove. For
4219 # instance it was reported that on HP-UX the gcc test will end up
4220 # making a dummy file named 'D' -- because '-MD' means "put the output
4221 # in D".
4222 rm -rf conftest.dir
4223 mkdir conftest.dir
4224 # Copy depcomp to subdir because otherwise we won't find it if we're
4225 # using a relative directory.
4226 cp "$am_depcomp" conftest.dir
4227 cd conftest.dir
4228 # We will build objects and dependencies in a subdirectory because
4229 # it helps to detect inapplicable dependency modes. For instance
4230 # both Tru64's cc and ICC support -MD to output dependencies as a
4231 # side effect of compilation, but ICC will put the dependencies in
4232 # the current directory while Tru64 will put them in the object
4233 # directory.
4234 mkdir sub
4236 am_cv_CC_dependencies_compiler_type=none
4237 if test "$am_compiler_list" = ""; then
4238 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4240 am__universal=false
4241 case " $depcc " in #(
4242 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4243 esac
4245 for depmode in $am_compiler_list; do
4246 # Setup a source with many dependencies, because some compilers
4247 # like to wrap large dependency lists on column 80 (with \), and
4248 # we should not choose a depcomp mode which is confused by this.
4250 # We need to recreate these files for each test, as the compiler may
4251 # overwrite some of them when testing with obscure command lines.
4252 # This happens at least with the AIX C compiler.
4253 : > sub/conftest.c
4254 for i in 1 2 3 4 5 6; do
4255 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4256 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4257 # Solaris 10 /bin/sh.
4258 echo '/* dummy */' > sub/conftst$i.h
4259 done
4260 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4262 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4263 # mode. It turns out that the SunPro C++ compiler does not properly
4264 # handle '-M -o', and we need to detect this. Also, some Intel
4265 # versions had trouble with output in subdirs.
4266 am__obj=sub/conftest.${OBJEXT-o}
4267 am__minus_obj="-o $am__obj"
4268 case $depmode in
4269 gcc)
4270 # This depmode causes a compiler race in universal mode.
4271 test "$am__universal" = false || continue
4273 nosideeffect)
4274 # After this tag, mechanisms are not by side-effect, so they'll
4275 # only be used when explicitly requested.
4276 if test "x$enable_dependency_tracking" = xyes; then
4277 continue
4278 else
4279 break
4282 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4283 # This compiler won't grok '-c -o', but also, the minuso test has
4284 # not run yet. These depmodes are late enough in the game, and
4285 # so weak that their functioning should not be impacted.
4286 am__obj=conftest.${OBJEXT-o}
4287 am__minus_obj=
4289 none) break ;;
4290 esac
4291 if depmode=$depmode \
4292 source=sub/conftest.c object=$am__obj \
4293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4294 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4295 >/dev/null 2>conftest.err &&
4296 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4297 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4298 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4299 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4300 # icc doesn't choke on unknown options, it will just issue warnings
4301 # or remarks (even with -Werror). So we grep stderr for any message
4302 # that says an option was ignored or not supported.
4303 # When given -MP, icc 7.0 and 7.1 complain thusly:
4304 # icc: Command line warning: ignoring option '-M'; no argument required
4305 # The diagnosis changed in icc 8.0:
4306 # icc: Command line remark: option '-MP' not supported
4307 if (grep 'ignoring option' conftest.err ||
4308 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4309 am_cv_CC_dependencies_compiler_type=$depmode
4310 break
4313 done
4315 cd ..
4316 rm -rf conftest.dir
4317 else
4318 am_cv_CC_dependencies_compiler_type=none
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4323 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4324 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4327 test "x$enable_dependency_tracking" != xno \
4328 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4329 am__fastdepCC_TRUE=
4330 am__fastdepCC_FALSE='#'
4331 else
4332 am__fastdepCC_TRUE='#'
4333 am__fastdepCC_FALSE=
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4340 $as_echo_n "checking whether ln -s works... " >&6; }
4341 LN_S=$as_ln_s
4342 if test "$LN_S" = "ln -s"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4344 $as_echo "yes" >&6; }
4345 else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4347 $as_echo "no, using $LN_S" >&6; }
4350 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4352 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4353 # versions
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4355 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4356 if ${ac_cv_path_SED+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4360 for ac_i in 1 2 3 4 5 6 7; do
4361 ac_script="$ac_script$as_nl$ac_script"
4362 done
4363 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4364 { ac_script=; unset ac_script;}
4365 if test -z "$SED"; then
4366 ac_path_SED_found=false
4367 # Loop through the user's path and test for each of PROGNAME-LIST
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_prog in sed gsed; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4376 as_fn_executable_p "$ac_path_SED" || continue
4377 # Check for GNU ac_path_SED and select it if it is found.
4378 # Check for GNU $ac_path_SED
4379 case `"$ac_path_SED" --version 2>&1` in
4380 *GNU*)
4381 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4383 ac_count=0
4384 $as_echo_n 0123456789 >"conftest.in"
4385 while :
4387 cat "conftest.in" "conftest.in" >"conftest.tmp"
4388 mv "conftest.tmp" "conftest.in"
4389 cp "conftest.in" "conftest.nl"
4390 $as_echo '' >> "conftest.nl"
4391 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4393 as_fn_arith $ac_count + 1 && ac_count=$as_val
4394 if test $ac_count -gt ${ac_path_SED_max-0}; then
4395 # Best one so far, save it but keep looking for a better one
4396 ac_cv_path_SED="$ac_path_SED"
4397 ac_path_SED_max=$ac_count
4399 # 10*(2^10) chars as input seems more than enough
4400 test $ac_count -gt 10 && break
4401 done
4402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4403 esac
4405 $ac_path_SED_found && break 3
4406 done
4407 done
4408 done
4409 IFS=$as_save_IFS
4410 if test -z "$ac_cv_path_SED"; then
4411 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4413 else
4414 ac_cv_path_SED=$SED
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4419 $as_echo "$ac_cv_path_SED" >&6; }
4420 SED="$ac_cv_path_SED"
4421 rm -f conftest.sed
4425 ac_ext=c
4426 ac_cpp='$CPP $CPPFLAGS'
4427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4431 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4432 # On Suns, sometimes $CPP names a directory.
4433 if test -n "$CPP" && test -d "$CPP"; then
4434 CPP=
4436 if test -z "$CPP"; then
4437 if ${ac_cv_prog_CPP+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 # Double quotes because CPP needs to be expanded
4441 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4443 ac_preproc_ok=false
4444 for ac_c_preproc_warn_flag in '' yes
4446 # Use a header file that comes with gcc, so configuring glibc
4447 # with a fresh cross-compiler works.
4448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4449 # <limits.h> exists even on freestanding compilers.
4450 # On the NeXT, cc -E runs the code through the compiler's parser,
4451 # not just through cpp. "Syntax error" is here to catch this case.
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454 #ifdef __STDC__
4455 # include <limits.h>
4456 #else
4457 # include <assert.h>
4458 #endif
4459 Syntax error
4460 _ACEOF
4461 if ac_fn_c_try_cpp "$LINENO"; then :
4463 else
4464 # Broken: fails on valid input.
4465 continue
4467 rm -f conftest.err conftest.i conftest.$ac_ext
4469 # OK, works on sane cases. Now check whether nonexistent headers
4470 # can be detected and how.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #include <ac_nonexistent.h>
4474 _ACEOF
4475 if ac_fn_c_try_cpp "$LINENO"; then :
4476 # Broken: success on invalid input.
4477 continue
4478 else
4479 # Passes both tests.
4480 ac_preproc_ok=:
4481 break
4483 rm -f conftest.err conftest.i conftest.$ac_ext
4485 done
4486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4487 rm -f conftest.i conftest.err conftest.$ac_ext
4488 if $ac_preproc_ok; then :
4489 break
4492 done
4493 ac_cv_prog_CPP=$CPP
4496 CPP=$ac_cv_prog_CPP
4497 else
4498 ac_cv_prog_CPP=$CPP
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4501 $as_echo "$CPP" >&6; }
4502 ac_preproc_ok=false
4503 for ac_c_preproc_warn_flag in '' yes
4505 # Use a header file that comes with gcc, so configuring glibc
4506 # with a fresh cross-compiler works.
4507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4508 # <limits.h> exists even on freestanding compilers.
4509 # On the NeXT, cc -E runs the code through the compiler's parser,
4510 # not just through cpp. "Syntax error" is here to catch this case.
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4513 #ifdef __STDC__
4514 # include <limits.h>
4515 #else
4516 # include <assert.h>
4517 #endif
4518 Syntax error
4519 _ACEOF
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4522 else
4523 # Broken: fails on valid input.
4524 continue
4526 rm -f conftest.err conftest.i conftest.$ac_ext
4528 # OK, works on sane cases. Now check whether nonexistent headers
4529 # can be detected and how.
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4532 #include <ac_nonexistent.h>
4533 _ACEOF
4534 if ac_fn_c_try_cpp "$LINENO"; then :
4535 # Broken: success on invalid input.
4536 continue
4537 else
4538 # Passes both tests.
4539 ac_preproc_ok=:
4540 break
4542 rm -f conftest.err conftest.i conftest.$ac_ext
4544 done
4545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546 rm -f conftest.i conftest.err conftest.$ac_ext
4547 if $ac_preproc_ok; then :
4549 else
4550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4552 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4553 See \`config.log' for more details" "$LINENO" 5; }
4556 ac_ext=c
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4564 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4565 if ${ac_cv_path_GREP+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -z "$GREP"; then
4569 ac_path_GREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in grep ggrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4579 as_fn_executable_p "$ac_path_GREP" || continue
4580 # Check for GNU ac_path_GREP and select it if it is found.
4581 # Check for GNU $ac_path_GREP
4582 case `"$ac_path_GREP" --version 2>&1` in
4583 *GNU*)
4584 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4586 ac_count=0
4587 $as_echo_n 0123456789 >"conftest.in"
4588 while :
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 $as_echo 'GREP' >> "conftest.nl"
4594 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 as_fn_arith $ac_count + 1 && ac_count=$as_val
4597 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_GREP="$ac_path_GREP"
4600 ac_path_GREP_max=$ac_count
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4604 done
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4606 esac
4608 $ac_path_GREP_found && break 3
4609 done
4610 done
4611 done
4612 IFS=$as_save_IFS
4613 if test -z "$ac_cv_path_GREP"; then
4614 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4616 else
4617 ac_cv_path_GREP=$GREP
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4622 $as_echo "$ac_cv_path_GREP" >&6; }
4623 GREP="$ac_cv_path_GREP"
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4627 $as_echo_n "checking for egrep... " >&6; }
4628 if ${ac_cv_path_EGREP+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4632 then ac_cv_path_EGREP="$GREP -E"
4633 else
4634 if test -z "$EGREP"; then
4635 ac_path_EGREP_found=false
4636 # Loop through the user's path and test for each of PROGNAME-LIST
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4640 IFS=$as_save_IFS
4641 test -z "$as_dir" && as_dir=.
4642 for ac_prog in egrep; do
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4645 as_fn_executable_p "$ac_path_EGREP" || continue
4646 # Check for GNU ac_path_EGREP and select it if it is found.
4647 # Check for GNU $ac_path_EGREP
4648 case `"$ac_path_EGREP" --version 2>&1` in
4649 *GNU*)
4650 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4652 ac_count=0
4653 $as_echo_n 0123456789 >"conftest.in"
4654 while :
4656 cat "conftest.in" "conftest.in" >"conftest.tmp"
4657 mv "conftest.tmp" "conftest.in"
4658 cp "conftest.in" "conftest.nl"
4659 $as_echo 'EGREP' >> "conftest.nl"
4660 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4664 # Best one so far, save it but keep looking for a better one
4665 ac_cv_path_EGREP="$ac_path_EGREP"
4666 ac_path_EGREP_max=$ac_count
4668 # 10*(2^10) chars as input seems more than enough
4669 test $ac_count -gt 10 && break
4670 done
4671 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672 esac
4674 $ac_path_EGREP_found && break 3
4675 done
4676 done
4677 done
4678 IFS=$as_save_IFS
4679 if test -z "$ac_cv_path_EGREP"; then
4680 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4682 else
4683 ac_cv_path_EGREP=$EGREP
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4689 $as_echo "$ac_cv_path_EGREP" >&6; }
4690 EGREP="$ac_cv_path_EGREP"
4693 if test $ac_cv_c_compiler_gnu = yes; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4695 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4696 if ${ac_cv_prog_gcc_traditional+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 ac_pattern="Autoconf.*'x'"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702 #include <sgtty.h>
4703 Autoconf TIOCGETP
4704 _ACEOF
4705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4707 ac_cv_prog_gcc_traditional=yes
4708 else
4709 ac_cv_prog_gcc_traditional=no
4711 rm -f conftest*
4714 if test $ac_cv_prog_gcc_traditional = no; then
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #include <termio.h>
4718 Autoconf TCGETA
4719 _ACEOF
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4722 ac_cv_prog_gcc_traditional=yes
4724 rm -f conftest*
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4729 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4730 if test $ac_cv_prog_gcc_traditional = yes; then
4731 CC="$CC -traditional"
4736 # We need to test for at least gcc 2.95 here, because older versions don't
4737 # have -fno-strict-aliasing
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4742 main ()
4745 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4746 #error
4747 #endif
4749 return 0;
4751 _ACEOF
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 have_gcc295=yes
4754 else
4755 have_gcc295=no
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 if test "$GCC" = "yes" ; then
4760 # Enable many gcc warnings by default...
4761 CFLAGS="$CFLAGS -Wall"
4762 # And disable the strict-aliasing optimization, since it breaks
4763 # our sockaddr-handling code in strange ways.
4764 if test x$have_gcc295 = xyes; then
4765 CFLAGS="$CFLAGS -fno-strict-aliasing"
4769 # OS X Lion started deprecating the system openssl. Let's just disable
4770 # all deprecation warnings on OS X.
4771 case "$host_os" in
4773 darwin*)
4774 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4776 esac
4778 # Check whether --enable-gcc-warnings was given.
4779 if test "${enable_gcc_warnings+set}" = set; then :
4780 enableval=$enable_gcc_warnings;
4783 # Check whether --enable-thread-support was given.
4784 if test "${enable_thread_support+set}" = set; then :
4785 enableval=$enable_thread_support;
4786 else
4787 enable_thread_support=yes
4790 # Check whether --enable-malloc-replacement was given.
4791 if test "${enable_malloc_replacement+set}" = set; then :
4792 enableval=$enable_malloc_replacement;
4793 else
4794 enable_malloc_replacement=yes
4797 # Check whether --enable-openssl was given.
4798 if test "${enable_openssl+set}" = set; then :
4799 enableval=$enable_openssl;
4800 else
4801 enable_openssl=yes
4804 # Check whether --enable-debug-mode was given.
4805 if test "${enable_debug_mode+set}" = set; then :
4806 enableval=$enable_debug_mode;
4807 else
4808 enable_debug_mode=yes
4811 # Check whether --enable-libevent-install was given.
4812 if test "${enable_libevent_install+set}" = set; then :
4813 enableval=$enable_libevent_install;
4814 else
4815 enable_libevent_install=yes
4818 # Check whether --enable-libevent-regress was given.
4819 if test "${enable_libevent_regress+set}" = set; then :
4820 enableval=$enable_libevent_regress; enable_libevent_regress=yes
4823 # Check whether --enable-function-sections was given.
4824 if test "${enable_function_sections+set}" = set; then :
4825 enableval=$enable_function_sections;
4826 else
4827 enable_function_sections=no
4832 case `pwd` in
4833 *\ * | *\ *)
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4835 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4836 esac
4840 macro_version='2.4.2'
4841 macro_revision='1.3337'
4855 ltmain="$ac_aux_dir/ltmain.sh"
4857 # Backslashify metacharacters that are still active within
4858 # double-quoted strings.
4859 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4861 # Same as above, but do not quote variable references.
4862 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4864 # Sed substitution to delay expansion of an escaped shell variable in a
4865 # double_quote_subst'ed string.
4866 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4868 # Sed substitution to delay expansion of an escaped single quote.
4869 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4871 # Sed substitution to avoid accidental globbing in evaled expressions
4872 no_glob_subst='s/\*/\\\*/g'
4874 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4875 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4876 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4879 $as_echo_n "checking how to print strings... " >&6; }
4880 # Test print first, because it will be a builtin if present.
4881 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4882 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4883 ECHO='print -r --'
4884 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4885 ECHO='printf %s\n'
4886 else
4887 # Use this function as a fallback that always works.
4888 func_fallback_echo ()
4890 eval 'cat <<_LTECHO_EOF
4892 _LTECHO_EOF'
4894 ECHO='func_fallback_echo'
4897 # func_echo_all arg...
4898 # Invoke $ECHO with all args, space-separated.
4899 func_echo_all ()
4901 $ECHO ""
4904 case "$ECHO" in
4905 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4906 $as_echo "printf" >&6; } ;;
4907 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4908 $as_echo "print -r" >&6; } ;;
4909 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4910 $as_echo "cat" >&6; } ;;
4911 esac
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4927 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4928 if ${ac_cv_path_SED+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4932 for ac_i in 1 2 3 4 5 6 7; do
4933 ac_script="$ac_script$as_nl$ac_script"
4934 done
4935 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4936 { ac_script=; unset ac_script;}
4937 if test -z "$SED"; then
4938 ac_path_SED_found=false
4939 # Loop through the user's path and test for each of PROGNAME-LIST
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_prog in sed gsed; do
4946 for ac_exec_ext in '' $ac_executable_extensions; do
4947 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4948 as_fn_executable_p "$ac_path_SED" || continue
4949 # Check for GNU ac_path_SED and select it if it is found.
4950 # Check for GNU $ac_path_SED
4951 case `"$ac_path_SED" --version 2>&1` in
4952 *GNU*)
4953 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4955 ac_count=0
4956 $as_echo_n 0123456789 >"conftest.in"
4957 while :
4959 cat "conftest.in" "conftest.in" >"conftest.tmp"
4960 mv "conftest.tmp" "conftest.in"
4961 cp "conftest.in" "conftest.nl"
4962 $as_echo '' >> "conftest.nl"
4963 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4965 as_fn_arith $ac_count + 1 && ac_count=$as_val
4966 if test $ac_count -gt ${ac_path_SED_max-0}; then
4967 # Best one so far, save it but keep looking for a better one
4968 ac_cv_path_SED="$ac_path_SED"
4969 ac_path_SED_max=$ac_count
4971 # 10*(2^10) chars as input seems more than enough
4972 test $ac_count -gt 10 && break
4973 done
4974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975 esac
4977 $ac_path_SED_found && break 3
4978 done
4979 done
4980 done
4981 IFS=$as_save_IFS
4982 if test -z "$ac_cv_path_SED"; then
4983 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4985 else
4986 ac_cv_path_SED=$SED
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4991 $as_echo "$ac_cv_path_SED" >&6; }
4992 SED="$ac_cv_path_SED"
4993 rm -f conftest.sed
4995 test -z "$SED" && SED=sed
4996 Xsed="$SED -e 1s/^X//"
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5009 $as_echo_n "checking for fgrep... " >&6; }
5010 if ${ac_cv_path_FGREP+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5014 then ac_cv_path_FGREP="$GREP -F"
5015 else
5016 if test -z "$FGREP"; then
5017 ac_path_FGREP_found=false
5018 # Loop through the user's path and test for each of PROGNAME-LIST
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_prog in fgrep; do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5027 as_fn_executable_p "$ac_path_FGREP" || continue
5028 # Check for GNU ac_path_FGREP and select it if it is found.
5029 # Check for GNU $ac_path_FGREP
5030 case `"$ac_path_FGREP" --version 2>&1` in
5031 *GNU*)
5032 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5034 ac_count=0
5035 $as_echo_n 0123456789 >"conftest.in"
5036 while :
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 $as_echo 'FGREP' >> "conftest.nl"
5042 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 as_fn_arith $ac_count + 1 && ac_count=$as_val
5045 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_FGREP="$ac_path_FGREP"
5048 ac_path_FGREP_max=$ac_count
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5052 done
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054 esac
5056 $ac_path_FGREP_found && break 3
5057 done
5058 done
5059 done
5060 IFS=$as_save_IFS
5061 if test -z "$ac_cv_path_FGREP"; then
5062 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5064 else
5065 ac_cv_path_FGREP=$FGREP
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5071 $as_echo "$ac_cv_path_FGREP" >&6; }
5072 FGREP="$ac_cv_path_FGREP"
5075 test -z "$GREP" && GREP=grep
5095 # Check whether --with-gnu-ld was given.
5096 if test "${with_gnu_ld+set}" = set; then :
5097 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5098 else
5099 with_gnu_ld=no
5102 ac_prog=ld
5103 if test "$GCC" = yes; then
5104 # Check if gcc -print-prog-name=ld gives a path.
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5106 $as_echo_n "checking for ld used by $CC... " >&6; }
5107 case $host in
5108 *-*-mingw*)
5109 # gcc leaves a trailing carriage return which upsets mingw
5110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5113 esac
5114 case $ac_prog in
5115 # Accept absolute paths.
5116 [\\/]* | ?:[\\/]*)
5117 re_direlt='/[^/][^/]*/\.\./'
5118 # Canonicalize the pathname of ld
5119 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5120 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5121 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5122 done
5123 test -z "$LD" && LD="$ac_prog"
5126 # If it fails, then pretend we aren't using GCC.
5127 ac_prog=ld
5130 # If it is relative, then search for the first ld in PATH.
5131 with_gnu_ld=unknown
5133 esac
5134 elif test "$with_gnu_ld" = yes; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5136 $as_echo_n "checking for GNU ld... " >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5139 $as_echo_n "checking for non-GNU ld... " >&6; }
5141 if ${lt_cv_path_LD+:} false; then :
5142 $as_echo_n "(cached) " >&6
5143 else
5144 if test -z "$LD"; then
5145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5146 for ac_dir in $PATH; do
5147 IFS="$lt_save_ifs"
5148 test -z "$ac_dir" && ac_dir=.
5149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5150 lt_cv_path_LD="$ac_dir/$ac_prog"
5151 # Check to see if the program is GNU ld. I'd rather use --version,
5152 # but apparently some variants of GNU ld only accept -v.
5153 # Break only if it was the GNU/non-GNU ld that we prefer.
5154 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5155 *GNU* | *'with BFD'*)
5156 test "$with_gnu_ld" != no && break
5159 test "$with_gnu_ld" != yes && break
5161 esac
5163 done
5164 IFS="$lt_save_ifs"
5165 else
5166 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5170 LD="$lt_cv_path_LD"
5171 if test -n "$LD"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5173 $as_echo "$LD" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5178 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5180 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5181 if ${lt_cv_prog_gnu_ld+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5185 case `$LD -v 2>&1 </dev/null` in
5186 *GNU* | *'with BFD'*)
5187 lt_cv_prog_gnu_ld=yes
5190 lt_cv_prog_gnu_ld=no
5192 esac
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5195 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5196 with_gnu_ld=$lt_cv_prog_gnu_ld
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5207 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5208 if ${lt_cv_path_NM+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$NM"; then
5212 # Let the user override the test.
5213 lt_cv_path_NM="$NM"
5214 else
5215 lt_nm_to_check="${ac_tool_prefix}nm"
5216 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5217 lt_nm_to_check="$lt_nm_to_check nm"
5219 for lt_tmp_nm in $lt_nm_to_check; do
5220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5221 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5222 IFS="$lt_save_ifs"
5223 test -z "$ac_dir" && ac_dir=.
5224 tmp_nm="$ac_dir/$lt_tmp_nm"
5225 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5226 # Check to see if the nm accepts a BSD-compat flag.
5227 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5228 # nm: unknown option "B" ignored
5229 # Tru64's nm complains that /dev/null is an invalid object file
5230 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5231 */dev/null* | *'Invalid file or object type'*)
5232 lt_cv_path_NM="$tmp_nm -B"
5233 break
5236 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5237 */dev/null*)
5238 lt_cv_path_NM="$tmp_nm -p"
5239 break
5242 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5243 continue # so that we can try to find one that supports BSD flags
5245 esac
5247 esac
5249 done
5250 IFS="$lt_save_ifs"
5251 done
5252 : ${lt_cv_path_NM=no}
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5256 $as_echo "$lt_cv_path_NM" >&6; }
5257 if test "$lt_cv_path_NM" != "no"; then
5258 NM="$lt_cv_path_NM"
5259 else
5260 # Didn't find any BSD compatible name lister, look for dumpbin.
5261 if test -n "$DUMPBIN"; then :
5262 # Let the user override the test.
5263 else
5264 if test -n "$ac_tool_prefix"; then
5265 for ac_prog in dumpbin "link -dump"
5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_DUMPBIN+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 if test -n "$DUMPBIN"; then
5275 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5288 done
5289 done
5290 IFS=$as_save_IFS
5294 DUMPBIN=$ac_cv_prog_DUMPBIN
5295 if test -n "$DUMPBIN"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5297 $as_echo "$DUMPBIN" >&6; }
5298 else
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5304 test -n "$DUMPBIN" && break
5305 done
5307 if test -z "$DUMPBIN"; then
5308 ac_ct_DUMPBIN=$DUMPBIN
5309 for ac_prog in dumpbin "link -dump"
5311 # Extract the first word of "$ac_prog", so it can be a program name with args.
5312 set dummy $ac_prog; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$ac_ct_DUMPBIN"; then
5319 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5339 if test -n "$ac_ct_DUMPBIN"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5341 $as_echo "$ac_ct_DUMPBIN" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5348 test -n "$ac_ct_DUMPBIN" && break
5349 done
5351 if test "x$ac_ct_DUMPBIN" = x; then
5352 DUMPBIN=":"
5353 else
5354 case $cross_compiling:$ac_tool_warned in
5355 yes:)
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5358 ac_tool_warned=yes ;;
5359 esac
5360 DUMPBIN=$ac_ct_DUMPBIN
5364 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5365 *COFF*)
5366 DUMPBIN="$DUMPBIN -symbols"
5369 DUMPBIN=:
5371 esac
5374 if test "$DUMPBIN" != ":"; then
5375 NM="$DUMPBIN"
5378 test -z "$NM" && NM=nm
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5386 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5387 if ${lt_cv_nm_interface+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 lt_cv_nm_interface="BSD nm"
5391 echo "int some_variable = 0;" > conftest.$ac_ext
5392 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5393 (eval "$ac_compile" 2>conftest.err)
5394 cat conftest.err >&5
5395 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5396 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5397 cat conftest.err >&5
5398 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5399 cat conftest.out >&5
5400 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5401 lt_cv_nm_interface="MS dumpbin"
5403 rm -f conftest*
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5406 $as_echo "$lt_cv_nm_interface" >&6; }
5408 # find the maximum length of command line arguments
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5410 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5411 if ${lt_cv_sys_max_cmd_len+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5415 teststring="ABCD"
5417 case $build_os in
5418 msdosdjgpp*)
5419 # On DJGPP, this test can blow up pretty badly due to problems in libc
5420 # (any single argument exceeding 2000 bytes causes a buffer overrun
5421 # during glob expansion). Even if it were fixed, the result of this
5422 # check would be larger than it should be.
5423 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5426 gnu*)
5427 # Under GNU Hurd, this test is not required because there is
5428 # no limit to the length of command line arguments.
5429 # Libtool will interpret -1 as no limit whatsoever
5430 lt_cv_sys_max_cmd_len=-1;
5433 cygwin* | mingw* | cegcc*)
5434 # On Win9x/ME, this test blows up -- it succeeds, but takes
5435 # about 5 minutes as the teststring grows exponentially.
5436 # Worse, since 9x/ME are not pre-emptively multitasking,
5437 # you end up with a "frozen" computer, even though with patience
5438 # the test eventually succeeds (with a max line length of 256k).
5439 # Instead, let's just punt: use the minimum linelength reported by
5440 # all of the supported platforms: 8192 (on NT/2K/XP).
5441 lt_cv_sys_max_cmd_len=8192;
5444 mint*)
5445 # On MiNT this can take a long time and run out of memory.
5446 lt_cv_sys_max_cmd_len=8192;
5449 amigaos*)
5450 # On AmigaOS with pdksh, this test takes hours, literally.
5451 # So we just punt and use a minimum line length of 8192.
5452 lt_cv_sys_max_cmd_len=8192;
5455 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5456 # This has been around since 386BSD, at least. Likely further.
5457 if test -x /sbin/sysctl; then
5458 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5459 elif test -x /usr/sbin/sysctl; then
5460 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5461 else
5462 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5464 # And add a safety zone
5465 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5466 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5469 interix*)
5470 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5471 lt_cv_sys_max_cmd_len=196608
5474 os2*)
5475 # The test takes a long time on OS/2.
5476 lt_cv_sys_max_cmd_len=8192
5479 osf*)
5480 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5481 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5482 # nice to cause kernel panics so lets avoid the loop below.
5483 # First set a reasonable default.
5484 lt_cv_sys_max_cmd_len=16384
5486 if test -x /sbin/sysconfig; then
5487 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5488 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5489 esac
5492 sco3.2v5*)
5493 lt_cv_sys_max_cmd_len=102400
5495 sysv5* | sco5v6* | sysv4.2uw2*)
5496 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5497 if test -n "$kargmax"; then
5498 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5499 else
5500 lt_cv_sys_max_cmd_len=32768
5504 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5505 if test -n "$lt_cv_sys_max_cmd_len"; then
5506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5507 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5508 else
5509 # Make teststring a little bigger before we do anything with it.
5510 # a 1K string should be a reasonable start.
5511 for i in 1 2 3 4 5 6 7 8 ; do
5512 teststring=$teststring$teststring
5513 done
5514 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5515 # If test is not a shell built-in, we'll probably end up computing a
5516 # maximum length that is only half of the actual maximum length, but
5517 # we can't tell.
5518 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5519 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5520 test $i != 17 # 1/2 MB should be enough
5522 i=`expr $i + 1`
5523 teststring=$teststring$teststring
5524 done
5525 # Only check the string length outside the loop.
5526 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5527 teststring=
5528 # Add a significant safety factor because C++ compilers can tack on
5529 # massive amounts of additional arguments before passing them to the
5530 # linker. It appears as though 1/2 is a usable value.
5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5534 esac
5538 if test -n $lt_cv_sys_max_cmd_len ; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5540 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5543 $as_echo "none" >&6; }
5545 max_cmd_len=$lt_cv_sys_max_cmd_len
5552 : ${CP="cp -f"}
5553 : ${MV="mv -f"}
5554 : ${RM="rm -f"}
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5557 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5558 # Try some XSI features
5559 xsi_shell=no
5560 ( _lt_dummy="a/b/c"
5561 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5562 = c,a/b,b/c, \
5563 && eval 'test $(( 1 + 1 )) -eq 2 \
5564 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5565 && xsi_shell=yes
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5567 $as_echo "$xsi_shell" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5571 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5572 lt_shell_append=no
5573 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5574 >/dev/null 2>&1 \
5575 && lt_shell_append=yes
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5577 $as_echo "$lt_shell_append" >&6; }
5580 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5581 lt_unset=unset
5582 else
5583 lt_unset=false
5590 # test EBCDIC or ASCII
5591 case `echo X|tr X '\101'` in
5592 A) # ASCII based system
5593 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5594 lt_SP2NL='tr \040 \012'
5595 lt_NL2SP='tr \015\012 \040\040'
5597 *) # EBCDIC based system
5598 lt_SP2NL='tr \100 \n'
5599 lt_NL2SP='tr \r\n \100\100'
5601 esac
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5612 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5613 if ${lt_cv_to_host_file_cmd+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 case $host in
5617 *-*-mingw* )
5618 case $build in
5619 *-*-mingw* ) # actually msys
5620 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5622 *-*-cygwin* )
5623 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5625 * ) # otherwise, assume *nix
5626 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5628 esac
5630 *-*-cygwin* )
5631 case $build in
5632 *-*-mingw* ) # actually msys
5633 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5635 *-*-cygwin* )
5636 lt_cv_to_host_file_cmd=func_convert_file_noop
5638 * ) # otherwise, assume *nix
5639 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5641 esac
5643 * ) # unhandled hosts (and "normal" native builds)
5644 lt_cv_to_host_file_cmd=func_convert_file_noop
5646 esac
5650 to_host_file_cmd=$lt_cv_to_host_file_cmd
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5652 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5659 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5660 if ${lt_cv_to_tool_file_cmd+:} false; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 #assume ordinary cross tools, or native build.
5664 lt_cv_to_tool_file_cmd=func_convert_file_noop
5665 case $host in
5666 *-*-mingw* )
5667 case $build in
5668 *-*-mingw* ) # actually msys
5669 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5671 esac
5673 esac
5677 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5679 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5686 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5687 if ${lt_cv_ld_reload_flag+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689 else
5690 lt_cv_ld_reload_flag='-r'
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5693 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5694 reload_flag=$lt_cv_ld_reload_flag
5695 case $reload_flag in
5696 "" | " "*) ;;
5697 *) reload_flag=" $reload_flag" ;;
5698 esac
5699 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5700 case $host_os in
5701 cygwin* | mingw* | pw32* | cegcc*)
5702 if test "$GCC" != yes; then
5703 reload_cmds=false
5706 darwin*)
5707 if test "$GCC" = yes; then
5708 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5709 else
5710 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5713 esac
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_OBJDUMP+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$OBJDUMP"; then
5732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5747 IFS=$as_save_IFS
5751 OBJDUMP=$ac_cv_prog_OBJDUMP
5752 if test -n "$OBJDUMP"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5754 $as_echo "$OBJDUMP" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5762 if test -z "$ac_cv_prog_OBJDUMP"; then
5763 ac_ct_OBJDUMP=$OBJDUMP
5764 # Extract the first word of "objdump", so it can be a program name with args.
5765 set dummy objdump; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770 else
5771 if test -n "$ac_ct_OBJDUMP"; then
5772 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5785 done
5786 done
5787 IFS=$as_save_IFS
5791 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5792 if test -n "$ac_ct_OBJDUMP"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5794 $as_echo "$ac_ct_OBJDUMP" >&6; }
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797 $as_echo "no" >&6; }
5800 if test "x$ac_ct_OBJDUMP" = x; then
5801 OBJDUMP="false"
5802 else
5803 case $cross_compiling:$ac_tool_warned in
5804 yes:)
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807 ac_tool_warned=yes ;;
5808 esac
5809 OBJDUMP=$ac_ct_OBJDUMP
5811 else
5812 OBJDUMP="$ac_cv_prog_OBJDUMP"
5815 test -z "$OBJDUMP" && OBJDUMP=objdump
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5826 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5827 if ${lt_cv_deplibs_check_method+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 lt_cv_file_magic_cmd='$MAGIC_CMD'
5831 lt_cv_file_magic_test_file=
5832 lt_cv_deplibs_check_method='unknown'
5833 # Need to set the preceding variable on all platforms that support
5834 # interlibrary dependencies.
5835 # 'none' -- dependencies not supported.
5836 # `unknown' -- same as none, but documents that we really don't know.
5837 # 'pass_all' -- all dependencies passed with no checks.
5838 # 'test_compile' -- check by making test program.
5839 # 'file_magic [[regex]]' -- check by looking for files in library path
5840 # which responds to the $file_magic_cmd with a given extended regex.
5841 # If you have `file' or equivalent on your system and you're not sure
5842 # whether `pass_all' will *always* work, you probably want this one.
5844 case $host_os in
5845 aix[4-9]*)
5846 lt_cv_deplibs_check_method=pass_all
5849 beos*)
5850 lt_cv_deplibs_check_method=pass_all
5853 bsdi[45]*)
5854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5855 lt_cv_file_magic_cmd='/usr/bin/file -L'
5856 lt_cv_file_magic_test_file=/shlib/libc.so
5859 cygwin*)
5860 # func_win32_libid is a shell function defined in ltmain.sh
5861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5862 lt_cv_file_magic_cmd='func_win32_libid'
5865 mingw* | pw32*)
5866 # Base MSYS/MinGW do not provide the 'file' command needed by
5867 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5868 # unless we find 'file', for example because we are cross-compiling.
5869 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5870 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5871 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5872 lt_cv_file_magic_cmd='func_win32_libid'
5873 else
5874 # Keep this pattern in sync with the one in func_win32_libid.
5875 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5876 lt_cv_file_magic_cmd='$OBJDUMP -f'
5880 cegcc*)
5881 # use the weaker test based on 'objdump'. See mingw*.
5882 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5883 lt_cv_file_magic_cmd='$OBJDUMP -f'
5886 darwin* | rhapsody*)
5887 lt_cv_deplibs_check_method=pass_all
5890 freebsd* | dragonfly*)
5891 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5892 case $host_cpu in
5893 i*86 )
5894 # Not sure whether the presence of OpenBSD here was a mistake.
5895 # Let's accept both of them until this is cleared up.
5896 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5897 lt_cv_file_magic_cmd=/usr/bin/file
5898 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5900 esac
5901 else
5902 lt_cv_deplibs_check_method=pass_all
5906 gnu*)
5907 lt_cv_deplibs_check_method=pass_all
5910 haiku*)
5911 lt_cv_deplibs_check_method=pass_all
5914 hpux10.20* | hpux11*)
5915 lt_cv_file_magic_cmd=/usr/bin/file
5916 case $host_cpu in
5917 ia64*)
5918 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5919 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5921 hppa*64*)
5922 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]'
5923 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5926 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5927 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5929 esac
5932 interix[3-9]*)
5933 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5934 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5937 irix5* | irix6* | nonstopux*)
5938 case $LD in
5939 *-32|*"-32 ") libmagic=32-bit;;
5940 *-n32|*"-n32 ") libmagic=N32;;
5941 *-64|*"-64 ") libmagic=64-bit;;
5942 *) libmagic=never-match;;
5943 esac
5944 lt_cv_deplibs_check_method=pass_all
5947 # This must be glibc/ELF.
5948 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5949 lt_cv_deplibs_check_method=pass_all
5952 netbsd*)
5953 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5955 else
5956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5960 newos6*)
5961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5962 lt_cv_file_magic_cmd=/usr/bin/file
5963 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5966 *nto* | *qnx*)
5967 lt_cv_deplibs_check_method=pass_all
5970 openbsd*)
5971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5972 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5973 else
5974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5978 osf3* | osf4* | osf5*)
5979 lt_cv_deplibs_check_method=pass_all
5982 rdos*)
5983 lt_cv_deplibs_check_method=pass_all
5986 solaris*)
5987 lt_cv_deplibs_check_method=pass_all
5990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5991 lt_cv_deplibs_check_method=pass_all
5994 sysv4 | sysv4.3*)
5995 case $host_vendor in
5996 motorola)
5997 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]'
5998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6000 ncr)
6001 lt_cv_deplibs_check_method=pass_all
6003 sequent)
6004 lt_cv_file_magic_cmd='/bin/file'
6005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6007 sni)
6008 lt_cv_file_magic_cmd='/bin/file'
6009 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6010 lt_cv_file_magic_test_file=/lib/libc.so
6012 siemens)
6013 lt_cv_deplibs_check_method=pass_all
6016 lt_cv_deplibs_check_method=pass_all
6018 esac
6021 tpf*)
6022 lt_cv_deplibs_check_method=pass_all
6024 esac
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6028 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6030 file_magic_glob=
6031 want_nocaseglob=no
6032 if test "$build" = "$host"; then
6033 case $host_os in
6034 mingw* | pw32*)
6035 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6036 want_nocaseglob=yes
6037 else
6038 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6041 esac
6044 file_magic_cmd=$lt_cv_file_magic_cmd
6045 deplibs_check_method=$lt_cv_deplibs_check_method
6046 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6069 if test -n "$ac_tool_prefix"; then
6070 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6071 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if ${ac_cv_prog_DLLTOOL+:} false; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 if test -n "$DLLTOOL"; then
6078 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6079 else
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 for as_dir in $PATH
6083 IFS=$as_save_IFS
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 break 2
6091 done
6092 done
6093 IFS=$as_save_IFS
6097 DLLTOOL=$ac_cv_prog_DLLTOOL
6098 if test -n "$DLLTOOL"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6100 $as_echo "$DLLTOOL" >&6; }
6101 else
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6108 if test -z "$ac_cv_prog_DLLTOOL"; then
6109 ac_ct_DLLTOOL=$DLLTOOL
6110 # Extract the first word of "dlltool", so it can be a program name with args.
6111 set dummy dlltool; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6113 $as_echo_n "checking for $ac_word... " >&6; }
6114 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 if test -n "$ac_ct_DLLTOOL"; then
6118 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6129 break 2
6131 done
6132 done
6133 IFS=$as_save_IFS
6137 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6138 if test -n "$ac_ct_DLLTOOL"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6140 $as_echo "$ac_ct_DLLTOOL" >&6; }
6141 else
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6143 $as_echo "no" >&6; }
6146 if test "x$ac_ct_DLLTOOL" = x; then
6147 DLLTOOL="false"
6148 else
6149 case $cross_compiling:$ac_tool_warned in
6150 yes:)
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6153 ac_tool_warned=yes ;;
6154 esac
6155 DLLTOOL=$ac_ct_DLLTOOL
6157 else
6158 DLLTOOL="$ac_cv_prog_DLLTOOL"
6161 test -z "$DLLTOOL" && DLLTOOL=dlltool
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6173 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6174 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176 else
6177 lt_cv_sharedlib_from_linklib_cmd='unknown'
6179 case $host_os in
6180 cygwin* | mingw* | pw32* | cegcc*)
6181 # two different shell functions defined in ltmain.sh
6182 # decide which to use based on capabilities of $DLLTOOL
6183 case `$DLLTOOL --help 2>&1` in
6184 *--identify-strict*)
6185 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6188 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6190 esac
6193 # fallback: assume linklib IS sharedlib
6194 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6196 esac
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6200 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6201 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6202 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6210 if test -n "$ac_tool_prefix"; then
6211 for ac_prog in ar
6213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_AR+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$AR"; then
6221 ac_cv_prog_AR="$AR" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6234 done
6235 done
6236 IFS=$as_save_IFS
6240 AR=$ac_cv_prog_AR
6241 if test -n "$AR"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6243 $as_echo "$AR" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6250 test -n "$AR" && break
6251 done
6253 if test -z "$AR"; then
6254 ac_ct_AR=$AR
6255 for ac_prog in ar
6257 # Extract the first word of "$ac_prog", so it can be a program name with args.
6258 set dummy $ac_prog; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6262 $as_echo_n "(cached) " >&6
6263 else
6264 if test -n "$ac_ct_AR"; then
6265 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_ac_ct_AR="$ac_prog"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276 break 2
6278 done
6279 done
6280 IFS=$as_save_IFS
6284 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6285 if test -n "$ac_ct_AR"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6287 $as_echo "$ac_ct_AR" >&6; }
6288 else
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6294 test -n "$ac_ct_AR" && break
6295 done
6297 if test "x$ac_ct_AR" = x; then
6298 AR="false"
6299 else
6300 case $cross_compiling:$ac_tool_warned in
6301 yes:)
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned=yes ;;
6305 esac
6306 AR=$ac_ct_AR
6310 : ${AR=ar}
6311 : ${AR_FLAGS=cru}
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6324 $as_echo_n "checking for archiver @FILE support... " >&6; }
6325 if ${lt_cv_ar_at_file+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 lt_cv_ar_at_file=no
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6333 main ()
6337 return 0;
6339 _ACEOF
6340 if ac_fn_c_try_compile "$LINENO"; then :
6341 echo conftest.$ac_objext > conftest.lst
6342 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6344 (eval $lt_ar_try) 2>&5
6345 ac_status=$?
6346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6347 test $ac_status = 0; }
6348 if test "$ac_status" -eq 0; then
6349 # Ensure the archiver fails upon bogus file names.
6350 rm -f conftest.$ac_objext libconftest.a
6351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6352 (eval $lt_ar_try) 2>&5
6353 ac_status=$?
6354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6355 test $ac_status = 0; }
6356 if test "$ac_status" -ne 0; then
6357 lt_cv_ar_at_file=@
6360 rm -f conftest.* libconftest.a
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6367 $as_echo "$lt_cv_ar_at_file" >&6; }
6369 if test "x$lt_cv_ar_at_file" = xno; then
6370 archiver_list_spec=
6371 else
6372 archiver_list_spec=$lt_cv_ar_at_file
6381 if test -n "$ac_tool_prefix"; then
6382 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6383 set dummy ${ac_tool_prefix}strip; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_prog_STRIP+:} false; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389 if test -n "$STRIP"; then
6390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6403 done
6404 done
6405 IFS=$as_save_IFS
6409 STRIP=$ac_cv_prog_STRIP
6410 if test -n "$STRIP"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6412 $as_echo "$STRIP" >&6; }
6413 else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6420 if test -z "$ac_cv_prog_STRIP"; then
6421 ac_ct_STRIP=$STRIP
6422 # Extract the first word of "strip", so it can be a program name with args.
6423 set dummy strip; ac_word=$2
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 $as_echo_n "checking for $ac_word... " >&6; }
6426 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 if test -n "$ac_ct_STRIP"; then
6430 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6431 else
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6439 ac_cv_prog_ac_ct_STRIP="strip"
6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 break 2
6443 done
6444 done
6445 IFS=$as_save_IFS
6449 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6450 if test -n "$ac_ct_STRIP"; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6452 $as_echo "$ac_ct_STRIP" >&6; }
6453 else
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6458 if test "x$ac_ct_STRIP" = x; then
6459 STRIP=":"
6460 else
6461 case $cross_compiling:$ac_tool_warned in
6462 yes:)
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6465 ac_tool_warned=yes ;;
6466 esac
6467 STRIP=$ac_ct_STRIP
6469 else
6470 STRIP="$ac_cv_prog_STRIP"
6473 test -z "$STRIP" && STRIP=:
6480 if test -n "$ac_tool_prefix"; then
6481 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_prog_RANLIB+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$RANLIB"; then
6489 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6504 IFS=$as_save_IFS
6508 RANLIB=$ac_cv_prog_RANLIB
6509 if test -n "$RANLIB"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6511 $as_echo "$RANLIB" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6519 if test -z "$ac_cv_prog_RANLIB"; then
6520 ac_ct_RANLIB=$RANLIB
6521 # Extract the first word of "ranlib", so it can be a program name with args.
6522 set dummy ranlib; ac_word=$2
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6526 $as_echo_n "(cached) " >&6
6527 else
6528 if test -n "$ac_ct_RANLIB"; then
6529 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6538 ac_cv_prog_ac_ct_RANLIB="ranlib"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6542 done
6543 done
6544 IFS=$as_save_IFS
6548 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6549 if test -n "$ac_ct_RANLIB"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6551 $as_echo "$ac_ct_RANLIB" >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6557 if test "x$ac_ct_RANLIB" = x; then
6558 RANLIB=":"
6559 else
6560 case $cross_compiling:$ac_tool_warned in
6561 yes:)
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566 RANLIB=$ac_ct_RANLIB
6568 else
6569 RANLIB="$ac_cv_prog_RANLIB"
6572 test -z "$RANLIB" && RANLIB=:
6579 # Determine commands to create old-style static archives.
6580 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6581 old_postinstall_cmds='chmod 644 $oldlib'
6582 old_postuninstall_cmds=
6584 if test -n "$RANLIB"; then
6585 case $host_os in
6586 openbsd*)
6587 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6590 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6592 esac
6593 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6596 case $host_os in
6597 darwin*)
6598 lock_old_archive_extraction=yes ;;
6600 lock_old_archive_extraction=no ;;
6601 esac
6641 # If no C compiler was specified, use CC.
6642 LTCC=${LTCC-"$CC"}
6644 # If no C compiler flags were specified, use CFLAGS.
6645 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6647 # Allow CC to be a program name with arguments.
6648 compiler=$CC
6651 # Check for command to grab the raw symbol name followed by C symbol from nm.
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6653 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6654 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6658 # These are sane defaults that work on at least a few old systems.
6659 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6661 # Character class describing NM global symbol codes.
6662 symcode='[BCDEGRST]'
6664 # Regexp to match symbols that can be accessed directly from C.
6665 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6667 # Define system-specific variables.
6668 case $host_os in
6669 aix*)
6670 symcode='[BCDT]'
6672 cygwin* | mingw* | pw32* | cegcc*)
6673 symcode='[ABCDGISTW]'
6675 hpux*)
6676 if test "$host_cpu" = ia64; then
6677 symcode='[ABCDEGRST]'
6680 irix* | nonstopux*)
6681 symcode='[BCDEGRST]'
6683 osf*)
6684 symcode='[BCDEGQRST]'
6686 solaris*)
6687 symcode='[BDRT]'
6689 sco3.2v5*)
6690 symcode='[DT]'
6692 sysv4.2uw2*)
6693 symcode='[DT]'
6695 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6696 symcode='[ABDT]'
6698 sysv4)
6699 symcode='[DFNSTU]'
6701 esac
6703 # If we're using GNU nm, then use its standard symbol codes.
6704 case `$NM -V 2>&1` in
6705 *GNU* | *'with BFD'*)
6706 symcode='[ABCDGIRSTW]' ;;
6707 esac
6709 # Transform an extracted symbol line into a proper C declaration.
6710 # Some systems (esp. on ia64) link data and code symbols differently,
6711 # so use this general approach.
6712 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6714 # Transform an extracted symbol line into symbol name and symbol address
6715 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6716 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'"
6718 # Handle CRLF in mingw tool chain
6719 opt_cr=
6720 case $build_os in
6721 mingw*)
6722 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6724 esac
6726 # Try without a prefix underscore, then with it.
6727 for ac_symprfx in "" "_"; do
6729 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6730 symxfrm="\\1 $ac_symprfx\\2 \\2"
6732 # Write the raw and C identifiers.
6733 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6734 # Fake it for dumpbin and say T for any non-static function
6735 # and D for any global variable.
6736 # Also find C++ and __fastcall symbols from MSVC++,
6737 # which start with @ or ?.
6738 lt_cv_sys_global_symbol_pipe="$AWK '"\
6739 " {last_section=section; section=\$ 3};"\
6740 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6741 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6742 " \$ 0!~/External *\|/{next};"\
6743 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6744 " {if(hide[section]) next};"\
6745 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6746 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6747 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6748 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6749 " ' prfx=^$ac_symprfx"
6750 else
6751 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6753 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6755 # Check to see that the pipe works correctly.
6756 pipe_works=no
6758 rm -f conftest*
6759 cat > conftest.$ac_ext <<_LT_EOF
6760 #ifdef __cplusplus
6761 extern "C" {
6762 #endif
6763 char nm_test_var;
6764 void nm_test_func(void);
6765 void nm_test_func(void){}
6766 #ifdef __cplusplus
6768 #endif
6769 int main(){nm_test_var='a';nm_test_func();return(0);}
6770 _LT_EOF
6772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773 (eval $ac_compile) 2>&5
6774 ac_status=$?
6775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776 test $ac_status = 0; }; then
6777 # Now try to grab the symbols.
6778 nlist=conftest.nm
6779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6780 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6781 ac_status=$?
6782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6783 test $ac_status = 0; } && test -s "$nlist"; then
6784 # Try sorting and uniquifying the output.
6785 if sort "$nlist" | uniq > "$nlist"T; then
6786 mv -f "$nlist"T "$nlist"
6787 else
6788 rm -f "$nlist"T
6791 # Make sure that we snagged all the symbols we need.
6792 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6793 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6794 cat <<_LT_EOF > conftest.$ac_ext
6795 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6796 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6797 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6798 relocations are performed -- see ld's documentation on pseudo-relocs. */
6799 # define LT_DLSYM_CONST
6800 #elif defined(__osf__)
6801 /* This system does not cope well with relocations in const data. */
6802 # define LT_DLSYM_CONST
6803 #else
6804 # define LT_DLSYM_CONST const
6805 #endif
6807 #ifdef __cplusplus
6808 extern "C" {
6809 #endif
6811 _LT_EOF
6812 # Now generate the symbol file.
6813 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6815 cat <<_LT_EOF >> conftest.$ac_ext
6817 /* The mapping between symbol names and symbols. */
6818 LT_DLSYM_CONST struct {
6819 const char *name;
6820 void *address;
6822 lt__PROGRAM__LTX_preloaded_symbols[] =
6824 { "@PROGRAM@", (void *) 0 },
6825 _LT_EOF
6826 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6827 cat <<\_LT_EOF >> conftest.$ac_ext
6828 {0, (void *) 0}
6831 /* This works around a problem in FreeBSD linker */
6832 #ifdef FREEBSD_WORKAROUND
6833 static const void *lt_preloaded_setup() {
6834 return lt__PROGRAM__LTX_preloaded_symbols;
6836 #endif
6838 #ifdef __cplusplus
6840 #endif
6841 _LT_EOF
6842 # Now try linking the two files.
6843 mv conftest.$ac_objext conftstm.$ac_objext
6844 lt_globsym_save_LIBS=$LIBS
6845 lt_globsym_save_CFLAGS=$CFLAGS
6846 LIBS="conftstm.$ac_objext"
6847 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6849 (eval $ac_link) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6853 pipe_works=yes
6855 LIBS=$lt_globsym_save_LIBS
6856 CFLAGS=$lt_globsym_save_CFLAGS
6857 else
6858 echo "cannot find nm_test_func in $nlist" >&5
6860 else
6861 echo "cannot find nm_test_var in $nlist" >&5
6863 else
6864 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6866 else
6867 echo "$progname: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6870 rm -rf conftest* conftst*
6872 # Do not use the global_symbol_pipe unless it works.
6873 if test "$pipe_works" = yes; then
6874 break
6875 else
6876 lt_cv_sys_global_symbol_pipe=
6878 done
6882 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6883 lt_cv_sys_global_symbol_to_cdecl=
6885 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6887 $as_echo "failed" >&6; }
6888 else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6890 $as_echo "ok" >&6; }
6893 # Response file support.
6894 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6895 nm_file_list_spec='@'
6896 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6897 nm_file_list_spec='@'
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6927 $as_echo_n "checking for sysroot... " >&6; }
6929 # Check whether --with-sysroot was given.
6930 if test "${with_sysroot+set}" = set; then :
6931 withval=$with_sysroot;
6932 else
6933 with_sysroot=no
6937 lt_sysroot=
6938 case ${with_sysroot} in #(
6939 yes)
6940 if test "$GCC" = yes; then
6941 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6943 ;; #(
6945 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6946 ;; #(
6947 no|'')
6948 ;; #(
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6951 $as_echo "${with_sysroot}" >&6; }
6952 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6954 esac
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6957 $as_echo "${lt_sysroot:-no}" >&6; }
6963 # Check whether --enable-libtool-lock was given.
6964 if test "${enable_libtool_lock+set}" = set; then :
6965 enableval=$enable_libtool_lock;
6968 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6970 # Some flags need to be propagated to the compiler or linker for good
6971 # libtool support.
6972 case $host in
6973 ia64-*-hpux*)
6974 # Find out which ABI we are using.
6975 echo 'int i;' > conftest.$ac_ext
6976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6977 (eval $ac_compile) 2>&5
6978 ac_status=$?
6979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6980 test $ac_status = 0; }; then
6981 case `/usr/bin/file conftest.$ac_objext` in
6982 *ELF-32*)
6983 HPUX_IA64_MODE="32"
6985 *ELF-64*)
6986 HPUX_IA64_MODE="64"
6988 esac
6990 rm -rf conftest*
6992 *-*-irix6*)
6993 # Find out which ABI we are using.
6994 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6996 (eval $ac_compile) 2>&5
6997 ac_status=$?
6998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6999 test $ac_status = 0; }; then
7000 if test "$lt_cv_prog_gnu_ld" = yes; then
7001 case `/usr/bin/file conftest.$ac_objext` in
7002 *32-bit*)
7003 LD="${LD-ld} -melf32bsmip"
7005 *N32*)
7006 LD="${LD-ld} -melf32bmipn32"
7008 *64-bit*)
7009 LD="${LD-ld} -melf64bmip"
7011 esac
7012 else
7013 case `/usr/bin/file conftest.$ac_objext` in
7014 *32-bit*)
7015 LD="${LD-ld} -32"
7017 *N32*)
7018 LD="${LD-ld} -n32"
7020 *64-bit*)
7021 LD="${LD-ld} -64"
7023 esac
7026 rm -rf conftest*
7029 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7030 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7031 # Find out which ABI we are using.
7032 echo 'int i;' > conftest.$ac_ext
7033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7034 (eval $ac_compile) 2>&5
7035 ac_status=$?
7036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037 test $ac_status = 0; }; then
7038 case `/usr/bin/file conftest.o` in
7039 *32-bit*)
7040 case $host in
7041 x86_64-*kfreebsd*-gnu)
7042 LD="${LD-ld} -m elf_i386_fbsd"
7044 x86_64-*linux*)
7045 LD="${LD-ld} -m elf_i386"
7047 ppc64-*linux*|powerpc64-*linux*)
7048 LD="${LD-ld} -m elf32ppclinux"
7050 s390x-*linux*)
7051 LD="${LD-ld} -m elf_s390"
7053 sparc64-*linux*)
7054 LD="${LD-ld} -m elf32_sparc"
7056 esac
7058 *64-bit*)
7059 case $host in
7060 x86_64-*kfreebsd*-gnu)
7061 LD="${LD-ld} -m elf_x86_64_fbsd"
7063 x86_64-*linux*)
7064 LD="${LD-ld} -m elf_x86_64"
7066 ppc*-*linux*|powerpc*-*linux*)
7067 LD="${LD-ld} -m elf64ppc"
7069 s390*-*linux*|s390*-*tpf*)
7070 LD="${LD-ld} -m elf64_s390"
7072 sparc*-*linux*)
7073 LD="${LD-ld} -m elf64_sparc"
7075 esac
7077 esac
7079 rm -rf conftest*
7082 *-*-sco3.2v5*)
7083 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7084 SAVE_CFLAGS="$CFLAGS"
7085 CFLAGS="$CFLAGS -belf"
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7087 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7088 if ${lt_cv_cc_needs_belf+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 ac_ext=c
7092 ac_cpp='$CPP $CPPFLAGS'
7093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7101 main ()
7105 return 0;
7107 _ACEOF
7108 if ac_fn_c_try_link "$LINENO"; then :
7109 lt_cv_cc_needs_belf=yes
7110 else
7111 lt_cv_cc_needs_belf=no
7113 rm -f core conftest.err conftest.$ac_objext \
7114 conftest$ac_exeext conftest.$ac_ext
7115 ac_ext=c
7116 ac_cpp='$CPP $CPPFLAGS'
7117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7123 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7124 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7126 CFLAGS="$SAVE_CFLAGS"
7129 *-*solaris*)
7130 # Find out which ABI we are using.
7131 echo 'int i;' > conftest.$ac_ext
7132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7133 (eval $ac_compile) 2>&5
7134 ac_status=$?
7135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7136 test $ac_status = 0; }; then
7137 case `/usr/bin/file conftest.o` in
7138 *64-bit*)
7139 case $lt_cv_prog_gnu_ld in
7140 yes*)
7141 case $host in
7142 i?86-*-solaris*)
7143 LD="${LD-ld} -m elf_x86_64"
7145 sparc*-*-solaris*)
7146 LD="${LD-ld} -m elf64_sparc"
7148 esac
7149 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7150 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7151 LD="${LD-ld}_sol2"
7155 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7156 LD="${LD-ld} -64"
7159 esac
7161 esac
7163 rm -rf conftest*
7165 esac
7167 need_locks="$enable_libtool_lock"
7169 if test -n "$ac_tool_prefix"; then
7170 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7171 set dummy ${ac_tool_prefix}mt; ac_word=$2
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7173 $as_echo_n "checking for $ac_word... " >&6; }
7174 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 if test -n "$MANIFEST_TOOL"; then
7178 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7179 else
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 for as_dir in $PATH
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7191 done
7192 done
7193 IFS=$as_save_IFS
7197 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7198 if test -n "$MANIFEST_TOOL"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7200 $as_echo "$MANIFEST_TOOL" >&6; }
7201 else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7208 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7209 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7210 # Extract the first word of "mt", so it can be a program name with args.
7211 set dummy mt; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 if test -n "$ac_ct_MANIFEST_TOOL"; then
7218 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7231 done
7232 done
7233 IFS=$as_save_IFS
7237 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7238 if test -n "$ac_ct_MANIFEST_TOOL"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7240 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7241 else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7246 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7247 MANIFEST_TOOL=":"
7248 else
7249 case $cross_compiling:$ac_tool_warned in
7250 yes:)
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253 ac_tool_warned=yes ;;
7254 esac
7255 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7257 else
7258 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7261 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7263 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7264 if ${lt_cv_path_mainfest_tool+:} false; then :
7265 $as_echo_n "(cached) " >&6
7266 else
7267 lt_cv_path_mainfest_tool=no
7268 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7269 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7270 cat conftest.err >&5
7271 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7272 lt_cv_path_mainfest_tool=yes
7274 rm -f conftest*
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7277 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7278 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7279 MANIFEST_TOOL=:
7287 case $host_os in
7288 rhapsody* | darwin*)
7289 if test -n "$ac_tool_prefix"; then
7290 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 if test -n "$DSYMUTIL"; then
7298 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 break 2
7311 done
7312 done
7313 IFS=$as_save_IFS
7317 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7318 if test -n "$DSYMUTIL"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7320 $as_echo "$DSYMUTIL" >&6; }
7321 else
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7328 if test -z "$ac_cv_prog_DSYMUTIL"; then
7329 ac_ct_DSYMUTIL=$DSYMUTIL
7330 # Extract the first word of "dsymutil", so it can be a program name with args.
7331 set dummy dsymutil; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 if test -n "$ac_ct_DSYMUTIL"; then
7338 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7343 IFS=$as_save_IFS
7344 test -z "$as_dir" && as_dir=.
7345 for ac_exec_ext in '' $ac_executable_extensions; do
7346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 break 2
7351 done
7352 done
7353 IFS=$as_save_IFS
7357 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7358 if test -n "$ac_ct_DSYMUTIL"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7360 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7361 else
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7366 if test "x$ac_ct_DSYMUTIL" = x; then
7367 DSYMUTIL=":"
7368 else
7369 case $cross_compiling:$ac_tool_warned in
7370 yes:)
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373 ac_tool_warned=yes ;;
7374 esac
7375 DSYMUTIL=$ac_ct_DSYMUTIL
7377 else
7378 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7381 if test -n "$ac_tool_prefix"; then
7382 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_NMEDIT+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 if test -n "$NMEDIT"; then
7390 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7395 IFS=$as_save_IFS
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 break 2
7403 done
7404 done
7405 IFS=$as_save_IFS
7409 NMEDIT=$ac_cv_prog_NMEDIT
7410 if test -n "$NMEDIT"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7412 $as_echo "$NMEDIT" >&6; }
7413 else
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7420 if test -z "$ac_cv_prog_NMEDIT"; then
7421 ac_ct_NMEDIT=$NMEDIT
7422 # Extract the first word of "nmedit", so it can be a program name with args.
7423 set dummy nmedit; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 if test -n "$ac_ct_NMEDIT"; then
7430 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441 break 2
7443 done
7444 done
7445 IFS=$as_save_IFS
7449 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7450 if test -n "$ac_ct_NMEDIT"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7452 $as_echo "$ac_ct_NMEDIT" >&6; }
7453 else
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7458 if test "x$ac_ct_NMEDIT" = x; then
7459 NMEDIT=":"
7460 else
7461 case $cross_compiling:$ac_tool_warned in
7462 yes:)
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7465 ac_tool_warned=yes ;;
7466 esac
7467 NMEDIT=$ac_ct_NMEDIT
7469 else
7470 NMEDIT="$ac_cv_prog_NMEDIT"
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_LIPO+:} false; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 if test -n "$LIPO"; then
7482 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 break 2
7495 done
7496 done
7497 IFS=$as_save_IFS
7501 LIPO=$ac_cv_prog_LIPO
7502 if test -n "$LIPO"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7504 $as_echo "$LIPO" >&6; }
7505 else
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7512 if test -z "$ac_cv_prog_LIPO"; then
7513 ac_ct_LIPO=$LIPO
7514 # Extract the first word of "lipo", so it can be a program name with args.
7515 set dummy lipo; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$ac_ct_LIPO"; then
7522 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_ac_ct_LIPO="lipo"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7535 done
7536 done
7537 IFS=$as_save_IFS
7541 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7542 if test -n "$ac_ct_LIPO"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7544 $as_echo "$ac_ct_LIPO" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7550 if test "x$ac_ct_LIPO" = x; then
7551 LIPO=":"
7552 else
7553 case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559 LIPO=$ac_ct_LIPO
7561 else
7562 LIPO="$ac_cv_prog_LIPO"
7565 if test -n "$ac_tool_prefix"; then
7566 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7567 set dummy ${ac_tool_prefix}otool; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_OTOOL+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 if test -n "$OTOOL"; then
7574 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7579 IFS=$as_save_IFS
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 break 2
7587 done
7588 done
7589 IFS=$as_save_IFS
7593 OTOOL=$ac_cv_prog_OTOOL
7594 if test -n "$OTOOL"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7596 $as_echo "$OTOOL" >&6; }
7597 else
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7604 if test -z "$ac_cv_prog_OTOOL"; then
7605 ac_ct_OTOOL=$OTOOL
7606 # Extract the first word of "otool", so it can be a program name with args.
7607 set dummy otool; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$ac_ct_OTOOL"; then
7614 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_ac_ct_OTOOL="otool"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7627 done
7628 done
7629 IFS=$as_save_IFS
7633 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7634 if test -n "$ac_ct_OTOOL"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7636 $as_echo "$ac_ct_OTOOL" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7642 if test "x$ac_ct_OTOOL" = x; then
7643 OTOOL=":"
7644 else
7645 case $cross_compiling:$ac_tool_warned in
7646 yes:)
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649 ac_tool_warned=yes ;;
7650 esac
7651 OTOOL=$ac_ct_OTOOL
7653 else
7654 OTOOL="$ac_cv_prog_OTOOL"
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_OTOOL64+:} false; then :
7663 $as_echo_n "(cached) " >&6
7664 else
7665 if test -n "$OTOOL64"; then
7666 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7671 IFS=$as_save_IFS
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 break 2
7679 done
7680 done
7681 IFS=$as_save_IFS
7685 OTOOL64=$ac_cv_prog_OTOOL64
7686 if test -n "$OTOOL64"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7688 $as_echo "$OTOOL64" >&6; }
7689 else
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 if test -z "$ac_cv_prog_OTOOL64"; then
7697 ac_ct_OTOOL64=$OTOOL64
7698 # Extract the first word of "otool64", so it can be a program name with args.
7699 set dummy otool64; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 if test -n "$ac_ct_OTOOL64"; then
7706 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715 ac_cv_prog_ac_ct_OTOOL64="otool64"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7719 done
7720 done
7721 IFS=$as_save_IFS
7725 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7726 if test -n "$ac_ct_OTOOL64"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7728 $as_echo "$ac_ct_OTOOL64" >&6; }
7729 else
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7734 if test "x$ac_ct_OTOOL64" = x; then
7735 OTOOL64=":"
7736 else
7737 case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743 OTOOL64=$ac_ct_OTOOL64
7745 else
7746 OTOOL64="$ac_cv_prog_OTOOL64"
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7776 $as_echo_n "checking for -single_module linker flag... " >&6; }
7777 if ${lt_cv_apple_cc_single_mod+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 lt_cv_apple_cc_single_mod=no
7781 if test -z "${LT_MULTI_MODULE}"; then
7782 # By default we will add the -single_module flag. You can override
7783 # by either setting the environment variable LT_MULTI_MODULE
7784 # non-empty at configure time, or by adding -multi_module to the
7785 # link flags.
7786 rm -rf libconftest.dylib*
7787 echo "int foo(void){return 1;}" > conftest.c
7788 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7789 -dynamiclib -Wl,-single_module conftest.c" >&5
7790 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7791 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7792 _lt_result=$?
7793 # If there is a non-empty error log, and "single_module"
7794 # appears in it, assume the flag caused a linker warning
7795 if test -s conftest.err && $GREP single_module conftest.err; then
7796 cat conftest.err >&5
7797 # Otherwise, if the output was created with a 0 exit code from
7798 # the compiler, it worked.
7799 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7800 lt_cv_apple_cc_single_mod=yes
7801 else
7802 cat conftest.err >&5
7804 rm -rf libconftest.dylib*
7805 rm -f conftest.*
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7809 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7812 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7813 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7814 $as_echo_n "(cached) " >&6
7815 else
7816 lt_cv_ld_exported_symbols_list=no
7817 save_LDFLAGS=$LDFLAGS
7818 echo "_main" > conftest.sym
7819 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7824 main ()
7828 return 0;
7830 _ACEOF
7831 if ac_fn_c_try_link "$LINENO"; then :
7832 lt_cv_ld_exported_symbols_list=yes
7833 else
7834 lt_cv_ld_exported_symbols_list=no
7836 rm -f core conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838 LDFLAGS="$save_LDFLAGS"
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7842 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7845 $as_echo_n "checking for -force_load linker flag... " >&6; }
7846 if ${lt_cv_ld_force_load+:} false; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 lt_cv_ld_force_load=no
7850 cat > conftest.c << _LT_EOF
7851 int forced_loaded() { return 2;}
7852 _LT_EOF
7853 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7854 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7855 echo "$AR cru libconftest.a conftest.o" >&5
7856 $AR cru libconftest.a conftest.o 2>&5
7857 echo "$RANLIB libconftest.a" >&5
7858 $RANLIB libconftest.a 2>&5
7859 cat > conftest.c << _LT_EOF
7860 int main() { return 0;}
7861 _LT_EOF
7862 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7863 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7864 _lt_result=$?
7865 if test -s conftest.err && $GREP force_load conftest.err; then
7866 cat conftest.err >&5
7867 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7868 lt_cv_ld_force_load=yes
7869 else
7870 cat conftest.err >&5
7872 rm -f conftest.err libconftest.a conftest conftest.c
7873 rm -rf conftest.dSYM
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7877 $as_echo "$lt_cv_ld_force_load" >&6; }
7878 case $host_os in
7879 rhapsody* | darwin1.[012])
7880 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7881 darwin1.*)
7882 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7883 darwin*) # darwin 5.x on
7884 # if running on 10.5 or later, the deployment target defaults
7885 # to the OS version, if on x86, and 10.4, the deployment
7886 # target defaults to 10.4. Don't you love it?
7887 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7888 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7889 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7890 10.[012]*)
7891 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7892 10.*)
7893 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7894 esac
7896 esac
7897 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7898 _lt_dar_single_mod='$single_module'
7900 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7901 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7902 else
7903 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7905 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7906 _lt_dsymutil='~$DSYMUTIL $lib || :'
7907 else
7908 _lt_dsymutil=
7911 esac
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7914 $as_echo_n "checking for ANSI C header files... " >&6; }
7915 if ${ac_cv_header_stdc+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 #include <stdlib.h>
7921 #include <stdarg.h>
7922 #include <string.h>
7923 #include <float.h>
7926 main ()
7930 return 0;
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 ac_cv_header_stdc=yes
7935 else
7936 ac_cv_header_stdc=no
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 if test $ac_cv_header_stdc = yes; then
7941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7944 #include <string.h>
7946 _ACEOF
7947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7948 $EGREP "memchr" >/dev/null 2>&1; then :
7950 else
7951 ac_cv_header_stdc=no
7953 rm -f conftest*
7957 if test $ac_cv_header_stdc = yes; then
7958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 #include <stdlib.h>
7963 _ACEOF
7964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7965 $EGREP "free" >/dev/null 2>&1; then :
7967 else
7968 ac_cv_header_stdc=no
7970 rm -f conftest*
7974 if test $ac_cv_header_stdc = yes; then
7975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7976 if test "$cross_compiling" = yes; then :
7978 else
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7981 #include <ctype.h>
7982 #include <stdlib.h>
7983 #if ((' ' & 0x0FF) == 0x020)
7984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7986 #else
7987 # define ISLOWER(c) \
7988 (('a' <= (c) && (c) <= 'i') \
7989 || ('j' <= (c) && (c) <= 'r') \
7990 || ('s' <= (c) && (c) <= 'z'))
7991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7992 #endif
7994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7996 main ()
7998 int i;
7999 for (i = 0; i < 256; i++)
8000 if (XOR (islower (i), ISLOWER (i))
8001 || toupper (i) != TOUPPER (i))
8002 return 2;
8003 return 0;
8005 _ACEOF
8006 if ac_fn_c_try_run "$LINENO"; then :
8008 else
8009 ac_cv_header_stdc=no
8011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8012 conftest.$ac_objext conftest.beam conftest.$ac_ext
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8018 $as_echo "$ac_cv_header_stdc" >&6; }
8019 if test $ac_cv_header_stdc = yes; then
8021 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8025 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8027 inttypes.h stdint.h unistd.h
8028 do :
8029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8030 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8032 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8033 cat >>confdefs.h <<_ACEOF
8034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8035 _ACEOF
8039 done
8042 for ac_header in dlfcn.h
8043 do :
8044 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8046 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8047 cat >>confdefs.h <<_ACEOF
8048 #define HAVE_DLFCN_H 1
8049 _ACEOF
8053 done
8059 # Set options
8063 enable_dlopen=no
8066 enable_win32_dll=no
8069 # Check whether --enable-shared was given.
8070 if test "${enable_shared+set}" = set; then :
8071 enableval=$enable_shared; p=${PACKAGE-default}
8072 case $enableval in
8073 yes) enable_shared=yes ;;
8074 no) enable_shared=no ;;
8076 enable_shared=no
8077 # Look at the argument we got. We use all the common list separators.
8078 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8079 for pkg in $enableval; do
8080 IFS="$lt_save_ifs"
8081 if test "X$pkg" = "X$p"; then
8082 enable_shared=yes
8084 done
8085 IFS="$lt_save_ifs"
8087 esac
8088 else
8089 enable_shared=yes
8100 # Check whether --enable-static was given.
8101 if test "${enable_static+set}" = set; then :
8102 enableval=$enable_static; p=${PACKAGE-default}
8103 case $enableval in
8104 yes) enable_static=yes ;;
8105 no) enable_static=no ;;
8107 enable_static=no
8108 # Look at the argument we got. We use all the common list separators.
8109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8110 for pkg in $enableval; do
8111 IFS="$lt_save_ifs"
8112 if test "X$pkg" = "X$p"; then
8113 enable_static=yes
8115 done
8116 IFS="$lt_save_ifs"
8118 esac
8119 else
8120 enable_static=yes
8132 # Check whether --with-pic was given.
8133 if test "${with_pic+set}" = set; then :
8134 withval=$with_pic; lt_p=${PACKAGE-default}
8135 case $withval in
8136 yes|no) pic_mode=$withval ;;
8138 pic_mode=default
8139 # Look at the argument we got. We use all the common list separators.
8140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8141 for lt_pkg in $withval; do
8142 IFS="$lt_save_ifs"
8143 if test "X$lt_pkg" = "X$lt_p"; then
8144 pic_mode=yes
8146 done
8147 IFS="$lt_save_ifs"
8149 esac
8150 else
8151 pic_mode=default
8155 test -z "$pic_mode" && pic_mode=default
8163 # Check whether --enable-fast-install was given.
8164 if test "${enable_fast_install+set}" = set; then :
8165 enableval=$enable_fast_install; p=${PACKAGE-default}
8166 case $enableval in
8167 yes) enable_fast_install=yes ;;
8168 no) enable_fast_install=no ;;
8170 enable_fast_install=no
8171 # Look at the argument we got. We use all the common list separators.
8172 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8173 for pkg in $enableval; do
8174 IFS="$lt_save_ifs"
8175 if test "X$pkg" = "X$p"; then
8176 enable_fast_install=yes
8178 done
8179 IFS="$lt_save_ifs"
8181 esac
8182 else
8183 enable_fast_install=yes
8196 # This can be used to rebuild libtool when needed
8197 LIBTOOL_DEPS="$ltmain"
8199 # Always use our own libtool.
8200 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8231 test -z "$LN_S" && LN_S="ln -s"
8246 if test -n "${ZSH_VERSION+set}" ; then
8247 setopt NO_GLOB_SUBST
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8251 $as_echo_n "checking for objdir... " >&6; }
8252 if ${lt_cv_objdir+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 rm -f .libs 2>/dev/null
8256 mkdir .libs 2>/dev/null
8257 if test -d .libs; then
8258 lt_cv_objdir=.libs
8259 else
8260 # MS-DOS does not allow filenames that begin with a dot.
8261 lt_cv_objdir=_libs
8263 rmdir .libs 2>/dev/null
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8266 $as_echo "$lt_cv_objdir" >&6; }
8267 objdir=$lt_cv_objdir
8273 cat >>confdefs.h <<_ACEOF
8274 #define LT_OBJDIR "$lt_cv_objdir/"
8275 _ACEOF
8280 case $host_os in
8281 aix3*)
8282 # AIX sometimes has problems with the GCC collect2 program. For some
8283 # reason, if we set the COLLECT_NAMES environment variable, the problems
8284 # vanish in a puff of smoke.
8285 if test "X${COLLECT_NAMES+set}" != Xset; then
8286 COLLECT_NAMES=
8287 export COLLECT_NAMES
8290 esac
8292 # Global variables:
8293 ofile=libtool
8294 can_build_shared=yes
8296 # All known linkers require a `.a' archive for static linking (except MSVC,
8297 # which needs '.lib').
8298 libext=a
8300 with_gnu_ld="$lt_cv_prog_gnu_ld"
8302 old_CC="$CC"
8303 old_CFLAGS="$CFLAGS"
8305 # Set sane defaults for various variables
8306 test -z "$CC" && CC=cc
8307 test -z "$LTCC" && LTCC=$CC
8308 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8309 test -z "$LD" && LD=ld
8310 test -z "$ac_objext" && ac_objext=o
8312 for cc_temp in $compiler""; do
8313 case $cc_temp in
8314 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8315 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8316 \-*) ;;
8317 *) break;;
8318 esac
8319 done
8320 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8323 # Only perform the check for file, if the check method requires it
8324 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8325 case $deplibs_check_method in
8326 file_magic*)
8327 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8329 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8330 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 case $MAGIC_CMD in
8334 [\\/*] | ?:[\\/]*)
8335 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8338 lt_save_MAGIC_CMD="$MAGIC_CMD"
8339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8340 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8341 for ac_dir in $ac_dummy; do
8342 IFS="$lt_save_ifs"
8343 test -z "$ac_dir" && ac_dir=.
8344 if test -f $ac_dir/${ac_tool_prefix}file; then
8345 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8346 if test -n "$file_magic_test_file"; then
8347 case $deplibs_check_method in
8348 "file_magic "*)
8349 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8351 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8352 $EGREP "$file_magic_regex" > /dev/null; then
8354 else
8355 cat <<_LT_EOF 1>&2
8357 *** Warning: the command libtool uses to detect shared libraries,
8358 *** $file_magic_cmd, produces output that libtool cannot recognize.
8359 *** The result is that libtool may fail to recognize shared libraries
8360 *** as such. This will affect the creation of libtool libraries that
8361 *** depend on shared libraries, but programs linked with such libtool
8362 *** libraries will work regardless of this problem. Nevertheless, you
8363 *** may want to report the problem to your system manager and/or to
8364 *** bug-libtool@gnu.org
8366 _LT_EOF
8367 fi ;;
8368 esac
8370 break
8372 done
8373 IFS="$lt_save_ifs"
8374 MAGIC_CMD="$lt_save_MAGIC_CMD"
8376 esac
8379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8380 if test -n "$MAGIC_CMD"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8382 $as_echo "$MAGIC_CMD" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8392 if test -z "$lt_cv_path_MAGIC_CMD"; then
8393 if test -n "$ac_tool_prefix"; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8395 $as_echo_n "checking for file... " >&6; }
8396 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 case $MAGIC_CMD in
8400 [\\/*] | ?:[\\/]*)
8401 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8404 lt_save_MAGIC_CMD="$MAGIC_CMD"
8405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8406 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8407 for ac_dir in $ac_dummy; do
8408 IFS="$lt_save_ifs"
8409 test -z "$ac_dir" && ac_dir=.
8410 if test -f $ac_dir/file; then
8411 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8412 if test -n "$file_magic_test_file"; then
8413 case $deplibs_check_method in
8414 "file_magic "*)
8415 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8416 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8417 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8418 $EGREP "$file_magic_regex" > /dev/null; then
8420 else
8421 cat <<_LT_EOF 1>&2
8423 *** Warning: the command libtool uses to detect shared libraries,
8424 *** $file_magic_cmd, produces output that libtool cannot recognize.
8425 *** The result is that libtool may fail to recognize shared libraries
8426 *** as such. This will affect the creation of libtool libraries that
8427 *** depend on shared libraries, but programs linked with such libtool
8428 *** libraries will work regardless of this problem. Nevertheless, you
8429 *** may want to report the problem to your system manager and/or to
8430 *** bug-libtool@gnu.org
8432 _LT_EOF
8433 fi ;;
8434 esac
8436 break
8438 done
8439 IFS="$lt_save_ifs"
8440 MAGIC_CMD="$lt_save_MAGIC_CMD"
8442 esac
8445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8446 if test -n "$MAGIC_CMD"; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8448 $as_echo "$MAGIC_CMD" >&6; }
8449 else
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8451 $as_echo "no" >&6; }
8455 else
8456 MAGIC_CMD=:
8462 esac
8464 # Use C for the default configuration in the libtool script
8466 lt_save_CC="$CC"
8467 ac_ext=c
8468 ac_cpp='$CPP $CPPFLAGS'
8469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8474 # Source file extension for C test sources.
8475 ac_ext=c
8477 # Object file extension for compiled C test sources.
8478 objext=o
8479 objext=$objext
8481 # Code to be used in simple compile tests
8482 lt_simple_compile_test_code="int some_variable = 0;"
8484 # Code to be used in simple link tests
8485 lt_simple_link_test_code='int main(){return(0);}'
8493 # If no C compiler was specified, use CC.
8494 LTCC=${LTCC-"$CC"}
8496 # If no C compiler flags were specified, use CFLAGS.
8497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8499 # Allow CC to be a program name with arguments.
8500 compiler=$CC
8502 # Save the default compiler, since it gets overwritten when the other
8503 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8504 compiler_DEFAULT=$CC
8506 # save warnings/boilerplate of simple test code
8507 ac_outfile=conftest.$ac_objext
8508 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8509 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8510 _lt_compiler_boilerplate=`cat conftest.err`
8511 $RM conftest*
8513 ac_outfile=conftest.$ac_objext
8514 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8515 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8516 _lt_linker_boilerplate=`cat conftest.err`
8517 $RM -r conftest*
8520 ## CAVEAT EMPTOR:
8521 ## There is no encapsulation within the following macros, do not change
8522 ## the running order or otherwise move them around unless you know exactly
8523 ## what you are doing...
8524 if test -n "$compiler"; then
8526 lt_prog_compiler_no_builtin_flag=
8528 if test "$GCC" = yes; then
8529 case $cc_basename in
8530 nvcc*)
8531 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8533 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8534 esac
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8537 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8538 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8539 $as_echo_n "(cached) " >&6
8540 else
8541 lt_cv_prog_compiler_rtti_exceptions=no
8542 ac_outfile=conftest.$ac_objext
8543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8544 lt_compiler_flag="-fno-rtti -fno-exceptions"
8545 # Insert the option either (1) after the last *FLAGS variable, or
8546 # (2) before a word containing "conftest.", or (3) at the end.
8547 # Note that $ac_compile itself does not contain backslashes and begins
8548 # with a dollar sign (not a hyphen), so the echo should work correctly.
8549 # The option is referenced via a variable to avoid confusing sed.
8550 lt_compile=`echo "$ac_compile" | $SED \
8551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8553 -e 's:$: $lt_compiler_flag:'`
8554 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8555 (eval "$lt_compile" 2>conftest.err)
8556 ac_status=$?
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 if (exit $ac_status) && test -s "$ac_outfile"; then
8560 # The compiler can only warn and ignore the option if not recognized
8561 # So say no if there are warnings other than the usual output.
8562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8563 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8564 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8565 lt_cv_prog_compiler_rtti_exceptions=yes
8568 $RM conftest*
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8572 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8575 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8576 else
8587 lt_prog_compiler_wl=
8588 lt_prog_compiler_pic=
8589 lt_prog_compiler_static=
8592 if test "$GCC" = yes; then
8593 lt_prog_compiler_wl='-Wl,'
8594 lt_prog_compiler_static='-static'
8596 case $host_os in
8597 aix*)
8598 # All AIX code is PIC.
8599 if test "$host_cpu" = ia64; then
8600 # AIX 5 now supports IA64 processor
8601 lt_prog_compiler_static='-Bstatic'
8605 amigaos*)
8606 case $host_cpu in
8607 powerpc)
8608 # see comment about AmigaOS4 .so support
8609 lt_prog_compiler_pic='-fPIC'
8611 m68k)
8612 # FIXME: we need at least 68020 code to build shared libraries, but
8613 # adding the `-m68020' flag to GCC prevents building anything better,
8614 # like `-m68040'.
8615 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8617 esac
8620 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8621 # PIC is the default for these OSes.
8624 mingw* | cygwin* | pw32* | os2* | cegcc*)
8625 # This hack is so that the source file can tell whether it is being
8626 # built for inclusion in a dll (and should export symbols for example).
8627 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8628 # (--disable-auto-import) libraries
8629 lt_prog_compiler_pic='-DDLL_EXPORT'
8632 darwin* | rhapsody*)
8633 # PIC is the default on this platform
8634 # Common symbols not allowed in MH_DYLIB files
8635 lt_prog_compiler_pic='-fno-common'
8638 haiku*)
8639 # PIC is the default for Haiku.
8640 # The "-static" flag exists, but is broken.
8641 lt_prog_compiler_static=
8644 hpux*)
8645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8647 # sets the default TLS model and affects inlining.
8648 case $host_cpu in
8649 hppa*64*)
8650 # +Z the default
8653 lt_prog_compiler_pic='-fPIC'
8655 esac
8658 interix[3-9]*)
8659 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8660 # Instead, we relocate shared libraries at runtime.
8663 msdosdjgpp*)
8664 # Just because we use GCC doesn't mean we suddenly get shared libraries
8665 # on systems that don't support them.
8666 lt_prog_compiler_can_build_shared=no
8667 enable_shared=no
8670 *nto* | *qnx*)
8671 # QNX uses GNU C++, but need to define -shared option too, otherwise
8672 # it will coredump.
8673 lt_prog_compiler_pic='-fPIC -shared'
8676 sysv4*MP*)
8677 if test -d /usr/nec; then
8678 lt_prog_compiler_pic=-Kconform_pic
8683 lt_prog_compiler_pic='-fPIC'
8685 esac
8687 case $cc_basename in
8688 nvcc*) # Cuda Compiler Driver 2.2
8689 lt_prog_compiler_wl='-Xlinker '
8690 if test -n "$lt_prog_compiler_pic"; then
8691 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8694 esac
8695 else
8696 # PORTME Check for flag to pass linker flags through the system compiler.
8697 case $host_os in
8698 aix*)
8699 lt_prog_compiler_wl='-Wl,'
8700 if test "$host_cpu" = ia64; then
8701 # AIX 5 now supports IA64 processor
8702 lt_prog_compiler_static='-Bstatic'
8703 else
8704 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8708 mingw* | cygwin* | pw32* | os2* | cegcc*)
8709 # This hack is so that the source file can tell whether it is being
8710 # built for inclusion in a dll (and should export symbols for example).
8711 lt_prog_compiler_pic='-DDLL_EXPORT'
8714 hpux9* | hpux10* | hpux11*)
8715 lt_prog_compiler_wl='-Wl,'
8716 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8717 # not for PA HP-UX.
8718 case $host_cpu in
8719 hppa*64*|ia64*)
8720 # +Z the default
8723 lt_prog_compiler_pic='+Z'
8725 esac
8726 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8727 lt_prog_compiler_static='${wl}-a ${wl}archive'
8730 irix5* | irix6* | nonstopux*)
8731 lt_prog_compiler_wl='-Wl,'
8732 # PIC (with -KPIC) is the default.
8733 lt_prog_compiler_static='-non_shared'
8736 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8737 case $cc_basename in
8738 # old Intel for x86_64 which still supported -KPIC.
8739 ecc*)
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='-KPIC'
8742 lt_prog_compiler_static='-static'
8744 # icc used to be incompatible with GCC.
8745 # ICC 10 doesn't accept -KPIC any more.
8746 icc* | ifort*)
8747 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_pic='-fPIC'
8749 lt_prog_compiler_static='-static'
8751 # Lahey Fortran 8.1.
8752 lf95*)
8753 lt_prog_compiler_wl='-Wl,'
8754 lt_prog_compiler_pic='--shared'
8755 lt_prog_compiler_static='--static'
8757 nagfor*)
8758 # NAG Fortran compiler
8759 lt_prog_compiler_wl='-Wl,-Wl,,'
8760 lt_prog_compiler_pic='-PIC'
8761 lt_prog_compiler_static='-Bstatic'
8763 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8764 # Portland Group compilers (*not* the Pentium gcc compiler,
8765 # which looks to be a dead project)
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_pic='-fpic'
8768 lt_prog_compiler_static='-Bstatic'
8770 ccc*)
8771 lt_prog_compiler_wl='-Wl,'
8772 # All Alpha code is PIC.
8773 lt_prog_compiler_static='-non_shared'
8775 xl* | bgxl* | bgf* | mpixl*)
8776 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-qpic'
8779 lt_prog_compiler_static='-qstaticlink'
8782 case `$CC -V 2>&1 | sed 5q` in
8783 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8784 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8787 lt_prog_compiler_wl=''
8789 *Sun\ F* | *Sun*Fortran*)
8790 lt_prog_compiler_pic='-KPIC'
8791 lt_prog_compiler_static='-Bstatic'
8792 lt_prog_compiler_wl='-Qoption ld '
8794 *Sun\ C*)
8795 # Sun C 5.9
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 lt_prog_compiler_wl='-Wl,'
8800 *Intel*\ [CF]*Compiler*)
8801 lt_prog_compiler_wl='-Wl,'
8802 lt_prog_compiler_pic='-fPIC'
8803 lt_prog_compiler_static='-static'
8805 *Portland\ Group*)
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-fpic'
8808 lt_prog_compiler_static='-Bstatic'
8810 esac
8812 esac
8815 newsos6)
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-Bstatic'
8820 *nto* | *qnx*)
8821 # QNX uses GNU C++, but need to define -shared option too, otherwise
8822 # it will coredump.
8823 lt_prog_compiler_pic='-fPIC -shared'
8826 osf3* | osf4* | osf5*)
8827 lt_prog_compiler_wl='-Wl,'
8828 # All OSF/1 code is PIC.
8829 lt_prog_compiler_static='-non_shared'
8832 rdos*)
8833 lt_prog_compiler_static='-non_shared'
8836 solaris*)
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8839 case $cc_basename in
8840 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8841 lt_prog_compiler_wl='-Qoption ld ';;
8843 lt_prog_compiler_wl='-Wl,';;
8844 esac
8847 sunos4*)
8848 lt_prog_compiler_wl='-Qoption ld '
8849 lt_prog_compiler_pic='-PIC'
8850 lt_prog_compiler_static='-Bstatic'
8853 sysv4 | sysv4.2uw2* | sysv4.3*)
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8859 sysv4*MP*)
8860 if test -d /usr/nec ;then
8861 lt_prog_compiler_pic='-Kconform_pic'
8862 lt_prog_compiler_static='-Bstatic'
8866 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8867 lt_prog_compiler_wl='-Wl,'
8868 lt_prog_compiler_pic='-KPIC'
8869 lt_prog_compiler_static='-Bstatic'
8872 unicos*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_can_build_shared=no
8877 uts4*)
8878 lt_prog_compiler_pic='-pic'
8879 lt_prog_compiler_static='-Bstatic'
8883 lt_prog_compiler_can_build_shared=no
8885 esac
8888 case $host_os in
8889 # For platforms which do not support PIC, -DPIC is meaningless:
8890 *djgpp*)
8891 lt_prog_compiler_pic=
8894 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8896 esac
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8899 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8900 if ${lt_cv_prog_compiler_pic+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8906 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8907 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8910 # Check to make sure the PIC flag actually works.
8912 if test -n "$lt_prog_compiler_pic"; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8914 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8915 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 lt_cv_prog_compiler_pic_works=no
8919 ac_outfile=conftest.$ac_objext
8920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8921 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8922 # Insert the option either (1) after the last *FLAGS variable, or
8923 # (2) before a word containing "conftest.", or (3) at the end.
8924 # Note that $ac_compile itself does not contain backslashes and begins
8925 # with a dollar sign (not a hyphen), so the echo should work correctly.
8926 # The option is referenced via a variable to avoid confusing sed.
8927 lt_compile=`echo "$ac_compile" | $SED \
8928 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8929 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8930 -e 's:$: $lt_compiler_flag:'`
8931 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8932 (eval "$lt_compile" 2>conftest.err)
8933 ac_status=$?
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 if (exit $ac_status) && test -s "$ac_outfile"; then
8937 # The compiler can only warn and ignore the option if not recognized
8938 # So say no if there are warnings other than the usual output.
8939 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8941 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8942 lt_cv_prog_compiler_pic_works=yes
8945 $RM conftest*
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8949 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8951 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8952 case $lt_prog_compiler_pic in
8953 "" | " "*) ;;
8954 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8955 esac
8956 else
8957 lt_prog_compiler_pic=
8958 lt_prog_compiler_can_build_shared=no
8974 # Check to make sure the static flag actually works.
8976 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8978 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8979 if ${lt_cv_prog_compiler_static_works+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 lt_cv_prog_compiler_static_works=no
8983 save_LDFLAGS="$LDFLAGS"
8984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8987 # The linker can only warn and ignore the option if not recognized
8988 # So say no if there are warnings
8989 if test -s conftest.err; then
8990 # Append any errors to the config.log.
8991 cat conftest.err 1>&5
8992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8994 if diff conftest.exp conftest.er2 >/dev/null; then
8995 lt_cv_prog_compiler_static_works=yes
8997 else
8998 lt_cv_prog_compiler_static_works=yes
9001 $RM -r conftest*
9002 LDFLAGS="$save_LDFLAGS"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9006 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9008 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9010 else
9011 lt_prog_compiler_static=
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9021 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9022 if ${lt_cv_prog_compiler_c_o+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 lt_cv_prog_compiler_c_o=no
9026 $RM -r conftest 2>/dev/null
9027 mkdir conftest
9028 cd conftest
9029 mkdir out
9030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9032 lt_compiler_flag="-o out/conftest2.$ac_objext"
9033 # Insert the option either (1) after the last *FLAGS variable, or
9034 # (2) before a word containing "conftest.", or (3) at the end.
9035 # Note that $ac_compile itself does not contain backslashes and begins
9036 # with a dollar sign (not a hyphen), so the echo should work correctly.
9037 lt_compile=`echo "$ac_compile" | $SED \
9038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9040 -e 's:$: $lt_compiler_flag:'`
9041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9042 (eval "$lt_compile" 2>out/conftest.err)
9043 ac_status=$?
9044 cat out/conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9047 then
9048 # The compiler can only warn and ignore the option if not recognized
9049 # So say no if there are warnings
9050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9053 lt_cv_prog_compiler_c_o=yes
9056 chmod u+w . 2>&5
9057 $RM conftest*
9058 # SGI C++ compiler will create directory out/ii_files/ for
9059 # template instantiation
9060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9061 $RM out/* && rmdir out
9062 cd ..
9063 $RM -r conftest
9064 $RM conftest*
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9068 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9076 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9077 if ${lt_cv_prog_compiler_c_o+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079 else
9080 lt_cv_prog_compiler_c_o=no
9081 $RM -r conftest 2>/dev/null
9082 mkdir conftest
9083 cd conftest
9084 mkdir out
9085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087 lt_compiler_flag="-o out/conftest2.$ac_objext"
9088 # Insert the option either (1) after the last *FLAGS variable, or
9089 # (2) before a word containing "conftest.", or (3) at the end.
9090 # Note that $ac_compile itself does not contain backslashes and begins
9091 # with a dollar sign (not a hyphen), so the echo should work correctly.
9092 lt_compile=`echo "$ac_compile" | $SED \
9093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9095 -e 's:$: $lt_compiler_flag:'`
9096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9097 (eval "$lt_compile" 2>out/conftest.err)
9098 ac_status=$?
9099 cat out/conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9102 then
9103 # The compiler can only warn and ignore the option if not recognized
9104 # So say no if there are warnings
9105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9108 lt_cv_prog_compiler_c_o=yes
9111 chmod u+w . 2>&5
9112 $RM conftest*
9113 # SGI C++ compiler will create directory out/ii_files/ for
9114 # template instantiation
9115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9116 $RM out/* && rmdir out
9117 cd ..
9118 $RM -r conftest
9119 $RM conftest*
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9123 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9128 hard_links="nottested"
9129 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9130 # do not overwrite the value of need_locks provided by the user
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9132 $as_echo_n "checking if we can lock with hard links... " >&6; }
9133 hard_links=yes
9134 $RM conftest*
9135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9136 touch conftest.a
9137 ln conftest.a conftest.b 2>&5 || hard_links=no
9138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9140 $as_echo "$hard_links" >&6; }
9141 if test "$hard_links" = no; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9143 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9144 need_locks=warn
9146 else
9147 need_locks=no
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9156 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9158 runpath_var=
9159 allow_undefined_flag=
9160 always_export_symbols=no
9161 archive_cmds=
9162 archive_expsym_cmds=
9163 compiler_needs_object=no
9164 enable_shared_with_static_runtimes=no
9165 export_dynamic_flag_spec=
9166 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9167 hardcode_automatic=no
9168 hardcode_direct=no
9169 hardcode_direct_absolute=no
9170 hardcode_libdir_flag_spec=
9171 hardcode_libdir_separator=
9172 hardcode_minus_L=no
9173 hardcode_shlibpath_var=unsupported
9174 inherit_rpath=no
9175 link_all_deplibs=unknown
9176 module_cmds=
9177 module_expsym_cmds=
9178 old_archive_from_new_cmds=
9179 old_archive_from_expsyms_cmds=
9180 thread_safe_flag_spec=
9181 whole_archive_flag_spec=
9182 # include_expsyms should be a list of space-separated symbols to be *always*
9183 # included in the symbol list
9184 include_expsyms=
9185 # exclude_expsyms can be an extended regexp of symbols to exclude
9186 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9188 # as well as any symbol that contains `d'.
9189 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9191 # platforms (ab)use it in PIC code, but their linkers get confused if
9192 # the symbol is explicitly referenced. Since portable code cannot
9193 # rely on this symbol name, it's probably fine to never include it in
9194 # preloaded symbol tables.
9195 # Exclude shared library initialization/finalization symbols.
9196 extract_expsyms_cmds=
9198 case $host_os in
9199 cygwin* | mingw* | pw32* | cegcc*)
9200 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9201 # When not using gcc, we currently assume that we are using
9202 # Microsoft Visual C++.
9203 if test "$GCC" != yes; then
9204 with_gnu_ld=no
9207 interix*)
9208 # we just hope/assume this is gcc and not c89 (= MSVC++)
9209 with_gnu_ld=yes
9211 openbsd*)
9212 with_gnu_ld=no
9214 esac
9216 ld_shlibs=yes
9218 # On some targets, GNU ld is compatible enough with the native linker
9219 # that we're better off using the native interface for both.
9220 lt_use_gnu_ld_interface=no
9221 if test "$with_gnu_ld" = yes; then
9222 case $host_os in
9223 aix*)
9224 # The AIX port of GNU ld has always aspired to compatibility
9225 # with the native linker. However, as the warning in the GNU ld
9226 # block says, versions before 2.19.5* couldn't really create working
9227 # shared libraries, regardless of the interface used.
9228 case `$LD -v 2>&1` in
9229 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9230 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9231 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9233 lt_use_gnu_ld_interface=yes
9235 esac
9238 lt_use_gnu_ld_interface=yes
9240 esac
9243 if test "$lt_use_gnu_ld_interface" = yes; then
9244 # If archive_cmds runs LD, not CC, wlarc should be empty
9245 wlarc='${wl}'
9247 # Set some defaults for GNU ld with shared library support. These
9248 # are reset later if shared libraries are not supported. Putting them
9249 # here allows them to be overridden if necessary.
9250 runpath_var=LD_RUN_PATH
9251 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9252 export_dynamic_flag_spec='${wl}--export-dynamic'
9253 # ancient GNU ld didn't support --whole-archive et. al.
9254 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9255 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9256 else
9257 whole_archive_flag_spec=
9259 supports_anon_versioning=no
9260 case `$LD -v 2>&1` in
9261 *GNU\ gold*) supports_anon_versioning=yes ;;
9262 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9263 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9264 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9265 *\ 2.11.*) ;; # other 2.11 versions
9266 *) supports_anon_versioning=yes ;;
9267 esac
9269 # See if GNU ld supports shared libraries.
9270 case $host_os in
9271 aix[3-9]*)
9272 # On AIX/PPC, the GNU linker is very broken
9273 if test "$host_cpu" != ia64; then
9274 ld_shlibs=no
9275 cat <<_LT_EOF 1>&2
9277 *** Warning: the GNU linker, at least up to release 2.19, is reported
9278 *** to be unable to reliably create shared libraries on AIX.
9279 *** Therefore, libtool is disabling shared libraries support. If you
9280 *** really care for shared libraries, you may want to install binutils
9281 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9282 *** You will then need to restart the configuration process.
9284 _LT_EOF
9288 amigaos*)
9289 case $host_cpu in
9290 powerpc)
9291 # see comment about AmigaOS4 .so support
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds=''
9295 m68k)
9296 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)'
9297 hardcode_libdir_flag_spec='-L$libdir'
9298 hardcode_minus_L=yes
9300 esac
9303 beos*)
9304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9305 allow_undefined_flag=unsupported
9306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9307 # support --undefined. This deserves some investigation. FIXME
9308 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309 else
9310 ld_shlibs=no
9314 cygwin* | mingw* | pw32* | cegcc*)
9315 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9316 # as there is no search path for DLLs.
9317 hardcode_libdir_flag_spec='-L$libdir'
9318 export_dynamic_flag_spec='${wl}--export-all-symbols'
9319 allow_undefined_flag=unsupported
9320 always_export_symbols=no
9321 enable_shared_with_static_runtimes=yes
9322 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'
9323 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9325 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9327 # If the export-symbols file already is a .def file (1st line
9328 # is EXPORTS), use it as is; otherwise, prepend...
9329 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9330 cp $export_symbols $output_objdir/$soname.def;
9331 else
9332 echo EXPORTS > $output_objdir/$soname.def;
9333 cat $export_symbols >> $output_objdir/$soname.def;
9335 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9336 else
9337 ld_shlibs=no
9341 haiku*)
9342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 link_all_deplibs=yes
9346 interix[3-9]*)
9347 hardcode_direct=no
9348 hardcode_shlibpath_var=no
9349 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9350 export_dynamic_flag_spec='${wl}-E'
9351 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9352 # Instead, shared libraries are loaded at an image base (0x10000000 by
9353 # default) and relocated if they conflict, which is a slow very memory
9354 # consuming and fragmenting process. To avoid this, we pick a random,
9355 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9356 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9357 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9358 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'
9361 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9362 tmp_diet=no
9363 if test "$host_os" = linux-dietlibc; then
9364 case $cc_basename in
9365 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9366 esac
9368 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9369 && test "$tmp_diet" = no
9370 then
9371 tmp_addflag=' $pic_flag'
9372 tmp_sharedflag='-shared'
9373 case $cc_basename,$host_cpu in
9374 pgcc*) # Portland Group C compiler
9375 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'
9376 tmp_addflag=' $pic_flag'
9378 pgf77* | pgf90* | pgf95* | pgfortran*)
9379 # Portland Group f77 and f90 compilers
9380 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'
9381 tmp_addflag=' $pic_flag -Mnomain' ;;
9382 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9383 tmp_addflag=' -i_dynamic' ;;
9384 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9385 tmp_addflag=' -i_dynamic -nofor_main' ;;
9386 ifc* | ifort*) # Intel Fortran compiler
9387 tmp_addflag=' -nofor_main' ;;
9388 lf95*) # Lahey Fortran 8.1
9389 whole_archive_flag_spec=
9390 tmp_sharedflag='--shared' ;;
9391 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9392 tmp_sharedflag='-qmkshrobj'
9393 tmp_addflag= ;;
9394 nvcc*) # Cuda Compiler Driver 2.2
9395 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'
9396 compiler_needs_object=yes
9398 esac
9399 case `$CC -V 2>&1 | sed 5q` in
9400 *Sun\ C*) # Sun C 5.9
9401 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'
9402 compiler_needs_object=yes
9403 tmp_sharedflag='-G' ;;
9404 *Sun\ F*) # Sun Fortran 8.3
9405 tmp_sharedflag='-G' ;;
9406 esac
9407 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409 if test "x$supports_anon_versioning" = xyes; then
9410 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9412 echo "local: *; };" >> $output_objdir/$libname.ver~
9413 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9416 case $cc_basename in
9417 xlf* | bgf* | bgxlf* | mpixlf*)
9418 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9419 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9420 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9421 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9422 if test "x$supports_anon_versioning" = xyes; then
9423 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9425 echo "local: *; };" >> $output_objdir/$libname.ver~
9426 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9429 esac
9430 else
9431 ld_shlibs=no
9435 netbsd*)
9436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9437 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9438 wlarc=
9439 else
9440 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9445 solaris*)
9446 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9447 ld_shlibs=no
9448 cat <<_LT_EOF 1>&2
9450 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9451 *** create shared libraries on Solaris systems. Therefore, libtool
9452 *** is disabling shared libraries support. We urge you to upgrade GNU
9453 *** binutils to release 2.9.1 or newer. Another option is to modify
9454 *** your PATH or compiler configuration so that the native linker is
9455 *** used, and then restart.
9457 _LT_EOF
9458 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9459 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9460 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9461 else
9462 ld_shlibs=no
9466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9467 case `$LD -v 2>&1` in
9468 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9469 ld_shlibs=no
9470 cat <<_LT_EOF 1>&2
9472 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9473 *** reliably create shared libraries on SCO systems. Therefore, libtool
9474 *** is disabling shared libraries support. We urge you to upgrade GNU
9475 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9476 *** your PATH or compiler configuration so that the native linker is
9477 *** used, and then restart.
9479 _LT_EOF
9482 # For security reasons, it is highly recommended that you always
9483 # use absolute paths for naming shared libraries, and exclude the
9484 # DT_RUNPATH tag from executables and libraries. But doing so
9485 # requires that you compile everything twice, which is a pain.
9486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9489 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9490 else
9491 ld_shlibs=no
9494 esac
9497 sunos4*)
9498 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9499 wlarc=
9500 hardcode_direct=yes
9501 hardcode_shlibpath_var=no
9505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9506 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9508 else
9509 ld_shlibs=no
9512 esac
9514 if test "$ld_shlibs" = no; then
9515 runpath_var=
9516 hardcode_libdir_flag_spec=
9517 export_dynamic_flag_spec=
9518 whole_archive_flag_spec=
9520 else
9521 # PORTME fill in a description of your system's linker (not GNU ld)
9522 case $host_os in
9523 aix3*)
9524 allow_undefined_flag=unsupported
9525 always_export_symbols=yes
9526 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'
9527 # Note: this linker hardcodes the directories in LIBPATH if there
9528 # are no directories specified by -L.
9529 hardcode_minus_L=yes
9530 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9531 # Neither direct hardcoding nor static linking is supported with a
9532 # broken collect2.
9533 hardcode_direct=unsupported
9537 aix[4-9]*)
9538 if test "$host_cpu" = ia64; then
9539 # On IA64, the linker does run time linking by default, so we don't
9540 # have to do anything special.
9541 aix_use_runtimelinking=no
9542 exp_sym_flag='-Bexport'
9543 no_entry_flag=""
9544 else
9545 # If we're using GNU nm, then we don't want the "-C" option.
9546 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9547 # Also, AIX nm treats weak defined symbols like other global
9548 # defined symbols, whereas GNU nm marks them as "W".
9549 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9550 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'
9551 else
9552 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'
9554 aix_use_runtimelinking=no
9556 # Test if we are trying to use run time linking or normal
9557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9558 # need to do runtime linking.
9559 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9560 for ld_flag in $LDFLAGS; do
9561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9562 aix_use_runtimelinking=yes
9563 break
9565 done
9567 esac
9569 exp_sym_flag='-bexport'
9570 no_entry_flag='-bnoentry'
9573 # When large executables or shared objects are built, AIX ld can
9574 # have problems creating the table of contents. If linking a library
9575 # or program results in "error TOC overflow" add -mminimal-toc to
9576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9579 archive_cmds=''
9580 hardcode_direct=yes
9581 hardcode_direct_absolute=yes
9582 hardcode_libdir_separator=':'
9583 link_all_deplibs=yes
9584 file_list_spec='${wl}-f,'
9586 if test "$GCC" = yes; then
9587 case $host_os in aix4.[012]|aix4.[012].*)
9588 # We only want to do this on AIX 4.2 and lower, the check
9589 # below for broken collect2 doesn't work under 4.3+
9590 collect2name=`${CC} -print-prog-name=collect2`
9591 if test -f "$collect2name" &&
9592 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9593 then
9594 # We have reworked collect2
9596 else
9597 # We have old collect2
9598 hardcode_direct=unsupported
9599 # It fails to find uninstalled libraries when the uninstalled
9600 # path is not listed in the libpath. Setting hardcode_minus_L
9601 # to unsupported forces relinking
9602 hardcode_minus_L=yes
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_libdir_separator=
9607 esac
9608 shared_flag='-shared'
9609 if test "$aix_use_runtimelinking" = yes; then
9610 shared_flag="$shared_flag "'${wl}-G'
9612 else
9613 # not using gcc
9614 if test "$host_cpu" = ia64; then
9615 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9616 # chokes on -Wl,-G. The following line is correct:
9617 shared_flag='-G'
9618 else
9619 if test "$aix_use_runtimelinking" = yes; then
9620 shared_flag='${wl}-G'
9621 else
9622 shared_flag='${wl}-bM:SRE'
9627 export_dynamic_flag_spec='${wl}-bexpall'
9628 # It seems that -bexpall does not export symbols beginning with
9629 # underscore (_), so it is better to generate a list of symbols to export.
9630 always_export_symbols=yes
9631 if test "$aix_use_runtimelinking" = yes; then
9632 # Warning - without using the other runtime loading flags (-brtl),
9633 # -berok will link without error, but may produce a broken library.
9634 allow_undefined_flag='-berok'
9635 # Determine the default libpath from the value encoded in an
9636 # empty executable.
9637 if test "${lt_cv_aix_libpath+set}" = set; then
9638 aix_libpath=$lt_cv_aix_libpath
9639 else
9640 if ${lt_cv_aix_libpath_+:} false; then :
9641 $as_echo_n "(cached) " >&6
9642 else
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9647 main ()
9651 return 0;
9653 _ACEOF
9654 if ac_fn_c_try_link "$LINENO"; then :
9656 lt_aix_libpath_sed='
9657 /Import File Strings/,/^$/ {
9658 /^0/ {
9659 s/^0 *\([^ ]*\) *$/\1/
9663 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9664 # Check for a 64-bit object if we didn't find anything.
9665 if test -z "$lt_cv_aix_libpath_"; then
9666 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9669 rm -f core conftest.err conftest.$ac_objext \
9670 conftest$ac_exeext conftest.$ac_ext
9671 if test -z "$lt_cv_aix_libpath_"; then
9672 lt_cv_aix_libpath_="/usr/lib:/lib"
9677 aix_libpath=$lt_cv_aix_libpath_
9680 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9681 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"
9682 else
9683 if test "$host_cpu" = ia64; then
9684 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9685 allow_undefined_flag="-z nodefs"
9686 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"
9687 else
9688 # Determine the default libpath from the value encoded in an
9689 # empty executable.
9690 if test "${lt_cv_aix_libpath+set}" = set; then
9691 aix_libpath=$lt_cv_aix_libpath
9692 else
9693 if ${lt_cv_aix_libpath_+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9700 main ()
9704 return 0;
9706 _ACEOF
9707 if ac_fn_c_try_link "$LINENO"; then :
9709 lt_aix_libpath_sed='
9710 /Import File Strings/,/^$/ {
9711 /^0/ {
9712 s/^0 *\([^ ]*\) *$/\1/
9716 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9717 # Check for a 64-bit object if we didn't find anything.
9718 if test -z "$lt_cv_aix_libpath_"; then
9719 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9722 rm -f core conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724 if test -z "$lt_cv_aix_libpath_"; then
9725 lt_cv_aix_libpath_="/usr/lib:/lib"
9730 aix_libpath=$lt_cv_aix_libpath_
9733 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9734 # Warning - without using the other run time loading flags,
9735 # -berok will link without error, but may produce a broken library.
9736 no_undefined_flag=' ${wl}-bernotok'
9737 allow_undefined_flag=' ${wl}-berok'
9738 if test "$with_gnu_ld" = yes; then
9739 # We only use this code for GNU lds that support --whole-archive.
9740 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9741 else
9742 # Exported symbols can be pulled into shared objects from archives
9743 whole_archive_flag_spec='$convenience'
9745 archive_cmds_need_lc=yes
9746 # This is similar to how AIX traditionally builds its shared libraries.
9747 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'
9752 amigaos*)
9753 case $host_cpu in
9754 powerpc)
9755 # see comment about AmigaOS4 .so support
9756 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757 archive_expsym_cmds=''
9759 m68k)
9760 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)'
9761 hardcode_libdir_flag_spec='-L$libdir'
9762 hardcode_minus_L=yes
9764 esac
9767 bsdi[45]*)
9768 export_dynamic_flag_spec=-rdynamic
9771 cygwin* | mingw* | pw32* | cegcc*)
9772 # When not using gcc, we currently assume that we are using
9773 # Microsoft Visual C++.
9774 # hardcode_libdir_flag_spec is actually meaningless, as there is
9775 # no search path for DLLs.
9776 case $cc_basename in
9777 cl*)
9778 # Native MSVC
9779 hardcode_libdir_flag_spec=' '
9780 allow_undefined_flag=unsupported
9781 always_export_symbols=yes
9782 file_list_spec='@'
9783 # Tell ltmain to make .lib files, not .a files.
9784 libext=lib
9785 # Tell ltmain to make .dll files, not .so files.
9786 shrext_cmds=".dll"
9787 # FIXME: Setting linknames here is a bad hack.
9788 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9789 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9790 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9791 else
9792 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9794 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9795 linknames='
9796 # The linker will not automatically build a static lib if we build a DLL.
9797 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9798 enable_shared_with_static_runtimes=yes
9799 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9800 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9801 # Don't use ranlib
9802 old_postinstall_cmds='chmod 644 $oldlib'
9803 postlink_cmds='lt_outputfile="@OUTPUT@"~
9804 lt_tool_outputfile="@TOOL_OUTPUT@"~
9805 case $lt_outputfile in
9806 *.exe|*.EXE) ;;
9808 lt_outputfile="$lt_outputfile.exe"
9809 lt_tool_outputfile="$lt_tool_outputfile.exe"
9811 esac~
9812 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9813 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9814 $RM "$lt_outputfile.manifest";
9818 # Assume MSVC wrapper
9819 hardcode_libdir_flag_spec=' '
9820 allow_undefined_flag=unsupported
9821 # Tell ltmain to make .lib files, not .a files.
9822 libext=lib
9823 # Tell ltmain to make .dll files, not .so files.
9824 shrext_cmds=".dll"
9825 # FIXME: Setting linknames here is a bad hack.
9826 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9827 # The linker will automatically build a .lib file if we build a DLL.
9828 old_archive_from_new_cmds='true'
9829 # FIXME: Should let the user specify the lib program.
9830 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9831 enable_shared_with_static_runtimes=yes
9833 esac
9836 darwin* | rhapsody*)
9839 archive_cmds_need_lc=no
9840 hardcode_direct=no
9841 hardcode_automatic=yes
9842 hardcode_shlibpath_var=unsupported
9843 if test "$lt_cv_ld_force_load" = "yes"; then
9844 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\"`'
9846 else
9847 whole_archive_flag_spec=''
9849 link_all_deplibs=yes
9850 allow_undefined_flag="$_lt_dar_allow_undefined"
9851 case $cc_basename in
9852 ifort*) _lt_dar_can_shared=yes ;;
9853 *) _lt_dar_can_shared=$GCC ;;
9854 esac
9855 if test "$_lt_dar_can_shared" = "yes"; then
9856 output_verbose_link_cmd=func_echo_all
9857 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9858 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9859 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}"
9860 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}"
9862 else
9863 ld_shlibs=no
9868 dgux*)
9869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_libdir_flag_spec='-L$libdir'
9871 hardcode_shlibpath_var=no
9874 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9875 # support. Future versions do this automatically, but an explicit c++rt0.o
9876 # does not break anything, and helps significantly (at the cost of a little
9877 # extra space).
9878 freebsd2.2*)
9879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_direct=yes
9882 hardcode_shlibpath_var=no
9885 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9886 freebsd2.*)
9887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9888 hardcode_direct=yes
9889 hardcode_minus_L=yes
9890 hardcode_shlibpath_var=no
9893 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9894 freebsd* | dragonfly*)
9895 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9896 hardcode_libdir_flag_spec='-R$libdir'
9897 hardcode_direct=yes
9898 hardcode_shlibpath_var=no
9901 hpux9*)
9902 if test "$GCC" = yes; then
9903 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'
9904 else
9905 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'
9907 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9908 hardcode_libdir_separator=:
9909 hardcode_direct=yes
9911 # hardcode_minus_L: Not really in the search PATH,
9912 # but as the default location of the library.
9913 hardcode_minus_L=yes
9914 export_dynamic_flag_spec='${wl}-E'
9917 hpux10*)
9918 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9919 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9920 else
9921 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9923 if test "$with_gnu_ld" = no; then
9924 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9925 hardcode_libdir_separator=:
9926 hardcode_direct=yes
9927 hardcode_direct_absolute=yes
9928 export_dynamic_flag_spec='${wl}-E'
9929 # hardcode_minus_L: Not really in the search PATH,
9930 # but as the default location of the library.
9931 hardcode_minus_L=yes
9935 hpux11*)
9936 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9937 case $host_cpu in
9938 hppa*64*)
9939 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9941 ia64*)
9942 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9945 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9947 esac
9948 else
9949 case $host_cpu in
9950 hppa*64*)
9951 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9953 ia64*)
9954 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9958 # Older versions of the 11.00 compiler do not understand -b yet
9959 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9961 $as_echo_n "checking if $CC understands -b... " >&6; }
9962 if ${lt_cv_prog_compiler__b+:} false; then :
9963 $as_echo_n "(cached) " >&6
9964 else
9965 lt_cv_prog_compiler__b=no
9966 save_LDFLAGS="$LDFLAGS"
9967 LDFLAGS="$LDFLAGS -b"
9968 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9969 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9970 # The linker can only warn and ignore the option if not recognized
9971 # So say no if there are warnings
9972 if test -s conftest.err; then
9973 # Append any errors to the config.log.
9974 cat conftest.err 1>&5
9975 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9977 if diff conftest.exp conftest.er2 >/dev/null; then
9978 lt_cv_prog_compiler__b=yes
9980 else
9981 lt_cv_prog_compiler__b=yes
9984 $RM -r conftest*
9985 LDFLAGS="$save_LDFLAGS"
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9989 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9991 if test x"$lt_cv_prog_compiler__b" = xyes; then
9992 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9993 else
9994 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9998 esac
10000 if test "$with_gnu_ld" = no; then
10001 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10002 hardcode_libdir_separator=:
10004 case $host_cpu in
10005 hppa*64*|ia64*)
10006 hardcode_direct=no
10007 hardcode_shlibpath_var=no
10010 hardcode_direct=yes
10011 hardcode_direct_absolute=yes
10012 export_dynamic_flag_spec='${wl}-E'
10014 # hardcode_minus_L: Not really in the search PATH,
10015 # but as the default location of the library.
10016 hardcode_minus_L=yes
10018 esac
10022 irix5* | irix6* | nonstopux*)
10023 if test "$GCC" = yes; then
10024 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'
10025 # Try to use the -exported_symbol ld option, if it does not
10026 # work, assume that -exports_file does not work either and
10027 # implicitly export all symbols.
10028 # This should be the same for all languages, so no per-tag cache variable.
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10030 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10031 if ${lt_cv_irix_exported_symbol+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 save_LDFLAGS="$LDFLAGS"
10035 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 int foo (void) { return 0; }
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 lt_cv_irix_exported_symbol=yes
10042 else
10043 lt_cv_irix_exported_symbol=no
10045 rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LDFLAGS="$save_LDFLAGS"
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10050 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10051 if test "$lt_cv_irix_exported_symbol" = yes; then
10052 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'
10054 else
10055 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'
10056 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'
10058 archive_cmds_need_lc='no'
10059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10060 hardcode_libdir_separator=:
10061 inherit_rpath=yes
10062 link_all_deplibs=yes
10065 netbsd*)
10066 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10068 else
10069 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10071 hardcode_libdir_flag_spec='-R$libdir'
10072 hardcode_direct=yes
10073 hardcode_shlibpath_var=no
10076 newsos6)
10077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10078 hardcode_direct=yes
10079 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10080 hardcode_libdir_separator=:
10081 hardcode_shlibpath_var=no
10084 *nto* | *qnx*)
10087 openbsd*)
10088 if test -f /usr/libexec/ld.so; then
10089 hardcode_direct=yes
10090 hardcode_shlibpath_var=no
10091 hardcode_direct_absolute=yes
10092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10095 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10096 export_dynamic_flag_spec='${wl}-E'
10097 else
10098 case $host_os in
10099 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_libdir_flag_spec='-R$libdir'
10104 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10105 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10107 esac
10109 else
10110 ld_shlibs=no
10114 os2*)
10115 hardcode_libdir_flag_spec='-L$libdir'
10116 hardcode_minus_L=yes
10117 allow_undefined_flag=unsupported
10118 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'
10119 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10122 osf3*)
10123 if test "$GCC" = yes; then
10124 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10125 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'
10126 else
10127 allow_undefined_flag=' -expect_unresolved \*'
10128 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'
10130 archive_cmds_need_lc='no'
10131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10132 hardcode_libdir_separator=:
10135 osf4* | osf5*) # as osf3* with the addition of -msym flag
10136 if test "$GCC" = yes; then
10137 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10138 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'
10139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140 else
10141 allow_undefined_flag=' -expect_unresolved \*'
10142 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'
10143 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~
10144 $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'
10146 # Both c and cxx compiler support -rpath directly
10147 hardcode_libdir_flag_spec='-rpath $libdir'
10149 archive_cmds_need_lc='no'
10150 hardcode_libdir_separator=:
10153 solaris*)
10154 no_undefined_flag=' -z defs'
10155 if test "$GCC" = yes; then
10156 wlarc='${wl}'
10157 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10159 $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'
10160 else
10161 case `$CC -V 2>&1` in
10162 *"Compilers 5.0"*)
10163 wlarc=''
10164 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10166 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10169 wlarc='${wl}'
10170 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10171 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10172 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10174 esac
10176 hardcode_libdir_flag_spec='-R$libdir'
10177 hardcode_shlibpath_var=no
10178 case $host_os in
10179 solaris2.[0-5] | solaris2.[0-5].*) ;;
10181 # The compiler driver will combine and reorder linker options,
10182 # but understands `-z linker_flag'. GCC discards it without `$wl',
10183 # but is careful enough not to reorder.
10184 # Supported since Solaris 2.6 (maybe 2.5.1?)
10185 if test "$GCC" = yes; then
10186 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10187 else
10188 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10191 esac
10192 link_all_deplibs=yes
10195 sunos4*)
10196 if test "x$host_vendor" = xsequent; then
10197 # Use $CC to link under sequent, because it throws in some extra .o
10198 # files that make .init and .fini sections work.
10199 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10200 else
10201 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_libdir_flag_spec='-L$libdir'
10204 hardcode_direct=yes
10205 hardcode_minus_L=yes
10206 hardcode_shlibpath_var=no
10209 sysv4)
10210 case $host_vendor in
10211 sni)
10212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213 hardcode_direct=yes # is this really true???
10215 siemens)
10216 ## LD is ld it makes a PLAMLIB
10217 ## CC just makes a GrossModule.
10218 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10219 reload_cmds='$CC -r -o $output$reload_objs'
10220 hardcode_direct=no
10222 motorola)
10223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10226 esac
10227 runpath_var='LD_RUN_PATH'
10228 hardcode_shlibpath_var=no
10231 sysv4.3*)
10232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10233 hardcode_shlibpath_var=no
10234 export_dynamic_flag_spec='-Bexport'
10237 sysv4*MP*)
10238 if test -d /usr/nec; then
10239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240 hardcode_shlibpath_var=no
10241 runpath_var=LD_RUN_PATH
10242 hardcode_runpath_var=yes
10243 ld_shlibs=yes
10247 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10248 no_undefined_flag='${wl}-z,text'
10249 archive_cmds_need_lc=no
10250 hardcode_shlibpath_var=no
10251 runpath_var='LD_RUN_PATH'
10253 if test "$GCC" = yes; then
10254 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256 else
10257 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262 sysv5* | sco3.2v5* | sco5v6*)
10263 # Note: We can NOT use -z defs as we might desire, because we do not
10264 # link with -lc, and that would cause any symbols used from libc to
10265 # always be unresolved, which means just about no library would
10266 # ever link correctly. If we're not using GNU ld we use -z text
10267 # though, which does catch some bad symbols but isn't as heavy-handed
10268 # as -z defs.
10269 no_undefined_flag='${wl}-z,text'
10270 allow_undefined_flag='${wl}-z,nodefs'
10271 archive_cmds_need_lc=no
10272 hardcode_shlibpath_var=no
10273 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10274 hardcode_libdir_separator=':'
10275 link_all_deplibs=yes
10276 export_dynamic_flag_spec='${wl}-Bexport'
10277 runpath_var='LD_RUN_PATH'
10279 if test "$GCC" = yes; then
10280 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10281 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10282 else
10283 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 uts4*)
10289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10290 hardcode_libdir_flag_spec='-L$libdir'
10291 hardcode_shlibpath_var=no
10295 ld_shlibs=no
10297 esac
10299 if test x$host_vendor = xsni; then
10300 case $host in
10301 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10302 export_dynamic_flag_spec='${wl}-Blargedynsym'
10304 esac
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10309 $as_echo "$ld_shlibs" >&6; }
10310 test "$ld_shlibs" = no && can_build_shared=no
10312 with_gnu_ld=$with_gnu_ld
10329 # Do we need to explicitly link libc?
10331 case "x$archive_cmds_need_lc" in
10332 x|xyes)
10333 # Assume -lc should be added
10334 archive_cmds_need_lc=yes
10336 if test "$enable_shared" = yes && test "$GCC" = yes; then
10337 case $archive_cmds in
10338 *'~'*)
10339 # FIXME: we may have to deal with multi-command sequences.
10341 '$CC '*)
10342 # Test whether the compiler implicitly links with -lc since on some
10343 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10344 # to ld, don't add -lc before -lgcc.
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10346 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10347 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 $RM conftest*
10351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10354 (eval $ac_compile) 2>&5
10355 ac_status=$?
10356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10357 test $ac_status = 0; } 2>conftest.err; then
10358 soname=conftest
10359 lib=conftest
10360 libobjs=conftest.$ac_objext
10361 deplibs=
10362 wl=$lt_prog_compiler_wl
10363 pic_flag=$lt_prog_compiler_pic
10364 compiler_flags=-v
10365 linker_flags=-v
10366 verstring=
10367 output_objdir=.
10368 libname=conftest
10369 lt_save_allow_undefined_flag=$allow_undefined_flag
10370 allow_undefined_flag=
10371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10372 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10373 ac_status=$?
10374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10375 test $ac_status = 0; }
10376 then
10377 lt_cv_archive_cmds_need_lc=no
10378 else
10379 lt_cv_archive_cmds_need_lc=yes
10381 allow_undefined_flag=$lt_save_allow_undefined_flag
10382 else
10383 cat conftest.err 1>&5
10385 $RM conftest*
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10389 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10390 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10392 esac
10395 esac
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10549 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10551 if test "$GCC" = yes; then
10552 case $host_os in
10553 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10554 *) lt_awk_arg="/^libraries:/" ;;
10555 esac
10556 case $host_os in
10557 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10558 *) lt_sed_strip_eq="s,=/,/,g" ;;
10559 esac
10560 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10561 case $lt_search_path_spec in
10562 *\;*)
10563 # if the path contains ";" then we assume it to be the separator
10564 # otherwise default to the standard path separator (i.e. ":") - it is
10565 # assumed that no part of a normal pathname contains ";" but that should
10566 # okay in the real world where ";" in dirpaths is itself problematic.
10567 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10570 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10572 esac
10573 # Ok, now we have the path, separated by spaces, we can step through it
10574 # and add multilib dir if necessary.
10575 lt_tmp_lt_search_path_spec=
10576 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10577 for lt_sys_path in $lt_search_path_spec; do
10578 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10579 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10580 else
10581 test -d "$lt_sys_path" && \
10582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10584 done
10585 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10586 BEGIN {RS=" "; FS="/|\n";} {
10587 lt_foo="";
10588 lt_count=0;
10589 for (lt_i = NF; lt_i > 0; lt_i--) {
10590 if ($lt_i != "" && $lt_i != ".") {
10591 if ($lt_i == "..") {
10592 lt_count++;
10593 } else {
10594 if (lt_count == 0) {
10595 lt_foo="/" $lt_i lt_foo;
10596 } else {
10597 lt_count--;
10602 if (lt_foo != "") { lt_freq[lt_foo]++; }
10603 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10605 # AWK program above erroneously prepends '/' to C:/dos/paths
10606 # for these hosts.
10607 case $host_os in
10608 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10609 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10610 esac
10611 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10612 else
10613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10615 library_names_spec=
10616 libname_spec='lib$name'
10617 soname_spec=
10618 shrext_cmds=".so"
10619 postinstall_cmds=
10620 postuninstall_cmds=
10621 finish_cmds=
10622 finish_eval=
10623 shlibpath_var=
10624 shlibpath_overrides_runpath=unknown
10625 version_type=none
10626 dynamic_linker="$host_os ld.so"
10627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10628 need_lib_prefix=unknown
10629 hardcode_into_libs=no
10631 # when you set need_version to no, make sure it does not cause -set_version
10632 # flags to be left without arguments
10633 need_version=unknown
10635 case $host_os in
10636 aix3*)
10637 version_type=linux # correct to gnu/linux during the next big refactor
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10639 shlibpath_var=LIBPATH
10641 # AIX 3 has no versioning support, so we append a major version to the name.
10642 soname_spec='${libname}${release}${shared_ext}$major'
10645 aix[4-9]*)
10646 version_type=linux # correct to gnu/linux during the next big refactor
10647 need_lib_prefix=no
10648 need_version=no
10649 hardcode_into_libs=yes
10650 if test "$host_cpu" = ia64; then
10651 # AIX 5 supports IA64
10652 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 else
10655 # With GCC up to 2.95.x, collect2 would create an import file
10656 # for dependence libraries. The import file would start with
10657 # the line `#! .'. This would cause the generated library to
10658 # depend on `.', always an invalid library. This was fixed in
10659 # development snapshots of GCC prior to 3.0.
10660 case $host_os in
10661 aix4 | aix4.[01] | aix4.[01].*)
10662 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10663 echo ' yes '
10664 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10666 else
10667 can_build_shared=no
10670 esac
10671 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10672 # soname into executable. Probably we can add versioning support to
10673 # collect2, so additional links can be useful in future.
10674 if test "$aix_use_runtimelinking" = yes; then
10675 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10676 # instead of lib<name>.a to let people know that these are not
10677 # typical AIX shared libraries.
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 else
10680 # We preserve .a as extension for shared libraries through AIX4.2
10681 # and later when we are not doing run time linking.
10682 library_names_spec='${libname}${release}.a $libname.a'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LIBPATH
10689 amigaos*)
10690 case $host_cpu in
10691 powerpc)
10692 # Since July 2007 AmigaOS4 officially supports .so libraries.
10693 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696 m68k)
10697 library_names_spec='$libname.ixlibrary $libname.a'
10698 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10699 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'
10701 esac
10704 beos*)
10705 library_names_spec='${libname}${shared_ext}'
10706 dynamic_linker="$host_os ld.so"
10707 shlibpath_var=LIBRARY_PATH
10710 bsdi[45]*)
10711 version_type=linux # correct to gnu/linux during the next big refactor
10712 need_version=no
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10718 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10719 # the default ld.so.conf also contains /usr/contrib/lib and
10720 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10721 # libtool to hard-code these into programs
10724 cygwin* | mingw* | pw32* | cegcc*)
10725 version_type=windows
10726 shrext_cmds=".dll"
10727 need_version=no
10728 need_lib_prefix=no
10730 case $GCC,$cc_basename in
10731 yes,*)
10732 # gcc
10733 library_names_spec='$libname.dll.a'
10734 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10735 postinstall_cmds='base_file=`basename \${file}`~
10736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10737 dldir=$destdir/`dirname \$dlpath`~
10738 test -d \$dldir || mkdir -p \$dldir~
10739 $install_prog $dir/$dlname \$dldir/$dlname~
10740 chmod a+x \$dldir/$dlname~
10741 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10742 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10745 dlpath=$dir/\$dldll~
10746 $RM \$dlpath'
10747 shlibpath_overrides_runpath=yes
10749 case $host_os in
10750 cygwin*)
10751 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10752 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10754 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10756 mingw* | cegcc*)
10757 # MinGW DLLs use traditional 'lib' prefix
10758 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10760 pw32*)
10761 # pw32 DLLs use 'pw' prefix rather than 'lib'
10762 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10764 esac
10765 dynamic_linker='Win32 ld.exe'
10768 *,cl*)
10769 # Native MSVC
10770 libname_spec='$name'
10771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772 library_names_spec='${libname}.dll.lib'
10774 case $build_os in
10775 mingw*)
10776 sys_lib_search_path_spec=
10777 lt_save_ifs=$IFS
10778 IFS=';'
10779 for lt_path in $LIB
10781 IFS=$lt_save_ifs
10782 # Let DOS variable expansion print the short 8.3 style file name.
10783 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10784 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10785 done
10786 IFS=$lt_save_ifs
10787 # Convert to MSYS style.
10788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10790 cygwin*)
10791 # Convert to unix form, then to dos form, then back to unix form
10792 # but this time dos style (no spaces!) so that the unix form looks
10793 # like /cygdrive/c/PROGRA~1:/cygdr...
10794 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10795 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10796 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10799 sys_lib_search_path_spec="$LIB"
10800 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10801 # It is most probably a Windows format PATH.
10802 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10803 else
10804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10806 # FIXME: find the short name or the path components, as spaces are
10807 # common. (e.g. "Program Files" -> "PROGRA~1")
10809 esac
10811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10812 postinstall_cmds='base_file=`basename \${file}`~
10813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10814 dldir=$destdir/`dirname \$dlpath`~
10815 test -d \$dldir || mkdir -p \$dldir~
10816 $install_prog $dir/$dlname \$dldir/$dlname'
10817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10818 dlpath=$dir/\$dldll~
10819 $RM \$dlpath'
10820 shlibpath_overrides_runpath=yes
10821 dynamic_linker='Win32 link.exe'
10825 # Assume MSVC wrapper
10826 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10827 dynamic_linker='Win32 ld.exe'
10829 esac
10830 # FIXME: first we should search . and the directory the executable is in
10831 shlibpath_var=PATH
10834 darwin* | rhapsody*)
10835 dynamic_linker="$host_os dyld"
10836 version_type=darwin
10837 need_lib_prefix=no
10838 need_version=no
10839 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10840 soname_spec='${libname}${release}${major}$shared_ext'
10841 shlibpath_overrides_runpath=yes
10842 shlibpath_var=DYLD_LIBRARY_PATH
10843 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10845 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10849 dgux*)
10850 version_type=linux # correct to gnu/linux during the next big refactor
10851 need_lib_prefix=no
10852 need_version=no
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 shlibpath_var=LD_LIBRARY_PATH
10858 freebsd* | dragonfly*)
10859 # DragonFly does not have aout. When/if they implement a new
10860 # versioning mechanism, adjust this.
10861 if test -x /usr/bin/objformat; then
10862 objformat=`/usr/bin/objformat`
10863 else
10864 case $host_os in
10865 freebsd[23].*) objformat=aout ;;
10866 *) objformat=elf ;;
10867 esac
10869 version_type=freebsd-$objformat
10870 case $version_type in
10871 freebsd-elf*)
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10873 need_version=no
10874 need_lib_prefix=no
10876 freebsd-*)
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10878 need_version=yes
10880 esac
10881 shlibpath_var=LD_LIBRARY_PATH
10882 case $host_os in
10883 freebsd2.*)
10884 shlibpath_overrides_runpath=yes
10886 freebsd3.[01]* | freebsdelf3.[01]*)
10887 shlibpath_overrides_runpath=yes
10888 hardcode_into_libs=yes
10890 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10891 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10892 shlibpath_overrides_runpath=no
10893 hardcode_into_libs=yes
10895 *) # from 4.6 on, and DragonFly
10896 shlibpath_overrides_runpath=yes
10897 hardcode_into_libs=yes
10899 esac
10902 gnu*)
10903 version_type=linux # correct to gnu/linux during the next big refactor
10904 need_lib_prefix=no
10905 need_version=no
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=no
10910 hardcode_into_libs=yes
10913 haiku*)
10914 version_type=linux # correct to gnu/linux during the next big refactor
10915 need_lib_prefix=no
10916 need_version=no
10917 dynamic_linker="$host_os runtime_loader"
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LIBRARY_PATH
10921 shlibpath_overrides_runpath=yes
10922 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10923 hardcode_into_libs=yes
10926 hpux9* | hpux10* | hpux11*)
10927 # Give a soname corresponding to the major version so that dld.sl refuses to
10928 # link against other versions.
10929 version_type=sunos
10930 need_lib_prefix=no
10931 need_version=no
10932 case $host_cpu in
10933 ia64*)
10934 shrext_cmds='.so'
10935 hardcode_into_libs=yes
10936 dynamic_linker="$host_os dld.so"
10937 shlibpath_var=LD_LIBRARY_PATH
10938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 if test "X$HPUX_IA64_MODE" = X32; then
10942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10943 else
10944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10948 hppa*64*)
10949 shrext_cmds='.sl'
10950 hardcode_into_libs=yes
10951 dynamic_linker="$host_os dld.sl"
10952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 soname_spec='${libname}${release}${shared_ext}$major'
10956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10960 shrext_cmds='.sl'
10961 dynamic_linker="$host_os dld.sl"
10962 shlibpath_var=SHLIB_PATH
10963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 soname_spec='${libname}${release}${shared_ext}$major'
10967 esac
10968 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10969 postinstall_cmds='chmod 555 $lib'
10970 # or fails outright, so override atomically:
10971 install_override_mode=555
10974 interix[3-9]*)
10975 version_type=linux # correct to gnu/linux during the next big refactor
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=no
10983 hardcode_into_libs=yes
10986 irix5* | irix6* | nonstopux*)
10987 case $host_os in
10988 nonstopux*) version_type=nonstopux ;;
10990 if test "$lt_cv_prog_gnu_ld" = yes; then
10991 version_type=linux # correct to gnu/linux during the next big refactor
10992 else
10993 version_type=irix
10994 fi ;;
10995 esac
10996 need_lib_prefix=no
10997 need_version=no
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11000 case $host_os in
11001 irix5* | nonstopux*)
11002 libsuff= shlibsuff=
11005 case $LD in # libtool.m4 will add one of these switches to LD
11006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11007 libsuff= shlibsuff= libmagic=32-bit;;
11008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11009 libsuff=32 shlibsuff=N32 libmagic=N32;;
11010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11012 *) libsuff= shlibsuff= libmagic=never-match;;
11013 esac
11015 esac
11016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11017 shlibpath_overrides_runpath=no
11018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11020 hardcode_into_libs=yes
11023 # No shared lib support for Linux oldld, aout, or coff.
11024 linux*oldld* | linux*aout* | linux*coff*)
11025 dynamic_linker=no
11028 # This must be glibc/ELF.
11029 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11030 version_type=linux # correct to gnu/linux during the next big refactor
11031 need_lib_prefix=no
11032 need_version=no
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=no
11039 # Some binutils ld are patched to set DT_RUNPATH
11040 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11041 $as_echo_n "(cached) " >&6
11042 else
11043 lt_cv_shlibpath_overrides_runpath=no
11044 save_LDFLAGS=$LDFLAGS
11045 save_libdir=$libdir
11046 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11047 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11052 main ()
11056 return 0;
11058 _ACEOF
11059 if ac_fn_c_try_link "$LINENO"; then :
11060 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11061 lt_cv_shlibpath_overrides_runpath=yes
11064 rm -f core conftest.err conftest.$ac_objext \
11065 conftest$ac_exeext conftest.$ac_ext
11066 LDFLAGS=$save_LDFLAGS
11067 libdir=$save_libdir
11071 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11073 # This implies no fast_install, which is unacceptable.
11074 # Some rework will be needed to allow for fast_install
11075 # before this can be enabled.
11076 hardcode_into_libs=yes
11078 # Append ld.so.conf contents to the search path
11079 if test -f /etc/ld.so.conf; then
11080 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' ' '`
11081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11084 # We used to test for /lib/ld.so.1 and disable shared libraries on
11085 # powerpc, because MkLinux only supported shared libraries with the
11086 # GNU dynamic linker. Since this was broken with cross compilers,
11087 # most powerpc-linux boxes support dynamic linking these days and
11088 # people can always --disable-shared, the test was removed, and we
11089 # assume the GNU/Linux dynamic linker is in use.
11090 dynamic_linker='GNU/Linux ld.so'
11093 netbsd*)
11094 version_type=sunos
11095 need_lib_prefix=no
11096 need_version=no
11097 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11100 dynamic_linker='NetBSD (a.out) ld.so'
11101 else
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 dynamic_linker='NetBSD ld.elf_so'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11108 hardcode_into_libs=yes
11111 newsos6)
11112 version_type=linux # correct to gnu/linux during the next big refactor
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11118 *nto* | *qnx*)
11119 version_type=qnx
11120 need_lib_prefix=no
11121 need_version=no
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=no
11126 hardcode_into_libs=yes
11127 dynamic_linker='ldqnx.so'
11130 openbsd*)
11131 version_type=sunos
11132 sys_lib_dlsearch_path_spec="/usr/lib"
11133 need_lib_prefix=no
11134 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11135 case $host_os in
11136 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11137 *) need_version=no ;;
11138 esac
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11143 case $host_os in
11144 openbsd2.[89] | openbsd2.[89].*)
11145 shlibpath_overrides_runpath=no
11148 shlibpath_overrides_runpath=yes
11150 esac
11151 else
11152 shlibpath_overrides_runpath=yes
11156 os2*)
11157 libname_spec='$name'
11158 shrext_cmds=".dll"
11159 need_lib_prefix=no
11160 library_names_spec='$libname${shared_ext} $libname.a'
11161 dynamic_linker='OS/2 ld.exe'
11162 shlibpath_var=LIBPATH
11165 osf3* | osf4* | osf5*)
11166 version_type=osf
11167 need_lib_prefix=no
11168 need_version=no
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11176 rdos*)
11177 dynamic_linker=no
11180 solaris*)
11181 version_type=linux # correct to gnu/linux during the next big refactor
11182 need_lib_prefix=no
11183 need_version=no
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 shlibpath_overrides_runpath=yes
11188 hardcode_into_libs=yes
11189 # ldd complains unless libraries are executable
11190 postinstall_cmds='chmod +x $lib'
11193 sunos4*)
11194 version_type=sunos
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11196 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath=yes
11199 if test "$with_gnu_ld" = yes; then
11200 need_lib_prefix=no
11202 need_version=yes
11205 sysv4 | sysv4.3*)
11206 version_type=linux # correct to gnu/linux during the next big refactor
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 case $host_vendor in
11211 sni)
11212 shlibpath_overrides_runpath=no
11213 need_lib_prefix=no
11214 runpath_var=LD_RUN_PATH
11216 siemens)
11217 need_lib_prefix=no
11219 motorola)
11220 need_lib_prefix=no
11221 need_version=no
11222 shlibpath_overrides_runpath=no
11223 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11225 esac
11228 sysv4*MP*)
11229 if test -d /usr/nec ;then
11230 version_type=linux # correct to gnu/linux during the next big refactor
11231 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11232 soname_spec='$libname${shared_ext}.$major'
11233 shlibpath_var=LD_LIBRARY_PATH
11237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11238 version_type=freebsd-elf
11239 need_lib_prefix=no
11240 need_version=no
11241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11242 soname_spec='${libname}${release}${shared_ext}$major'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11246 if test "$with_gnu_ld" = yes; then
11247 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11248 else
11249 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11250 case $host_os in
11251 sco3.2v5*)
11252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11254 esac
11256 sys_lib_dlsearch_path_spec='/usr/lib'
11259 tpf*)
11260 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11261 version_type=linux # correct to gnu/linux during the next big refactor
11262 need_lib_prefix=no
11263 need_version=no
11264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=no
11267 hardcode_into_libs=yes
11270 uts4*)
11271 version_type=linux # correct to gnu/linux during the next big refactor
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 soname_spec='${libname}${release}${shared_ext}$major'
11274 shlibpath_var=LD_LIBRARY_PATH
11278 dynamic_linker=no
11280 esac
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11282 $as_echo "$dynamic_linker" >&6; }
11283 test "$dynamic_linker" = no && can_build_shared=no
11285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11286 if test "$GCC" = yes; then
11287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11290 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11291 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11293 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11294 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11389 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11390 hardcode_action=
11391 if test -n "$hardcode_libdir_flag_spec" ||
11392 test -n "$runpath_var" ||
11393 test "X$hardcode_automatic" = "Xyes" ; then
11395 # We can hardcode non-existent directories.
11396 if test "$hardcode_direct" != no &&
11397 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11398 # have to relink, otherwise we might link with an installed library
11399 # when we should be linking with a yet-to-be-installed one
11400 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11401 test "$hardcode_minus_L" != no; then
11402 # Linking always hardcodes the temporary library directory.
11403 hardcode_action=relink
11404 else
11405 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11406 hardcode_action=immediate
11408 else
11409 # We cannot hardcode anything, or else we can only hardcode existing
11410 # directories.
11411 hardcode_action=unsupported
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11414 $as_echo "$hardcode_action" >&6; }
11416 if test "$hardcode_action" = relink ||
11417 test "$inherit_rpath" = yes; then
11418 # Fast installation is not supported
11419 enable_fast_install=no
11420 elif test "$shlibpath_overrides_runpath" = yes ||
11421 test "$enable_shared" = no; then
11422 # Fast installation is not necessary
11423 enable_fast_install=needless
11431 if test "x$enable_dlopen" != xyes; then
11432 enable_dlopen=unknown
11433 enable_dlopen_self=unknown
11434 enable_dlopen_self_static=unknown
11435 else
11436 lt_cv_dlopen=no
11437 lt_cv_dlopen_libs=
11439 case $host_os in
11440 beos*)
11441 lt_cv_dlopen="load_add_on"
11442 lt_cv_dlopen_libs=
11443 lt_cv_dlopen_self=yes
11446 mingw* | pw32* | cegcc*)
11447 lt_cv_dlopen="LoadLibrary"
11448 lt_cv_dlopen_libs=
11451 cygwin*)
11452 lt_cv_dlopen="dlopen"
11453 lt_cv_dlopen_libs=
11456 darwin*)
11457 # if libdl is installed we need to link against it
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11460 if ${ac_cv_lib_dl_dlopen+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-ldl $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char dlopen ();
11476 main ()
11478 return dlopen ();
11480 return 0;
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 ac_cv_lib_dl_dlopen=yes
11485 else
11486 ac_cv_lib_dl_dlopen=no
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11494 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11495 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11496 else
11498 lt_cv_dlopen="dyld"
11499 lt_cv_dlopen_libs=
11500 lt_cv_dlopen_self=yes
11507 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11508 if test "x$ac_cv_func_shl_load" = xyes; then :
11509 lt_cv_dlopen="shl_load"
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11512 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11513 if ${ac_cv_lib_dld_shl_load+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 ac_check_lib_save_LIBS=$LIBS
11517 LIBS="-ldld $LIBS"
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char shl_load ();
11529 main ()
11531 return shl_load ();
11533 return 0;
11535 _ACEOF
11536 if ac_fn_c_try_link "$LINENO"; then :
11537 ac_cv_lib_dld_shl_load=yes
11538 else
11539 ac_cv_lib_dld_shl_load=no
11541 rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_lib_save_LIBS
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11546 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11547 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11548 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11549 else
11550 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11551 if test "x$ac_cv_func_dlopen" = xyes; then :
11552 lt_cv_dlopen="dlopen"
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11555 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11556 if ${ac_cv_lib_dl_dlopen+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 ac_check_lib_save_LIBS=$LIBS
11560 LIBS="-ldl $LIBS"
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11564 /* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11567 #ifdef __cplusplus
11568 extern "C"
11569 #endif
11570 char dlopen ();
11572 main ()
11574 return dlopen ();
11576 return 0;
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"; then :
11580 ac_cv_lib_dl_dlopen=yes
11581 else
11582 ac_cv_lib_dl_dlopen=no
11584 rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11586 LIBS=$ac_check_lib_save_LIBS
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11589 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11590 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11592 else
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11594 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11595 if ${ac_cv_lib_svld_dlopen+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 ac_check_lib_save_LIBS=$LIBS
11599 LIBS="-lsvld $LIBS"
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11606 #ifdef __cplusplus
11607 extern "C"
11608 #endif
11609 char dlopen ();
11611 main ()
11613 return dlopen ();
11615 return 0;
11617 _ACEOF
11618 if ac_fn_c_try_link "$LINENO"; then :
11619 ac_cv_lib_svld_dlopen=yes
11620 else
11621 ac_cv_lib_svld_dlopen=no
11623 rm -f core conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11628 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11629 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11631 else
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11633 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11634 if ${ac_cv_lib_dld_dld_link+:} false; then :
11635 $as_echo_n "(cached) " >&6
11636 else
11637 ac_check_lib_save_LIBS=$LIBS
11638 LIBS="-ldld $LIBS"
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 char dld_link ();
11650 main ()
11652 return dld_link ();
11654 return 0;
11656 _ACEOF
11657 if ac_fn_c_try_link "$LINENO"; then :
11658 ac_cv_lib_dld_dld_link=yes
11659 else
11660 ac_cv_lib_dld_dld_link=no
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11664 LIBS=$ac_check_lib_save_LIBS
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11667 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11668 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11669 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11688 esac
11690 if test "x$lt_cv_dlopen" != xno; then
11691 enable_dlopen=yes
11692 else
11693 enable_dlopen=no
11696 case $lt_cv_dlopen in
11697 dlopen)
11698 save_CPPFLAGS="$CPPFLAGS"
11699 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11701 save_LDFLAGS="$LDFLAGS"
11702 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11704 save_LIBS="$LIBS"
11705 LIBS="$lt_cv_dlopen_libs $LIBS"
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11708 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11709 if ${lt_cv_dlopen_self+:} false; then :
11710 $as_echo_n "(cached) " >&6
11711 else
11712 if test "$cross_compiling" = yes; then :
11713 lt_cv_dlopen_self=cross
11714 else
11715 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11716 lt_status=$lt_dlunknown
11717 cat > conftest.$ac_ext <<_LT_EOF
11718 #line $LINENO "configure"
11719 #include "confdefs.h"
11721 #if HAVE_DLFCN_H
11722 #include <dlfcn.h>
11723 #endif
11725 #include <stdio.h>
11727 #ifdef RTLD_GLOBAL
11728 # define LT_DLGLOBAL RTLD_GLOBAL
11729 #else
11730 # ifdef DL_GLOBAL
11731 # define LT_DLGLOBAL DL_GLOBAL
11732 # else
11733 # define LT_DLGLOBAL 0
11734 # endif
11735 #endif
11737 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11738 find out it does not work in some platform. */
11739 #ifndef LT_DLLAZY_OR_NOW
11740 # ifdef RTLD_LAZY
11741 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11742 # else
11743 # ifdef DL_LAZY
11744 # define LT_DLLAZY_OR_NOW DL_LAZY
11745 # else
11746 # ifdef RTLD_NOW
11747 # define LT_DLLAZY_OR_NOW RTLD_NOW
11748 # else
11749 # ifdef DL_NOW
11750 # define LT_DLLAZY_OR_NOW DL_NOW
11751 # else
11752 # define LT_DLLAZY_OR_NOW 0
11753 # endif
11754 # endif
11755 # endif
11756 # endif
11757 #endif
11759 /* When -fvisbility=hidden is used, assume the code has been annotated
11760 correspondingly for the symbols needed. */
11761 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11762 int fnord () __attribute__((visibility("default")));
11763 #endif
11765 int fnord () { return 42; }
11766 int main ()
11768 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11769 int status = $lt_dlunknown;
11771 if (self)
11773 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11774 else
11776 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11777 else puts (dlerror ());
11779 /* dlclose (self); */
11781 else
11782 puts (dlerror ());
11784 return status;
11786 _LT_EOF
11787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11788 (eval $ac_link) 2>&5
11789 ac_status=$?
11790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11791 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11792 (./conftest; exit; ) >&5 2>/dev/null
11793 lt_status=$?
11794 case x$lt_status in
11795 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11796 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11797 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11798 esac
11799 else :
11800 # compilation failed
11801 lt_cv_dlopen_self=no
11804 rm -fr conftest*
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11809 $as_echo "$lt_cv_dlopen_self" >&6; }
11811 if test "x$lt_cv_dlopen_self" = xyes; then
11812 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11814 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11815 if ${lt_cv_dlopen_self_static+:} false; then :
11816 $as_echo_n "(cached) " >&6
11817 else
11818 if test "$cross_compiling" = yes; then :
11819 lt_cv_dlopen_self_static=cross
11820 else
11821 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11822 lt_status=$lt_dlunknown
11823 cat > conftest.$ac_ext <<_LT_EOF
11824 #line $LINENO "configure"
11825 #include "confdefs.h"
11827 #if HAVE_DLFCN_H
11828 #include <dlfcn.h>
11829 #endif
11831 #include <stdio.h>
11833 #ifdef RTLD_GLOBAL
11834 # define LT_DLGLOBAL RTLD_GLOBAL
11835 #else
11836 # ifdef DL_GLOBAL
11837 # define LT_DLGLOBAL DL_GLOBAL
11838 # else
11839 # define LT_DLGLOBAL 0
11840 # endif
11841 #endif
11843 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11844 find out it does not work in some platform. */
11845 #ifndef LT_DLLAZY_OR_NOW
11846 # ifdef RTLD_LAZY
11847 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11848 # else
11849 # ifdef DL_LAZY
11850 # define LT_DLLAZY_OR_NOW DL_LAZY
11851 # else
11852 # ifdef RTLD_NOW
11853 # define LT_DLLAZY_OR_NOW RTLD_NOW
11854 # else
11855 # ifdef DL_NOW
11856 # define LT_DLLAZY_OR_NOW DL_NOW
11857 # else
11858 # define LT_DLLAZY_OR_NOW 0
11859 # endif
11860 # endif
11861 # endif
11862 # endif
11863 #endif
11865 /* When -fvisbility=hidden is used, assume the code has been annotated
11866 correspondingly for the symbols needed. */
11867 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11868 int fnord () __attribute__((visibility("default")));
11869 #endif
11871 int fnord () { return 42; }
11872 int main ()
11874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11875 int status = $lt_dlunknown;
11877 if (self)
11879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11880 else
11882 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11883 else puts (dlerror ());
11885 /* dlclose (self); */
11887 else
11888 puts (dlerror ());
11890 return status;
11892 _LT_EOF
11893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11894 (eval $ac_link) 2>&5
11895 ac_status=$?
11896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11897 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11898 (./conftest; exit; ) >&5 2>/dev/null
11899 lt_status=$?
11900 case x$lt_status in
11901 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11902 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11903 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11904 esac
11905 else :
11906 # compilation failed
11907 lt_cv_dlopen_self_static=no
11910 rm -fr conftest*
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11915 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11918 CPPFLAGS="$save_CPPFLAGS"
11919 LDFLAGS="$save_LDFLAGS"
11920 LIBS="$save_LIBS"
11922 esac
11924 case $lt_cv_dlopen_self in
11925 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11926 *) enable_dlopen_self=unknown ;;
11927 esac
11929 case $lt_cv_dlopen_self_static in
11930 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11931 *) enable_dlopen_self_static=unknown ;;
11932 esac
11951 striplib=
11952 old_striplib=
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11954 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11955 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11956 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11957 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959 $as_echo "yes" >&6; }
11960 else
11961 # FIXME - insert some real tests, host_os isn't really good enough
11962 case $host_os in
11963 darwin*)
11964 if test -n "$STRIP" ; then
11965 striplib="$STRIP -x"
11966 old_striplib="$STRIP -S"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11968 $as_echo "yes" >&6; }
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11978 esac
11992 # Report which library types will actually be built
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11994 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11996 $as_echo "$can_build_shared" >&6; }
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11999 $as_echo_n "checking whether to build shared libraries... " >&6; }
12000 test "$can_build_shared" = "no" && enable_shared=no
12002 # On AIX, shared libraries and static libraries use the same namespace, and
12003 # are all built from PIC.
12004 case $host_os in
12005 aix3*)
12006 test "$enable_shared" = yes && enable_static=no
12007 if test -n "$RANLIB"; then
12008 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12009 postinstall_cmds='$RANLIB $lib'
12013 aix[4-9]*)
12014 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12015 test "$enable_shared" = yes && enable_static=no
12018 esac
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12020 $as_echo "$enable_shared" >&6; }
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12023 $as_echo_n "checking whether to build static libraries... " >&6; }
12024 # Make sure either enable_shared or enable_static is yes.
12025 test "$enable_shared" = yes || enable_static=yes
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12027 $as_echo "$enable_static" >&6; }
12033 ac_ext=c
12034 ac_cpp='$CPP $CPPFLAGS'
12035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039 CC="$lt_save_CC"
12055 ac_config_commands="$ac_config_commands libtool"
12060 # Only expand once:
12066 if test "$enable_libevent_regress" = "yes"; then
12067 BUILD_REGRESS_TRUE=
12068 BUILD_REGRESS_FALSE='#'
12069 else
12070 BUILD_REGRESS_TRUE='#'
12071 BUILD_REGRESS_FALSE=
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12076 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12077 if ${ac_cv_search_inet_ntoa+:} false; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 ac_func_search_save_LIBS=$LIBS
12081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082 /* end confdefs.h. */
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 char inet_ntoa ();
12092 main ()
12094 return inet_ntoa ();
12096 return 0;
12098 _ACEOF
12099 for ac_lib in '' nsl; do
12100 if test -z "$ac_lib"; then
12101 ac_res="none required"
12102 else
12103 ac_res=-l$ac_lib
12104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12106 if ac_fn_c_try_link "$LINENO"; then :
12107 ac_cv_search_inet_ntoa=$ac_res
12109 rm -f core conftest.err conftest.$ac_objext \
12110 conftest$ac_exeext
12111 if ${ac_cv_search_inet_ntoa+:} false; then :
12112 break
12114 done
12115 if ${ac_cv_search_inet_ntoa+:} false; then :
12117 else
12118 ac_cv_search_inet_ntoa=no
12120 rm conftest.$ac_ext
12121 LIBS=$ac_func_search_save_LIBS
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12124 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12125 ac_res=$ac_cv_search_inet_ntoa
12126 if test "$ac_res" != no; then :
12127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12132 $as_echo_n "checking for library containing socket... " >&6; }
12133 if ${ac_cv_search_socket+:} false; then :
12134 $as_echo_n "(cached) " >&6
12135 else
12136 ac_func_search_save_LIBS=$LIBS
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char socket ();
12148 main ()
12150 return socket ();
12152 return 0;
12154 _ACEOF
12155 for ac_lib in '' socket; do
12156 if test -z "$ac_lib"; then
12157 ac_res="none required"
12158 else
12159 ac_res=-l$ac_lib
12160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12162 if ac_fn_c_try_link "$LINENO"; then :
12163 ac_cv_search_socket=$ac_res
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext
12167 if ${ac_cv_search_socket+:} false; then :
12168 break
12170 done
12171 if ${ac_cv_search_socket+:} false; then :
12173 else
12174 ac_cv_search_socket=no
12176 rm conftest.$ac_ext
12177 LIBS=$ac_func_search_save_LIBS
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12180 $as_echo "$ac_cv_search_socket" >&6; }
12181 ac_res=$ac_cv_search_socket
12182 if test "$ac_res" != no; then :
12183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12188 $as_echo_n "checking for library containing inet_aton... " >&6; }
12189 if ${ac_cv_search_inet_aton+:} 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. */
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 inet_aton ();
12204 main ()
12206 return inet_aton ();
12208 return 0;
12210 _ACEOF
12211 for ac_lib in '' resolv; 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"
12218 if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_search_inet_aton=$ac_res
12221 rm -f core conftest.err conftest.$ac_objext \
12222 conftest$ac_exeext
12223 if ${ac_cv_search_inet_aton+:} false; then :
12224 break
12226 done
12227 if ${ac_cv_search_inet_aton+:} false; then :
12229 else
12230 ac_cv_search_inet_aton=no
12232 rm conftest.$ac_ext
12233 LIBS=$ac_func_search_save_LIBS
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12236 $as_echo "$ac_cv_search_inet_aton" >&6; }
12237 ac_res=$ac_cv_search_inet_aton
12238 if test "$ac_res" != no; then :
12239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12244 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12245 if ${ac_cv_search_clock_gettime+:} false; then :
12246 $as_echo_n "(cached) " >&6
12247 else
12248 ac_func_search_save_LIBS=$LIBS
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char clock_gettime ();
12260 main ()
12262 return clock_gettime ();
12264 return 0;
12266 _ACEOF
12267 for ac_lib in '' rt; do
12268 if test -z "$ac_lib"; then
12269 ac_res="none required"
12270 else
12271 ac_res=-l$ac_lib
12272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 ac_cv_search_clock_gettime=$ac_res
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext
12279 if ${ac_cv_search_clock_gettime+:} false; then :
12280 break
12282 done
12283 if ${ac_cv_search_clock_gettime+:} false; then :
12285 else
12286 ac_cv_search_clock_gettime=no
12288 rm conftest.$ac_ext
12289 LIBS=$ac_func_search_save_LIBS
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12292 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12293 ac_res=$ac_cv_search_clock_gettime
12294 if test "$ac_res" != no; then :
12295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12300 $as_echo_n "checking for library containing sendfile... " >&6; }
12301 if ${ac_cv_search_sendfile+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 ac_func_search_save_LIBS=$LIBS
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12308 /* Override any GCC internal prototype to avoid an error.
12309 Use char because int might match the return type of a GCC
12310 builtin and then its argument prototype would still apply. */
12311 #ifdef __cplusplus
12312 extern "C"
12313 #endif
12314 char sendfile ();
12316 main ()
12318 return sendfile ();
12320 return 0;
12322 _ACEOF
12323 for ac_lib in '' sendfile; do
12324 if test -z "$ac_lib"; then
12325 ac_res="none required"
12326 else
12327 ac_res=-l$ac_lib
12328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12330 if ac_fn_c_try_link "$LINENO"; then :
12331 ac_cv_search_sendfile=$ac_res
12333 rm -f core conftest.err conftest.$ac_objext \
12334 conftest$ac_exeext
12335 if ${ac_cv_search_sendfile+:} false; then :
12336 break
12338 done
12339 if ${ac_cv_search_sendfile+:} false; then :
12341 else
12342 ac_cv_search_sendfile=no
12344 rm conftest.$ac_ext
12345 LIBS=$ac_func_search_save_LIBS
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12348 $as_echo "$ac_cv_search_sendfile" >&6; }
12349 ac_res=$ac_cv_search_sendfile
12350 if test "$ac_res" != no; then :
12351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12357 $as_echo_n "checking for WIN32... " >&6; }
12358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12359 /* end confdefs.h. */
12362 main ()
12365 #ifndef WIN32
12366 die horribly
12367 #endif
12370 return 0;
12372 _ACEOF
12373 if ac_fn_c_try_compile "$LINENO"; then :
12374 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12375 $as_echo "yes" >&6; }
12376 else
12377 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12383 $as_echo_n "checking for CYGWIN... " >&6; }
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12388 main ()
12391 #ifndef __CYGWIN__
12392 die horribly
12393 #endif
12396 return 0;
12398 _ACEOF
12399 if ac_fn_c_try_compile "$LINENO"; then :
12400 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12401 $as_echo "yes" >&6; }
12402 else
12403 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 for ac_header in zlib.h
12409 do :
12410 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12411 if test "x$ac_cv_header_zlib_h" = xyes; then :
12412 cat >>confdefs.h <<_ACEOF
12413 #define HAVE_ZLIB_H 1
12414 _ACEOF
12418 done
12421 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12422 save_LIBS="$LIBS"
12423 LIBS=""
12424 ZLIB_LIBS=""
12425 have_zlib=no
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12427 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12428 if ${ac_cv_search_inflateEnd+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 ac_func_search_save_LIBS=$LIBS
12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12433 /* end confdefs.h. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12438 #ifdef __cplusplus
12439 extern "C"
12440 #endif
12441 char inflateEnd ();
12443 main ()
12445 return inflateEnd ();
12447 return 0;
12449 _ACEOF
12450 for ac_lib in '' z; do
12451 if test -z "$ac_lib"; then
12452 ac_res="none required"
12453 else
12454 ac_res=-l$ac_lib
12455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12457 if ac_fn_c_try_link "$LINENO"; then :
12458 ac_cv_search_inflateEnd=$ac_res
12460 rm -f core conftest.err conftest.$ac_objext \
12461 conftest$ac_exeext
12462 if ${ac_cv_search_inflateEnd+:} false; then :
12463 break
12465 done
12466 if ${ac_cv_search_inflateEnd+:} false; then :
12468 else
12469 ac_cv_search_inflateEnd=no
12471 rm conftest.$ac_ext
12472 LIBS=$ac_func_search_save_LIBS
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12475 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12476 ac_res=$ac_cv_search_inflateEnd
12477 if test "$ac_res" != no; then :
12478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12479 have_zlib=yes
12480 ZLIB_LIBS="$LIBS"
12482 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12486 LIBS="$save_LIBS"
12489 if test "$have_zlib" = "yes"; then
12490 ZLIB_REGRESS_TRUE=
12491 ZLIB_REGRESS_FALSE='#'
12492 else
12493 ZLIB_REGRESS_TRUE='#'
12494 ZLIB_REGRESS_FALSE=
12498 if test "$bwin32" = true; then
12499 EV_LIB_WS32=-lws2_32
12500 EV_LIB_GDI=-lgdi32
12501 else
12502 EV_LIB_WS32=
12503 EV_LIB_GDI=
12509 for ac_header in openssl/bio.h
12510 do :
12511 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12512 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12513 cat >>confdefs.h <<_ACEOF
12514 #define HAVE_OPENSSL_BIO_H 1
12515 _ACEOF
12519 done
12522 if test "$enable_openssl" = "yes"; then
12523 save_LIBS="$LIBS"
12524 LIBS=""
12525 OPENSSL_LIBS=""
12526 have_openssl=no
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12528 $as_echo_n "checking for library containing SSL_new... " >&6; }
12529 if ${ac_cv_search_SSL_new+:} false; then :
12530 $as_echo_n "(cached) " >&6
12531 else
12532 ac_func_search_save_LIBS=$LIBS
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12536 /* Override any GCC internal prototype to avoid an error.
12537 Use char because int might match the return type of a GCC
12538 builtin and then its argument prototype would still apply. */
12539 #ifdef __cplusplus
12540 extern "C"
12541 #endif
12542 char SSL_new ();
12544 main ()
12546 return SSL_new ();
12548 return 0;
12550 _ACEOF
12551 for ac_lib in '' ssl; do
12552 if test -z "$ac_lib"; then
12553 ac_res="none required"
12554 else
12555 ac_res=-l$ac_lib
12556 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12558 if ac_fn_c_try_link "$LINENO"; then :
12559 ac_cv_search_SSL_new=$ac_res
12561 rm -f core conftest.err conftest.$ac_objext \
12562 conftest$ac_exeext
12563 if ${ac_cv_search_SSL_new+:} false; then :
12564 break
12566 done
12567 if ${ac_cv_search_SSL_new+:} false; then :
12569 else
12570 ac_cv_search_SSL_new=no
12572 rm conftest.$ac_ext
12573 LIBS=$ac_func_search_save_LIBS
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12576 $as_echo "$ac_cv_search_SSL_new" >&6; }
12577 ac_res=$ac_cv_search_SSL_new
12578 if test "$ac_res" != no; then :
12579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12580 have_openssl=yes
12581 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12583 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12585 else
12586 have_openssl=no
12589 LIBS="$save_LIBS"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12594 $as_echo_n "checking for ANSI C header files... " >&6; }
12595 if ${ac_cv_header_stdc+:} false; then :
12596 $as_echo_n "(cached) " >&6
12597 else
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12600 #include <stdlib.h>
12601 #include <stdarg.h>
12602 #include <string.h>
12603 #include <float.h>
12606 main ()
12610 return 0;
12612 _ACEOF
12613 if ac_fn_c_try_compile "$LINENO"; then :
12614 ac_cv_header_stdc=yes
12615 else
12616 ac_cv_header_stdc=no
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 if test $ac_cv_header_stdc = yes; then
12621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623 /* end confdefs.h. */
12624 #include <string.h>
12626 _ACEOF
12627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12628 $EGREP "memchr" >/dev/null 2>&1; then :
12630 else
12631 ac_cv_header_stdc=no
12633 rm -f conftest*
12637 if test $ac_cv_header_stdc = yes; then
12638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641 #include <stdlib.h>
12643 _ACEOF
12644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12645 $EGREP "free" >/dev/null 2>&1; then :
12647 else
12648 ac_cv_header_stdc=no
12650 rm -f conftest*
12654 if test $ac_cv_header_stdc = yes; then
12655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12656 if test "$cross_compiling" = yes; then :
12658 else
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 #include <ctype.h>
12662 #include <stdlib.h>
12663 #if ((' ' & 0x0FF) == 0x020)
12664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12666 #else
12667 # define ISLOWER(c) \
12668 (('a' <= (c) && (c) <= 'i') \
12669 || ('j' <= (c) && (c) <= 'r') \
12670 || ('s' <= (c) && (c) <= 'z'))
12671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12672 #endif
12674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12676 main ()
12678 int i;
12679 for (i = 0; i < 256; i++)
12680 if (XOR (islower (i), ISLOWER (i))
12681 || toupper (i) != TOUPPER (i))
12682 return 2;
12683 return 0;
12685 _ACEOF
12686 if ac_fn_c_try_run "$LINENO"; then :
12688 else
12689 ac_cv_header_stdc=no
12691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12692 conftest.$ac_objext conftest.beam conftest.$ac_ext
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12698 $as_echo "$ac_cv_header_stdc" >&6; }
12699 if test $ac_cv_header_stdc = yes; then
12701 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12705 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
12706 do :
12707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12708 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12710 cat >>confdefs.h <<_ACEOF
12711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12712 _ACEOF
12716 done
12718 for ac_header in sys/stat.h
12719 do :
12720 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12721 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12722 cat >>confdefs.h <<_ACEOF
12723 #define HAVE_SYS_STAT_H 1
12724 _ACEOF
12728 done
12730 for ac_header in sys/sysctl.h
12731 do :
12732 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12733 #ifdef HAVE_SYS_PARAM_H
12734 #include <sys/param.h>
12735 #endif
12738 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12739 cat >>confdefs.h <<_ACEOF
12740 #define HAVE_SYS_SYSCTL_H 1
12741 _ACEOF
12745 done
12747 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12749 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12751 /* end confdefs.h. */
12753 #include <sys/queue.h>
12754 #ifdef TAILQ_FOREACH
12756 #endif
12758 _ACEOF
12759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12760 $EGREP "yes" >/dev/null 2>&1; then :
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12762 $as_echo "yes" >&6; }
12764 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12766 else
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12771 rm -f conftest*
12775 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12777 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12781 #include <sys/time.h>
12782 #ifdef timeradd
12784 #endif
12786 _ACEOF
12787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12788 $EGREP "yes" >/dev/null 2>&1; then :
12790 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793 $as_echo "yes" >&6; }
12794 else
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796 $as_echo "no" >&6; }
12799 rm -f conftest*
12803 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12805 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12809 #include <sys/time.h>
12810 #ifdef timercmp
12812 #endif
12814 _ACEOF
12815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12816 $EGREP "yes" >/dev/null 2>&1; then :
12818 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12821 $as_echo "yes" >&6; }
12822 else
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824 $as_echo "no" >&6; }
12827 rm -f conftest*
12831 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12833 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 /* end confdefs.h. */
12837 #include <sys/time.h>
12838 #ifdef timerclear
12840 #endif
12842 _ACEOF
12843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12844 $EGREP "yes" >/dev/null 2>&1; then :
12846 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12849 $as_echo "yes" >&6; }
12850 else
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852 $as_echo "no" >&6; }
12855 rm -f conftest*
12859 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12861 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 #include <sys/time.h>
12866 #ifdef timerisset
12868 #endif
12870 _ACEOF
12871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12872 $EGREP "yes" >/dev/null 2>&1; then :
12874 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877 $as_echo "yes" >&6; }
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12880 $as_echo "no" >&6; }
12883 rm -f conftest*
12887 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12888 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12889 #include <sys/sysctl.h>
12892 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12893 ac_have_decl=1
12894 else
12895 ac_have_decl=0
12898 cat >>confdefs.h <<_ACEOF
12899 #define HAVE_DECL_CTL_KERN $ac_have_decl
12900 _ACEOF
12901 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12902 #include <sys/sysctl.h>
12905 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12906 ac_have_decl=1
12907 else
12908 ac_have_decl=0
12911 cat >>confdefs.h <<_ACEOF
12912 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
12913 _ACEOF
12914 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12915 #include <sys/sysctl.h>
12918 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12919 ac_have_decl=1
12920 else
12921 ac_have_decl=0
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
12926 _ACEOF
12927 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12928 #include <sys/sysctl.h>
12931 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12932 ac_have_decl=1
12933 else
12934 ac_have_decl=0
12937 cat >>confdefs.h <<_ACEOF
12938 #define HAVE_DECL_KERN_ARND $ac_have_decl
12939 _ACEOF
12943 if test x$bwin32 = xtrue; then
12944 BUILD_WIN32_TRUE=
12945 BUILD_WIN32_FALSE='#'
12946 else
12947 BUILD_WIN32_TRUE='#'
12948 BUILD_WIN32_FALSE=
12951 if test x$cygwin = xtrue; then
12952 BUILD_CYGWIN_TRUE=
12953 BUILD_CYGWIN_FALSE='#'
12954 else
12955 BUILD_CYGWIN_TRUE='#'
12956 BUILD_CYGWIN_FALSE=
12959 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12960 BUILD_WITH_NO_UNDEFINED_TRUE=
12961 BUILD_WITH_NO_UNDEFINED_FALSE='#'
12962 else
12963 BUILD_WITH_NO_UNDEFINED_TRUE='#'
12964 BUILD_WITH_NO_UNDEFINED_FALSE=
12968 if test x$bwin32 = xtrue; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12970 $as_echo_n "checking for library containing getservbyname... " >&6; }
12971 if ${ac_cv_search_getservbyname+:} false; then :
12972 $as_echo_n "(cached) " >&6
12973 else
12974 ac_func_search_save_LIBS=$LIBS
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12978 /* Override any GCC internal prototype to avoid an error.
12979 Use char because int might match the return type of a GCC
12980 builtin and then its argument prototype would still apply. */
12981 #ifdef __cplusplus
12982 extern "C"
12983 #endif
12984 char getservbyname ();
12986 main ()
12988 return getservbyname ();
12990 return 0;
12992 _ACEOF
12993 for ac_lib in '' ws2_32; do
12994 if test -z "$ac_lib"; then
12995 ac_res="none required"
12996 else
12997 ac_res=-l$ac_lib
12998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13000 if ac_fn_c_try_link "$LINENO"; then :
13001 ac_cv_search_getservbyname=$ac_res
13003 rm -f core conftest.err conftest.$ac_objext \
13004 conftest$ac_exeext
13005 if ${ac_cv_search_getservbyname+:} false; then :
13006 break
13008 done
13009 if ${ac_cv_search_getservbyname+:} false; then :
13011 else
13012 ac_cv_search_getservbyname=no
13014 rm conftest.$ac_ext
13015 LIBS=$ac_func_search_save_LIBS
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13018 $as_echo "$ac_cv_search_getservbyname" >&6; }
13019 ac_res=$ac_cv_search_getservbyname
13020 if test "$ac_res" != no; then :
13021 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13028 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13029 if ${ac_cv_c_const+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13036 main ()
13039 #ifndef __cplusplus
13040 /* Ultrix mips cc rejects this sort of thing. */
13041 typedef int charset[2];
13042 const charset cs = { 0, 0 };
13043 /* SunOS 4.1.1 cc rejects this. */
13044 char const *const *pcpcc;
13045 char **ppc;
13046 /* NEC SVR4.0.2 mips cc rejects this. */
13047 struct point {int x, y;};
13048 static struct point const zero = {0,0};
13049 /* AIX XL C 1.02.0.0 rejects this.
13050 It does not let you subtract one const X* pointer from another in
13051 an arm of an if-expression whose if-part is not a constant
13052 expression */
13053 const char *g = "string";
13054 pcpcc = &g + (g ? g-g : 0);
13055 /* HPUX 7.0 cc rejects these. */
13056 ++pcpcc;
13057 ppc = (char**) pcpcc;
13058 pcpcc = (char const *const *) ppc;
13059 { /* SCO 3.2v4 cc rejects this sort of thing. */
13060 char tx;
13061 char *t = &tx;
13062 char const *s = 0 ? (char *) 0 : (char const *) 0;
13064 *t++ = 0;
13065 if (s) return 0;
13067 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13068 int x[] = {25, 17};
13069 const int *foo = &x[0];
13070 ++foo;
13072 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13073 typedef const int *iptr;
13074 iptr p = 0;
13075 ++p;
13077 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13078 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13079 struct s { int j; const int *ap[3]; } bx;
13080 struct s *b = &bx; b->j = 5;
13082 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13083 const int foo = 10;
13084 if (!foo) return 0;
13086 return !cs[0] && !zero.x;
13087 #endif
13090 return 0;
13092 _ACEOF
13093 if ac_fn_c_try_compile "$LINENO"; then :
13094 ac_cv_c_const=yes
13095 else
13096 ac_cv_c_const=no
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13101 $as_echo "$ac_cv_c_const" >&6; }
13102 if test $ac_cv_c_const = no; then
13104 $as_echo "#define const /**/" >>confdefs.h
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13109 $as_echo_n "checking for inline... " >&6; }
13110 if ${ac_cv_c_inline+:} false; then :
13111 $as_echo_n "(cached) " >&6
13112 else
13113 ac_cv_c_inline=no
13114 for ac_kw in inline __inline__ __inline; do
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117 #ifndef __cplusplus
13118 typedef int foo_t;
13119 static $ac_kw foo_t static_foo () {return 0; }
13120 $ac_kw foo_t foo () {return 0; }
13121 #endif
13123 _ACEOF
13124 if ac_fn_c_try_compile "$LINENO"; then :
13125 ac_cv_c_inline=$ac_kw
13127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 test "$ac_cv_c_inline" != no && break
13129 done
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13133 $as_echo "$ac_cv_c_inline" >&6; }
13135 case $ac_cv_c_inline in
13136 inline | yes) ;;
13138 case $ac_cv_c_inline in
13139 no) ac_val=;;
13140 *) ac_val=$ac_cv_c_inline;;
13141 esac
13142 cat >>confdefs.h <<_ACEOF
13143 #ifndef __cplusplus
13144 #define inline $ac_val
13145 #endif
13146 _ACEOF
13148 esac
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13151 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13152 if ${ac_cv_header_time+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 #include <sys/types.h>
13158 #include <sys/time.h>
13159 #include <time.h>
13162 main ()
13164 if ((struct tm *) 0)
13165 return 0;
13167 return 0;
13169 _ACEOF
13170 if ac_fn_c_try_compile "$LINENO"; then :
13171 ac_cv_header_time=yes
13172 else
13173 ac_cv_header_time=no
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13178 $as_echo "$ac_cv_header_time" >&6; }
13179 if test $ac_cv_header_time = yes; then
13181 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13186 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13187 do :
13188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13189 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13190 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13191 cat >>confdefs.h <<_ACEOF
13192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13193 _ACEOF
13196 done
13198 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf arc4random_addrandom issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
13199 do :
13200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13202 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13203 cat >>confdefs.h <<_ACEOF
13204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13205 _ACEOF
13208 done
13210 for ac_func in umask
13211 do :
13212 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13213 if test "x$ac_cv_func_umask" = xyes; then :
13214 cat >>confdefs.h <<_ACEOF
13215 #define HAVE_UMASK 1
13216 _ACEOF
13219 done
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13223 $as_echo_n "checking for getaddrinfo... " >&6; }
13224 if ${libevent_cv_getaddrinfo+:} false; then :
13225 $as_echo_n "(cached) " >&6
13226 else
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13230 #ifdef HAVE_NETDB_H
13231 #include <netdb.h>
13232 #endif
13235 main ()
13238 getaddrinfo;
13242 return 0;
13244 _ACEOF
13245 if ac_fn_c_try_link "$LINENO"; then :
13246 libevent_cv_getaddrinfo=yes
13247 else
13248 libevent_cv_getaddrinfo=no
13251 rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13256 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13257 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13259 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13261 else
13263 for ac_func in getservbyname
13264 do :
13265 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13266 if test "x$ac_cv_func_getservbyname" = xyes; then :
13267 cat >>confdefs.h <<_ACEOF
13268 #define HAVE_GETSERVBYNAME 1
13269 _ACEOF
13272 done
13274 # Check for gethostbyname_r in all its glorious incompatible versions.
13275 # (This is cut-and-pasted from Tor, which based its logic on
13276 # Python's configure.in.)
13279 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13280 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13283 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13284 OLD_CFLAGS=$CFLAGS
13285 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13289 #include <netdb.h>
13292 main ()
13295 char *cp1, *cp2;
13296 struct hostent *h1, *h2;
13297 int i1, i2;
13298 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13301 return 0;
13303 _ACEOF
13304 if ac_fn_c_try_compile "$LINENO"; then :
13306 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13309 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13312 $as_echo "6" >&6; }
13314 else
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13319 #include <netdb.h>
13322 main ()
13325 char *cp1, *cp2;
13326 struct hostent *h1;
13327 int i1, i2;
13328 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13331 return 0;
13333 _ACEOF
13334 if ac_fn_c_try_compile "$LINENO"; then :
13336 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13339 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13342 $as_echo "5" >&6; }
13344 else
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13349 #include <netdb.h>
13352 main ()
13355 char *cp1;
13356 struct hostent *h1;
13357 struct hostent_data hd;
13358 (void) gethostbyname_r(cp1,h1,&hd);
13361 return 0;
13363 _ACEOF
13364 if ac_fn_c_try_compile "$LINENO"; then :
13366 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13369 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13372 $as_echo "3" >&6; }
13374 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13377 $as_echo "0" >&6; }
13380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 CFLAGS=$OLD_CFLAGS
13394 # The cast to long int works around a bug in the HP C Compiler
13395 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13396 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13397 # This bug is HP SR number 8606223364.
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13399 $as_echo_n "checking size of long... " >&6; }
13400 if ${ac_cv_sizeof_long+:} false; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13405 else
13406 if test "$ac_cv_type_long" = yes; then
13407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13409 as_fn_error 77 "cannot compute sizeof (long)
13410 See \`config.log' for more details" "$LINENO" 5; }
13411 else
13412 ac_cv_sizeof_long=0
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13418 $as_echo "$ac_cv_sizeof_long" >&6; }
13422 cat >>confdefs.h <<_ACEOF
13423 #define SIZEOF_LONG $ac_cv_sizeof_long
13424 _ACEOF
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13429 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13433 #define _GNU_SOURCE
13434 #include <fcntl.h>
13435 #ifdef F_SETFD
13437 #endif
13439 _ACEOF
13440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13441 $EGREP "yes" >/dev/null 2>&1; then :
13443 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13446 $as_echo "yes" >&6; }
13447 else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13451 rm -f conftest*
13454 needsignal=no
13455 haveselect=no
13456 if test x$bwin32 != xtrue; then
13457 for ac_func in select
13458 do :
13459 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13460 if test "x$ac_cv_func_select" = xyes; then :
13461 cat >>confdefs.h <<_ACEOF
13462 #define HAVE_SELECT 1
13463 _ACEOF
13464 haveselect=yes
13466 done
13468 if test "x$haveselect" = "xyes" ; then
13469 needsignal=yes
13472 if test "x$haveselect" = "xyes"; then
13473 SELECT_BACKEND_TRUE=
13474 SELECT_BACKEND_FALSE='#'
13475 else
13476 SELECT_BACKEND_TRUE='#'
13477 SELECT_BACKEND_FALSE=
13481 havepoll=no
13482 for ac_func in poll
13483 do :
13484 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13485 if test "x$ac_cv_func_poll" = xyes; then :
13486 cat >>confdefs.h <<_ACEOF
13487 #define HAVE_POLL 1
13488 _ACEOF
13489 havepoll=yes
13491 done
13493 if test "x$havepoll" = "xyes" ; then
13494 needsignal=yes
13496 if test "x$havepoll" = "xyes"; then
13497 POLL_BACKEND_TRUE=
13498 POLL_BACKEND_FALSE='#'
13499 else
13500 POLL_BACKEND_TRUE='#'
13501 POLL_BACKEND_FALSE=
13505 havedevpoll=no
13506 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13508 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13511 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13512 DEVPOLL_BACKEND_TRUE=
13513 DEVPOLL_BACKEND_FALSE='#'
13514 else
13515 DEVPOLL_BACKEND_TRUE='#'
13516 DEVPOLL_BACKEND_FALSE=
13520 havekqueue=no
13521 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13522 for ac_func in kqueue
13523 do :
13524 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13525 if test "x$ac_cv_func_kqueue" = xyes; then :
13526 cat >>confdefs.h <<_ACEOF
13527 #define HAVE_KQUEUE 1
13528 _ACEOF
13529 havekqueue=yes
13531 done
13533 if test "x$havekqueue" = "xyes" ; then
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13535 $as_echo_n "checking for working kqueue... " >&6; }
13536 if test "$cross_compiling" = yes; then :
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538 $as_echo "no" >&6; }
13539 else
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 #include <sys/types.h>
13543 #include <sys/time.h>
13544 #include <sys/event.h>
13545 #include <stdio.h>
13546 #include <unistd.h>
13547 #include <fcntl.h>
13550 main(int argc, char **argv)
13552 int kq;
13553 int n;
13554 int fd[2];
13555 struct kevent ev;
13556 struct timespec ts;
13557 char buf[8000];
13559 if (pipe(fd) == -1)
13560 exit(1);
13561 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13562 exit(1);
13564 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13567 if ((kq = kqueue()) == -1)
13568 exit(1);
13570 memset(&ev, 0, sizeof(ev));
13571 ev.ident = fd[1];
13572 ev.filter = EVFILT_WRITE;
13573 ev.flags = EV_ADD | EV_ENABLE;
13574 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13575 if (n == -1)
13576 exit(1);
13578 read(fd[0], buf, sizeof(buf));
13580 ts.tv_sec = 0;
13581 ts.tv_nsec = 0;
13582 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13583 if (n == -1 || n == 0)
13584 exit(1);
13586 exit(0);
13588 _ACEOF
13589 if ac_fn_c_try_run "$LINENO"; then :
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 $as_echo "yes" >&6; }
13593 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13595 havekqueue=yes
13597 else
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13602 conftest.$ac_objext conftest.beam conftest.$ac_ext
13607 if test "x$havekqueue" = "xyes"; then
13608 KQUEUE_BACKEND_TRUE=
13609 KQUEUE_BACKEND_FALSE='#'
13610 else
13611 KQUEUE_BACKEND_TRUE='#'
13612 KQUEUE_BACKEND_FALSE=
13616 haveepollsyscall=no
13617 haveepoll=no
13618 for ac_func in epoll_ctl
13619 do :
13620 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13621 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13622 cat >>confdefs.h <<_ACEOF
13623 #define HAVE_EPOLL_CTL 1
13624 _ACEOF
13625 haveepoll=yes
13627 done
13629 if test "x$haveepoll" = "xyes" ; then
13631 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13633 needsignal=yes
13635 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13636 if test "x$haveepoll" = "xno" ; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13638 $as_echo_n "checking for epoll system call... " >&6; }
13639 if test "$cross_compiling" = yes; then :
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 else
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 #include <stdint.h>
13646 #include <sys/param.h>
13647 #include <sys/types.h>
13648 #include <sys/syscall.h>
13649 #include <sys/epoll.h>
13650 #include <unistd.h>
13653 epoll_create(int size)
13655 return (syscall(__NR_epoll_create, size));
13659 main(int argc, char **argv)
13661 int epfd;
13663 epfd = epoll_create(256);
13664 exit (epfd == -1 ? 1 : 0);
13666 _ACEOF
13667 if ac_fn_c_try_run "$LINENO"; then :
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13669 $as_echo "yes" >&6; }
13671 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13673 needsignal=yes
13674 have_epoll=yes
13675 case " $LIBOBJS " in
13676 *" epoll_sub.$ac_objext "* ) ;;
13677 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13679 esac
13682 else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13687 conftest.$ac_objext conftest.beam conftest.$ac_ext
13692 if test "x$haveepoll" = "xyes"; then
13693 EPOLL_BACKEND_TRUE=
13694 EPOLL_BACKEND_FALSE='#'
13695 else
13696 EPOLL_BACKEND_TRUE='#'
13697 EPOLL_BACKEND_FALSE=
13701 haveeventports=no
13702 for ac_func in port_create
13703 do :
13704 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13705 if test "x$ac_cv_func_port_create" = xyes; then :
13706 cat >>confdefs.h <<_ACEOF
13707 #define HAVE_PORT_CREATE 1
13708 _ACEOF
13709 haveeventports=yes
13711 done
13713 if test "x$haveeventports" = "xyes" ; then
13715 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13717 needsignal=yes
13719 if test "x$haveeventports" = "xyes"; then
13720 EVPORT_BACKEND_TRUE=
13721 EVPORT_BACKEND_FALSE='#'
13722 else
13723 EVPORT_BACKEND_TRUE='#'
13724 EVPORT_BACKEND_FALSE=
13728 if test "x$bwin32" = "xtrue"; then
13729 needsignal=yes
13732 if test "x$needsignal" = "xyes"; then
13733 SIGNAL_SUPPORT_TRUE=
13734 SIGNAL_SUPPORT_FALSE='#'
13735 else
13736 SIGNAL_SUPPORT_TRUE='#'
13737 SIGNAL_SUPPORT_FALSE=
13741 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13742 if test "x$ac_cv_type_pid_t" = xyes; then :
13744 else
13746 cat >>confdefs.h <<_ACEOF
13747 #define pid_t int
13748 _ACEOF
13752 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13753 if test "x$ac_cv_type_size_t" = xyes; then :
13755 else
13757 cat >>confdefs.h <<_ACEOF
13758 #define size_t unsigned int
13759 _ACEOF
13763 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13764 if test "x$ac_cv_type_ssize_t" = xyes; then :
13766 else
13768 cat >>confdefs.h <<_ACEOF
13769 #define ssize_t int
13770 _ACEOF
13775 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13776 #include <stdint.h>
13777 #elif defined(HAVE_INTTYPES_H)
13778 #include <inttypes.h>
13779 #endif
13780 #ifdef HAVE_SYS_TYPES_H
13781 #include <sys/types.h>
13782 #endif
13784 if test "x$ac_cv_type_uint64_t" = xyes; then :
13786 cat >>confdefs.h <<_ACEOF
13787 #define HAVE_UINT64_T 1
13788 _ACEOF
13792 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13793 #include <stdint.h>
13794 #elif defined(HAVE_INTTYPES_H)
13795 #include <inttypes.h>
13796 #endif
13797 #ifdef HAVE_SYS_TYPES_H
13798 #include <sys/types.h>
13799 #endif
13801 if test "x$ac_cv_type_uint32_t" = xyes; then :
13803 cat >>confdefs.h <<_ACEOF
13804 #define HAVE_UINT32_T 1
13805 _ACEOF
13809 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13810 #include <stdint.h>
13811 #elif defined(HAVE_INTTYPES_H)
13812 #include <inttypes.h>
13813 #endif
13814 #ifdef HAVE_SYS_TYPES_H
13815 #include <sys/types.h>
13816 #endif
13818 if test "x$ac_cv_type_uint16_t" = xyes; then :
13820 cat >>confdefs.h <<_ACEOF
13821 #define HAVE_UINT16_T 1
13822 _ACEOF
13826 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13827 #include <stdint.h>
13828 #elif defined(HAVE_INTTYPES_H)
13829 #include <inttypes.h>
13830 #endif
13831 #ifdef HAVE_SYS_TYPES_H
13832 #include <sys/types.h>
13833 #endif
13835 if test "x$ac_cv_type_uint8_t" = xyes; then :
13837 cat >>confdefs.h <<_ACEOF
13838 #define HAVE_UINT8_T 1
13839 _ACEOF
13843 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13844 #include <stdint.h>
13845 #elif defined(HAVE_INTTYPES_H)
13846 #include <inttypes.h>
13847 #endif
13848 #ifdef HAVE_SYS_TYPES_H
13849 #include <sys/types.h>
13850 #endif
13852 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13854 cat >>confdefs.h <<_ACEOF
13855 #define HAVE_UINTPTR_T 1
13856 _ACEOF
13862 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13863 #include <sys/types.h>
13864 #endif
13865 #ifdef HAVE_SYS_SELECT_H
13866 #include <sys/select.h>
13867 #endif
13869 if test "x$ac_cv_type_fd_mask" = xyes; then :
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_FD_MASK 1
13873 _ACEOF
13879 # The cast to long int works around a bug in the HP C Compiler
13880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13881 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13882 # This bug is HP SR number 8606223364.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13884 $as_echo_n "checking size of long long... " >&6; }
13885 if ${ac_cv_sizeof_long_long+:} false; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13890 else
13891 if test "$ac_cv_type_long_long" = yes; then
13892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13894 as_fn_error 77 "cannot compute sizeof (long long)
13895 See \`config.log' for more details" "$LINENO" 5; }
13896 else
13897 ac_cv_sizeof_long_long=0
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13903 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13907 cat >>confdefs.h <<_ACEOF
13908 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13909 _ACEOF
13912 # The cast to long int works around a bug in the HP C Compiler
13913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13915 # This bug is HP SR number 8606223364.
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13917 $as_echo_n "checking size of long... " >&6; }
13918 if ${ac_cv_sizeof_long+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13923 else
13924 if test "$ac_cv_type_long" = yes; then
13925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13927 as_fn_error 77 "cannot compute sizeof (long)
13928 See \`config.log' for more details" "$LINENO" 5; }
13929 else
13930 ac_cv_sizeof_long=0
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13936 $as_echo "$ac_cv_sizeof_long" >&6; }
13940 cat >>confdefs.h <<_ACEOF
13941 #define SIZEOF_LONG $ac_cv_sizeof_long
13942 _ACEOF
13945 # The cast to long int works around a bug in the HP C Compiler
13946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13948 # This bug is HP SR number 8606223364.
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13950 $as_echo_n "checking size of int... " >&6; }
13951 if ${ac_cv_sizeof_int+:} false; then :
13952 $as_echo_n "(cached) " >&6
13953 else
13954 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13956 else
13957 if test "$ac_cv_type_int" = yes; then
13958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13960 as_fn_error 77 "cannot compute sizeof (int)
13961 See \`config.log' for more details" "$LINENO" 5; }
13962 else
13963 ac_cv_sizeof_int=0
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13969 $as_echo "$ac_cv_sizeof_int" >&6; }
13973 cat >>confdefs.h <<_ACEOF
13974 #define SIZEOF_INT $ac_cv_sizeof_int
13975 _ACEOF
13978 # The cast to long int works around a bug in the HP C Compiler
13979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13981 # This bug is HP SR number 8606223364.
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13983 $as_echo_n "checking size of short... " >&6; }
13984 if ${ac_cv_sizeof_short+:} false; then :
13985 $as_echo_n "(cached) " >&6
13986 else
13987 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13989 else
13990 if test "$ac_cv_type_short" = yes; then
13991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13993 as_fn_error 77 "cannot compute sizeof (short)
13994 See \`config.log' for more details" "$LINENO" 5; }
13995 else
13996 ac_cv_sizeof_short=0
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14002 $as_echo "$ac_cv_sizeof_short" >&6; }
14006 cat >>confdefs.h <<_ACEOF
14007 #define SIZEOF_SHORT $ac_cv_sizeof_short
14008 _ACEOF
14011 # The cast to long int works around a bug in the HP C Compiler
14012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14014 # This bug is HP SR number 8606223364.
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14016 $as_echo_n "checking size of size_t... " >&6; }
14017 if ${ac_cv_sizeof_size_t+:} false; then :
14018 $as_echo_n "(cached) " >&6
14019 else
14020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14022 else
14023 if test "$ac_cv_type_size_t" = yes; then
14024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14026 as_fn_error 77 "cannot compute sizeof (size_t)
14027 See \`config.log' for more details" "$LINENO" 5; }
14028 else
14029 ac_cv_sizeof_size_t=0
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14035 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14039 cat >>confdefs.h <<_ACEOF
14040 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14041 _ACEOF
14044 # The cast to long int works around a bug in the HP C Compiler
14045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14047 # This bug is HP SR number 8606223364.
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14049 $as_echo_n "checking size of void *... " >&6; }
14050 if ${ac_cv_sizeof_void_p+:} false; then :
14051 $as_echo_n "(cached) " >&6
14052 else
14053 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14055 else
14056 if test "$ac_cv_type_void_p" = yes; then
14057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14059 as_fn_error 77 "cannot compute sizeof (void *)
14060 See \`config.log' for more details" "$LINENO" 5; }
14061 else
14062 ac_cv_sizeof_void_p=0
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14068 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14072 cat >>confdefs.h <<_ACEOF
14073 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14074 _ACEOF
14078 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14079 #include <sys/types.h>
14080 #ifdef HAVE_NETINET_IN_H
14081 #include <netinet/in.h>
14082 #endif
14083 #ifdef HAVE_NETINET_IN6_H
14084 #include <netinet/in6.h>
14085 #endif
14086 #ifdef HAVE_SYS_SOCKET_H
14087 #include <sys/socket.h>
14088 #endif
14089 #ifdef HAVE_NETDB_H
14090 #include <netdb.h>
14091 #endif
14092 #ifdef WIN32
14093 #define WIN32_WINNT 0x400
14094 #define _WIN32_WINNT 0x400
14095 #define WIN32_LEAN_AND_MEAN
14096 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14097 #include <winsock.h>
14098 #else
14099 #include <winsock2.h>
14100 #include <ws2tcpip.h>
14101 #endif
14102 #endif
14105 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14107 cat >>confdefs.h <<_ACEOF
14108 #define HAVE_STRUCT_IN6_ADDR 1
14109 _ACEOF
14113 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14114 #include <sys/types.h>
14115 #ifdef HAVE_NETINET_IN_H
14116 #include <netinet/in.h>
14117 #endif
14118 #ifdef HAVE_NETINET_IN6_H
14119 #include <netinet/in6.h>
14120 #endif
14121 #ifdef HAVE_SYS_SOCKET_H
14122 #include <sys/socket.h>
14123 #endif
14124 #ifdef HAVE_NETDB_H
14125 #include <netdb.h>
14126 #endif
14127 #ifdef WIN32
14128 #define WIN32_WINNT 0x400
14129 #define _WIN32_WINNT 0x400
14130 #define WIN32_LEAN_AND_MEAN
14131 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14132 #include <winsock.h>
14133 #else
14134 #include <winsock2.h>
14135 #include <ws2tcpip.h>
14136 #endif
14137 #endif
14140 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14142 cat >>confdefs.h <<_ACEOF
14143 #define HAVE_STRUCT_SOCKADDR_IN6 1
14144 _ACEOF
14148 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14149 #include <sys/types.h>
14150 #ifdef HAVE_NETINET_IN_H
14151 #include <netinet/in.h>
14152 #endif
14153 #ifdef HAVE_NETINET_IN6_H
14154 #include <netinet/in6.h>
14155 #endif
14156 #ifdef HAVE_SYS_SOCKET_H
14157 #include <sys/socket.h>
14158 #endif
14159 #ifdef HAVE_NETDB_H
14160 #include <netdb.h>
14161 #endif
14162 #ifdef WIN32
14163 #define WIN32_WINNT 0x400
14164 #define _WIN32_WINNT 0x400
14165 #define WIN32_LEAN_AND_MEAN
14166 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14167 #include <winsock.h>
14168 #else
14169 #include <winsock2.h>
14170 #include <ws2tcpip.h>
14171 #endif
14172 #endif
14175 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14177 cat >>confdefs.h <<_ACEOF
14178 #define HAVE_SA_FAMILY_T 1
14179 _ACEOF
14183 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14184 #include <sys/types.h>
14185 #ifdef HAVE_NETINET_IN_H
14186 #include <netinet/in.h>
14187 #endif
14188 #ifdef HAVE_NETINET_IN6_H
14189 #include <netinet/in6.h>
14190 #endif
14191 #ifdef HAVE_SYS_SOCKET_H
14192 #include <sys/socket.h>
14193 #endif
14194 #ifdef HAVE_NETDB_H
14195 #include <netdb.h>
14196 #endif
14197 #ifdef WIN32
14198 #define WIN32_WINNT 0x400
14199 #define _WIN32_WINNT 0x400
14200 #define WIN32_LEAN_AND_MEAN
14201 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14202 #include <winsock.h>
14203 #else
14204 #include <winsock2.h>
14205 #include <ws2tcpip.h>
14206 #endif
14207 #endif
14210 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14212 cat >>confdefs.h <<_ACEOF
14213 #define HAVE_STRUCT_ADDRINFO 1
14214 _ACEOF
14218 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14219 #include <sys/types.h>
14220 #ifdef HAVE_NETINET_IN_H
14221 #include <netinet/in.h>
14222 #endif
14223 #ifdef HAVE_NETINET_IN6_H
14224 #include <netinet/in6.h>
14225 #endif
14226 #ifdef HAVE_SYS_SOCKET_H
14227 #include <sys/socket.h>
14228 #endif
14229 #ifdef HAVE_NETDB_H
14230 #include <netdb.h>
14231 #endif
14232 #ifdef WIN32
14233 #define WIN32_WINNT 0x400
14234 #define _WIN32_WINNT 0x400
14235 #define WIN32_LEAN_AND_MEAN
14236 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14237 #include <winsock.h>
14238 #else
14239 #include <winsock2.h>
14240 #include <ws2tcpip.h>
14241 #endif
14242 #endif
14245 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14247 cat >>confdefs.h <<_ACEOF
14248 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14249 _ACEOF
14254 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14255 #ifdef HAVE_NETINET_IN_H
14256 #include <netinet/in.h>
14257 #endif
14258 #ifdef HAVE_NETINET_IN6_H
14259 #include <netinet/in6.h>
14260 #endif
14261 #ifdef HAVE_SYS_SOCKET_H
14262 #include <sys/socket.h>
14263 #endif
14264 #ifdef WIN32
14265 #define WIN32_WINNT 0x400
14266 #define _WIN32_WINNT 0x400
14267 #define WIN32_LEAN_AND_MEAN
14268 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14269 #include <winsock.h>
14270 #else
14271 #include <winsock2.h>
14272 #include <ws2tcpip.h>
14273 #endif
14274 #endif
14277 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14279 cat >>confdefs.h <<_ACEOF
14280 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14281 _ACEOF
14285 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14286 #ifdef HAVE_NETINET_IN_H
14287 #include <netinet/in.h>
14288 #endif
14289 #ifdef HAVE_NETINET_IN6_H
14290 #include <netinet/in6.h>
14291 #endif
14292 #ifdef HAVE_SYS_SOCKET_H
14293 #include <sys/socket.h>
14294 #endif
14295 #ifdef WIN32
14296 #define WIN32_WINNT 0x400
14297 #define _WIN32_WINNT 0x400
14298 #define WIN32_LEAN_AND_MEAN
14299 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14300 #include <winsock.h>
14301 #else
14302 #include <winsock2.h>
14303 #include <ws2tcpip.h>
14304 #endif
14305 #endif
14308 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14310 cat >>confdefs.h <<_ACEOF
14311 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14312 _ACEOF
14316 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14317 #ifdef HAVE_NETINET_IN_H
14318 #include <netinet/in.h>
14319 #endif
14320 #ifdef HAVE_NETINET_IN6_H
14321 #include <netinet/in6.h>
14322 #endif
14323 #ifdef HAVE_SYS_SOCKET_H
14324 #include <sys/socket.h>
14325 #endif
14326 #ifdef WIN32
14327 #define WIN32_WINNT 0x400
14328 #define _WIN32_WINNT 0x400
14329 #define WIN32_LEAN_AND_MEAN
14330 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14331 #include <winsock.h>
14332 #else
14333 #include <winsock2.h>
14334 #include <ws2tcpip.h>
14335 #endif
14336 #endif
14339 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14341 cat >>confdefs.h <<_ACEOF
14342 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14343 _ACEOF
14347 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14348 #ifdef HAVE_NETINET_IN_H
14349 #include <netinet/in.h>
14350 #endif
14351 #ifdef HAVE_NETINET_IN6_H
14352 #include <netinet/in6.h>
14353 #endif
14354 #ifdef HAVE_SYS_SOCKET_H
14355 #include <sys/socket.h>
14356 #endif
14357 #ifdef WIN32
14358 #define WIN32_WINNT 0x400
14359 #define _WIN32_WINNT 0x400
14360 #define WIN32_LEAN_AND_MEAN
14361 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14362 #include <winsock.h>
14363 #else
14364 #include <winsock2.h>
14365 #include <ws2tcpip.h>
14366 #endif
14367 #endif
14370 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14372 cat >>confdefs.h <<_ACEOF
14373 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14374 _ACEOF
14378 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14379 #ifdef HAVE_NETINET_IN_H
14380 #include <netinet/in.h>
14381 #endif
14382 #ifdef HAVE_NETINET_IN6_H
14383 #include <netinet/in6.h>
14384 #endif
14385 #ifdef HAVE_SYS_SOCKET_H
14386 #include <sys/socket.h>
14387 #endif
14388 #ifdef WIN32
14389 #define WIN32_WINNT 0x400
14390 #define _WIN32_WINNT 0x400
14391 #define WIN32_LEAN_AND_MEAN
14392 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14393 #include <winsock.h>
14394 #else
14395 #include <winsock2.h>
14396 #include <ws2tcpip.h>
14397 #endif
14398 #endif
14401 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14403 cat >>confdefs.h <<_ACEOF
14404 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14405 _ACEOF
14409 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14410 #ifdef HAVE_NETINET_IN_H
14411 #include <netinet/in.h>
14412 #endif
14413 #ifdef HAVE_NETINET_IN6_H
14414 #include <netinet/in6.h>
14415 #endif
14416 #ifdef HAVE_SYS_SOCKET_H
14417 #include <sys/socket.h>
14418 #endif
14419 #ifdef WIN32
14420 #define WIN32_WINNT 0x400
14421 #define _WIN32_WINNT 0x400
14422 #define WIN32_LEAN_AND_MEAN
14423 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14424 #include <winsock.h>
14425 #else
14426 #include <winsock2.h>
14427 #include <ws2tcpip.h>
14428 #endif
14429 #endif
14432 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14436 _ACEOF
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14443 $as_echo_n "checking for socklen_t... " >&6; }
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14447 #include <sys/types.h>
14448 #include <sys/socket.h>
14450 main ()
14452 socklen_t x;
14454 return 0;
14456 _ACEOF
14457 if ac_fn_c_try_compile "$LINENO"; then :
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14459 $as_echo "yes" >&6; }
14460 else
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462 $as_echo "no" >&6; }
14464 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14471 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14476 main ()
14478 const char *cp = __func__;
14480 return 0;
14482 _ACEOF
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14485 $as_echo "yes" >&6; }
14486 else
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14488 $as_echo "no" >&6; }
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14490 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14495 main ()
14497 const char *cp = __FUNCTION__;
14499 return 0;
14501 _ACEOF
14502 if ac_fn_c_try_compile "$LINENO"; then :
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14504 $as_echo "yes" >&6; }
14506 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14508 else
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510 $as_echo "no" >&6; }
14512 $as_echo "#define __func__ __FILE__" >>confdefs.h
14515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14520 # check if we can compile with pthreads
14521 have_pthreads=no
14522 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14526 ac_ext=c
14527 ac_cpp='$CPP $CPPFLAGS'
14528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14532 acx_pthread_ok=no
14534 # We used to check for pthread.h first, but this fails if pthread.h
14535 # requires special compiler flags (e.g. on True64 or Sequent).
14536 # It gets checked for in the link test anyway.
14538 # First of all, check if the user has set any of the PTHREAD_LIBS,
14539 # etcetera environment variables, and if threads linking works using
14540 # them:
14541 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14542 save_CFLAGS="$CFLAGS"
14543 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14544 save_LIBS="$LIBS"
14545 LIBS="$PTHREAD_LIBS $LIBS"
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14547 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14551 /* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14554 #ifdef __cplusplus
14555 extern "C"
14556 #endif
14557 char pthread_join ();
14559 main ()
14561 return pthread_join ();
14563 return 0;
14565 _ACEOF
14566 if ac_fn_c_try_link "$LINENO"; then :
14567 acx_pthread_ok=yes
14569 rm -f core conftest.err conftest.$ac_objext \
14570 conftest$ac_exeext conftest.$ac_ext
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14572 $as_echo "$acx_pthread_ok" >&6; }
14573 if test x"$acx_pthread_ok" = xno; then
14574 PTHREAD_LIBS=""
14575 PTHREAD_CFLAGS=""
14577 LIBS="$save_LIBS"
14578 CFLAGS="$save_CFLAGS"
14581 # We must check for the threads library under a number of different
14582 # names; the ordering is very important because some systems
14583 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14584 # libraries is broken (non-POSIX).
14586 # Create a list of thread flags to try. Items starting with a "-" are
14587 # C compiler flags, and other items are library names, except for "none"
14588 # which indicates that we try without any flags at all, and "pthread-config"
14589 # which is a program returning the flags for the Pth emulation library.
14591 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14593 # The ordering *is* (sometimes) important. Some notes on the
14594 # individual items follow:
14596 # pthreads: AIX (must check this before -lpthread)
14597 # none: in case threads are in libc; should be tried before -Kthread and
14598 # other compiler flags to prevent continual compiler warnings
14599 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14600 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14601 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14602 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14603 # -pthreads: Solaris/gcc
14604 # -mthreads: Mingw32/gcc, Lynx/gcc
14605 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14606 # doesn't hurt to check since this sometimes defines pthreads too;
14607 # also defines -D_REENTRANT)
14608 # ... -mt is also the pthreads flag for HP/aCC
14609 # pthread: Linux, etcetera
14610 # --thread-safe: KAI C++
14611 # pthread-config: use pthread-config program (for GNU Pth library)
14613 case "${host_cpu}-${host_os}" in
14614 *solaris*)
14616 # On Solaris (at least, for some versions), libc contains stubbed
14617 # (non-functional) versions of the pthreads routines, so link-based
14618 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14619 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14620 # a function called by this macro, so we could check for that, but
14621 # who knows whether they'll stub that too in a future libc.) So,
14622 # we'll just look for -pthreads and -lpthread first:
14624 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14626 esac
14628 if test x"$acx_pthread_ok" = xno; then
14629 for flag in $acx_pthread_flags; do
14631 case $flag in
14632 none)
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14634 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14639 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14640 PTHREAD_CFLAGS="$flag"
14643 pthread-config)
14644 # Extract the first word of "pthread-config", so it can be a program name with args.
14645 set dummy pthread-config; ac_word=$2
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14647 $as_echo_n "checking for $ac_word... " >&6; }
14648 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14649 $as_echo_n "(cached) " >&6
14650 else
14651 if test -n "$acx_pthread_config"; then
14652 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14653 else
14654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655 for as_dir in $PATH
14657 IFS=$as_save_IFS
14658 test -z "$as_dir" && as_dir=.
14659 for ac_exec_ext in '' $ac_executable_extensions; do
14660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14661 ac_cv_prog_acx_pthread_config="yes"
14662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14663 break 2
14665 done
14666 done
14667 IFS=$as_save_IFS
14669 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14672 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14673 if test -n "$acx_pthread_config"; then
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14675 $as_echo "$acx_pthread_config" >&6; }
14676 else
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14678 $as_echo "no" >&6; }
14682 if test x"$acx_pthread_config" = xno; then continue; fi
14683 PTHREAD_CFLAGS="`pthread-config --cflags`"
14684 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14689 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14690 PTHREAD_LIBS="-l$flag"
14692 esac
14694 save_LIBS="$LIBS"
14695 save_CFLAGS="$CFLAGS"
14696 LIBS="$PTHREAD_LIBS $LIBS"
14697 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14699 # Check for various functions. We must include pthread.h,
14700 # since some functions may be macros. (On the Sequent, we
14701 # need a special flag -Kthread to make this header compile.)
14702 # We check for pthread_join because it is in -lpthread on IRIX
14703 # while pthread_create is in libc. We check for pthread_attr_init
14704 # due to DEC craziness with -lpthreads. We check for
14705 # pthread_cleanup_push because it is one of the few pthread
14706 # functions on Solaris that doesn't have a non-functional libc stub.
14707 # We try pthread_create on general principles.
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 #include <pthread.h>
14712 main ()
14714 pthread_t th; pthread_join(th, 0);
14715 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14716 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14718 return 0;
14720 _ACEOF
14721 if ac_fn_c_try_link "$LINENO"; then :
14722 acx_pthread_ok=yes
14724 rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14727 LIBS="$save_LIBS"
14728 CFLAGS="$save_CFLAGS"
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14731 $as_echo "$acx_pthread_ok" >&6; }
14732 if test "x$acx_pthread_ok" = xyes; then
14733 break;
14736 PTHREAD_LIBS=""
14737 PTHREAD_CFLAGS=""
14738 done
14741 # Various other checks:
14742 if test "x$acx_pthread_ok" = xyes; then
14743 save_LIBS="$LIBS"
14744 LIBS="$PTHREAD_LIBS $LIBS"
14745 save_CFLAGS="$CFLAGS"
14746 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14748 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14750 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14751 attr_name=unknown
14752 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14755 #include <pthread.h>
14757 main ()
14759 int attr=$attr; return attr;
14761 return 0;
14763 _ACEOF
14764 if ac_fn_c_try_link "$LINENO"; then :
14765 attr_name=$attr; break
14767 rm -f core conftest.err conftest.$ac_objext \
14768 conftest$ac_exeext conftest.$ac_ext
14769 done
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14771 $as_echo "$attr_name" >&6; }
14772 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14774 cat >>confdefs.h <<_ACEOF
14775 #define PTHREAD_CREATE_JOINABLE $attr_name
14776 _ACEOF
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14781 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14782 flag=no
14783 case "${host_cpu}-${host_os}" in
14784 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14785 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14786 esac
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14788 $as_echo "${flag}" >&6; }
14789 if test "x$flag" != xno; then
14790 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14793 LIBS="$save_LIBS"
14794 CFLAGS="$save_CFLAGS"
14796 # More AIX lossage: must compile with xlc_r or cc_r
14797 if test x"$GCC" != xyes; then
14798 for ac_prog in xlc_r cc_r
14800 # Extract the first word of "$ac_prog", so it can be a program name with args.
14801 set dummy $ac_prog; ac_word=$2
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14803 $as_echo_n "checking for $ac_word... " >&6; }
14804 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14805 $as_echo_n "(cached) " >&6
14806 else
14807 if test -n "$PTHREAD_CC"; then
14808 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14809 else
14810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14811 for as_dir in $PATH
14813 IFS=$as_save_IFS
14814 test -z "$as_dir" && as_dir=.
14815 for ac_exec_ext in '' $ac_executable_extensions; do
14816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14817 ac_cv_prog_PTHREAD_CC="$ac_prog"
14818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14819 break 2
14821 done
14822 done
14823 IFS=$as_save_IFS
14827 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14828 if test -n "$PTHREAD_CC"; then
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14830 $as_echo "$PTHREAD_CC" >&6; }
14831 else
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833 $as_echo "no" >&6; }
14837 test -n "$PTHREAD_CC" && break
14838 done
14839 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14841 else
14842 PTHREAD_CC=$CC
14844 else
14845 PTHREAD_CC="$CC"
14852 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14853 if test x"$acx_pthread_ok" = xyes; then
14856 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14858 have_pthreads=yes
14860 else
14861 acx_pthread_ok=no
14864 ac_ext=c
14865 ac_cpp='$CPP $CPPFLAGS'
14866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14871 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14872 # The cast to long int works around a bug in the HP C Compiler
14873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14875 # This bug is HP SR number 8606223364.
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14877 $as_echo_n "checking size of pthread_t... " >&6; }
14878 if ${ac_cv_sizeof_pthread_t+:} false; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14882 #include <pthread.h>
14884 "; then :
14886 else
14887 if test "$ac_cv_type_pthread_t" = yes; then
14888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14890 as_fn_error 77 "cannot compute sizeof (pthread_t)
14891 See \`config.log' for more details" "$LINENO" 5; }
14892 else
14893 ac_cv_sizeof_pthread_t=0
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14899 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14903 cat >>confdefs.h <<_ACEOF
14904 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14905 _ACEOF
14909 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14910 PTHREADS_TRUE=
14911 PTHREADS_FALSE='#'
14912 else
14913 PTHREADS_TRUE='#'
14914 PTHREADS_FALSE=
14918 # check if we should compile locking into the library
14919 if test x$enable_thread_support = xno; then
14921 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14925 # check if we should hard-code the mm functions.
14926 if test x$enable_malloc_replacement = xno; then
14928 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14932 # check if we should hard-code debugging out
14933 if test x$enable_debug_mode = xno; then
14935 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14939 # check if we have and should use openssl
14940 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14941 OPENSSL_TRUE=
14942 OPENSSL_FALSE='#'
14943 else
14944 OPENSSL_TRUE='#'
14945 OPENSSL_FALSE=
14949 # Add some more warnings which we use in development but not in the
14950 # released versions. (Some relevant gcc versions can't handle these.)
14951 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14954 /* end confdefs.h. */
14957 main ()
14960 #if !defined(__GNUC__) || (__GNUC__ < 4)
14961 #error
14962 #endif
14964 return 0;
14966 _ACEOF
14967 if ac_fn_c_try_compile "$LINENO"; then :
14968 have_gcc4=yes
14969 else
14970 have_gcc4=no
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14978 main ()
14981 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14982 #error
14983 #endif
14985 return 0;
14987 _ACEOF
14988 if ac_fn_c_try_compile "$LINENO"; then :
14989 have_gcc42=yes
14990 else
14991 have_gcc42=no
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14999 main ()
15002 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15003 #error
15004 #endif
15006 return 0;
15008 _ACEOF
15009 if ac_fn_c_try_compile "$LINENO"; then :
15010 have_gcc45=yes
15011 else
15012 have_gcc45=no
15014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15020 main ()
15023 #if !defined(__clang__)
15024 #error
15025 #endif
15027 return 0;
15029 _ACEOF
15030 if ac_fn_c_try_compile "$LINENO"; then :
15031 have_clang=yes
15032 else
15033 have_clang=no
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
15038 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15040 if test x$have_gcc4 = xyes ; then
15041 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15042 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15043 #CFLAGS="$CFLAGS -Wold-style-definition"
15046 if test x$have_gcc42 = xyes ; then
15047 # These warnings break gcc 4.0.2 and work on gcc 4.2
15048 CFLAGS="$CFLAGS -Waddress"
15051 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15052 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15053 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15056 if test x$have_gcc45 = xyes ; then
15057 # These warnings work on gcc 4.5
15058 CFLAGS="$CFLAGS -Wlogical-op"
15061 if test x$have_clang = xyes; then
15062 # Disable the unused-function warnings, because these trigger
15063 # for minheap-internal.h related code.
15064 CFLAGS="$CFLAGS -Wno-unused-function"
15066 # clang on macosx emits warnigns for each directory specified which
15067 # isn't "used" generating a lot of build noise (typically 3 warnings
15068 # per file
15069 case "$host_os" in
15070 darwin*)
15071 CFLAGS="$CFLAGS -Qunused-arguments"
15073 esac
15076 ##This will break the world on some 64-bit architectures
15077 # CFLAGS="$CFLAGS -Winline"
15081 LIBEVENT_GC_SECTIONS=
15082 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15084 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15085 if ${libevent_cv_gc_sections_runs+:} false; then :
15086 $as_echo_n "(cached) " >&6
15087 else
15089 origCFLAGS="$CFLAGS"
15090 CFLAGS="$CFLAGS -Wl,--gc-sections"
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15094 #include <stdlib.h>
15095 #include <stdio.h>
15098 main ()
15101 FILE * fpC;
15102 char buf[32];
15103 size_t cch;
15104 int read_success_once;
15106 fpC = fopen("conftest.c", "r");
15107 if (NULL == fpC)
15108 exit(1);
15109 do {
15110 cch = fread(buf, sizeof(buf), 1, fpC);
15111 read_success_once |= (0 != cch);
15112 } while (0 != cch);
15113 if (!read_success_once)
15114 exit(2);
15115 if (!feof(fpC))
15116 exit(3);
15117 if (0 != fclose(fpC))
15118 exit(4);
15120 exit(EXIT_SUCCESS);
15124 return 0;
15126 _ACEOF
15127 if ac_fn_c_try_link "$LINENO"; then :
15129 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15130 libevent_cv_gc_sections_runs=no
15131 else
15132 libevent_cv_gc_sections_runs=no
15133 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15136 else
15137 libevent_cv_gc_sections_runs=no
15140 rm -f core conftest.err conftest.$ac_objext \
15141 conftest$ac_exeext conftest.$ac_ext
15142 CFLAGS="$origCFLAGS"
15143 { origCFLAGS=; unset origCFLAGS;}
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15148 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15149 case "$libevent_cv_gc_sections_runs" in
15150 yes)
15151 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15152 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15154 esac
15158 if test "$enable_libevent_install" = "yes"; then
15159 INSTALL_LIBEVENT_TRUE=
15160 INSTALL_LIBEVENT_FALSE='#'
15161 else
15162 INSTALL_LIBEVENT_TRUE='#'
15163 INSTALL_LIBEVENT_FALSE=
15167 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15169 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15171 cat >confcache <<\_ACEOF
15172 # This file is a shell script that caches the results of configure
15173 # tests run on this system so they can be shared between configure
15174 # scripts and configure runs, see configure's option --config-cache.
15175 # It is not useful on other systems. If it contains results you don't
15176 # want to keep, you may remove or edit it.
15178 # config.status only pays attention to the cache file if you give it
15179 # the --recheck option to rerun configure.
15181 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15182 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15183 # following values.
15185 _ACEOF
15187 # The following way of writing the cache mishandles newlines in values,
15188 # but we know of no workaround that is simple, portable, and efficient.
15189 # So, we kill variables containing newlines.
15190 # Ultrix sh set writes to stderr and can't be redirected directly,
15191 # and sets the high bit in the cache file unless we assign to the vars.
15193 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15194 eval ac_val=\$$ac_var
15195 case $ac_val in #(
15196 *${as_nl}*)
15197 case $ac_var in #(
15198 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15199 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15200 esac
15201 case $ac_var in #(
15202 _ | IFS | as_nl) ;; #(
15203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15204 *) { eval $ac_var=; unset $ac_var;} ;;
15205 esac ;;
15206 esac
15207 done
15209 (set) 2>&1 |
15210 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15211 *${as_nl}ac_space=\ *)
15212 # `set' does not quote correctly, so add quotes: double-quote
15213 # substitution turns \\\\ into \\, and sed turns \\ into \.
15214 sed -n \
15215 "s/'/'\\\\''/g;
15216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15217 ;; #(
15219 # `set' quotes correctly as required by POSIX, so do not add quotes.
15220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15222 esac |
15223 sort
15225 sed '
15226 /^ac_cv_env_/b end
15227 t clear
15228 :clear
15229 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15230 t end
15231 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15232 :end' >>confcache
15233 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15234 if test -w "$cache_file"; then
15235 if test "x$cache_file" != "x/dev/null"; then
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15237 $as_echo "$as_me: updating cache $cache_file" >&6;}
15238 if test ! -f "$cache_file" || test -h "$cache_file"; then
15239 cat confcache >"$cache_file"
15240 else
15241 case $cache_file in #(
15242 */* | ?:*)
15243 mv -f confcache "$cache_file"$$ &&
15244 mv -f "$cache_file"$$ "$cache_file" ;; #(
15246 mv -f confcache "$cache_file" ;;
15247 esac
15250 else
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15252 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15255 rm -f confcache
15257 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15258 # Let make expand exec_prefix.
15259 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15261 DEFS=-DHAVE_CONFIG_H
15263 ac_libobjs=
15264 ac_ltlibobjs=
15266 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15267 # 1. Remove the extension, and $U if already installed.
15268 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15269 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15270 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15271 # will be set to the directory where LIBOBJS objects are built.
15272 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15273 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15274 done
15275 LIBOBJS=$ac_libobjs
15277 LTLIBOBJS=$ac_ltlibobjs
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15281 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15282 if test -n "$am_sleep_pid"; then
15283 # Hide warnings about reused PIDs.
15284 wait $am_sleep_pid 2>/dev/null
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15287 $as_echo "done" >&6; }
15288 if test -n "$EXEEXT"; then
15289 am__EXEEXT_TRUE=
15290 am__EXEEXT_FALSE='#'
15291 else
15292 am__EXEEXT_TRUE='#'
15293 am__EXEEXT_FALSE=
15296 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15297 as_fn_error $? "conditional \"AMDEP\" was never defined.
15298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15300 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15301 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15304 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15305 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15308 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15309 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15312 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15313 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15316 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15317 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15320 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15321 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15324 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15325 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15328 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15329 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15332 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15333 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15336 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15337 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15340 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15341 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15344 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15345 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15348 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15349 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15352 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15353 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15356 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15357 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15360 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15361 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15365 : "${CONFIG_STATUS=./config.status}"
15366 ac_write_fail=0
15367 ac_clean_files_save=$ac_clean_files
15368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15371 as_write_fail=0
15372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15373 #! $SHELL
15374 # Generated by $as_me.
15375 # Run this file to recreate the current configuration.
15376 # Compiler output produced by configure, useful for debugging
15377 # configure, is in config.log if it exists.
15379 debug=false
15380 ac_cs_recheck=false
15381 ac_cs_silent=false
15383 SHELL=\${CONFIG_SHELL-$SHELL}
15384 export SHELL
15385 _ASEOF
15386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15387 ## -------------------- ##
15388 ## M4sh Initialization. ##
15389 ## -------------------- ##
15391 # Be more Bourne compatible
15392 DUALCASE=1; export DUALCASE # for MKS sh
15393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15394 emulate sh
15395 NULLCMD=:
15396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15397 # is contrary to our usage. Disable this feature.
15398 alias -g '${1+"$@"}'='"$@"'
15399 setopt NO_GLOB_SUBST
15400 else
15401 case `(set -o) 2>/dev/null` in #(
15402 *posix*) :
15403 set -o posix ;; #(
15404 *) :
15406 esac
15410 as_nl='
15412 export as_nl
15413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15417 # Prefer a ksh shell builtin over an external printf program on Solaris,
15418 # but without wasting forks for bash or zsh.
15419 if test -z "$BASH_VERSION$ZSH_VERSION" \
15420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15421 as_echo='print -r --'
15422 as_echo_n='print -rn --'
15423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15424 as_echo='printf %s\n'
15425 as_echo_n='printf %s'
15426 else
15427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15429 as_echo_n='/usr/ucb/echo -n'
15430 else
15431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15432 as_echo_n_body='eval
15433 arg=$1;
15434 case $arg in #(
15435 *"$as_nl"*)
15436 expr "X$arg" : "X\\(.*\\)$as_nl";
15437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15438 esac;
15439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15441 export as_echo_n_body
15442 as_echo_n='sh -c $as_echo_n_body as_echo'
15444 export as_echo_body
15445 as_echo='sh -c $as_echo_body as_echo'
15448 # The user is always right.
15449 if test "${PATH_SEPARATOR+set}" != set; then
15450 PATH_SEPARATOR=:
15451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15453 PATH_SEPARATOR=';'
15458 # IFS
15459 # We need space, tab and new line, in precisely that order. Quoting is
15460 # there to prevent editors from complaining about space-tab.
15461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15462 # splitting by setting IFS to empty value.)
15463 IFS=" "" $as_nl"
15465 # Find who we are. Look in the path if we contain no directory separator.
15466 as_myself=
15467 case $0 in #((
15468 *[\\/]* ) as_myself=$0 ;;
15469 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15470 for as_dir in $PATH
15472 IFS=$as_save_IFS
15473 test -z "$as_dir" && as_dir=.
15474 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15475 done
15476 IFS=$as_save_IFS
15479 esac
15480 # We did not find ourselves, most probably we were run as `sh COMMAND'
15481 # in which case we are not to be found in the path.
15482 if test "x$as_myself" = x; then
15483 as_myself=$0
15485 if test ! -f "$as_myself"; then
15486 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15487 exit 1
15490 # Unset variables that we do not need and which cause bugs (e.g. in
15491 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15492 # suppresses any "Segmentation fault" message there. '((' could
15493 # trigger a bug in pdksh 5.2.14.
15494 for as_var in BASH_ENV ENV MAIL MAILPATH
15495 do eval test x\${$as_var+set} = xset \
15496 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15497 done
15498 PS1='$ '
15499 PS2='> '
15500 PS4='+ '
15502 # NLS nuisances.
15503 LC_ALL=C
15504 export LC_ALL
15505 LANGUAGE=C
15506 export LANGUAGE
15508 # CDPATH.
15509 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15512 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15513 # ----------------------------------------
15514 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15515 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15516 # script with STATUS, using 1 if that was 0.
15517 as_fn_error ()
15519 as_status=$1; test $as_status -eq 0 && as_status=1
15520 if test "$4"; then
15521 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15522 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15524 $as_echo "$as_me: error: $2" >&2
15525 as_fn_exit $as_status
15526 } # as_fn_error
15529 # as_fn_set_status STATUS
15530 # -----------------------
15531 # Set $? to STATUS, without forking.
15532 as_fn_set_status ()
15534 return $1
15535 } # as_fn_set_status
15537 # as_fn_exit STATUS
15538 # -----------------
15539 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15540 as_fn_exit ()
15542 set +e
15543 as_fn_set_status $1
15544 exit $1
15545 } # as_fn_exit
15547 # as_fn_unset VAR
15548 # ---------------
15549 # Portably unset VAR.
15550 as_fn_unset ()
15552 { eval $1=; unset $1;}
15554 as_unset=as_fn_unset
15555 # as_fn_append VAR VALUE
15556 # ----------------------
15557 # Append the text in VALUE to the end of the definition contained in VAR. Take
15558 # advantage of any shell optimizations that allow amortized linear growth over
15559 # repeated appends, instead of the typical quadratic growth present in naive
15560 # implementations.
15561 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15562 eval 'as_fn_append ()
15564 eval $1+=\$2
15566 else
15567 as_fn_append ()
15569 eval $1=\$$1\$2
15571 fi # as_fn_append
15573 # as_fn_arith ARG...
15574 # ------------------
15575 # Perform arithmetic evaluation on the ARGs, and store the result in the
15576 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15577 # must be portable across $(()) and expr.
15578 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15579 eval 'as_fn_arith ()
15581 as_val=$(( $* ))
15583 else
15584 as_fn_arith ()
15586 as_val=`expr "$@" || test $? -eq 1`
15588 fi # as_fn_arith
15591 if expr a : '\(a\)' >/dev/null 2>&1 &&
15592 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15593 as_expr=expr
15594 else
15595 as_expr=false
15598 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15599 as_basename=basename
15600 else
15601 as_basename=false
15604 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15605 as_dirname=dirname
15606 else
15607 as_dirname=false
15610 as_me=`$as_basename -- "$0" ||
15611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15612 X"$0" : 'X\(//\)$' \| \
15613 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15614 $as_echo X/"$0" |
15615 sed '/^.*\/\([^/][^/]*\)\/*$/{
15616 s//\1/
15619 /^X\/\(\/\/\)$/{
15620 s//\1/
15623 /^X\/\(\/\).*/{
15624 s//\1/
15627 s/.*/./; q'`
15629 # Avoid depending upon Character Ranges.
15630 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15631 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15632 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15633 as_cr_digits='0123456789'
15634 as_cr_alnum=$as_cr_Letters$as_cr_digits
15636 ECHO_C= ECHO_N= ECHO_T=
15637 case `echo -n x` in #(((((
15638 -n*)
15639 case `echo 'xy\c'` in
15640 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15641 xy) ECHO_C='\c';;
15642 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15643 ECHO_T=' ';;
15644 esac;;
15646 ECHO_N='-n';;
15647 esac
15649 rm -f conf$$ conf$$.exe conf$$.file
15650 if test -d conf$$.dir; then
15651 rm -f conf$$.dir/conf$$.file
15652 else
15653 rm -f conf$$.dir
15654 mkdir conf$$.dir 2>/dev/null
15656 if (echo >conf$$.file) 2>/dev/null; then
15657 if ln -s conf$$.file conf$$ 2>/dev/null; then
15658 as_ln_s='ln -s'
15659 # ... but there are two gotchas:
15660 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15661 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15662 # In both cases, we have to default to `cp -pR'.
15663 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15664 as_ln_s='cp -pR'
15665 elif ln conf$$.file conf$$ 2>/dev/null; then
15666 as_ln_s=ln
15667 else
15668 as_ln_s='cp -pR'
15670 else
15671 as_ln_s='cp -pR'
15673 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15674 rmdir conf$$.dir 2>/dev/null
15677 # as_fn_mkdir_p
15678 # -------------
15679 # Create "$as_dir" as a directory, including parents if necessary.
15680 as_fn_mkdir_p ()
15683 case $as_dir in #(
15684 -*) as_dir=./$as_dir;;
15685 esac
15686 test -d "$as_dir" || eval $as_mkdir_p || {
15687 as_dirs=
15688 while :; do
15689 case $as_dir in #(
15690 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15691 *) as_qdir=$as_dir;;
15692 esac
15693 as_dirs="'$as_qdir' $as_dirs"
15694 as_dir=`$as_dirname -- "$as_dir" ||
15695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15696 X"$as_dir" : 'X\(//\)[^/]' \| \
15697 X"$as_dir" : 'X\(//\)$' \| \
15698 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15699 $as_echo X"$as_dir" |
15700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15701 s//\1/
15704 /^X\(\/\/\)[^/].*/{
15705 s//\1/
15708 /^X\(\/\/\)$/{
15709 s//\1/
15712 /^X\(\/\).*/{
15713 s//\1/
15716 s/.*/./; q'`
15717 test -d "$as_dir" && break
15718 done
15719 test -z "$as_dirs" || eval "mkdir $as_dirs"
15720 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15723 } # as_fn_mkdir_p
15724 if mkdir -p . 2>/dev/null; then
15725 as_mkdir_p='mkdir -p "$as_dir"'
15726 else
15727 test -d ./-p && rmdir ./-p
15728 as_mkdir_p=false
15732 # as_fn_executable_p FILE
15733 # -----------------------
15734 # Test if FILE is an executable regular file.
15735 as_fn_executable_p ()
15737 test -f "$1" && test -x "$1"
15738 } # as_fn_executable_p
15739 as_test_x='test -x'
15740 as_executable_p=as_fn_executable_p
15742 # Sed expression to map a string onto a valid CPP name.
15743 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15745 # Sed expression to map a string onto a valid variable name.
15746 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15749 exec 6>&1
15750 ## ----------------------------------- ##
15751 ## Main body of $CONFIG_STATUS script. ##
15752 ## ----------------------------------- ##
15753 _ASEOF
15754 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15757 # Save the log message, to keep $0 and so on meaningful, and to
15758 # report actual input values of CONFIG_FILES etc. instead of their
15759 # values after options handling.
15760 ac_log="
15761 This file was extended by libevent $as_me 2.0.21-stable-dev, which was
15762 generated by GNU Autoconf 2.69. Invocation command line was
15764 CONFIG_FILES = $CONFIG_FILES
15765 CONFIG_HEADERS = $CONFIG_HEADERS
15766 CONFIG_LINKS = $CONFIG_LINKS
15767 CONFIG_COMMANDS = $CONFIG_COMMANDS
15768 $ $0 $@
15770 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15773 _ACEOF
15775 case $ac_config_files in *"
15776 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15777 esac
15779 case $ac_config_headers in *"
15780 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15781 esac
15784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15785 # Files that config.status was made for.
15786 config_files="$ac_config_files"
15787 config_headers="$ac_config_headers"
15788 config_commands="$ac_config_commands"
15790 _ACEOF
15792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15793 ac_cs_usage="\
15794 \`$as_me' instantiates files and other configuration actions
15795 from templates according to the current configuration. Unless the files
15796 and actions are specified as TAGs, all are instantiated by default.
15798 Usage: $0 [OPTION]... [TAG]...
15800 -h, --help print this help, then exit
15801 -V, --version print version number and configuration settings, then exit
15802 --config print configuration, then exit
15803 -q, --quiet, --silent
15804 do not print progress messages
15805 -d, --debug don't remove temporary files
15806 --recheck update $as_me by reconfiguring in the same conditions
15807 --file=FILE[:TEMPLATE]
15808 instantiate the configuration file FILE
15809 --header=FILE[:TEMPLATE]
15810 instantiate the configuration header FILE
15812 Configuration files:
15813 $config_files
15815 Configuration headers:
15816 $config_headers
15818 Configuration commands:
15819 $config_commands
15821 Report bugs to the package provider."
15823 _ACEOF
15824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15825 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15826 ac_cs_version="\\
15827 libevent config.status 2.0.21-stable-dev
15828 configured by $0, generated by GNU Autoconf 2.69,
15829 with options \\"\$ac_cs_config\\"
15831 Copyright (C) 2012 Free Software Foundation, Inc.
15832 This config.status script is free software; the Free Software Foundation
15833 gives unlimited permission to copy, distribute and modify it."
15835 ac_pwd='$ac_pwd'
15836 srcdir='$srcdir'
15837 INSTALL='$INSTALL'
15838 MKDIR_P='$MKDIR_P'
15839 AWK='$AWK'
15840 test -n "\$AWK" || AWK=awk
15841 _ACEOF
15843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15844 # The default lists apply if the user does not specify any file.
15845 ac_need_defaults=:
15846 while test $# != 0
15848 case $1 in
15849 --*=?*)
15850 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15851 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15852 ac_shift=:
15854 --*=)
15855 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15856 ac_optarg=
15857 ac_shift=:
15860 ac_option=$1
15861 ac_optarg=$2
15862 ac_shift=shift
15864 esac
15866 case $ac_option in
15867 # Handling of the options.
15868 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15869 ac_cs_recheck=: ;;
15870 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15871 $as_echo "$ac_cs_version"; exit ;;
15872 --config | --confi | --conf | --con | --co | --c )
15873 $as_echo "$ac_cs_config"; exit ;;
15874 --debug | --debu | --deb | --de | --d | -d )
15875 debug=: ;;
15876 --file | --fil | --fi | --f )
15877 $ac_shift
15878 case $ac_optarg in
15879 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15880 '') as_fn_error $? "missing file argument" ;;
15881 esac
15882 as_fn_append CONFIG_FILES " '$ac_optarg'"
15883 ac_need_defaults=false;;
15884 --header | --heade | --head | --hea )
15885 $ac_shift
15886 case $ac_optarg in
15887 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15888 esac
15889 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15890 ac_need_defaults=false;;
15891 --he | --h)
15892 # Conflict between --help and --header
15893 as_fn_error $? "ambiguous option: \`$1'
15894 Try \`$0 --help' for more information.";;
15895 --help | --hel | -h )
15896 $as_echo "$ac_cs_usage"; exit ;;
15897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15898 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15899 ac_cs_silent=: ;;
15901 # This is an error.
15902 -*) as_fn_error $? "unrecognized option: \`$1'
15903 Try \`$0 --help' for more information." ;;
15905 *) as_fn_append ac_config_targets " $1"
15906 ac_need_defaults=false ;;
15908 esac
15909 shift
15910 done
15912 ac_configure_extra_args=
15914 if $ac_cs_silent; then
15915 exec 6>/dev/null
15916 ac_configure_extra_args="$ac_configure_extra_args --silent"
15919 _ACEOF
15920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15921 if \$ac_cs_recheck; then
15922 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15923 shift
15924 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15925 CONFIG_SHELL='$SHELL'
15926 export CONFIG_SHELL
15927 exec "\$@"
15930 _ACEOF
15931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15932 exec 5>>config.log
15934 echo
15935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15936 ## Running $as_me. ##
15937 _ASBOX
15938 $as_echo "$ac_log"
15939 } >&5
15941 _ACEOF
15942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15944 # INIT-COMMANDS
15946 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15949 # The HP-UX ksh and POSIX shell print the target directory to stdout
15950 # if CDPATH is set.
15951 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15953 sed_quote_subst='$sed_quote_subst'
15954 double_quote_subst='$double_quote_subst'
15955 delay_variable_subst='$delay_variable_subst'
15956 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15957 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15958 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15959 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15960 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15961 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15962 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15963 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15964 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15965 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15966 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15967 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15968 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15969 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15970 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15971 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15972 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15973 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15974 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15975 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15976 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15977 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15978 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15979 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15980 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15981 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15982 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15983 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15984 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15985 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15986 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15987 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15988 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15989 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15990 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15991 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15992 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15993 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15994 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15995 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15996 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15997 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15998 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15999 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16000 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16001 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16002 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16003 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16004 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16005 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16006 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16007 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16008 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16009 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16010 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16011 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16012 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"`'
16013 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16014 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16015 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16016 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16017 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16018 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16019 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16020 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16021 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16022 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16023 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16024 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16025 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16026 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16027 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16028 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16029 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16030 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16031 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16032 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16033 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16034 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16035 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16036 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16037 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16038 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16039 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16040 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16041 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16042 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16043 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16044 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16045 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16046 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16047 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16048 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16049 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16050 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16051 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16052 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16053 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16054 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16055 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16056 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16057 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16058 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16059 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16060 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16061 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16062 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16063 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16064 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16065 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16066 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16067 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16068 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16069 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16070 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16071 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16072 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16073 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16074 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16075 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16076 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16077 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16078 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16079 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16080 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16081 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16082 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16083 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16084 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16085 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16087 LTCC='$LTCC'
16088 LTCFLAGS='$LTCFLAGS'
16089 compiler='$compiler_DEFAULT'
16091 # A function that is used when there is no print builtin or printf.
16092 func_fallback_echo ()
16094 eval 'cat <<_LTECHO_EOF
16096 _LTECHO_EOF'
16099 # Quote evaled strings.
16100 for var in SHELL \
16101 ECHO \
16102 PATH_SEPARATOR \
16103 SED \
16104 GREP \
16105 EGREP \
16106 FGREP \
16107 LD \
16108 NM \
16109 LN_S \
16110 lt_SP2NL \
16111 lt_NL2SP \
16112 reload_flag \
16113 OBJDUMP \
16114 deplibs_check_method \
16115 file_magic_cmd \
16116 file_magic_glob \
16117 want_nocaseglob \
16118 DLLTOOL \
16119 sharedlib_from_linklib_cmd \
16120 AR \
16121 AR_FLAGS \
16122 archiver_list_spec \
16123 STRIP \
16124 RANLIB \
16125 CC \
16126 CFLAGS \
16127 compiler \
16128 lt_cv_sys_global_symbol_pipe \
16129 lt_cv_sys_global_symbol_to_cdecl \
16130 lt_cv_sys_global_symbol_to_c_name_address \
16131 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16132 nm_file_list_spec \
16133 lt_prog_compiler_no_builtin_flag \
16134 lt_prog_compiler_pic \
16135 lt_prog_compiler_wl \
16136 lt_prog_compiler_static \
16137 lt_cv_prog_compiler_c_o \
16138 need_locks \
16139 MANIFEST_TOOL \
16140 DSYMUTIL \
16141 NMEDIT \
16142 LIPO \
16143 OTOOL \
16144 OTOOL64 \
16145 shrext_cmds \
16146 export_dynamic_flag_spec \
16147 whole_archive_flag_spec \
16148 compiler_needs_object \
16149 with_gnu_ld \
16150 allow_undefined_flag \
16151 no_undefined_flag \
16152 hardcode_libdir_flag_spec \
16153 hardcode_libdir_separator \
16154 exclude_expsyms \
16155 include_expsyms \
16156 file_list_spec \
16157 variables_saved_for_relink \
16158 libname_spec \
16159 library_names_spec \
16160 soname_spec \
16161 install_override_mode \
16162 finish_eval \
16163 old_striplib \
16164 striplib; do
16165 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16166 *[\\\\\\\`\\"\\\$]*)
16167 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16170 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16172 esac
16173 done
16175 # Double-quote double-evaled strings.
16176 for var in reload_cmds \
16177 old_postinstall_cmds \
16178 old_postuninstall_cmds \
16179 old_archive_cmds \
16180 extract_expsyms_cmds \
16181 old_archive_from_new_cmds \
16182 old_archive_from_expsyms_cmds \
16183 archive_cmds \
16184 archive_expsym_cmds \
16185 module_cmds \
16186 module_expsym_cmds \
16187 export_symbols_cmds \
16188 prelink_cmds \
16189 postlink_cmds \
16190 postinstall_cmds \
16191 postuninstall_cmds \
16192 finish_cmds \
16193 sys_lib_search_path_spec \
16194 sys_lib_dlsearch_path_spec; do
16195 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16196 *[\\\\\\\`\\"\\\$]*)
16197 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16200 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16202 esac
16203 done
16205 ac_aux_dir='$ac_aux_dir'
16206 xsi_shell='$xsi_shell'
16207 lt_shell_append='$lt_shell_append'
16209 # See if we are running on zsh, and set the options which allow our
16210 # commands through without removal of \ escapes INIT.
16211 if test -n "\${ZSH_VERSION+set}" ; then
16212 setopt NO_GLOB_SUBST
16216 PACKAGE='$PACKAGE'
16217 VERSION='$VERSION'
16218 TIMESTAMP='$TIMESTAMP'
16219 RM='$RM'
16220 ofile='$ofile'
16225 _ACEOF
16227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16229 # Handling of arguments.
16230 for ac_config_target in $ac_config_targets
16232 case $ac_config_target in
16233 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16234 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16235 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16236 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16237 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16238 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16239 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16240 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16241 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16242 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16244 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16245 esac
16246 done
16249 # If the user did not use the arguments to specify the items to instantiate,
16250 # then the envvar interface is used. Set only those that are not.
16251 # We use the long form for the default assignment because of an extremely
16252 # bizarre bug on SunOS 4.1.3.
16253 if $ac_need_defaults; then
16254 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16255 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16256 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16259 # Have a temporary directory for convenience. Make it in the build tree
16260 # simply because there is no reason against having it here, and in addition,
16261 # creating and moving files from /tmp can sometimes cause problems.
16262 # Hook for its removal unless debugging.
16263 # Note that there is a small window in which the directory will not be cleaned:
16264 # after its creation but before its name has been assigned to `$tmp'.
16265 $debug ||
16267 tmp= ac_tmp=
16268 trap 'exit_status=$?
16269 : "${ac_tmp:=$tmp}"
16270 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16272 trap 'as_fn_exit 1' 1 2 13 15
16274 # Create a (secure) tmp directory for tmp files.
16277 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16278 test -d "$tmp"
16279 } ||
16281 tmp=./conf$$-$RANDOM
16282 (umask 077 && mkdir "$tmp")
16283 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16284 ac_tmp=$tmp
16286 # Set up the scripts for CONFIG_FILES section.
16287 # No need to generate them if there are no CONFIG_FILES.
16288 # This happens for instance with `./config.status config.h'.
16289 if test -n "$CONFIG_FILES"; then
16292 ac_cr=`echo X | tr X '\015'`
16293 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16294 # But we know of no other shell where ac_cr would be empty at this
16295 # point, so we can use a bashism as a fallback.
16296 if test "x$ac_cr" = x; then
16297 eval ac_cr=\$\'\\r\'
16299 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16300 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16301 ac_cs_awk_cr='\\r'
16302 else
16303 ac_cs_awk_cr=$ac_cr
16306 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16307 _ACEOF
16311 echo "cat >conf$$subs.awk <<_ACEOF" &&
16312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16313 echo "_ACEOF"
16314 } >conf$$subs.sh ||
16315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16317 ac_delim='%!_!# '
16318 for ac_last_try in false false false false false :; do
16319 . ./conf$$subs.sh ||
16320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16323 if test $ac_delim_n = $ac_delim_num; then
16324 break
16325 elif $ac_last_try; then
16326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16327 else
16328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16330 done
16331 rm -f conf$$subs.sh
16333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16335 _ACEOF
16336 sed -n '
16338 s/^/S["/; s/!.*/"]=/
16341 s/^[^!]*!//
16342 :repl
16343 t repl
16344 s/'"$ac_delim"'$//
16345 t delim
16348 s/\(.\{148\}\)..*/\1/
16349 t more1
16350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16353 b repl
16354 :more1
16355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16358 s/.\{148\}//
16359 t nl
16360 :delim
16362 s/\(.\{148\}\)..*/\1/
16363 t more2
16364 s/["\\]/\\&/g; s/^/"/; s/$/"/
16367 :more2
16368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16371 s/.\{148\}//
16372 t delim
16373 ' <conf$$subs.awk | sed '
16374 /^[^""]/{
16376 s/\n//
16378 ' >>$CONFIG_STATUS || ac_write_fail=1
16379 rm -f conf$$subs.awk
16380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16381 _ACAWK
16382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16383 for (key in S) S_is_set[key] = 1
16384 FS = "\a"
16388 line = $ 0
16389 nfields = split(line, field, "@")
16390 substed = 0
16391 len = length(field[1])
16392 for (i = 2; i < nfields; i++) {
16393 key = field[i]
16394 keylen = length(key)
16395 if (S_is_set[key]) {
16396 value = S[key]
16397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16398 len += length(value) + length(field[++i])
16399 substed = 1
16400 } else
16401 len += 1 + keylen
16404 print line
16407 _ACAWK
16408 _ACEOF
16409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16410 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16411 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16412 else
16414 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16415 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16416 _ACEOF
16418 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16419 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16420 # trailing colons and then remove the whole line if VPATH becomes empty
16421 # (actually we leave an empty line to preserve line numbers).
16422 if test "x$srcdir" = x.; then
16423 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16425 s///
16426 s/^/:/
16427 s/[ ]*$/:/
16428 s/:\$(srcdir):/:/g
16429 s/:\${srcdir}:/:/g
16430 s/:@srcdir@:/:/g
16431 s/^:*//
16432 s/:*$//
16434 s/\(=[ ]*\).*/\1/
16436 s/\n//
16437 s/^[^=]*=[ ]*$//
16441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16442 fi # test -n "$CONFIG_FILES"
16444 # Set up the scripts for CONFIG_HEADERS section.
16445 # No need to generate them if there are no CONFIG_HEADERS.
16446 # This happens for instance with `./config.status Makefile'.
16447 if test -n "$CONFIG_HEADERS"; then
16448 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16449 BEGIN {
16450 _ACEOF
16452 # Transform confdefs.h into an awk script `defines.awk', embedded as
16453 # here-document in config.status, that substitutes the proper values into
16454 # config.h.in to produce config.h.
16456 # Create a delimiter string that does not exist in confdefs.h, to ease
16457 # handling of long lines.
16458 ac_delim='%!_!# '
16459 for ac_last_try in false false :; do
16460 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16461 if test -z "$ac_tt"; then
16462 break
16463 elif $ac_last_try; then
16464 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16465 else
16466 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16468 done
16470 # For the awk script, D is an array of macro values keyed by name,
16471 # likewise P contains macro parameters if any. Preserve backslash
16472 # newline sequences.
16474 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16475 sed -n '
16476 s/.\{148\}/&'"$ac_delim"'/g
16477 t rset
16478 :rset
16479 s/^[ ]*#[ ]*define[ ][ ]*/ /
16480 t def
16482 :def
16483 s/\\$//
16484 t bsnl
16485 s/["\\]/\\&/g
16486 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16487 D["\1"]=" \3"/p
16488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16490 :bsnl
16491 s/["\\]/\\&/g
16492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16493 D["\1"]=" \3\\\\\\n"\\/p
16494 t cont
16495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16496 t cont
16498 :cont
16500 s/.\{148\}/&'"$ac_delim"'/g
16501 t clear
16502 :clear
16503 s/\\$//
16504 t bsnlc
16505 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16507 :bsnlc
16508 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16509 b cont
16510 ' <confdefs.h | sed '
16511 s/'"$ac_delim"'/"\\\
16512 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16515 for (key in D) D_is_set[key] = 1
16516 FS = "\a"
16518 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16519 line = \$ 0
16520 split(line, arg, " ")
16521 if (arg[1] == "#") {
16522 defundef = arg[2]
16523 mac1 = arg[3]
16524 } else {
16525 defundef = substr(arg[1], 2)
16526 mac1 = arg[2]
16528 split(mac1, mac2, "(") #)
16529 macro = mac2[1]
16530 prefix = substr(line, 1, index(line, defundef) - 1)
16531 if (D_is_set[macro]) {
16532 # Preserve the white space surrounding the "#".
16533 print prefix "define", macro P[macro] D[macro]
16534 next
16535 } else {
16536 # Replace #undef with comments. This is necessary, for example,
16537 # in the case of _POSIX_SOURCE, which is predefined and required
16538 # on some systems where configure will not decide to define it.
16539 if (defundef == "undef") {
16540 print "/*", prefix defundef, macro, "*/"
16541 next
16545 { print }
16546 _ACAWK
16547 _ACEOF
16548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16549 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16550 fi # test -n "$CONFIG_HEADERS"
16553 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16554 shift
16555 for ac_tag
16557 case $ac_tag in
16558 :[FHLC]) ac_mode=$ac_tag; continue;;
16559 esac
16560 case $ac_mode$ac_tag in
16561 :[FHL]*:*);;
16562 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16563 :[FH]-) ac_tag=-:-;;
16564 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16565 esac
16566 ac_save_IFS=$IFS
16567 IFS=:
16568 set x $ac_tag
16569 IFS=$ac_save_IFS
16570 shift
16571 ac_file=$1
16572 shift
16574 case $ac_mode in
16575 :L) ac_source=$1;;
16576 :[FH])
16577 ac_file_inputs=
16578 for ac_f
16580 case $ac_f in
16581 -) ac_f="$ac_tmp/stdin";;
16582 *) # Look for the file first in the build tree, then in the source tree
16583 # (if the path is not absolute). The absolute path cannot be DOS-style,
16584 # because $ac_f cannot contain `:'.
16585 test -f "$ac_f" ||
16586 case $ac_f in
16587 [\\/$]*) false;;
16588 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16589 esac ||
16590 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16591 esac
16592 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16593 as_fn_append ac_file_inputs " '$ac_f'"
16594 done
16596 # Let's still pretend it is `configure' which instantiates (i.e., don't
16597 # use $as_me), people would be surprised to read:
16598 # /* config.h. Generated by config.status. */
16599 configure_input='Generated from '`
16600 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16601 `' by configure.'
16602 if test x"$ac_file" != x-; then
16603 configure_input="$ac_file. $configure_input"
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16605 $as_echo "$as_me: creating $ac_file" >&6;}
16607 # Neutralize special characters interpreted by sed in replacement strings.
16608 case $configure_input in #(
16609 *\&* | *\|* | *\\* )
16610 ac_sed_conf_input=`$as_echo "$configure_input" |
16611 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16612 *) ac_sed_conf_input=$configure_input;;
16613 esac
16615 case $ac_tag in
16616 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16618 esac
16620 esac
16622 ac_dir=`$as_dirname -- "$ac_file" ||
16623 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16624 X"$ac_file" : 'X\(//\)[^/]' \| \
16625 X"$ac_file" : 'X\(//\)$' \| \
16626 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16627 $as_echo X"$ac_file" |
16628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16629 s//\1/
16632 /^X\(\/\/\)[^/].*/{
16633 s//\1/
16636 /^X\(\/\/\)$/{
16637 s//\1/
16640 /^X\(\/\).*/{
16641 s//\1/
16644 s/.*/./; q'`
16645 as_dir="$ac_dir"; as_fn_mkdir_p
16646 ac_builddir=.
16648 case "$ac_dir" in
16649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16652 # A ".." for each directory in $ac_dir_suffix.
16653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16654 case $ac_top_builddir_sub in
16655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16657 esac ;;
16658 esac
16659 ac_abs_top_builddir=$ac_pwd
16660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16661 # for backward compatibility:
16662 ac_top_builddir=$ac_top_build_prefix
16664 case $srcdir in
16665 .) # We are building in place.
16666 ac_srcdir=.
16667 ac_top_srcdir=$ac_top_builddir_sub
16668 ac_abs_top_srcdir=$ac_pwd ;;
16669 [\\/]* | ?:[\\/]* ) # Absolute name.
16670 ac_srcdir=$srcdir$ac_dir_suffix;
16671 ac_top_srcdir=$srcdir
16672 ac_abs_top_srcdir=$srcdir ;;
16673 *) # Relative name.
16674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16675 ac_top_srcdir=$ac_top_build_prefix$srcdir
16676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16677 esac
16678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16681 case $ac_mode in
16684 # CONFIG_FILE
16687 case $INSTALL in
16688 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16689 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16690 esac
16691 ac_MKDIR_P=$MKDIR_P
16692 case $MKDIR_P in
16693 [\\/$]* | ?:[\\/]* ) ;;
16694 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16695 esac
16696 _ACEOF
16698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16699 # If the template does not know about datarootdir, expand it.
16700 # FIXME: This hack should be removed a few years after 2.60.
16701 ac_datarootdir_hack=; ac_datarootdir_seen=
16702 ac_sed_dataroot='
16703 /datarootdir/ {
16707 /@datadir@/p
16708 /@docdir@/p
16709 /@infodir@/p
16710 /@localedir@/p
16711 /@mandir@/p'
16712 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16713 *datarootdir*) ac_datarootdir_seen=yes;;
16714 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16716 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16717 _ACEOF
16718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16719 ac_datarootdir_hack='
16720 s&@datadir@&$datadir&g
16721 s&@docdir@&$docdir&g
16722 s&@infodir@&$infodir&g
16723 s&@localedir@&$localedir&g
16724 s&@mandir@&$mandir&g
16725 s&\\\${datarootdir}&$datarootdir&g' ;;
16726 esac
16727 _ACEOF
16729 # Neutralize VPATH when `$srcdir' = `.'.
16730 # Shell code in configure.ac might set extrasub.
16731 # FIXME: do we really want to maintain this feature?
16732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16733 ac_sed_extra="$ac_vpsub
16734 $extrasub
16735 _ACEOF
16736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16738 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16739 s|@configure_input@|$ac_sed_conf_input|;t t
16740 s&@top_builddir@&$ac_top_builddir_sub&;t t
16741 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16742 s&@srcdir@&$ac_srcdir&;t t
16743 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16744 s&@top_srcdir@&$ac_top_srcdir&;t t
16745 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16746 s&@builddir@&$ac_builddir&;t t
16747 s&@abs_builddir@&$ac_abs_builddir&;t t
16748 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16749 s&@INSTALL@&$ac_INSTALL&;t t
16750 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16751 $ac_datarootdir_hack
16753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16754 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16756 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16757 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16758 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16759 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16761 which seems to be undefined. Please make sure it is defined" >&5
16762 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16763 which seems to be undefined. Please make sure it is defined" >&2;}
16765 rm -f "$ac_tmp/stdin"
16766 case $ac_file in
16767 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16768 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16769 esac \
16770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16774 # CONFIG_HEADER
16776 if test x"$ac_file" != x-; then
16778 $as_echo "/* $configure_input */" \
16779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16780 } >"$ac_tmp/config.h" \
16781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16782 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16784 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16785 else
16786 rm -f "$ac_file"
16787 mv "$ac_tmp/config.h" "$ac_file" \
16788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16790 else
16791 $as_echo "/* $configure_input */" \
16792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16793 || as_fn_error $? "could not create -" "$LINENO" 5
16795 # Compute "$ac_file"'s index in $config_headers.
16796 _am_arg="$ac_file"
16797 _am_stamp_count=1
16798 for _am_header in $config_headers :; do
16799 case $_am_header in
16800 $_am_arg | $_am_arg:* )
16801 break ;;
16803 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16804 esac
16805 done
16806 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16807 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16808 X"$_am_arg" : 'X\(//\)[^/]' \| \
16809 X"$_am_arg" : 'X\(//\)$' \| \
16810 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16811 $as_echo X"$_am_arg" |
16812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16813 s//\1/
16816 /^X\(\/\/\)[^/].*/{
16817 s//\1/
16820 /^X\(\/\/\)$/{
16821 s//\1/
16824 /^X\(\/\).*/{
16825 s//\1/
16828 s/.*/./; q'`/stamp-h$_am_stamp_count
16831 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16832 $as_echo "$as_me: executing $ac_file commands" >&6;}
16834 esac
16837 case $ac_file$ac_mode in
16838 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16839 # Older Autoconf quotes --file arguments for eval, but not when files
16840 # are listed without --file. Let's play safe and only enable the eval
16841 # if we detect the quoting.
16842 case $CONFIG_FILES in
16843 *\'*) eval set x "$CONFIG_FILES" ;;
16844 *) set x $CONFIG_FILES ;;
16845 esac
16846 shift
16847 for mf
16849 # Strip MF so we end up with the name of the file.
16850 mf=`echo "$mf" | sed -e 's/:.*$//'`
16851 # Check whether this is an Automake generated Makefile or not.
16852 # We used to match only the files named 'Makefile.in', but
16853 # some people rename them; so instead we look at the file content.
16854 # Grep'ing the first line is not enough: some people post-process
16855 # each Makefile.in and add a new line on top of each file to say so.
16856 # Grep'ing the whole file is not good either: AIX grep has a line
16857 # limit of 2048, but all sed's we know have understand at least 4000.
16858 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16859 dirpart=`$as_dirname -- "$mf" ||
16860 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16861 X"$mf" : 'X\(//\)[^/]' \| \
16862 X"$mf" : 'X\(//\)$' \| \
16863 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16864 $as_echo X"$mf" |
16865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16866 s//\1/
16869 /^X\(\/\/\)[^/].*/{
16870 s//\1/
16873 /^X\(\/\/\)$/{
16874 s//\1/
16877 /^X\(\/\).*/{
16878 s//\1/
16881 s/.*/./; q'`
16882 else
16883 continue
16885 # Extract the definition of DEPDIR, am__include, and am__quote
16886 # from the Makefile without running 'make'.
16887 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16888 test -z "$DEPDIR" && continue
16889 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16890 test -z "$am__include" && continue
16891 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16892 # Find all dependency output files, they are included files with
16893 # $(DEPDIR) in their names. We invoke sed twice because it is the
16894 # simplest approach to changing $(DEPDIR) to its actual value in the
16895 # expansion.
16896 for file in `sed -n "
16897 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16898 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16899 # Make sure the directory exists.
16900 test -f "$dirpart/$file" && continue
16901 fdir=`$as_dirname -- "$file" ||
16902 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16903 X"$file" : 'X\(//\)[^/]' \| \
16904 X"$file" : 'X\(//\)$' \| \
16905 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16906 $as_echo X"$file" |
16907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16908 s//\1/
16911 /^X\(\/\/\)[^/].*/{
16912 s//\1/
16915 /^X\(\/\/\)$/{
16916 s//\1/
16919 /^X\(\/\).*/{
16920 s//\1/
16923 s/.*/./; q'`
16924 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16925 # echo "creating $dirpart/$file"
16926 echo '# dummy' > "$dirpart/$file"
16927 done
16928 done
16931 "libtool":C)
16933 # See if we are running on zsh, and set the options which allow our
16934 # commands through without removal of \ escapes.
16935 if test -n "${ZSH_VERSION+set}" ; then
16936 setopt NO_GLOB_SUBST
16939 cfgfile="${ofile}T"
16940 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16941 $RM "$cfgfile"
16943 cat <<_LT_EOF >> "$cfgfile"
16944 #! $SHELL
16946 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16947 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16948 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16949 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16951 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16952 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16953 # Foundation, Inc.
16954 # Written by Gordon Matzigkeit, 1996
16956 # This file is part of GNU Libtool.
16958 # GNU Libtool is free software; you can redistribute it and/or
16959 # modify it under the terms of the GNU General Public License as
16960 # published by the Free Software Foundation; either version 2 of
16961 # the License, or (at your option) any later version.
16963 # As a special exception to the GNU General Public License,
16964 # if you distribute this file as part of a program or library that
16965 # is built using GNU Libtool, you may include this file under the
16966 # same distribution terms that you use for the rest of that program.
16968 # GNU Libtool is distributed in the hope that it will be useful,
16969 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16970 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16971 # GNU General Public License for more details.
16973 # You should have received a copy of the GNU General Public License
16974 # along with GNU Libtool; see the file COPYING. If not, a copy
16975 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16976 # obtained by writing to the Free Software Foundation, Inc.,
16977 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16980 # The names of the tagged configurations supported by this script.
16981 available_tags=""
16983 # ### BEGIN LIBTOOL CONFIG
16985 # Which release of libtool.m4 was used?
16986 macro_version=$macro_version
16987 macro_revision=$macro_revision
16989 # Whether or not to build shared libraries.
16990 build_libtool_libs=$enable_shared
16992 # Whether or not to build static libraries.
16993 build_old_libs=$enable_static
16995 # What type of objects to build.
16996 pic_mode=$pic_mode
16998 # Whether or not to optimize for fast installation.
16999 fast_install=$enable_fast_install
17001 # Shell to use when invoking shell scripts.
17002 SHELL=$lt_SHELL
17004 # An echo program that protects backslashes.
17005 ECHO=$lt_ECHO
17007 # The PATH separator for the build system.
17008 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17010 # The host system.
17011 host_alias=$host_alias
17012 host=$host
17013 host_os=$host_os
17015 # The build system.
17016 build_alias=$build_alias
17017 build=$build
17018 build_os=$build_os
17020 # A sed program that does not truncate output.
17021 SED=$lt_SED
17023 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17024 Xsed="\$SED -e 1s/^X//"
17026 # A grep program that handles long lines.
17027 GREP=$lt_GREP
17029 # An ERE matcher.
17030 EGREP=$lt_EGREP
17032 # A literal string matcher.
17033 FGREP=$lt_FGREP
17035 # A BSD- or MS-compatible name lister.
17036 NM=$lt_NM
17038 # Whether we need soft or hard links.
17039 LN_S=$lt_LN_S
17041 # What is the maximum length of a command?
17042 max_cmd_len=$max_cmd_len
17044 # Object file suffix (normally "o").
17045 objext=$ac_objext
17047 # Executable file suffix (normally "").
17048 exeext=$exeext
17050 # whether the shell understands "unset".
17051 lt_unset=$lt_unset
17053 # turn spaces into newlines.
17054 SP2NL=$lt_lt_SP2NL
17056 # turn newlines into spaces.
17057 NL2SP=$lt_lt_NL2SP
17059 # convert \$build file names to \$host format.
17060 to_host_file_cmd=$lt_cv_to_host_file_cmd
17062 # convert \$build files to toolchain format.
17063 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17065 # An object symbol dumper.
17066 OBJDUMP=$lt_OBJDUMP
17068 # Method to check whether dependent libraries are shared objects.
17069 deplibs_check_method=$lt_deplibs_check_method
17071 # Command to use when deplibs_check_method = "file_magic".
17072 file_magic_cmd=$lt_file_magic_cmd
17074 # How to find potential files when deplibs_check_method = "file_magic".
17075 file_magic_glob=$lt_file_magic_glob
17077 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17078 want_nocaseglob=$lt_want_nocaseglob
17080 # DLL creation program.
17081 DLLTOOL=$lt_DLLTOOL
17083 # Command to associate shared and link libraries.
17084 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17086 # The archiver.
17087 AR=$lt_AR
17089 # Flags to create an archive.
17090 AR_FLAGS=$lt_AR_FLAGS
17092 # How to feed a file listing to the archiver.
17093 archiver_list_spec=$lt_archiver_list_spec
17095 # A symbol stripping program.
17096 STRIP=$lt_STRIP
17098 # Commands used to install an old-style archive.
17099 RANLIB=$lt_RANLIB
17100 old_postinstall_cmds=$lt_old_postinstall_cmds
17101 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17103 # Whether to use a lock for old archive extraction.
17104 lock_old_archive_extraction=$lock_old_archive_extraction
17106 # A C compiler.
17107 LTCC=$lt_CC
17109 # LTCC compiler flags.
17110 LTCFLAGS=$lt_CFLAGS
17112 # Take the output of nm and produce a listing of raw symbols and C names.
17113 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17115 # Transform the output of nm in a proper C declaration.
17116 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17118 # Transform the output of nm in a C name address pair.
17119 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17121 # Transform the output of nm in a C name address pair when lib prefix is needed.
17122 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17124 # Specify filename containing input files for \$NM.
17125 nm_file_list_spec=$lt_nm_file_list_spec
17127 # The root where to search for dependent libraries,and in which our libraries should be installed.
17128 lt_sysroot=$lt_sysroot
17130 # The name of the directory that contains temporary libtool files.
17131 objdir=$objdir
17133 # Used to examine libraries when file_magic_cmd begins with "file".
17134 MAGIC_CMD=$MAGIC_CMD
17136 # Must we lock files when doing compilation?
17137 need_locks=$lt_need_locks
17139 # Manifest tool.
17140 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17142 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17143 DSYMUTIL=$lt_DSYMUTIL
17145 # Tool to change global to local symbols on Mac OS X.
17146 NMEDIT=$lt_NMEDIT
17148 # Tool to manipulate fat objects and archives on Mac OS X.
17149 LIPO=$lt_LIPO
17151 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17152 OTOOL=$lt_OTOOL
17154 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17155 OTOOL64=$lt_OTOOL64
17157 # Old archive suffix (normally "a").
17158 libext=$libext
17160 # Shared library suffix (normally ".so").
17161 shrext_cmds=$lt_shrext_cmds
17163 # The commands to extract the exported symbol list from a shared archive.
17164 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17166 # Variables whose values should be saved in libtool wrapper scripts and
17167 # restored at link time.
17168 variables_saved_for_relink=$lt_variables_saved_for_relink
17170 # Do we need the "lib" prefix for modules?
17171 need_lib_prefix=$need_lib_prefix
17173 # Do we need a version for libraries?
17174 need_version=$need_version
17176 # Library versioning type.
17177 version_type=$version_type
17179 # Shared library runtime path variable.
17180 runpath_var=$runpath_var
17182 # Shared library path variable.
17183 shlibpath_var=$shlibpath_var
17185 # Is shlibpath searched before the hard-coded library search path?
17186 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17188 # Format of library name prefix.
17189 libname_spec=$lt_libname_spec
17191 # List of archive names. First name is the real one, the rest are links.
17192 # The last name is the one that the linker finds with -lNAME
17193 library_names_spec=$lt_library_names_spec
17195 # The coded name of the library, if different from the real name.
17196 soname_spec=$lt_soname_spec
17198 # Permission mode override for installation of shared libraries.
17199 install_override_mode=$lt_install_override_mode
17201 # Command to use after installation of a shared archive.
17202 postinstall_cmds=$lt_postinstall_cmds
17204 # Command to use after uninstallation of a shared archive.
17205 postuninstall_cmds=$lt_postuninstall_cmds
17207 # Commands used to finish a libtool library installation in a directory.
17208 finish_cmds=$lt_finish_cmds
17210 # As "finish_cmds", except a single script fragment to be evaled but
17211 # not shown.
17212 finish_eval=$lt_finish_eval
17214 # Whether we should hardcode library paths into libraries.
17215 hardcode_into_libs=$hardcode_into_libs
17217 # Compile-time system search path for libraries.
17218 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17220 # Run-time system search path for libraries.
17221 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17223 # Whether dlopen is supported.
17224 dlopen_support=$enable_dlopen
17226 # Whether dlopen of programs is supported.
17227 dlopen_self=$enable_dlopen_self
17229 # Whether dlopen of statically linked programs is supported.
17230 dlopen_self_static=$enable_dlopen_self_static
17232 # Commands to strip libraries.
17233 old_striplib=$lt_old_striplib
17234 striplib=$lt_striplib
17237 # The linker used to build libraries.
17238 LD=$lt_LD
17240 # How to create reloadable object files.
17241 reload_flag=$lt_reload_flag
17242 reload_cmds=$lt_reload_cmds
17244 # Commands used to build an old-style archive.
17245 old_archive_cmds=$lt_old_archive_cmds
17247 # A language specific compiler.
17248 CC=$lt_compiler
17250 # Is the compiler the GNU compiler?
17251 with_gcc=$GCC
17253 # Compiler flag to turn off builtin functions.
17254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17256 # Additional compiler flags for building library objects.
17257 pic_flag=$lt_lt_prog_compiler_pic
17259 # How to pass a linker flag through the compiler.
17260 wl=$lt_lt_prog_compiler_wl
17262 # Compiler flag to prevent dynamic linking.
17263 link_static_flag=$lt_lt_prog_compiler_static
17265 # Does compiler simultaneously support -c and -o options?
17266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17268 # Whether or not to add -lc for building shared libraries.
17269 build_libtool_need_lc=$archive_cmds_need_lc
17271 # Whether or not to disallow shared libs when runtime libs are static.
17272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17274 # Compiler flag to allow reflexive dlopens.
17275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17277 # Compiler flag to generate shared objects directly from archives.
17278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17280 # Whether the compiler copes with passing no objects directly.
17281 compiler_needs_object=$lt_compiler_needs_object
17283 # Create an old-style archive from a shared archive.
17284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17286 # Create a temporary old-style archive to link instead of a shared archive.
17287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17289 # Commands used to build a shared archive.
17290 archive_cmds=$lt_archive_cmds
17291 archive_expsym_cmds=$lt_archive_expsym_cmds
17293 # Commands used to build a loadable module if different from building
17294 # a shared archive.
17295 module_cmds=$lt_module_cmds
17296 module_expsym_cmds=$lt_module_expsym_cmds
17298 # Whether we are building with GNU ld or not.
17299 with_gnu_ld=$lt_with_gnu_ld
17301 # Flag that allows shared libraries with undefined symbols to be built.
17302 allow_undefined_flag=$lt_allow_undefined_flag
17304 # Flag that enforces no undefined symbols.
17305 no_undefined_flag=$lt_no_undefined_flag
17307 # Flag to hardcode \$libdir into a binary during linking.
17308 # This must work even if \$libdir does not exist
17309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17311 # Whether we need a single "-rpath" flag with a separated argument.
17312 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17314 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17315 # DIR into the resulting binary.
17316 hardcode_direct=$hardcode_direct
17318 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17319 # DIR into the resulting binary and the resulting library dependency is
17320 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17321 # library is relocated.
17322 hardcode_direct_absolute=$hardcode_direct_absolute
17324 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17325 # into the resulting binary.
17326 hardcode_minus_L=$hardcode_minus_L
17328 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17329 # into the resulting binary.
17330 hardcode_shlibpath_var=$hardcode_shlibpath_var
17332 # Set to "yes" if building a shared library automatically hardcodes DIR
17333 # into the library and all subsequent libraries and executables linked
17334 # against it.
17335 hardcode_automatic=$hardcode_automatic
17337 # Set to yes if linker adds runtime paths of dependent libraries
17338 # to runtime path list.
17339 inherit_rpath=$inherit_rpath
17341 # Whether libtool must link a program against all its dependency libraries.
17342 link_all_deplibs=$link_all_deplibs
17344 # Set to "yes" if exported symbols are required.
17345 always_export_symbols=$always_export_symbols
17347 # The commands to list exported symbols.
17348 export_symbols_cmds=$lt_export_symbols_cmds
17350 # Symbols that should not be listed in the preloaded symbols.
17351 exclude_expsyms=$lt_exclude_expsyms
17353 # Symbols that must always be exported.
17354 include_expsyms=$lt_include_expsyms
17356 # Commands necessary for linking programs (against libraries) with templates.
17357 prelink_cmds=$lt_prelink_cmds
17359 # Commands necessary for finishing linking programs.
17360 postlink_cmds=$lt_postlink_cmds
17362 # Specify filename containing input files.
17363 file_list_spec=$lt_file_list_spec
17365 # How to hardcode a shared library path into an executable.
17366 hardcode_action=$hardcode_action
17368 # ### END LIBTOOL CONFIG
17370 _LT_EOF
17372 case $host_os in
17373 aix3*)
17374 cat <<\_LT_EOF >> "$cfgfile"
17375 # AIX sometimes has problems with the GCC collect2 program. For some
17376 # reason, if we set the COLLECT_NAMES environment variable, the problems
17377 # vanish in a puff of smoke.
17378 if test "X${COLLECT_NAMES+set}" != Xset; then
17379 COLLECT_NAMES=
17380 export COLLECT_NAMES
17382 _LT_EOF
17384 esac
17387 ltmain="$ac_aux_dir/ltmain.sh"
17390 # We use sed instead of cat because bash on DJGPP gets confused if
17391 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17392 # text mode, it properly converts lines to CR/LF. This bash problem
17393 # is reportedly fixed, but why not run on old versions too?
17394 sed '$q' "$ltmain" >> "$cfgfile" \
17395 || (rm -f "$cfgfile"; exit 1)
17397 if test x"$xsi_shell" = xyes; then
17398 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17399 func_dirname ()\
17401 \ case ${1} in\
17402 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17403 \ * ) func_dirname_result="${3}" ;;\
17404 \ esac\
17405 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17406 && mv -f "$cfgfile.tmp" "$cfgfile" \
17407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17408 test 0 -eq $? || _lt_function_replace_fail=:
17411 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17412 func_basename ()\
17414 \ func_basename_result="${1##*/}"\
17415 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17416 && mv -f "$cfgfile.tmp" "$cfgfile" \
17417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17418 test 0 -eq $? || _lt_function_replace_fail=:
17421 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17422 func_dirname_and_basename ()\
17424 \ case ${1} in\
17425 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17426 \ * ) func_dirname_result="${3}" ;;\
17427 \ esac\
17428 \ func_basename_result="${1##*/}"\
17429 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17430 && mv -f "$cfgfile.tmp" "$cfgfile" \
17431 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17432 test 0 -eq $? || _lt_function_replace_fail=:
17435 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17436 func_stripname ()\
17438 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17439 \ # positional parameters, so assign one to ordinary parameter first.\
17440 \ func_stripname_result=${3}\
17441 \ func_stripname_result=${func_stripname_result#"${1}"}\
17442 \ func_stripname_result=${func_stripname_result%"${2}"}\
17443 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17444 && mv -f "$cfgfile.tmp" "$cfgfile" \
17445 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17446 test 0 -eq $? || _lt_function_replace_fail=:
17449 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17450 func_split_long_opt ()\
17452 \ func_split_long_opt_name=${1%%=*}\
17453 \ func_split_long_opt_arg=${1#*=}\
17454 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17455 && mv -f "$cfgfile.tmp" "$cfgfile" \
17456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17457 test 0 -eq $? || _lt_function_replace_fail=:
17460 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17461 func_split_short_opt ()\
17463 \ func_split_short_opt_arg=${1#??}\
17464 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17465 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17466 && mv -f "$cfgfile.tmp" "$cfgfile" \
17467 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17468 test 0 -eq $? || _lt_function_replace_fail=:
17471 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17472 func_lo2o ()\
17474 \ case ${1} in\
17475 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17476 \ *) func_lo2o_result=${1} ;;\
17477 \ esac\
17478 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17479 && mv -f "$cfgfile.tmp" "$cfgfile" \
17480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17481 test 0 -eq $? || _lt_function_replace_fail=:
17484 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17485 func_xform ()\
17487 func_xform_result=${1%.*}.lo\
17488 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17489 && mv -f "$cfgfile.tmp" "$cfgfile" \
17490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17491 test 0 -eq $? || _lt_function_replace_fail=:
17494 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17495 func_arith ()\
17497 func_arith_result=$(( $* ))\
17498 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17499 && mv -f "$cfgfile.tmp" "$cfgfile" \
17500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17501 test 0 -eq $? || _lt_function_replace_fail=:
17504 sed -e '/^func_len ()$/,/^} # func_len /c\
17505 func_len ()\
17507 func_len_result=${#1}\
17508 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17509 && mv -f "$cfgfile.tmp" "$cfgfile" \
17510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17511 test 0 -eq $? || _lt_function_replace_fail=:
17515 if test x"$lt_shell_append" = xyes; then
17516 sed -e '/^func_append ()$/,/^} # func_append /c\
17517 func_append ()\
17519 eval "${1}+=\\${2}"\
17520 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17521 && mv -f "$cfgfile.tmp" "$cfgfile" \
17522 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17523 test 0 -eq $? || _lt_function_replace_fail=:
17526 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17527 func_append_quoted ()\
17529 \ func_quote_for_eval "${2}"\
17530 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17531 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17532 && mv -f "$cfgfile.tmp" "$cfgfile" \
17533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17534 test 0 -eq $? || _lt_function_replace_fail=:
17537 # Save a `func_append' function call where possible by direct use of '+='
17538 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17539 && mv -f "$cfgfile.tmp" "$cfgfile" \
17540 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17541 test 0 -eq $? || _lt_function_replace_fail=:
17542 else
17543 # Save a `func_append' function call even when '+=' is not available
17544 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17545 && mv -f "$cfgfile.tmp" "$cfgfile" \
17546 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17547 test 0 -eq $? || _lt_function_replace_fail=:
17550 if test x"$_lt_function_replace_fail" = x":"; then
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17552 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17556 mv -f "$cfgfile" "$ofile" ||
17557 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17558 chmod +x "$ofile"
17562 esac
17563 done # for ac_tag
17566 as_fn_exit 0
17567 _ACEOF
17568 ac_clean_files=$ac_clean_files_save
17570 test $ac_write_fail = 0 ||
17571 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17574 # configure is writing to config.log, and then calls config.status.
17575 # config.status does its own redirection, appending to config.log.
17576 # Unfortunately, on DOS this fails, as config.log is still kept open
17577 # by configure, so config.status won't be able to write to it; its
17578 # output is simply discarded. So we exec the FD to /dev/null,
17579 # effectively closing config.log, so it can be properly (re)opened and
17580 # appended to by config.status. When coming back to configure, we
17581 # need to make the FD available again.
17582 if test "$no_create" != yes; then
17583 ac_cs_success=:
17584 ac_config_status_args=
17585 test "$silent" = yes &&
17586 ac_config_status_args="$ac_config_status_args --quiet"
17587 exec 5>/dev/null
17588 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17589 exec 5>>config.log
17590 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17591 # would make configure fail if this is the last instruction.
17592 $ac_cs_success || as_fn_exit 1
17594 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17596 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}