dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / dnscrypt / src / libevent-modified / configure
blob9e08ad4ed544218ebe5f7a2521910bc39cfdfa96
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
697 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__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_dependency_tracking
789 enable_gcc_warnings
790 enable_thread_support
791 enable_malloc_replacement
792 enable_openssl
793 enable_debug_mode
794 enable_libevent_install
795 enable_libevent_regress
796 enable_function_sections
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
813 CPP'
816 # Initialize some variables set by options.
817 ac_init_help=
818 ac_init_version=false
819 ac_unrecognized_opts=
820 ac_unrecognized_sep=
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
864 ac_prev=
865 ac_dashdash=
866 for ac_option
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
875 case $ac_option in
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
879 esac
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
885 ac_dashdash=yes ;;
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 ac_prev=bindir ;;
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 bindir=$ac_optarg ;;
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
904 --config-cache | -C)
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
908 ac_prev=datadir ;;
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error $? "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=no ;;
935 -docdir | --docdir | --docdi | --doc | --do)
936 ac_prev=docdir ;;
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 docdir=$ac_optarg ;;
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 ac_prev=dvidir ;;
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 dvidir=$ac_optarg ;;
945 -enable-* | --enable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1199 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information"
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1214 # FIXME: should be removed in autoconf 3.0.
1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 esac
1222 done
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277 test "$silent" = yes && exec 6>/dev/null
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 $as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1306 /^X\(\/\/\)$/{
1307 s//\1/
1310 /^X\(\/\).*/{
1311 s//\1/
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1319 else
1320 ac_srcdir_defaulted=no
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures libevent 2.0.21-stable-dev to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1409 cat <<\_ACEOF
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of libevent 2.0.21-stable-dev:";;
1425 esac
1426 cat <<\_ACEOF
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --disable-dependency-tracking speeds up one-time build
1433 --enable-dependency-tracking do not reject slow dependency extractors
1434 --enable-gcc-warnings enable verbose warnings with GCC
1435 --disable-thread-support
1436 disable support for threading
1437 --disable-malloc-replacement
1438 disable support for replacing the memory mgt
1439 functions
1440 --disable-openssl disable support for openssl encryption
1441 --disable-debug-mode disable support for running in debug mode
1442 --disable-libevent-install, disable installation of libevent
1444 --disable-libevent-regress, skip regress in make check
1446 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1448 --enable-shared[=PKGS] build shared libraries [default=yes]
1449 --enable-static[=PKGS] build static libraries [default=yes]
1450 --enable-fast-install[=PKGS]
1451 optimize for fast installation [default=yes]
1452 --disable-libtool-lock avoid locking (might break parallel builds)
1454 Optional Packages:
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1458 both]
1459 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1460 --with-sysroot=DIR Search for dependent libraries within DIR
1461 (or the compiler's sysroot if not specified).
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1471 CPP C preprocessor
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to the package provider.
1477 _ACEOF
1478 ac_status=$?
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" ||
1485 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486 continue
1487 ac_builddir=.
1489 case "$ac_dir" in
1490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493 # A ".." for each directory in $ac_dir_suffix.
1494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495 case $ac_top_builddir_sub in
1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 esac ;;
1499 esac
1500 ac_abs_top_builddir=$ac_pwd
1501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502 # for backward compatibility:
1503 ac_top_builddir=$ac_top_build_prefix
1505 case $srcdir in
1506 .) # We are building in place.
1507 ac_srcdir=.
1508 ac_top_srcdir=$ac_top_builddir_sub
1509 ac_abs_top_srcdir=$ac_pwd ;;
1510 [\\/]* | ?:[\\/]* ) # Absolute name.
1511 ac_srcdir=$srcdir$ac_dir_suffix;
1512 ac_top_srcdir=$srcdir
1513 ac_abs_top_srcdir=$srcdir ;;
1514 *) # Relative name.
1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516 ac_top_srcdir=$ac_top_build_prefix$srcdir
1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 esac
1519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521 cd "$ac_dir" || { ac_status=$?; continue; }
1522 # Check for guested configure.
1523 if test -f "$ac_srcdir/configure.gnu"; then
1524 echo &&
1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526 elif test -f "$ac_srcdir/configure"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure" --help=recursive
1529 else
1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 fi || ac_status=$?
1532 cd "$ac_pwd" || { ac_status=$?; break; }
1533 done
1536 test -n "$ac_init_help" && exit $ac_status
1537 if $ac_init_version; then
1538 cat <<\_ACEOF
1539 libevent configure 2.0.21-stable-dev
1540 generated by GNU Autoconf 2.69
1542 Copyright (C) 2012 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1545 _ACEOF
1546 exit
1549 ## ------------------------ ##
1550 ## Autoconf initialization. ##
1551 ## ------------------------ ##
1553 # ac_fn_c_try_compile LINENO
1554 # --------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_compile ()
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext
1560 if { { ac_try="$ac_compile"
1561 case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564 esac
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_c_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1579 ac_retval=0
1580 else
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1584 ac_retval=1
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1589 } # ac_fn_c_try_compile
1591 # ac_fn_c_try_cpp LINENO
1592 # ----------------------
1593 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_cpp ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } > conftest.i && {
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 }; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=1
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_cpp
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_link ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest$ac_exeext
1635 if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 test -x conftest$ac_exeext
1656 }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1662 ac_retval=1
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_c_try_link
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684 $as_echo_n "(cached) " >&6
1685 else
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 eval "$3=yes"
1693 else
1694 eval "$3=no"
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 } # ac_fn_c_check_header_compile
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1709 ac_fn_c_try_run ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1733 ac_retval=0
1734 else
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1739 ac_retval=$ac_status
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_run
1747 # ac_fn_c_check_func LINENO FUNC VAR
1748 # ----------------------------------
1749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1750 ac_fn_c_check_func ()
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756 $as_echo_n "(cached) " >&6
1757 else
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1762 #define $2 innocuous_$2
1764 /* System header to define __stub macros and hopefully few prototypes,
1765 which can conflict with char $2 (); below.
1766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1767 <limits.h> exists even on freestanding compilers. */
1769 #ifdef __STDC__
1770 # include <limits.h>
1771 #else
1772 # include <assert.h>
1773 #endif
1775 #undef $2
1777 /* Override any GCC internal prototype to avoid an error.
1778 Use char because int might match the return type of a GCC
1779 builtin and then its argument prototype would still apply. */
1780 #ifdef __cplusplus
1781 extern "C"
1782 #endif
1783 char $2 ();
1784 /* The GNU C library defines this for functions which it implements
1785 to always fail with ENOSYS. Some functions are actually named
1786 something starting with __ and the normal name is an alias. */
1787 #if defined __stub_$2 || defined __stub___$2
1788 choke me
1789 #endif
1792 main ()
1794 return $2 ();
1796 return 0;
1798 _ACEOF
1799 if ac_fn_c_try_link "$LINENO"; then :
1800 eval "$3=yes"
1801 else
1802 eval "$3=no"
1804 rm -f core conftest.err conftest.$ac_objext \
1805 conftest$ac_exeext conftest.$ac_ext
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 } # ac_fn_c_check_func
1814 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817 # the include files in INCLUDES and setting the cache variable VAR
1818 # accordingly.
1819 ac_fn_c_check_header_mongrel ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if eval \${$3+:} false; then :
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 else
1832 # Is the header compilable?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834 $as_echo_n "checking $2 usability... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841 ac_header_compiler=yes
1842 else
1843 ac_header_compiler=no
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847 $as_echo "$ac_header_compiler" >&6; }
1849 # Is the header present?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851 $as_echo_n "checking $2 presence... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_cpp "$LINENO"; then :
1857 ac_header_preproc=yes
1858 else
1859 ac_header_preproc=no
1861 rm -f conftest.err conftest.i conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863 $as_echo "$ac_header_preproc" >&6; }
1865 # So? What about this header?
1866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867 yes:no: )
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 no:yes:* )
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1877 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1881 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 esac
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 eval "$3=\$ac_header_compiler"
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1902 # ---------------------------------------------
1903 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1904 # accordingly.
1905 ac_fn_c_check_decl ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 as_decl_name=`echo $2|sed 's/ *(.*//'`
1909 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1911 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1912 if eval \${$3+:} false; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1919 main ()
1921 #ifndef $as_decl_name
1922 #ifdef __cplusplus
1923 (void) $as_decl_use;
1924 #else
1925 (void) $as_decl_name;
1926 #endif
1927 #endif
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 eval "$3=yes"
1935 else
1936 eval "$3=no"
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945 } # ac_fn_c_check_decl
1947 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1948 # --------------------------------------------
1949 # Tries to find the compile-time value of EXPR in a program that includes
1950 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1951 # computed
1952 ac_fn_c_compute_int ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 if test "$cross_compiling" = yes; then
1956 # Depending upon the size, compute the lo and hi bounds.
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 main ()
1963 static int test_array [1 - 2 * !(($2) >= 0)];
1964 test_array [0] = 0;
1965 return test_array [0];
1968 return 0;
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_lo=0 ac_mid=0
1973 while :; do
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1978 main ()
1980 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1981 test_array [0] = 0;
1982 return test_array [0];
1985 return 0;
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 ac_hi=$ac_mid; break
1990 else
1991 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1992 if test $ac_lo -le $ac_mid; then
1993 ac_lo= ac_hi=
1994 break
1996 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 done
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 main ()
2007 static int test_array [1 - 2 * !(($2) < 0)];
2008 test_array [0] = 0;
2009 return test_array [0];
2012 return 0;
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_hi=-1 ac_mid=-1
2017 while :; do
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2022 main ()
2024 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2025 test_array [0] = 0;
2026 return test_array [0];
2029 return 0;
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_lo=$ac_mid; break
2034 else
2035 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2036 if test $ac_mid -le $ac_hi; then
2037 ac_lo= ac_hi=
2038 break
2040 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 done
2044 else
2045 ac_lo= ac_hi=
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 # Binary search between lo and hi bounds.
2051 while test "x$ac_lo" != "x$ac_hi"; do
2052 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2057 main ()
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060 test_array [0] = 0;
2061 return test_array [0];
2064 return 0;
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_hi=$ac_mid
2069 else
2070 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 done
2074 case $ac_lo in #((
2075 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2076 '') ac_retval=1 ;;
2077 esac
2078 else
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2082 static long int longval () { return $2; }
2083 static unsigned long int ulongval () { return $2; }
2084 #include <stdio.h>
2085 #include <stdlib.h>
2087 main ()
2090 FILE *f = fopen ("conftest.val", "w");
2091 if (! f)
2092 return 1;
2093 if (($2) < 0)
2095 long int i = longval ();
2096 if (i != ($2))
2097 return 1;
2098 fprintf (f, "%ld", i);
2100 else
2102 unsigned long int i = ulongval ();
2103 if (i != ($2))
2104 return 1;
2105 fprintf (f, "%lu", i);
2107 /* Do not output a trailing newline, as this causes \r\n confusion
2108 on some platforms. */
2109 return ferror (f) || fclose (f) != 0;
2112 return 0;
2114 _ACEOF
2115 if ac_fn_c_try_run "$LINENO"; then :
2116 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2117 else
2118 ac_retval=1
2120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2121 conftest.$ac_objext conftest.beam conftest.$ac_ext
2122 rm -f conftest.val
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2128 } # ac_fn_c_compute_int
2130 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131 # -------------------------------------------
2132 # Tests whether TYPE exists after having included INCLUDES, setting cache
2133 # variable VAR accordingly.
2134 ac_fn_c_check_type ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 eval "$3=no"
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 if (sizeof ($2))
2150 return 0;
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 if (sizeof (($2)))
2163 return 0;
2165 return 0;
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2170 else
2171 eval "$3=yes"
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_type
2184 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2185 # ----------------------------------------------------
2186 # Tries to find if the field MEMBER exists in type AGGR, after including
2187 # INCLUDES, setting cache variable VAR accordingly.
2188 ac_fn_c_check_member ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2192 $as_echo_n "checking for $2.$3... " >&6; }
2193 if eval \${$4+:} false; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2200 main ()
2202 static $2 ac_aggr;
2203 if (ac_aggr.$3)
2204 return 0;
2206 return 0;
2208 _ACEOF
2209 if ac_fn_c_try_compile "$LINENO"; then :
2210 eval "$4=yes"
2211 else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2216 main ()
2218 static $2 ac_aggr;
2219 if (sizeof ac_aggr.$3)
2220 return 0;
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 eval "$4=yes"
2227 else
2228 eval "$4=no"
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 eval ac_res=\$$4
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 } # ac_fn_c_check_member
2240 cat >config.log <<_ACEOF
2241 This file contains any messages produced by compilers while
2242 running configure, to aid debugging if configure makes a mistake.
2244 It was created by libevent $as_me 2.0.21-stable-dev, which was
2245 generated by GNU Autoconf 2.69. Invocation command line was
2247 $ $0 $@
2249 _ACEOF
2250 exec 5>>config.log
2252 cat <<_ASUNAME
2253 ## --------- ##
2254 ## Platform. ##
2255 ## --------- ##
2257 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2258 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2259 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2260 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2261 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2263 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2264 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2266 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2267 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2268 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2269 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2270 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2271 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2272 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2274 _ASUNAME
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 $as_echo "PATH: $as_dir"
2282 done
2283 IFS=$as_save_IFS
2285 } >&5
2287 cat >&5 <<_ACEOF
2290 ## ----------- ##
2291 ## Core tests. ##
2292 ## ----------- ##
2294 _ACEOF
2297 # Keep a trace of the command line.
2298 # Strip out --no-create and --no-recursion so they do not pile up.
2299 # Strip out --silent because we don't want to record it for future runs.
2300 # Also quote any args containing shell meta-characters.
2301 # Make two passes to allow for proper duplicate-argument suppression.
2302 ac_configure_args=
2303 ac_configure_args0=
2304 ac_configure_args1=
2305 ac_must_keep_next=false
2306 for ac_pass in 1 2
2308 for ac_arg
2310 case $ac_arg in
2311 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313 | -silent | --silent | --silen | --sile | --sil)
2314 continue ;;
2315 *\'*)
2316 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2317 esac
2318 case $ac_pass in
2319 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2321 as_fn_append ac_configure_args1 " '$ac_arg'"
2322 if test $ac_must_keep_next = true; then
2323 ac_must_keep_next=false # Got value, back to normal.
2324 else
2325 case $ac_arg in
2326 *=* | --config-cache | -C | -disable-* | --disable-* \
2327 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329 | -with-* | --with-* | -without-* | --without-* | --x)
2330 case "$ac_configure_args0 " in
2331 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2332 esac
2334 -* ) ac_must_keep_next=true ;;
2335 esac
2337 as_fn_append ac_configure_args " '$ac_arg'"
2339 esac
2340 done
2341 done
2342 { ac_configure_args0=; unset ac_configure_args0;}
2343 { ac_configure_args1=; unset ac_configure_args1;}
2345 # When interrupted or exit'd, cleanup temporary files, and complete
2346 # config.log. We remove comments because anyway the quotes in there
2347 # would cause problems or look ugly.
2348 # WARNING: Use '\'' to represent an apostrophe within the trap.
2349 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350 trap 'exit_status=$?
2351 # Save into config.log some information that might help in debugging.
2353 echo
2355 $as_echo "## ---------------- ##
2356 ## Cache variables. ##
2357 ## ---------------- ##"
2358 echo
2359 # The following way of writing the cache mishandles newlines in values,
2361 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2362 eval ac_val=\$$ac_var
2363 case $ac_val in #(
2364 *${as_nl}*)
2365 case $ac_var in #(
2366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2368 esac
2369 case $ac_var in #(
2370 _ | IFS | as_nl) ;; #(
2371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2372 *) { eval $ac_var=; unset $ac_var;} ;;
2373 esac ;;
2374 esac
2375 done
2376 (set) 2>&1 |
2377 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2378 *${as_nl}ac_space=\ *)
2379 sed -n \
2380 "s/'\''/'\''\\\\'\'''\''/g;
2381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2382 ;; #(
2384 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2386 esac |
2387 sort
2389 echo
2391 $as_echo "## ----------------- ##
2392 ## Output variables. ##
2393 ## ----------------- ##"
2394 echo
2395 for ac_var in $ac_subst_vars
2397 eval ac_val=\$$ac_var
2398 case $ac_val in
2399 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400 esac
2401 $as_echo "$ac_var='\''$ac_val'\''"
2402 done | sort
2403 echo
2405 if test -n "$ac_subst_files"; then
2406 $as_echo "## ------------------- ##
2407 ## File substitutions. ##
2408 ## ------------------- ##"
2409 echo
2410 for ac_var in $ac_subst_files
2412 eval ac_val=\$$ac_var
2413 case $ac_val in
2414 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415 esac
2416 $as_echo "$ac_var='\''$ac_val'\''"
2417 done | sort
2418 echo
2421 if test -s confdefs.h; then
2422 $as_echo "## ----------- ##
2423 ## confdefs.h. ##
2424 ## ----------- ##"
2425 echo
2426 cat confdefs.h
2427 echo
2429 test "$ac_signal" != 0 &&
2430 $as_echo "$as_me: caught signal $ac_signal"
2431 $as_echo "$as_me: exit $exit_status"
2432 } >&5
2433 rm -f core *.core core.conftest.* &&
2434 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2435 exit $exit_status
2437 for ac_signal in 1 2 13 15; do
2438 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2439 done
2440 ac_signal=0
2442 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2443 rm -f -r conftest* confdefs.h
2445 $as_echo "/* confdefs.h */" > confdefs.h
2447 # Predefined preprocessor variables.
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_NAME "$PACKAGE_NAME"
2451 _ACEOF
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2455 _ACEOF
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2459 _ACEOF
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_STRING "$PACKAGE_STRING"
2463 _ACEOF
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_URL "$PACKAGE_URL"
2471 _ACEOF
2474 # Let the site file select an alternate cache file if it wants to.
2475 # Prefer an explicitly selected file to automatically selected ones.
2476 ac_site_file1=NONE
2477 ac_site_file2=NONE
2478 if test -n "$CONFIG_SITE"; then
2479 # We do not want a PATH search for config.site.
2480 case $CONFIG_SITE in #((
2481 -*) ac_site_file1=./$CONFIG_SITE;;
2482 */*) ac_site_file1=$CONFIG_SITE;;
2483 *) ac_site_file1=./$CONFIG_SITE;;
2484 esac
2485 elif test "x$prefix" != xNONE; then
2486 ac_site_file1=$prefix/share/config.site
2487 ac_site_file2=$prefix/etc/config.site
2488 else
2489 ac_site_file1=$ac_default_prefix/share/config.site
2490 ac_site_file2=$ac_default_prefix/etc/config.site
2492 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2494 test "x$ac_site_file" = xNONE && continue
2495 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2498 sed 's/^/| /' "$ac_site_file" >&5
2499 . "$ac_site_file" \
2500 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2502 as_fn_error $? "failed to load site script $ac_site_file
2503 See \`config.log' for more details" "$LINENO" 5; }
2505 done
2507 if test -r "$cache_file"; then
2508 # Some versions of bash will fail to source /dev/null (special files
2509 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2510 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512 $as_echo "$as_me: loading cache $cache_file" >&6;}
2513 case $cache_file in
2514 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515 *) . "./$cache_file";;
2516 esac
2518 else
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520 $as_echo "$as_me: creating cache $cache_file" >&6;}
2521 >$cache_file
2524 # Check that the precious variables saved in the cache have kept the same
2525 # value.
2526 ac_cache_corrupted=false
2527 for ac_var in $ac_precious_vars; do
2528 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2529 eval ac_new_set=\$ac_env_${ac_var}_set
2530 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2531 eval ac_new_val=\$ac_env_${ac_var}_value
2532 case $ac_old_set,$ac_new_set in
2533 set,)
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2535 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2536 ac_cache_corrupted=: ;;
2537 ,set)
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2541 ,);;
2543 if test "x$ac_old_val" != "x$ac_new_val"; then
2544 # differences in whitespace do not lead to failure.
2545 ac_old_val_w=`echo x $ac_old_val`
2546 ac_new_val_w=`echo x $ac_new_val`
2547 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2549 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2550 ac_cache_corrupted=:
2551 else
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2553 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2554 eval $ac_var=\$ac_old_val
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2557 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2559 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2560 fi;;
2561 esac
2562 # Pass precious variables to config.status.
2563 if test "$ac_new_set" = set; then
2564 case $ac_new_val in
2565 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2566 *) ac_arg=$ac_var=$ac_new_val ;;
2567 esac
2568 case " $ac_configure_args " in
2569 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2570 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2571 esac
2573 done
2574 if $ac_cache_corrupted; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2578 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2579 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2581 ## -------------------- ##
2582 ## Main body of script. ##
2583 ## -------------------- ##
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593 am__api_version='1.11'
2595 ac_aux_dir=
2596 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2597 if test -f "$ac_dir/install-sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2600 break
2601 elif test -f "$ac_dir/install.sh"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2604 break
2605 elif test -f "$ac_dir/shtool"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2608 break
2610 done
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624 # Find a good install program. We prefer a C program (faster),
2625 # so one script is as good as another. But avoid the broken or
2626 # incompatible versions:
2627 # SysV /etc/install, /usr/sbin/install
2628 # SunOS /usr/etc/install
2629 # IRIX /sbin/install
2630 # AIX /bin/install
2631 # AmigaOS /C/install, which installs bootblocks on floppy discs
2632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2635 # OS/2's system install, which has a completely different semantic
2636 # ./install, which can be erroneously created by make from ./install.sh.
2637 # Reject install programs that cannot install multiple files.
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2639 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2640 if test -z "$INSTALL"; then
2641 if ${ac_cv_path_install+:} false; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 # Account for people who put trailing slashes in PATH elements.
2650 case $as_dir/ in #((
2651 ./ | .// | /[cC]/* | \
2652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2653 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2654 /usr/ucb/* ) ;;
2656 # OSF1 and SCO ODT 3.0 have their own names for install.
2657 # Don't use installbsd from OSF since it installs stuff as root
2658 # by default.
2659 for ac_prog in ginstall scoinst install; do
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2662 if test $ac_prog = install &&
2663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664 # AIX install. It has an incompatible calling convention.
2666 elif test $ac_prog = install &&
2667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2668 # program-specific install script used by HP pwplus--don't use.
2670 else
2671 rm -rf conftest.one conftest.two conftest.dir
2672 echo one > conftest.one
2673 echo two > conftest.two
2674 mkdir conftest.dir
2675 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2676 test -s conftest.one && test -s conftest.two &&
2677 test -s conftest.dir/conftest.one &&
2678 test -s conftest.dir/conftest.two
2679 then
2680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2681 break 3
2685 done
2686 done
2688 esac
2690 done
2691 IFS=$as_save_IFS
2693 rm -rf conftest.one conftest.two conftest.dir
2696 if test "${ac_cv_path_install+set}" = set; then
2697 INSTALL=$ac_cv_path_install
2698 else
2699 # As a last resort, use the slow shell script. Don't cache a
2700 # value for INSTALL within a source directory, because that will
2701 # break other packages using the cache if that directory is
2702 # removed, or if the value is a relative name.
2703 INSTALL=$ac_install_sh
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2707 $as_echo "$INSTALL" >&6; }
2709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2710 # It thinks the first close brace ends the variable substitution.
2711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2715 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2718 $as_echo_n "checking whether build environment is sane... " >&6; }
2719 # Just in case
2720 sleep 1
2721 echo timestamp > conftest.file
2722 # Reject unsafe characters in $srcdir or the absolute working directory
2723 # name. Accept space and tab only in the latter.
2724 am_lf='
2726 case `pwd` in
2727 *[\\\"\#\$\&\'\`$am_lf]*)
2728 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2729 esac
2730 case $srcdir in
2731 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2732 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2733 esac
2735 # Do `set' in a subshell so we don't clobber the current shell's
2736 # arguments. Must try -L first in case configure is actually a
2737 # symlink; some systems play weird games with the mod time of symlinks
2738 # (eg FreeBSD returns the mod time of the symlink's containing
2739 # directory).
2740 if (
2741 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2742 if test "$*" = "X"; then
2743 # -L didn't work.
2744 set X `ls -t "$srcdir/configure" conftest.file`
2746 rm -f conftest.file
2747 if test "$*" != "X $srcdir/configure conftest.file" \
2748 && test "$*" != "X conftest.file $srcdir/configure"; then
2750 # If neither matched, then we have a broken ls. This can happen
2751 # if, for instance, CONFIG_SHELL is bash and it inherits a
2752 # broken ls alias from the environment. This has actually
2753 # happened. Such a system could not be considered "sane".
2754 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2755 alias in your environment" "$LINENO" 5
2758 test "$2" = conftest.file
2760 then
2761 # Ok.
2763 else
2764 as_fn_error $? "newly created file is older than distributed files!
2765 Check your system clock" "$LINENO" 5
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2769 test "$program_prefix" != NONE &&
2770 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2771 # Use a double $ so make ignores it.
2772 test "$program_suffix" != NONE &&
2773 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2774 # Double any \ or $.
2775 # By default was `s,x,x', remove it if useless.
2776 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2777 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2779 # expand $ac_aux_dir to an absolute path
2780 am_aux_dir=`cd $ac_aux_dir && pwd`
2782 if test x"${MISSING+set}" != xset; then
2783 case $am_aux_dir in
2784 *\ * | *\ *)
2785 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2787 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2788 esac
2790 # Use eval to expand $SHELL
2791 if eval "$MISSING --run true"; then
2792 am_missing_run="$MISSING --run "
2793 else
2794 am_missing_run=
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2796 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2799 if test x"${install_sh}" != xset; then
2800 case $am_aux_dir in
2801 *\ * | *\ *)
2802 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2804 install_sh="\${SHELL} $am_aux_dir/install-sh"
2805 esac
2808 # Installed binaries are usually stripped using `strip' when the user
2809 # run `make install-strip'. However `strip' might not be the right
2810 # tool to use in cross-compilation environments, therefore Automake
2811 # will honor the `STRIP' environment variable to overrule this program.
2812 if test "$cross_compiling" != no; then
2813 if test -n "$ac_tool_prefix"; then
2814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}strip; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_STRIP+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$STRIP"; then
2822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2835 done
2836 done
2837 IFS=$as_save_IFS
2841 STRIP=$ac_cv_prog_STRIP
2842 if test -n "$STRIP"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2844 $as_echo "$STRIP" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2852 if test -z "$ac_cv_prog_STRIP"; then
2853 ac_ct_STRIP=$STRIP
2854 # Extract the first word of "strip", so it can be a program name with args.
2855 set dummy strip; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2859 $as_echo_n "(cached) " >&6
2860 else
2861 if test -n "$ac_ct_STRIP"; then
2862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_ac_ct_STRIP="strip"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 break 2
2875 done
2876 done
2877 IFS=$as_save_IFS
2881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2882 if test -n "$ac_ct_STRIP"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2884 $as_echo "$ac_ct_STRIP" >&6; }
2885 else
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2890 if test "x$ac_ct_STRIP" = x; then
2891 STRIP=":"
2892 else
2893 case $cross_compiling:$ac_tool_warned in
2894 yes:)
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2897 ac_tool_warned=yes ;;
2898 esac
2899 STRIP=$ac_ct_STRIP
2901 else
2902 STRIP="$ac_cv_prog_STRIP"
2906 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2909 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2910 if test -z "$MKDIR_P"; then
2911 if ${ac_cv_path_mkdir+:} false; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_prog in mkdir gmkdir; do
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2922 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2923 'mkdir (GNU coreutils) '* | \
2924 'mkdir (coreutils) '* | \
2925 'mkdir (fileutils) '4.1*)
2926 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2927 break 3;;
2928 esac
2929 done
2930 done
2931 done
2932 IFS=$as_save_IFS
2936 test -d ./--version && rmdir ./--version
2937 if test "${ac_cv_path_mkdir+set}" = set; then
2938 MKDIR_P="$ac_cv_path_mkdir -p"
2939 else
2940 # As a last resort, use the slow shell script. Don't cache a
2941 # value for MKDIR_P within a source directory, because that will
2942 # break other packages using the cache if that directory is
2943 # removed, or if the value is a relative name.
2944 MKDIR_P="$ac_install_sh -d"
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2948 $as_echo "$MKDIR_P" >&6; }
2950 mkdir_p="$MKDIR_P"
2951 case $mkdir_p in
2952 [\\/$]* | ?:[\\/]*) ;;
2953 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2954 esac
2956 for ac_prog in gawk mawk nawk awk
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_AWK+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$AWK"; then
2966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_AWK="$ac_prog"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2979 done
2980 done
2981 IFS=$as_save_IFS
2985 AWK=$ac_cv_prog_AWK
2986 if test -n "$AWK"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2988 $as_echo "$AWK" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2995 test -n "$AWK" && break
2996 done
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2999 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3000 set x ${MAKE-make}
3001 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3002 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 cat >conftest.make <<\_ACEOF
3006 SHELL = /bin/sh
3007 all:
3008 @echo '@@@%%%=$(MAKE)=@@@%%%'
3009 _ACEOF
3010 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3011 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3012 *@@@%%%=?*=@@@%%%*)
3013 eval ac_cv_prog_make_${ac_make}_set=yes;;
3015 eval ac_cv_prog_make_${ac_make}_set=no;;
3016 esac
3017 rm -f conftest.make
3019 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3021 $as_echo "yes" >&6; }
3022 SET_MAKE=
3023 else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3026 SET_MAKE="MAKE=${MAKE-make}"
3029 rm -rf .tst 2>/dev/null
3030 mkdir .tst 2>/dev/null
3031 if test -d .tst; then
3032 am__leading_dot=.
3033 else
3034 am__leading_dot=_
3036 rmdir .tst 2>/dev/null
3038 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3039 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3040 # is not polluted with repeated "-I."
3041 am__isrc=' -I$(srcdir)'
3042 # test to see if srcdir already configured
3043 if test -f $srcdir/config.status; then
3044 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3048 # test whether we have cygpath
3049 if test -z "$CYGPATH_W"; then
3050 if (cygpath --version) >/dev/null 2>/dev/null; then
3051 CYGPATH_W='cygpath -w'
3052 else
3053 CYGPATH_W=echo
3058 # Define the identity of the package.
3059 PACKAGE='libevent'
3060 VERSION='2.0.21-stable-dev'
3063 cat >>confdefs.h <<_ACEOF
3064 #define PACKAGE "$PACKAGE"
3065 _ACEOF
3068 cat >>confdefs.h <<_ACEOF
3069 #define VERSION "$VERSION"
3070 _ACEOF
3072 # Some tools Automake needs.
3074 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3077 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3080 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3083 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3086 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3088 # We need awk for the "check" target. The system "awk" is bad on
3089 # some platforms.
3090 # Always define AMTAR for backward compatibility. Yes, it's still used
3091 # in the wild :-( We should find a proper way to deprecate it ...
3092 AMTAR='$${TAR-tar}'
3094 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3100 ac_config_headers="$ac_config_headers config.h"
3103 $as_echo "#define NUMERIC_VERSION 0x02001501" >>confdefs.h
3106 if test "$prefix" = "NONE"; then
3107 prefix="/usr/local"
3110 # Make sure we can run config.sub.
3111 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3112 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3115 $as_echo_n "checking build system type... " >&6; }
3116 if ${ac_cv_build+:} false; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 ac_build_alias=$build_alias
3120 test "x$ac_build_alias" = x &&
3121 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3122 test "x$ac_build_alias" = x &&
3123 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3124 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3125 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3129 $as_echo "$ac_cv_build" >&6; }
3130 case $ac_cv_build in
3131 *-*-*) ;;
3132 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3133 esac
3134 build=$ac_cv_build
3135 ac_save_IFS=$IFS; IFS='-'
3136 set x $ac_cv_build
3137 shift
3138 build_cpu=$1
3139 build_vendor=$2
3140 shift; shift
3141 # Remember, the first character of IFS is used to create $*,
3142 # except with old shells:
3143 build_os=$*
3144 IFS=$ac_save_IFS
3145 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3149 $as_echo_n "checking host system type... " >&6; }
3150 if ${ac_cv_host+:} false; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test "x$host_alias" = x; then
3154 ac_cv_host=$ac_cv_build
3155 else
3156 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3157 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3162 $as_echo "$ac_cv_host" >&6; }
3163 case $ac_cv_host in
3164 *-*-*) ;;
3165 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3166 esac
3167 host=$ac_cv_host
3168 ac_save_IFS=$IFS; IFS='-'
3169 set x $ac_cv_host
3170 shift
3171 host_cpu=$1
3172 host_vendor=$2
3173 shift; shift
3174 # Remember, the first character of IFS is used to create $*,
3175 # except with old shells:
3176 host_os=$*
3177 IFS=$ac_save_IFS
3178 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3182 case "$host_os" in
3184 osf5*)
3185 CFLAGS="$CFLAGS -D_OSF_SOURCE"
3187 esac
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 if test -n "$ac_tool_prefix"; then
3195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3196 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_CC+:} false; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test -n "$CC"; then
3203 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 else
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3218 IFS=$as_save_IFS
3222 CC=$ac_cv_prog_CC
3223 if test -n "$CC"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3225 $as_echo "$CC" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3233 if test -z "$ac_cv_prog_CC"; then
3234 ac_ct_CC=$CC
3235 # Extract the first word of "gcc", so it can be a program name with args.
3236 set dummy gcc; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 if test -n "$ac_ct_CC"; then
3243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_ac_ct_CC="gcc"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3256 done
3257 done
3258 IFS=$as_save_IFS
3262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3263 if test -n "$ac_ct_CC"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3265 $as_echo "$ac_ct_CC" >&6; }
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3271 if test "x$ac_ct_CC" = x; then
3272 CC=""
3273 else
3274 case $cross_compiling:$ac_tool_warned in
3275 yes:)
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278 ac_tool_warned=yes ;;
3279 esac
3280 CC=$ac_ct_CC
3282 else
3283 CC="$ac_cv_prog_CC"
3286 if test -z "$CC"; then
3287 if test -n "$ac_tool_prefix"; then
3288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3289 set dummy ${ac_tool_prefix}cc; ac_word=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_CC+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC="$CC" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_exec_ext in '' $ac_executable_extensions; do
3304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_CC="${ac_tool_prefix}cc"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307 break 2
3309 done
3310 done
3311 IFS=$as_save_IFS
3315 CC=$ac_cv_prog_CC
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3327 if test -z "$CC"; then
3328 # Extract the first word of "cc", so it can be a program name with args.
3329 set dummy cc; ac_word=$2
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3331 $as_echo_n "checking for $ac_word... " >&6; }
3332 if ${ac_cv_prog_CC+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if test -n "$CC"; then
3336 ac_cv_prog_CC="$CC" # Let the user override the test.
3337 else
3338 ac_prog_rejected=no
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3347 ac_prog_rejected=yes
3348 continue
3350 ac_cv_prog_CC="cc"
3351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 break 2
3354 done
3355 done
3356 IFS=$as_save_IFS
3358 if test $ac_prog_rejected = yes; then
3359 # We found a bogon in the path, so make sure we never use it.
3360 set dummy $ac_cv_prog_CC
3361 shift
3362 if test $# != 0; then
3363 # We chose a different compiler from the bogus one.
3364 # However, it has the same basename, so the bogon will be chosen
3365 # first if we set CC to just the basename; use the full file name.
3366 shift
3367 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3372 CC=$ac_cv_prog_CC
3373 if test -n "$CC"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3375 $as_echo "$CC" >&6; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3383 if test -z "$CC"; then
3384 if test -n "$ac_tool_prefix"; then
3385 for ac_prog in cl.exe
3387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3388 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_CC+:} false; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3408 done
3409 done
3410 IFS=$as_save_IFS
3414 CC=$ac_cv_prog_CC
3415 if test -n "$CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417 $as_echo "$CC" >&6; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3424 test -n "$CC" && break
3425 done
3427 if test -z "$CC"; then
3428 ac_ct_CC=$CC
3429 for ac_prog in cl.exe
3431 # Extract the first word of "$ac_prog", so it can be a program name with args.
3432 set dummy $ac_prog; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$ac_ct_CC"; then
3439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448 ac_cv_prog_ac_ct_CC="$ac_prog"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3452 done
3453 done
3454 IFS=$as_save_IFS
3458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3459 if test -n "$ac_ct_CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3461 $as_echo "$ac_ct_CC" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3468 test -n "$ac_ct_CC" && break
3469 done
3471 if test "x$ac_ct_CC" = x; then
3472 CC=""
3473 else
3474 case $cross_compiling:$ac_tool_warned in
3475 yes:)
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3478 ac_tool_warned=yes ;;
3479 esac
3480 CC=$ac_ct_CC
3487 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3489 as_fn_error $? "no acceptable C compiler found in \$PATH
3490 See \`config.log' for more details" "$LINENO" 5; }
3492 # Provide some information about the compiler.
3493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3494 set X $ac_compile
3495 ac_compiler=$2
3496 for ac_option in --version -v -V -qversion; do
3497 { { ac_try="$ac_compiler $ac_option >&5"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3505 ac_status=$?
3506 if test -s conftest.err; then
3507 sed '10a\
3508 ... rest of stderr output deleted ...
3509 10q' conftest.err >conftest.er1
3510 cat conftest.er1 >&5
3512 rm -f conftest.er1 conftest.err
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }
3515 done
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3521 main ()
3525 return 0;
3527 _ACEOF
3528 ac_clean_files_save=$ac_clean_files
3529 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3530 # Try to create an executable without -o first, disregard a.out.
3531 # It will help us diagnose broken compilers, and finding out an intuition
3532 # of exeext.
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3534 $as_echo_n "checking whether the C compiler works... " >&6; }
3535 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3537 # The possible output files:
3538 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3540 ac_rmfiles=
3541 for ac_file in $ac_files
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3545 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3546 esac
3547 done
3548 rm -f $ac_rmfiles
3550 if { { ac_try="$ac_link_default"
3551 case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3554 esac
3555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3556 $as_echo "$ac_try_echo"; } >&5
3557 (eval "$ac_link_default") 2>&5
3558 ac_status=$?
3559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3560 test $ac_status = 0; }; then :
3561 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3562 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3563 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3564 # so that the user can short-circuit this test for compilers unknown to
3565 # Autoconf.
3566 for ac_file in $ac_files ''
3568 test -f "$ac_file" || continue
3569 case $ac_file in
3570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3572 [ab].out )
3573 # We found the default executable, but exeext='' is most
3574 # certainly right.
3575 break;;
3576 *.* )
3577 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3578 then :; else
3579 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3581 # We set ac_cv_exeext here because the later test for it is not
3582 # safe: cross compilers may not add the suffix if given an `-o'
3583 # argument, so we may need to know it at that point already.
3584 # Even if this section looks crufty: it has the advantage of
3585 # actually working.
3586 break;;
3588 break;;
3589 esac
3590 done
3591 test "$ac_cv_exeext" = no && ac_cv_exeext=
3593 else
3594 ac_file=''
3596 if test -z "$ac_file"; then :
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error 77 "C compiler cannot create executables
3605 See \`config.log' for more details" "$LINENO" 5; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3608 $as_echo "yes" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3611 $as_echo_n "checking for C compiler default output file name... " >&6; }
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3613 $as_echo "$ac_file" >&6; }
3614 ac_exeext=$ac_cv_exeext
3616 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3617 ac_clean_files=$ac_clean_files_save
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3619 $as_echo_n "checking for suffix of executables... " >&6; }
3620 if { { ac_try="$ac_link"
3621 case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3626 $as_echo "$ac_try_echo"; } >&5
3627 (eval "$ac_link") 2>&5
3628 ac_status=$?
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }; then :
3631 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3632 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3633 # work properly (i.e., refer to `conftest.exe'), while it won't with
3634 # `rm'.
3635 for ac_file in conftest.exe conftest conftest.*; do
3636 test -f "$ac_file" || continue
3637 case $ac_file in
3638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3639 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3640 break;;
3641 * ) break;;
3642 esac
3643 done
3644 else
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3648 See \`config.log' for more details" "$LINENO" 5; }
3650 rm -f conftest conftest$ac_cv_exeext
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3652 $as_echo "$ac_cv_exeext" >&6; }
3654 rm -f conftest.$ac_ext
3655 EXEEXT=$ac_cv_exeext
3656 ac_exeext=$EXEEXT
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3659 #include <stdio.h>
3661 main ()
3663 FILE *f = fopen ("conftest.out", "w");
3664 return ferror (f) || fclose (f) != 0;
3667 return 0;
3669 _ACEOF
3670 ac_clean_files="$ac_clean_files conftest.out"
3671 # Check that the compiler produces executables we can run. If not, either
3672 # the compiler is broken, or we cross compile.
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3674 $as_echo_n "checking whether we are cross compiling... " >&6; }
3675 if test "$cross_compiling" != yes; then
3676 { { ac_try="$ac_link"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_link") 2>&5
3684 ac_status=$?
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }
3687 if { ac_try='./conftest$ac_cv_exeext'
3688 { { case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_try") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; }; then
3698 cross_compiling=no
3699 else
3700 if test "$cross_compiling" = maybe; then
3701 cross_compiling=yes
3702 else
3703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3705 as_fn_error $? "cannot run C compiled programs.
3706 If you meant to cross compile, use \`--host'.
3707 See \`config.log' for more details" "$LINENO" 5; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3712 $as_echo "$cross_compiling" >&6; }
3714 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3715 ac_clean_files=$ac_clean_files_save
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3717 $as_echo_n "checking for suffix of object files... " >&6; }
3718 if ${ac_cv_objext+:} false; then :
3719 $as_echo_n "(cached) " >&6
3720 else
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h. */
3725 main ()
3729 return 0;
3731 _ACEOF
3732 rm -f conftest.o conftest.obj
3733 if { { ac_try="$ac_compile"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_compile") 2>&5
3741 ac_status=$?
3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3743 test $ac_status = 0; }; then :
3744 for ac_file in conftest.o conftest.obj 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 ) ;;
3748 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3749 break;;
3750 esac
3751 done
3752 else
3753 $as_echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $? "cannot compute suffix of object files: cannot compile
3759 See \`config.log' for more details" "$LINENO" 5; }
3761 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3764 $as_echo "$ac_cv_objext" >&6; }
3765 OBJEXT=$ac_cv_objext
3766 ac_objext=$OBJEXT
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3768 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3769 if ${ac_cv_c_compiler_gnu+:} false; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3776 main ()
3778 #ifndef __GNUC__
3779 choke me
3780 #endif
3783 return 0;
3785 _ACEOF
3786 if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_compiler_gnu=yes
3788 else
3789 ac_compiler_gnu=no
3791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3792 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3796 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3797 if test $ac_compiler_gnu = yes; then
3798 GCC=yes
3799 else
3800 GCC=
3802 ac_test_CFLAGS=${CFLAGS+set}
3803 ac_save_CFLAGS=$CFLAGS
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3805 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3806 if ${ac_cv_prog_cc_g+:} false; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 ac_save_c_werror_flag=$ac_c_werror_flag
3810 ac_c_werror_flag=yes
3811 ac_cv_prog_cc_g=no
3812 CFLAGS="-g"
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3817 main ()
3821 return 0;
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_g=yes
3826 else
3827 CFLAGS=""
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3832 main ()
3836 return 0;
3838 _ACEOF
3839 if ac_fn_c_try_compile "$LINENO"; then :
3841 else
3842 ac_c_werror_flag=$ac_save_c_werror_flag
3843 CFLAGS="-g"
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3848 main ()
3852 return 0;
3854 _ACEOF
3855 if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv_prog_cc_g=yes
3858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 ac_c_werror_flag=$ac_save_c_werror_flag
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3866 $as_echo "$ac_cv_prog_cc_g" >&6; }
3867 if test "$ac_test_CFLAGS" = set; then
3868 CFLAGS=$ac_save_CFLAGS
3869 elif test $ac_cv_prog_cc_g = yes; then
3870 if test "$GCC" = yes; then
3871 CFLAGS="-g -O2"
3872 else
3873 CFLAGS="-g"
3875 else
3876 if test "$GCC" = yes; then
3877 CFLAGS="-O2"
3878 else
3879 CFLAGS=
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3883 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3884 if ${ac_cv_prog_cc_c89+:} false; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 ac_cv_prog_cc_c89=no
3888 ac_save_CC=$CC
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891 #include <stdarg.h>
3892 #include <stdio.h>
3893 struct stat;
3894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3895 struct buf { int x; };
3896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3897 static char *e (p, i)
3898 char **p;
3899 int i;
3901 return p[i];
3903 static char *f (char * (*g) (char **, int), char **p, ...)
3905 char *s;
3906 va_list v;
3907 va_start (v,p);
3908 s = g (p, va_arg (v,int));
3909 va_end (v);
3910 return s;
3913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3914 function prototypes and stuff, but not '\xHH' hex character constants.
3915 These don't provoke an error unfortunately, instead are silently treated
3916 as 'x'. The following induces an error, until -std is added to get
3917 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3918 array size at least. It's necessary to write '\x00'==0 to get something
3919 that's true only with -std. */
3920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3922 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3923 inside strings and character constants. */
3924 #define FOO(x) 'x'
3925 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3927 int test (int i, double x);
3928 struct s1 {int (*f) (int a);};
3929 struct s2 {int (*f) (double a);};
3930 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3931 int argc;
3932 char **argv;
3934 main ()
3936 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3938 return 0;
3940 _ACEOF
3941 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3942 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3944 CC="$ac_save_CC $ac_arg"
3945 if ac_fn_c_try_compile "$LINENO"; then :
3946 ac_cv_prog_cc_c89=$ac_arg
3948 rm -f core conftest.err conftest.$ac_objext
3949 test "x$ac_cv_prog_cc_c89" != "xno" && break
3950 done
3951 rm -f conftest.$ac_ext
3952 CC=$ac_save_CC
3955 # AC_CACHE_VAL
3956 case "x$ac_cv_prog_cc_c89" in
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3959 $as_echo "none needed" >&6; } ;;
3960 xno)
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3962 $as_echo "unsupported" >&6; } ;;
3964 CC="$CC $ac_cv_prog_cc_c89"
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3966 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3967 esac
3968 if test "x$ac_cv_prog_cc_c89" != xno; then :
3972 ac_ext=c
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 DEPDIR="${am__leading_dot}deps"
3979 ac_config_commands="$ac_config_commands depfiles"
3982 am_make=${MAKE-make}
3983 cat > confinc << 'END'
3984 am__doit:
3985 @echo this is the am__doit target
3986 .PHONY: am__doit
3988 # If we don't find an include directive, just comment out the code.
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3991 am__include="#"
3992 am__quote=
3993 _am_result=none
3994 # First try GNU make style include.
3995 echo "include confinc" > confmf
3996 # Ignore all kinds of additional output from `make'.
3997 case `$am_make -s -f confmf 2> /dev/null` in #(
3998 *the\ am__doit\ target*)
3999 am__include=include
4000 am__quote=
4001 _am_result=GNU
4003 esac
4004 # Now try BSD make style include.
4005 if test "$am__include" = "#"; then
4006 echo '.include "confinc"' > confmf
4007 case `$am_make -s -f confmf 2> /dev/null` in #(
4008 *the\ am__doit\ target*)
4009 am__include=.include
4010 am__quote="\""
4011 _am_result=BSD
4013 esac
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4018 $as_echo "$_am_result" >&6; }
4019 rm -f confinc confmf
4021 # Check whether --enable-dependency-tracking was given.
4022 if test "${enable_dependency_tracking+set}" = set; then :
4023 enableval=$enable_dependency_tracking;
4026 if test "x$enable_dependency_tracking" != xno; then
4027 am_depcomp="$ac_aux_dir/depcomp"
4028 AMDEPBACKSLASH='\'
4029 am__nodep='_no'
4031 if test "x$enable_dependency_tracking" != xno; then
4032 AMDEP_TRUE=
4033 AMDEP_FALSE='#'
4034 else
4035 AMDEP_TRUE='#'
4036 AMDEP_FALSE=
4041 depcc="$CC" am_compiler_list=
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4044 $as_echo_n "checking dependency style of $depcc... " >&6; }
4045 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4049 # We make a subdir and do the tests there. Otherwise we can end up
4050 # making bogus files that we don't know about and never remove. For
4051 # instance it was reported that on HP-UX the gcc test will end up
4052 # making a dummy file named `D' -- because `-MD' means `put the output
4053 # in D'.
4054 rm -rf conftest.dir
4055 mkdir conftest.dir
4056 # Copy depcomp to subdir because otherwise we won't find it if we're
4057 # using a relative directory.
4058 cp "$am_depcomp" conftest.dir
4059 cd conftest.dir
4060 # We will build objects and dependencies in a subdirectory because
4061 # it helps to detect inapplicable dependency modes. For instance
4062 # both Tru64's cc and ICC support -MD to output dependencies as a
4063 # side effect of compilation, but ICC will put the dependencies in
4064 # the current directory while Tru64 will put them in the object
4065 # directory.
4066 mkdir sub
4068 am_cv_CC_dependencies_compiler_type=none
4069 if test "$am_compiler_list" = ""; then
4070 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4072 am__universal=false
4073 case " $depcc " in #(
4074 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4075 esac
4077 for depmode in $am_compiler_list; do
4078 # Setup a source with many dependencies, because some compilers
4079 # like to wrap large dependency lists on column 80 (with \), and
4080 # we should not choose a depcomp mode which is confused by this.
4082 # We need to recreate these files for each test, as the compiler may
4083 # overwrite some of them when testing with obscure command lines.
4084 # This happens at least with the AIX C compiler.
4085 : > sub/conftest.c
4086 for i in 1 2 3 4 5 6; do
4087 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089 # Solaris 8's {/usr,}/bin/sh.
4090 touch sub/conftst$i.h
4091 done
4092 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4094 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095 # mode. It turns out that the SunPro C++ compiler does not properly
4096 # handle `-M -o', and we need to detect this. Also, some Intel
4097 # versions had trouble with output in subdirs
4098 am__obj=sub/conftest.${OBJEXT-o}
4099 am__minus_obj="-o $am__obj"
4100 case $depmode in
4101 gcc)
4102 # This depmode causes a compiler race in universal mode.
4103 test "$am__universal" = false || continue
4105 nosideeffect)
4106 # after this tag, mechanisms are not by side-effect, so they'll
4107 # only be used when explicitly requested
4108 if test "x$enable_dependency_tracking" = xyes; then
4109 continue
4110 else
4111 break
4114 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4115 # This compiler won't grok `-c -o', but also, the minuso test has
4116 # not run yet. These depmodes are late enough in the game, and
4117 # so weak that their functioning should not be impacted.
4118 am__obj=conftest.${OBJEXT-o}
4119 am__minus_obj=
4121 none) break ;;
4122 esac
4123 if depmode=$depmode \
4124 source=sub/conftest.c object=$am__obj \
4125 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4127 >/dev/null 2>conftest.err &&
4128 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4131 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132 # icc doesn't choke on unknown options, it will just issue warnings
4133 # or remarks (even with -Werror). So we grep stderr for any message
4134 # that says an option was ignored or not supported.
4135 # When given -MP, icc 7.0 and 7.1 complain thusly:
4136 # icc: Command line warning: ignoring option '-M'; no argument required
4137 # The diagnosis changed in icc 8.0:
4138 # icc: Command line remark: option '-MP' not supported
4139 if (grep 'ignoring option' conftest.err ||
4140 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141 am_cv_CC_dependencies_compiler_type=$depmode
4142 break
4145 done
4147 cd ..
4148 rm -rf conftest.dir
4149 else
4150 am_cv_CC_dependencies_compiler_type=none
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4155 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4156 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4159 test "x$enable_dependency_tracking" != xno \
4160 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4161 am__fastdepCC_TRUE=
4162 am__fastdepCC_FALSE='#'
4163 else
4164 am__fastdepCC_TRUE='#'
4165 am__fastdepCC_FALSE=
4169 if test "x$CC" != xcc; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4171 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4172 else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4174 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4176 set dummy $CC; ac_cc=`$as_echo "$2" |
4177 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4178 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4185 main ()
4189 return 0;
4191 _ACEOF
4192 # Make sure it works both with $CC and with simple cc.
4193 # We do the test twice because some compilers refuse to overwrite an
4194 # existing .o file with -o, though they will create one.
4195 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4196 rm -f conftest2.*
4197 if { { case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4202 $as_echo "$ac_try_echo"; } >&5
4203 (eval "$ac_try") 2>&5
4204 ac_status=$?
4205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4206 test $ac_status = 0; } &&
4207 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4212 $as_echo "$ac_try_echo"; } >&5
4213 (eval "$ac_try") 2>&5
4214 ac_status=$?
4215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216 test $ac_status = 0; };
4217 then
4218 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4219 if test "x$CC" != xcc; then
4220 # Test first that cc exists at all.
4221 if { ac_try='cc -c conftest.$ac_ext >&5'
4222 { { case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_try") 2>&5
4229 ac_status=$?
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }; }; then
4232 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4233 rm -f conftest2.*
4234 if { { case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237 esac
4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239 $as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_try") 2>&5
4241 ac_status=$?
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; } &&
4244 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4249 $as_echo "$ac_try_echo"; } >&5
4250 (eval "$ac_try") 2>&5
4251 ac_status=$?
4252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253 test $ac_status = 0; };
4254 then
4255 # cc works too.
4257 else
4258 # cc exists but doesn't like -o.
4259 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4263 else
4264 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4266 rm -f core conftest*
4269 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4271 $as_echo "yes" >&6; }
4272 else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4276 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4280 # FIXME: we rely on the cache variable name because
4281 # there is no other way.
4282 set dummy $CC
4283 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4284 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4285 if test "$am_t" != yes; then
4286 # Losing compiler, so override with the script.
4287 # FIXME: It is wrong to rewrite CC.
4288 # But if we don't then we get into trouble of one sort or another.
4289 # A longer-term fix would be to have automake use am__CC in this case,
4290 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4291 CC="$am_aux_dir/compile $CC"
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4296 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4297 if ${ac_cv_path_SED+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4301 for ac_i in 1 2 3 4 5 6 7; do
4302 ac_script="$ac_script$as_nl$ac_script"
4303 done
4304 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4305 { ac_script=; unset ac_script;}
4306 if test -z "$SED"; then
4307 ac_path_SED_found=false
4308 # Loop through the user's path and test for each of PROGNAME-LIST
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_prog in sed gsed; do
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4317 as_fn_executable_p "$ac_path_SED" || continue
4318 # Check for GNU ac_path_SED and select it if it is found.
4319 # Check for GNU $ac_path_SED
4320 case `"$ac_path_SED" --version 2>&1` in
4321 *GNU*)
4322 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4324 ac_count=0
4325 $as_echo_n 0123456789 >"conftest.in"
4326 while :
4328 cat "conftest.in" "conftest.in" >"conftest.tmp"
4329 mv "conftest.tmp" "conftest.in"
4330 cp "conftest.in" "conftest.nl"
4331 $as_echo '' >> "conftest.nl"
4332 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334 as_fn_arith $ac_count + 1 && ac_count=$as_val
4335 if test $ac_count -gt ${ac_path_SED_max-0}; then
4336 # Best one so far, save it but keep looking for a better one
4337 ac_cv_path_SED="$ac_path_SED"
4338 ac_path_SED_max=$ac_count
4340 # 10*(2^10) chars as input seems more than enough
4341 test $ac_count -gt 10 && break
4342 done
4343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4344 esac
4346 $ac_path_SED_found && break 3
4347 done
4348 done
4349 done
4350 IFS=$as_save_IFS
4351 if test -z "$ac_cv_path_SED"; then
4352 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4354 else
4355 ac_cv_path_SED=$SED
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4360 $as_echo "$ac_cv_path_SED" >&6; }
4361 SED="$ac_cv_path_SED"
4362 rm -f conftest.sed
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4366 $as_echo_n "checking whether ln -s works... " >&6; }
4367 LN_S=$as_ln_s
4368 if test "$LN_S" = "ln -s"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4370 $as_echo "yes" >&6; }
4371 else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4373 $as_echo "no, using $LN_S" >&6; }
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4385 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4386 # On Suns, sometimes $CPP names a directory.
4387 if test -n "$CPP" && test -d "$CPP"; then
4388 CPP=
4390 if test -z "$CPP"; then
4391 if ${ac_cv_prog_CPP+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 # Double quotes because CPP needs to be expanded
4395 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4397 ac_preproc_ok=false
4398 for ac_c_preproc_warn_flag in '' yes
4400 # Use a header file that comes with gcc, so configuring glibc
4401 # with a fresh cross-compiler works.
4402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4403 # <limits.h> exists even on freestanding compilers.
4404 # On the NeXT, cc -E runs the code through the compiler's parser,
4405 # not just through cpp. "Syntax error" is here to catch this case.
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408 #ifdef __STDC__
4409 # include <limits.h>
4410 #else
4411 # include <assert.h>
4412 #endif
4413 Syntax error
4414 _ACEOF
4415 if ac_fn_c_try_cpp "$LINENO"; then :
4417 else
4418 # Broken: fails on valid input.
4419 continue
4421 rm -f conftest.err conftest.i conftest.$ac_ext
4423 # OK, works on sane cases. Now check whether nonexistent headers
4424 # can be detected and how.
4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426 /* end confdefs.h. */
4427 #include <ac_nonexistent.h>
4428 _ACEOF
4429 if ac_fn_c_try_cpp "$LINENO"; then :
4430 # Broken: success on invalid input.
4431 continue
4432 else
4433 # Passes both tests.
4434 ac_preproc_ok=:
4435 break
4437 rm -f conftest.err conftest.i conftest.$ac_ext
4439 done
4440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4441 rm -f conftest.i conftest.err conftest.$ac_ext
4442 if $ac_preproc_ok; then :
4443 break
4446 done
4447 ac_cv_prog_CPP=$CPP
4450 CPP=$ac_cv_prog_CPP
4451 else
4452 ac_cv_prog_CPP=$CPP
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4455 $as_echo "$CPP" >&6; }
4456 ac_preproc_ok=false
4457 for ac_c_preproc_warn_flag in '' yes
4459 # Use a header file that comes with gcc, so configuring glibc
4460 # with a fresh cross-compiler works.
4461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4462 # <limits.h> exists even on freestanding compilers.
4463 # On the NeXT, cc -E runs the code through the compiler's parser,
4464 # not just through cpp. "Syntax error" is here to catch this case.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #ifdef __STDC__
4468 # include <limits.h>
4469 #else
4470 # include <assert.h>
4471 #endif
4472 Syntax error
4473 _ACEOF
4474 if ac_fn_c_try_cpp "$LINENO"; then :
4476 else
4477 # Broken: fails on valid input.
4478 continue
4480 rm -f conftest.err conftest.i conftest.$ac_ext
4482 # OK, works on sane cases. Now check whether nonexistent headers
4483 # can be detected and how.
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486 #include <ac_nonexistent.h>
4487 _ACEOF
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489 # Broken: success on invalid input.
4490 continue
4491 else
4492 # Passes both tests.
4493 ac_preproc_ok=:
4494 break
4496 rm -f conftest.err conftest.i conftest.$ac_ext
4498 done
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.i conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then :
4503 else
4504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4506 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4507 See \`config.log' for more details" "$LINENO" 5; }
4510 ac_ext=c
4511 ac_cpp='$CPP $CPPFLAGS'
4512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4518 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4519 if ${ac_cv_path_GREP+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -z "$GREP"; then
4523 ac_path_GREP_found=false
4524 # Loop through the user's path and test for each of PROGNAME-LIST
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_prog in grep ggrep; do
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4533 as_fn_executable_p "$ac_path_GREP" || continue
4534 # Check for GNU ac_path_GREP and select it if it is found.
4535 # Check for GNU $ac_path_GREP
4536 case `"$ac_path_GREP" --version 2>&1` in
4537 *GNU*)
4538 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4540 ac_count=0
4541 $as_echo_n 0123456789 >"conftest.in"
4542 while :
4544 cat "conftest.in" "conftest.in" >"conftest.tmp"
4545 mv "conftest.tmp" "conftest.in"
4546 cp "conftest.in" "conftest.nl"
4547 $as_echo 'GREP' >> "conftest.nl"
4548 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4550 as_fn_arith $ac_count + 1 && ac_count=$as_val
4551 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4552 # Best one so far, save it but keep looking for a better one
4553 ac_cv_path_GREP="$ac_path_GREP"
4554 ac_path_GREP_max=$ac_count
4556 # 10*(2^10) chars as input seems more than enough
4557 test $ac_count -gt 10 && break
4558 done
4559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560 esac
4562 $ac_path_GREP_found && break 3
4563 done
4564 done
4565 done
4566 IFS=$as_save_IFS
4567 if test -z "$ac_cv_path_GREP"; then
4568 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4570 else
4571 ac_cv_path_GREP=$GREP
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4576 $as_echo "$ac_cv_path_GREP" >&6; }
4577 GREP="$ac_cv_path_GREP"
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4581 $as_echo_n "checking for egrep... " >&6; }
4582 if ${ac_cv_path_EGREP+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4586 then ac_cv_path_EGREP="$GREP -E"
4587 else
4588 if test -z "$EGREP"; then
4589 ac_path_EGREP_found=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_prog in egrep; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4599 as_fn_executable_p "$ac_path_EGREP" || continue
4600 # Check for GNU ac_path_EGREP and select it if it is found.
4601 # Check for GNU $ac_path_EGREP
4602 case `"$ac_path_EGREP" --version 2>&1` in
4603 *GNU*)
4604 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4606 ac_count=0
4607 $as_echo_n 0123456789 >"conftest.in"
4608 while :
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 $as_echo 'EGREP' >> "conftest.nl"
4614 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616 as_fn_arith $ac_count + 1 && ac_count=$as_val
4617 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_EGREP="$ac_path_EGREP"
4620 ac_path_EGREP_max=$ac_count
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4624 done
4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 esac
4628 $ac_path_EGREP_found && break 3
4629 done
4630 done
4631 done
4632 IFS=$as_save_IFS
4633 if test -z "$ac_cv_path_EGREP"; then
4634 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4636 else
4637 ac_cv_path_EGREP=$EGREP
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4643 $as_echo "$ac_cv_path_EGREP" >&6; }
4644 EGREP="$ac_cv_path_EGREP"
4647 if test $ac_cv_c_compiler_gnu = yes; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4649 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4650 if ${ac_cv_prog_gcc_traditional+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 ac_pattern="Autoconf.*'x'"
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #include <sgtty.h>
4657 Autoconf TIOCGETP
4658 _ACEOF
4659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4660 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4661 ac_cv_prog_gcc_traditional=yes
4662 else
4663 ac_cv_prog_gcc_traditional=no
4665 rm -f conftest*
4668 if test $ac_cv_prog_gcc_traditional = no; then
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671 #include <termio.h>
4672 Autoconf TCGETA
4673 _ACEOF
4674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4676 ac_cv_prog_gcc_traditional=yes
4678 rm -f conftest*
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4683 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4684 if test $ac_cv_prog_gcc_traditional = yes; then
4685 CC="$CC -traditional"
4690 # We need to test for at least gcc 2.95 here, because older versions don't
4691 # have -fno-strict-aliasing
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4696 main ()
4699 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4700 #error
4701 #endif
4703 return 0;
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 have_gcc295=yes
4708 else
4709 have_gcc295=no
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 if test "$GCC" = "yes" ; then
4714 # Enable many gcc warnings by default...
4715 CFLAGS="$CFLAGS -Wall"
4716 # And disable the strict-aliasing optimization, since it breaks
4717 # our sockaddr-handling code in strange ways.
4718 if test x$have_gcc295 = xyes; then
4719 CFLAGS="$CFLAGS -fno-strict-aliasing"
4723 # OS X Lion started deprecating the system openssl. Let's just disable
4724 # all deprecation warnings on OS X.
4725 case "$host_os" in
4727 darwin*)
4728 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4730 esac
4732 # Check whether --enable-gcc-warnings was given.
4733 if test "${enable_gcc_warnings+set}" = set; then :
4734 enableval=$enable_gcc_warnings;
4737 # Check whether --enable-thread-support was given.
4738 if test "${enable_thread_support+set}" = set; then :
4739 enableval=$enable_thread_support;
4740 else
4741 enable_thread_support=yes
4744 # Check whether --enable-malloc-replacement was given.
4745 if test "${enable_malloc_replacement+set}" = set; then :
4746 enableval=$enable_malloc_replacement;
4747 else
4748 enable_malloc_replacement=yes
4751 # Check whether --enable-openssl was given.
4752 if test "${enable_openssl+set}" = set; then :
4753 enableval=$enable_openssl;
4754 else
4755 enable_openssl=yes
4758 # Check whether --enable-debug-mode was given.
4759 if test "${enable_debug_mode+set}" = set; then :
4760 enableval=$enable_debug_mode;
4761 else
4762 enable_debug_mode=yes
4765 # Check whether --enable-libevent-install was given.
4766 if test "${enable_libevent_install+set}" = set; then :
4767 enableval=$enable_libevent_install;
4768 else
4769 enable_libevent_install=yes
4772 # Check whether --enable-libevent-regress was given.
4773 if test "${enable_libevent_regress+set}" = set; then :
4774 enableval=$enable_libevent_regress;
4775 else
4776 enable_libevent_regress=yes
4779 # Check whether --enable-function-sections was given.
4780 if test "${enable_function_sections+set}" = set; then :
4781 enableval=$enable_function_sections;
4782 else
4783 enable_function_sections=no
4788 case `pwd` in
4789 *\ * | *\ *)
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4791 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4792 esac
4796 macro_version='2.4.2'
4797 macro_revision='1.3337'
4811 ltmain="$ac_aux_dir/ltmain.sh"
4813 # Backslashify metacharacters that are still active within
4814 # double-quoted strings.
4815 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4817 # Same as above, but do not quote variable references.
4818 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4820 # Sed substitution to delay expansion of an escaped shell variable in a
4821 # double_quote_subst'ed string.
4822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4824 # Sed substitution to delay expansion of an escaped single quote.
4825 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4827 # Sed substitution to avoid accidental globbing in evaled expressions
4828 no_glob_subst='s/\*/\\\*/g'
4830 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4831 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4832 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4835 $as_echo_n "checking how to print strings... " >&6; }
4836 # Test print first, because it will be a builtin if present.
4837 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4838 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4839 ECHO='print -r --'
4840 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4841 ECHO='printf %s\n'
4842 else
4843 # Use this function as a fallback that always works.
4844 func_fallback_echo ()
4846 eval 'cat <<_LTECHO_EOF
4848 _LTECHO_EOF'
4850 ECHO='func_fallback_echo'
4853 # func_echo_all arg...
4854 # Invoke $ECHO with all args, space-separated.
4855 func_echo_all ()
4857 $ECHO ""
4860 case "$ECHO" in
4861 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4862 $as_echo "printf" >&6; } ;;
4863 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4864 $as_echo "print -r" >&6; } ;;
4865 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4866 $as_echo "cat" >&6; } ;;
4867 esac
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4883 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4884 if ${ac_cv_path_SED+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4888 for ac_i in 1 2 3 4 5 6 7; do
4889 ac_script="$ac_script$as_nl$ac_script"
4890 done
4891 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4892 { ac_script=; unset ac_script;}
4893 if test -z "$SED"; then
4894 ac_path_SED_found=false
4895 # Loop through the user's path and test for each of PROGNAME-LIST
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_prog in sed gsed; do
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4904 as_fn_executable_p "$ac_path_SED" || continue
4905 # Check for GNU ac_path_SED and select it if it is found.
4906 # Check for GNU $ac_path_SED
4907 case `"$ac_path_SED" --version 2>&1` in
4908 *GNU*)
4909 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4911 ac_count=0
4912 $as_echo_n 0123456789 >"conftest.in"
4913 while :
4915 cat "conftest.in" "conftest.in" >"conftest.tmp"
4916 mv "conftest.tmp" "conftest.in"
4917 cp "conftest.in" "conftest.nl"
4918 $as_echo '' >> "conftest.nl"
4919 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4921 as_fn_arith $ac_count + 1 && ac_count=$as_val
4922 if test $ac_count -gt ${ac_path_SED_max-0}; then
4923 # Best one so far, save it but keep looking for a better one
4924 ac_cv_path_SED="$ac_path_SED"
4925 ac_path_SED_max=$ac_count
4927 # 10*(2^10) chars as input seems more than enough
4928 test $ac_count -gt 10 && break
4929 done
4930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4931 esac
4933 $ac_path_SED_found && break 3
4934 done
4935 done
4936 done
4937 IFS=$as_save_IFS
4938 if test -z "$ac_cv_path_SED"; then
4939 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4941 else
4942 ac_cv_path_SED=$SED
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4947 $as_echo "$ac_cv_path_SED" >&6; }
4948 SED="$ac_cv_path_SED"
4949 rm -f conftest.sed
4951 test -z "$SED" && SED=sed
4952 Xsed="$SED -e 1s/^X//"
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4965 $as_echo_n "checking for fgrep... " >&6; }
4966 if ${ac_cv_path_FGREP+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4970 then ac_cv_path_FGREP="$GREP -F"
4971 else
4972 if test -z "$FGREP"; then
4973 ac_path_FGREP_found=false
4974 # Loop through the user's path and test for each of PROGNAME-LIST
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_prog in fgrep; do
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4983 as_fn_executable_p "$ac_path_FGREP" || continue
4984 # Check for GNU ac_path_FGREP and select it if it is found.
4985 # Check for GNU $ac_path_FGREP
4986 case `"$ac_path_FGREP" --version 2>&1` in
4987 *GNU*)
4988 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4990 ac_count=0
4991 $as_echo_n 0123456789 >"conftest.in"
4992 while :
4994 cat "conftest.in" "conftest.in" >"conftest.tmp"
4995 mv "conftest.tmp" "conftest.in"
4996 cp "conftest.in" "conftest.nl"
4997 $as_echo 'FGREP' >> "conftest.nl"
4998 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5000 as_fn_arith $ac_count + 1 && ac_count=$as_val
5001 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5002 # Best one so far, save it but keep looking for a better one
5003 ac_cv_path_FGREP="$ac_path_FGREP"
5004 ac_path_FGREP_max=$ac_count
5006 # 10*(2^10) chars as input seems more than enough
5007 test $ac_count -gt 10 && break
5008 done
5009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5010 esac
5012 $ac_path_FGREP_found && break 3
5013 done
5014 done
5015 done
5016 IFS=$as_save_IFS
5017 if test -z "$ac_cv_path_FGREP"; then
5018 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5020 else
5021 ac_cv_path_FGREP=$FGREP
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5027 $as_echo "$ac_cv_path_FGREP" >&6; }
5028 FGREP="$ac_cv_path_FGREP"
5031 test -z "$GREP" && GREP=grep
5051 # Check whether --with-gnu-ld was given.
5052 if test "${with_gnu_ld+set}" = set; then :
5053 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5054 else
5055 with_gnu_ld=no
5058 ac_prog=ld
5059 if test "$GCC" = yes; then
5060 # Check if gcc -print-prog-name=ld gives a path.
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5062 $as_echo_n "checking for ld used by $CC... " >&6; }
5063 case $host in
5064 *-*-mingw*)
5065 # gcc leaves a trailing carriage return which upsets mingw
5066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5069 esac
5070 case $ac_prog in
5071 # Accept absolute paths.
5072 [\\/]* | ?:[\\/]*)
5073 re_direlt='/[^/][^/]*/\.\./'
5074 # Canonicalize the pathname of ld
5075 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5076 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5077 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5078 done
5079 test -z "$LD" && LD="$ac_prog"
5082 # If it fails, then pretend we aren't using GCC.
5083 ac_prog=ld
5086 # If it is relative, then search for the first ld in PATH.
5087 with_gnu_ld=unknown
5089 esac
5090 elif test "$with_gnu_ld" = yes; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5092 $as_echo_n "checking for GNU ld... " >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5095 $as_echo_n "checking for non-GNU ld... " >&6; }
5097 if ${lt_cv_path_LD+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$LD"; then
5101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5102 for ac_dir in $PATH; do
5103 IFS="$lt_save_ifs"
5104 test -z "$ac_dir" && ac_dir=.
5105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5106 lt_cv_path_LD="$ac_dir/$ac_prog"
5107 # Check to see if the program is GNU ld. I'd rather use --version,
5108 # but apparently some variants of GNU ld only accept -v.
5109 # Break only if it was the GNU/non-GNU ld that we prefer.
5110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5111 *GNU* | *'with BFD'*)
5112 test "$with_gnu_ld" != no && break
5115 test "$with_gnu_ld" != yes && break
5117 esac
5119 done
5120 IFS="$lt_save_ifs"
5121 else
5122 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5126 LD="$lt_cv_path_LD"
5127 if test -n "$LD"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5129 $as_echo "$LD" >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5134 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5136 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5137 if ${lt_cv_prog_gnu_ld+:} false; then :
5138 $as_echo_n "(cached) " >&6
5139 else
5140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5141 case `$LD -v 2>&1 </dev/null` in
5142 *GNU* | *'with BFD'*)
5143 lt_cv_prog_gnu_ld=yes
5146 lt_cv_prog_gnu_ld=no
5148 esac
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5151 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5152 with_gnu_ld=$lt_cv_prog_gnu_ld
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5163 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5164 if ${lt_cv_path_NM+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if test -n "$NM"; then
5168 # Let the user override the test.
5169 lt_cv_path_NM="$NM"
5170 else
5171 lt_nm_to_check="${ac_tool_prefix}nm"
5172 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5173 lt_nm_to_check="$lt_nm_to_check nm"
5175 for lt_tmp_nm in $lt_nm_to_check; do
5176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5177 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5178 IFS="$lt_save_ifs"
5179 test -z "$ac_dir" && ac_dir=.
5180 tmp_nm="$ac_dir/$lt_tmp_nm"
5181 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5182 # Check to see if the nm accepts a BSD-compat flag.
5183 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5184 # nm: unknown option "B" ignored
5185 # Tru64's nm complains that /dev/null is an invalid object file
5186 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5187 */dev/null* | *'Invalid file or object type'*)
5188 lt_cv_path_NM="$tmp_nm -B"
5189 break
5192 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5193 */dev/null*)
5194 lt_cv_path_NM="$tmp_nm -p"
5195 break
5198 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5199 continue # so that we can try to find one that supports BSD flags
5201 esac
5203 esac
5205 done
5206 IFS="$lt_save_ifs"
5207 done
5208 : ${lt_cv_path_NM=no}
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5212 $as_echo "$lt_cv_path_NM" >&6; }
5213 if test "$lt_cv_path_NM" != "no"; then
5214 NM="$lt_cv_path_NM"
5215 else
5216 # Didn't find any BSD compatible name lister, look for dumpbin.
5217 if test -n "$DUMPBIN"; then :
5218 # Let the user override the test.
5219 else
5220 if test -n "$ac_tool_prefix"; then
5221 for ac_prog in dumpbin "link -dump"
5223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_DUMPBIN+:} false; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$DUMPBIN"; then
5231 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 DUMPBIN=$ac_cv_prog_DUMPBIN
5251 if test -n "$DUMPBIN"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5253 $as_echo "$DUMPBIN" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 test -n "$DUMPBIN" && break
5261 done
5263 if test -z "$DUMPBIN"; then
5264 ac_ct_DUMPBIN=$DUMPBIN
5265 for ac_prog in dumpbin "link -dump"
5267 # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $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_ac_ct_DUMPBIN+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 if test -n "$ac_ct_DUMPBIN"; then
5275 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_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_ac_ct_DUMPBIN="$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 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5295 if test -n "$ac_ct_DUMPBIN"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5297 $as_echo "$ac_ct_DUMPBIN" >&6; }
5298 else
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5304 test -n "$ac_ct_DUMPBIN" && break
5305 done
5307 if test "x$ac_ct_DUMPBIN" = x; then
5308 DUMPBIN=":"
5309 else
5310 case $cross_compiling:$ac_tool_warned in
5311 yes:)
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314 ac_tool_warned=yes ;;
5315 esac
5316 DUMPBIN=$ac_ct_DUMPBIN
5320 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5321 *COFF*)
5322 DUMPBIN="$DUMPBIN -symbols"
5325 DUMPBIN=:
5327 esac
5330 if test "$DUMPBIN" != ":"; then
5331 NM="$DUMPBIN"
5334 test -z "$NM" && NM=nm
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5342 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5343 if ${lt_cv_nm_interface+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 lt_cv_nm_interface="BSD nm"
5347 echo "int some_variable = 0;" > conftest.$ac_ext
5348 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5349 (eval "$ac_compile" 2>conftest.err)
5350 cat conftest.err >&5
5351 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5352 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5353 cat conftest.err >&5
5354 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5355 cat conftest.out >&5
5356 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5357 lt_cv_nm_interface="MS dumpbin"
5359 rm -f conftest*
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5362 $as_echo "$lt_cv_nm_interface" >&6; }
5364 # find the maximum length of command line arguments
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5366 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5367 if ${lt_cv_sys_max_cmd_len+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5371 teststring="ABCD"
5373 case $build_os in
5374 msdosdjgpp*)
5375 # On DJGPP, this test can blow up pretty badly due to problems in libc
5376 # (any single argument exceeding 2000 bytes causes a buffer overrun
5377 # during glob expansion). Even if it were fixed, the result of this
5378 # check would be larger than it should be.
5379 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5382 gnu*)
5383 # Under GNU Hurd, this test is not required because there is
5384 # no limit to the length of command line arguments.
5385 # Libtool will interpret -1 as no limit whatsoever
5386 lt_cv_sys_max_cmd_len=-1;
5389 cygwin* | mingw* | cegcc*)
5390 # On Win9x/ME, this test blows up -- it succeeds, but takes
5391 # about 5 minutes as the teststring grows exponentially.
5392 # Worse, since 9x/ME are not pre-emptively multitasking,
5393 # you end up with a "frozen" computer, even though with patience
5394 # the test eventually succeeds (with a max line length of 256k).
5395 # Instead, let's just punt: use the minimum linelength reported by
5396 # all of the supported platforms: 8192 (on NT/2K/XP).
5397 lt_cv_sys_max_cmd_len=8192;
5400 mint*)
5401 # On MiNT this can take a long time and run out of memory.
5402 lt_cv_sys_max_cmd_len=8192;
5405 amigaos*)
5406 # On AmigaOS with pdksh, this test takes hours, literally.
5407 # So we just punt and use a minimum line length of 8192.
5408 lt_cv_sys_max_cmd_len=8192;
5411 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5412 # This has been around since 386BSD, at least. Likely further.
5413 if test -x /sbin/sysctl; then
5414 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5415 elif test -x /usr/sbin/sysctl; then
5416 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5417 else
5418 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5420 # And add a safety zone
5421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5425 interix*)
5426 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5427 lt_cv_sys_max_cmd_len=196608
5430 os2*)
5431 # The test takes a long time on OS/2.
5432 lt_cv_sys_max_cmd_len=8192
5435 osf*)
5436 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5437 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5438 # nice to cause kernel panics so lets avoid the loop below.
5439 # First set a reasonable default.
5440 lt_cv_sys_max_cmd_len=16384
5442 if test -x /sbin/sysconfig; then
5443 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5444 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5445 esac
5448 sco3.2v5*)
5449 lt_cv_sys_max_cmd_len=102400
5451 sysv5* | sco5v6* | sysv4.2uw2*)
5452 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5453 if test -n "$kargmax"; then
5454 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5455 else
5456 lt_cv_sys_max_cmd_len=32768
5460 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5461 if test -n "$lt_cv_sys_max_cmd_len"; then
5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5464 else
5465 # Make teststring a little bigger before we do anything with it.
5466 # a 1K string should be a reasonable start.
5467 for i in 1 2 3 4 5 6 7 8 ; do
5468 teststring=$teststring$teststring
5469 done
5470 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5471 # If test is not a shell built-in, we'll probably end up computing a
5472 # maximum length that is only half of the actual maximum length, but
5473 # we can't tell.
5474 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5475 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5476 test $i != 17 # 1/2 MB should be enough
5478 i=`expr $i + 1`
5479 teststring=$teststring$teststring
5480 done
5481 # Only check the string length outside the loop.
5482 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5483 teststring=
5484 # Add a significant safety factor because C++ compilers can tack on
5485 # massive amounts of additional arguments before passing them to the
5486 # linker. It appears as though 1/2 is a usable value.
5487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5490 esac
5494 if test -n $lt_cv_sys_max_cmd_len ; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5496 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5497 else
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5499 $as_echo "none" >&6; }
5501 max_cmd_len=$lt_cv_sys_max_cmd_len
5508 : ${CP="cp -f"}
5509 : ${MV="mv -f"}
5510 : ${RM="rm -f"}
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5513 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5514 # Try some XSI features
5515 xsi_shell=no
5516 ( _lt_dummy="a/b/c"
5517 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5518 = c,a/b,b/c, \
5519 && eval 'test $(( 1 + 1 )) -eq 2 \
5520 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5521 && xsi_shell=yes
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5523 $as_echo "$xsi_shell" >&6; }
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5527 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5528 lt_shell_append=no
5529 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5530 >/dev/null 2>&1 \
5531 && lt_shell_append=yes
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5533 $as_echo "$lt_shell_append" >&6; }
5536 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5537 lt_unset=unset
5538 else
5539 lt_unset=false
5546 # test EBCDIC or ASCII
5547 case `echo X|tr X '\101'` in
5548 A) # ASCII based system
5549 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5550 lt_SP2NL='tr \040 \012'
5551 lt_NL2SP='tr \015\012 \040\040'
5553 *) # EBCDIC based system
5554 lt_SP2NL='tr \100 \n'
5555 lt_NL2SP='tr \r\n \100\100'
5557 esac
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5568 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5569 if ${lt_cv_to_host_file_cmd+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 case $host in
5573 *-*-mingw* )
5574 case $build in
5575 *-*-mingw* ) # actually msys
5576 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5578 *-*-cygwin* )
5579 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5581 * ) # otherwise, assume *nix
5582 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5584 esac
5586 *-*-cygwin* )
5587 case $build in
5588 *-*-mingw* ) # actually msys
5589 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5591 *-*-cygwin* )
5592 lt_cv_to_host_file_cmd=func_convert_file_noop
5594 * ) # otherwise, assume *nix
5595 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5597 esac
5599 * ) # unhandled hosts (and "normal" native builds)
5600 lt_cv_to_host_file_cmd=func_convert_file_noop
5602 esac
5606 to_host_file_cmd=$lt_cv_to_host_file_cmd
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5608 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5615 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5616 if ${lt_cv_to_tool_file_cmd+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 #assume ordinary cross tools, or native build.
5620 lt_cv_to_tool_file_cmd=func_convert_file_noop
5621 case $host in
5622 *-*-mingw* )
5623 case $build in
5624 *-*-mingw* ) # actually msys
5625 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5627 esac
5629 esac
5633 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5635 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5642 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5643 if ${lt_cv_ld_reload_flag+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 lt_cv_ld_reload_flag='-r'
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5649 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5650 reload_flag=$lt_cv_ld_reload_flag
5651 case $reload_flag in
5652 "" | " "*) ;;
5653 *) reload_flag=" $reload_flag" ;;
5654 esac
5655 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5656 case $host_os in
5657 cygwin* | mingw* | pw32* | cegcc*)
5658 if test "$GCC" != yes; then
5659 reload_cmds=false
5662 darwin*)
5663 if test "$GCC" = yes; then
5664 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5665 else
5666 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5669 esac
5679 if test -n "$ac_tool_prefix"; then
5680 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5681 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_OBJDUMP+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 if test -n "$OBJDUMP"; then
5688 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5701 done
5702 done
5703 IFS=$as_save_IFS
5707 OBJDUMP=$ac_cv_prog_OBJDUMP
5708 if test -n "$OBJDUMP"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5710 $as_echo "$OBJDUMP" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5718 if test -z "$ac_cv_prog_OBJDUMP"; then
5719 ac_ct_OBJDUMP=$OBJDUMP
5720 # Extract the first word of "objdump", so it can be a program name with args.
5721 set dummy objdump; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if test -n "$ac_ct_OBJDUMP"; then
5728 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5741 done
5742 done
5743 IFS=$as_save_IFS
5747 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5748 if test -n "$ac_ct_OBJDUMP"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5750 $as_echo "$ac_ct_OBJDUMP" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5756 if test "x$ac_ct_OBJDUMP" = x; then
5757 OBJDUMP="false"
5758 else
5759 case $cross_compiling:$ac_tool_warned in
5760 yes:)
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5763 ac_tool_warned=yes ;;
5764 esac
5765 OBJDUMP=$ac_ct_OBJDUMP
5767 else
5768 OBJDUMP="$ac_cv_prog_OBJDUMP"
5771 test -z "$OBJDUMP" && OBJDUMP=objdump
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5782 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5783 if ${lt_cv_deplibs_check_method+:} false; then :
5784 $as_echo_n "(cached) " >&6
5785 else
5786 lt_cv_file_magic_cmd='$MAGIC_CMD'
5787 lt_cv_file_magic_test_file=
5788 lt_cv_deplibs_check_method='unknown'
5789 # Need to set the preceding variable on all platforms that support
5790 # interlibrary dependencies.
5791 # 'none' -- dependencies not supported.
5792 # `unknown' -- same as none, but documents that we really don't know.
5793 # 'pass_all' -- all dependencies passed with no checks.
5794 # 'test_compile' -- check by making test program.
5795 # 'file_magic [[regex]]' -- check by looking for files in library path
5796 # which responds to the $file_magic_cmd with a given extended regex.
5797 # If you have `file' or equivalent on your system and you're not sure
5798 # whether `pass_all' will *always* work, you probably want this one.
5800 case $host_os in
5801 aix[4-9]*)
5802 lt_cv_deplibs_check_method=pass_all
5805 beos*)
5806 lt_cv_deplibs_check_method=pass_all
5809 bsdi[45]*)
5810 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5811 lt_cv_file_magic_cmd='/usr/bin/file -L'
5812 lt_cv_file_magic_test_file=/shlib/libc.so
5815 cygwin*)
5816 # func_win32_libid is a shell function defined in ltmain.sh
5817 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5818 lt_cv_file_magic_cmd='func_win32_libid'
5821 mingw* | pw32*)
5822 # Base MSYS/MinGW do not provide the 'file' command needed by
5823 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5824 # unless we find 'file', for example because we are cross-compiling.
5825 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5826 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5827 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5828 lt_cv_file_magic_cmd='func_win32_libid'
5829 else
5830 # Keep this pattern in sync with the one in func_win32_libid.
5831 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5832 lt_cv_file_magic_cmd='$OBJDUMP -f'
5836 cegcc*)
5837 # use the weaker test based on 'objdump'. See mingw*.
5838 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5839 lt_cv_file_magic_cmd='$OBJDUMP -f'
5842 darwin* | rhapsody*)
5843 lt_cv_deplibs_check_method=pass_all
5846 freebsd* | dragonfly*)
5847 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5848 case $host_cpu in
5849 i*86 )
5850 # Not sure whether the presence of OpenBSD here was a mistake.
5851 # Let's accept both of them until this is cleared up.
5852 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5853 lt_cv_file_magic_cmd=/usr/bin/file
5854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5856 esac
5857 else
5858 lt_cv_deplibs_check_method=pass_all
5862 haiku*)
5863 lt_cv_deplibs_check_method=pass_all
5866 hpux10.20* | hpux11*)
5867 lt_cv_file_magic_cmd=/usr/bin/file
5868 case $host_cpu in
5869 ia64*)
5870 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5871 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5873 hppa*64*)
5874 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]'
5875 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5879 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5881 esac
5884 interix[3-9]*)
5885 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5889 irix5* | irix6* | nonstopux*)
5890 case $LD in
5891 *-32|*"-32 ") libmagic=32-bit;;
5892 *-n32|*"-n32 ") libmagic=N32;;
5893 *-64|*"-64 ") libmagic=64-bit;;
5894 *) libmagic=never-match;;
5895 esac
5896 lt_cv_deplibs_check_method=pass_all
5899 # This must be glibc/ELF.
5900 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5901 lt_cv_deplibs_check_method=pass_all
5904 netbsd* | netbsdelf*-gnu)
5905 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5906 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5907 else
5908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5912 newos6*)
5913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5914 lt_cv_file_magic_cmd=/usr/bin/file
5915 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5918 *nto* | *qnx*)
5919 lt_cv_deplibs_check_method=pass_all
5922 openbsd*)
5923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5925 else
5926 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5930 osf3* | osf4* | osf5*)
5931 lt_cv_deplibs_check_method=pass_all
5934 rdos*)
5935 lt_cv_deplibs_check_method=pass_all
5938 solaris*)
5939 lt_cv_deplibs_check_method=pass_all
5942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5943 lt_cv_deplibs_check_method=pass_all
5946 sysv4 | sysv4.3*)
5947 case $host_vendor in
5948 motorola)
5949 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]'
5950 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5952 ncr)
5953 lt_cv_deplibs_check_method=pass_all
5955 sequent)
5956 lt_cv_file_magic_cmd='/bin/file'
5957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5959 sni)
5960 lt_cv_file_magic_cmd='/bin/file'
5961 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5962 lt_cv_file_magic_test_file=/lib/libc.so
5964 siemens)
5965 lt_cv_deplibs_check_method=pass_all
5968 lt_cv_deplibs_check_method=pass_all
5970 esac
5973 tpf*)
5974 lt_cv_deplibs_check_method=pass_all
5976 esac
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5980 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5982 file_magic_glob=
5983 want_nocaseglob=no
5984 if test "$build" = "$host"; then
5985 case $host_os in
5986 mingw* | pw32*)
5987 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5988 want_nocaseglob=yes
5989 else
5990 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5993 esac
5996 file_magic_cmd=$lt_cv_file_magic_cmd
5997 deplibs_check_method=$lt_cv_deplibs_check_method
5998 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6021 if test -n "$ac_tool_prefix"; then
6022 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_prog_DLLTOOL+:} false; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if test -n "$DLLTOOL"; then
6030 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6043 done
6044 done
6045 IFS=$as_save_IFS
6049 DLLTOOL=$ac_cv_prog_DLLTOOL
6050 if test -n "$DLLTOOL"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6052 $as_echo "$DLLTOOL" >&6; }
6053 else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6060 if test -z "$ac_cv_prog_DLLTOOL"; then
6061 ac_ct_DLLTOOL=$DLLTOOL
6062 # Extract the first word of "dlltool", so it can be a program name with args.
6063 set dummy dlltool; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$ac_ct_DLLTOOL"; then
6070 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6079 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6083 done
6084 done
6085 IFS=$as_save_IFS
6089 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6090 if test -n "$ac_ct_DLLTOOL"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6092 $as_echo "$ac_ct_DLLTOOL" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6098 if test "x$ac_ct_DLLTOOL" = x; then
6099 DLLTOOL="false"
6100 else
6101 case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6106 esac
6107 DLLTOOL=$ac_ct_DLLTOOL
6109 else
6110 DLLTOOL="$ac_cv_prog_DLLTOOL"
6113 test -z "$DLLTOOL" && DLLTOOL=dlltool
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6125 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6126 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6127 $as_echo_n "(cached) " >&6
6128 else
6129 lt_cv_sharedlib_from_linklib_cmd='unknown'
6131 case $host_os in
6132 cygwin* | mingw* | pw32* | cegcc*)
6133 # two different shell functions defined in ltmain.sh
6134 # decide which to use based on capabilities of $DLLTOOL
6135 case `$DLLTOOL --help 2>&1` in
6136 *--identify-strict*)
6137 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6140 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6142 esac
6145 # fallback: assume linklib IS sharedlib
6146 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6148 esac
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6152 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6153 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6154 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6162 if test -n "$ac_tool_prefix"; then
6163 for ac_prog in ar
6165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_AR+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 if test -n "$AR"; then
6173 ac_cv_prog_AR="$AR" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6178 IFS=$as_save_IFS
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184 break 2
6186 done
6187 done
6188 IFS=$as_save_IFS
6192 AR=$ac_cv_prog_AR
6193 if test -n "$AR"; then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6195 $as_echo "$AR" >&6; }
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6202 test -n "$AR" && break
6203 done
6205 if test -z "$AR"; then
6206 ac_ct_AR=$AR
6207 for ac_prog in ar
6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$ac_ct_AR"; then
6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6226 ac_cv_prog_ac_ct_AR="$ac_prog"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6230 done
6231 done
6232 IFS=$as_save_IFS
6236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237 if test -n "$ac_ct_AR"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6239 $as_echo "$ac_ct_AR" >&6; }
6240 else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6246 test -n "$ac_ct_AR" && break
6247 done
6249 if test "x$ac_ct_AR" = x; then
6250 AR="false"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 AR=$ac_ct_AR
6262 : ${AR=ar}
6263 : ${AR_FLAGS=cru}
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6276 $as_echo_n "checking for archiver @FILE support... " >&6; }
6277 if ${lt_cv_ar_at_file+:} false; then :
6278 $as_echo_n "(cached) " >&6
6279 else
6280 lt_cv_ar_at_file=no
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6285 main ()
6289 return 0;
6291 _ACEOF
6292 if ac_fn_c_try_compile "$LINENO"; then :
6293 echo conftest.$ac_objext > conftest.lst
6294 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6296 (eval $lt_ar_try) 2>&5
6297 ac_status=$?
6298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299 test $ac_status = 0; }
6300 if test "$ac_status" -eq 0; then
6301 # Ensure the archiver fails upon bogus file names.
6302 rm -f conftest.$ac_objext libconftest.a
6303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6304 (eval $lt_ar_try) 2>&5
6305 ac_status=$?
6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; }
6308 if test "$ac_status" -ne 0; then
6309 lt_cv_ar_at_file=@
6312 rm -f conftest.* libconftest.a
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6319 $as_echo "$lt_cv_ar_at_file" >&6; }
6321 if test "x$lt_cv_ar_at_file" = xno; then
6322 archiver_list_spec=
6323 else
6324 archiver_list_spec=$lt_cv_ar_at_file
6333 if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6335 set dummy ${ac_tool_prefix}strip; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_STRIP+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6341 if test -n "$STRIP"; then
6342 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6355 done
6356 done
6357 IFS=$as_save_IFS
6361 STRIP=$ac_cv_prog_STRIP
6362 if test -n "$STRIP"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6364 $as_echo "$STRIP" >&6; }
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6372 if test -z "$ac_cv_prog_STRIP"; then
6373 ac_ct_STRIP=$STRIP
6374 # Extract the first word of "strip", so it can be a program name with args.
6375 set dummy strip; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 if test -n "$ac_ct_STRIP"; then
6382 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6391 ac_cv_prog_ac_ct_STRIP="strip"
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6395 done
6396 done
6397 IFS=$as_save_IFS
6401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6402 if test -n "$ac_ct_STRIP"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6404 $as_echo "$ac_ct_STRIP" >&6; }
6405 else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6410 if test "x$ac_ct_STRIP" = x; then
6411 STRIP=":"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414 yes:)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6417 ac_tool_warned=yes ;;
6418 esac
6419 STRIP=$ac_ct_STRIP
6421 else
6422 STRIP="$ac_cv_prog_STRIP"
6425 test -z "$STRIP" && STRIP=:
6432 if test -n "$ac_tool_prefix"; then
6433 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_RANLIB+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 if test -n "$RANLIB"; then
6441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
6449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6454 done
6455 done
6456 IFS=$as_save_IFS
6460 RANLIB=$ac_cv_prog_RANLIB
6461 if test -n "$RANLIB"; then
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6463 $as_echo "$RANLIB" >&6; }
6464 else
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6471 if test -z "$ac_cv_prog_RANLIB"; then
6472 ac_ct_RANLIB=$RANLIB
6473 # Extract the first word of "ranlib", so it can be a program name with args.
6474 set dummy ranlib; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 if test -n "$ac_ct_RANLIB"; then
6481 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
6489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490 ac_cv_prog_ac_ct_RANLIB="ranlib"
6491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 break 2
6494 done
6495 done
6496 IFS=$as_save_IFS
6500 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6501 if test -n "$ac_ct_RANLIB"; then
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6503 $as_echo "$ac_ct_RANLIB" >&6; }
6504 else
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6509 if test "x$ac_ct_RANLIB" = x; then
6510 RANLIB=":"
6511 else
6512 case $cross_compiling:$ac_tool_warned in
6513 yes:)
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516 ac_tool_warned=yes ;;
6517 esac
6518 RANLIB=$ac_ct_RANLIB
6520 else
6521 RANLIB="$ac_cv_prog_RANLIB"
6524 test -z "$RANLIB" && RANLIB=:
6531 # Determine commands to create old-style static archives.
6532 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6533 old_postinstall_cmds='chmod 644 $oldlib'
6534 old_postuninstall_cmds=
6536 if test -n "$RANLIB"; then
6537 case $host_os in
6538 openbsd*)
6539 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6542 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6544 esac
6545 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6548 case $host_os in
6549 darwin*)
6550 lock_old_archive_extraction=yes ;;
6552 lock_old_archive_extraction=no ;;
6553 esac
6593 # If no C compiler was specified, use CC.
6594 LTCC=${LTCC-"$CC"}
6596 # If no C compiler flags were specified, use CFLAGS.
6597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6599 # Allow CC to be a program name with arguments.
6600 compiler=$CC
6603 # Check for command to grab the raw symbol name followed by C symbol from nm.
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6605 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6606 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6607 $as_echo_n "(cached) " >&6
6608 else
6610 # These are sane defaults that work on at least a few old systems.
6611 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6613 # Character class describing NM global symbol codes.
6614 symcode='[BCDEGRST]'
6616 # Regexp to match symbols that can be accessed directly from C.
6617 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6619 # Define system-specific variables.
6620 case $host_os in
6621 aix*)
6622 symcode='[BCDT]'
6624 cygwin* | mingw* | pw32* | cegcc*)
6625 symcode='[ABCDGISTW]'
6627 hpux*)
6628 if test "$host_cpu" = ia64; then
6629 symcode='[ABCDEGRST]'
6632 irix* | nonstopux*)
6633 symcode='[BCDEGRST]'
6635 osf*)
6636 symcode='[BCDEGQRST]'
6638 solaris*)
6639 symcode='[BDRT]'
6641 sco3.2v5*)
6642 symcode='[DT]'
6644 sysv4.2uw2*)
6645 symcode='[DT]'
6647 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6648 symcode='[ABDT]'
6650 sysv4)
6651 symcode='[DFNSTU]'
6653 esac
6655 # If we're using GNU nm, then use its standard symbol codes.
6656 case `$NM -V 2>&1` in
6657 *GNU* | *'with BFD'*)
6658 symcode='[ABCDGIRSTW]' ;;
6659 esac
6661 # Transform an extracted symbol line into a proper C declaration.
6662 # Some systems (esp. on ia64) link data and code symbols differently,
6663 # so use this general approach.
6664 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6666 # Transform an extracted symbol line into symbol name and symbol address
6667 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6668 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'"
6670 # Handle CRLF in mingw tool chain
6671 opt_cr=
6672 case $build_os in
6673 mingw*)
6674 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6676 esac
6678 # Try without a prefix underscore, then with it.
6679 for ac_symprfx in "" "_"; do
6681 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6682 symxfrm="\\1 $ac_symprfx\\2 \\2"
6684 # Write the raw and C identifiers.
6685 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6686 # Fake it for dumpbin and say T for any non-static function
6687 # and D for any global variable.
6688 # Also find C++ and __fastcall symbols from MSVC++,
6689 # which start with @ or ?.
6690 lt_cv_sys_global_symbol_pipe="$AWK '"\
6691 " {last_section=section; section=\$ 3};"\
6692 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6693 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6694 " \$ 0!~/External *\|/{next};"\
6695 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6696 " {if(hide[section]) next};"\
6697 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6698 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6699 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6700 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6701 " ' prfx=^$ac_symprfx"
6702 else
6703 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6705 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6707 # Check to see that the pipe works correctly.
6708 pipe_works=no
6710 rm -f conftest*
6711 cat > conftest.$ac_ext <<_LT_EOF
6712 #ifdef __cplusplus
6713 extern "C" {
6714 #endif
6715 char nm_test_var;
6716 void nm_test_func(void);
6717 void nm_test_func(void){}
6718 #ifdef __cplusplus
6720 #endif
6721 int main(){nm_test_var='a';nm_test_func();return(0);}
6722 _LT_EOF
6724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6725 (eval $ac_compile) 2>&5
6726 ac_status=$?
6727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728 test $ac_status = 0; }; then
6729 # Now try to grab the symbols.
6730 nlist=conftest.nm
6731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6732 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6733 ac_status=$?
6734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6735 test $ac_status = 0; } && test -s "$nlist"; then
6736 # Try sorting and uniquifying the output.
6737 if sort "$nlist" | uniq > "$nlist"T; then
6738 mv -f "$nlist"T "$nlist"
6739 else
6740 rm -f "$nlist"T
6743 # Make sure that we snagged all the symbols we need.
6744 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6745 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6746 cat <<_LT_EOF > conftest.$ac_ext
6747 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6748 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6749 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6750 relocations are performed -- see ld's documentation on pseudo-relocs. */
6751 # define LT_DLSYM_CONST
6752 #elif defined(__osf__)
6753 /* This system does not cope well with relocations in const data. */
6754 # define LT_DLSYM_CONST
6755 #else
6756 # define LT_DLSYM_CONST const
6757 #endif
6759 #ifdef __cplusplus
6760 extern "C" {
6761 #endif
6763 _LT_EOF
6764 # Now generate the symbol file.
6765 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6767 cat <<_LT_EOF >> conftest.$ac_ext
6769 /* The mapping between symbol names and symbols. */
6770 LT_DLSYM_CONST struct {
6771 const char *name;
6772 void *address;
6774 lt__PROGRAM__LTX_preloaded_symbols[] =
6776 { "@PROGRAM@", (void *) 0 },
6777 _LT_EOF
6778 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6779 cat <<\_LT_EOF >> conftest.$ac_ext
6780 {0, (void *) 0}
6783 /* This works around a problem in FreeBSD linker */
6784 #ifdef FREEBSD_WORKAROUND
6785 static const void *lt_preloaded_setup() {
6786 return lt__PROGRAM__LTX_preloaded_symbols;
6788 #endif
6790 #ifdef __cplusplus
6792 #endif
6793 _LT_EOF
6794 # Now try linking the two files.
6795 mv conftest.$ac_objext conftstm.$ac_objext
6796 lt_globsym_save_LIBS=$LIBS
6797 lt_globsym_save_CFLAGS=$CFLAGS
6798 LIBS="conftstm.$ac_objext"
6799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6801 (eval $ac_link) 2>&5
6802 ac_status=$?
6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6805 pipe_works=yes
6807 LIBS=$lt_globsym_save_LIBS
6808 CFLAGS=$lt_globsym_save_CFLAGS
6809 else
6810 echo "cannot find nm_test_func in $nlist" >&5
6812 else
6813 echo "cannot find nm_test_var in $nlist" >&5
6815 else
6816 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6818 else
6819 echo "$progname: failed program was:" >&5
6820 cat conftest.$ac_ext >&5
6822 rm -rf conftest* conftst*
6824 # Do not use the global_symbol_pipe unless it works.
6825 if test "$pipe_works" = yes; then
6826 break
6827 else
6828 lt_cv_sys_global_symbol_pipe=
6830 done
6834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6835 lt_cv_sys_global_symbol_to_cdecl=
6837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6839 $as_echo "failed" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6842 $as_echo "ok" >&6; }
6845 # Response file support.
6846 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6847 nm_file_list_spec='@'
6848 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6849 nm_file_list_spec='@'
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6879 $as_echo_n "checking for sysroot... " >&6; }
6881 # Check whether --with-sysroot was given.
6882 if test "${with_sysroot+set}" = set; then :
6883 withval=$with_sysroot;
6884 else
6885 with_sysroot=no
6889 lt_sysroot=
6890 case ${with_sysroot} in #(
6891 yes)
6892 if test "$GCC" = yes; then
6893 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6895 ;; #(
6897 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6898 ;; #(
6899 no|'')
6900 ;; #(
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6903 $as_echo "${with_sysroot}" >&6; }
6904 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6906 esac
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6909 $as_echo "${lt_sysroot:-no}" >&6; }
6915 # Check whether --enable-libtool-lock was given.
6916 if test "${enable_libtool_lock+set}" = set; then :
6917 enableval=$enable_libtool_lock;
6920 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6922 # Some flags need to be propagated to the compiler or linker for good
6923 # libtool support.
6924 case $host in
6925 ia64-*-hpux*)
6926 # Find out which ABI we are using.
6927 echo 'int i;' > conftest.$ac_ext
6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929 (eval $ac_compile) 2>&5
6930 ac_status=$?
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; }; then
6933 case `/usr/bin/file conftest.$ac_objext` in
6934 *ELF-32*)
6935 HPUX_IA64_MODE="32"
6937 *ELF-64*)
6938 HPUX_IA64_MODE="64"
6940 esac
6942 rm -rf conftest*
6944 *-*-irix6*)
6945 # Find out which ABI we are using.
6946 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6948 (eval $ac_compile) 2>&5
6949 ac_status=$?
6950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951 test $ac_status = 0; }; then
6952 if test "$lt_cv_prog_gnu_ld" = yes; then
6953 case `/usr/bin/file conftest.$ac_objext` in
6954 *32-bit*)
6955 LD="${LD-ld} -melf32bsmip"
6957 *N32*)
6958 LD="${LD-ld} -melf32bmipn32"
6960 *64-bit*)
6961 LD="${LD-ld} -melf64bmip"
6963 esac
6964 else
6965 case `/usr/bin/file conftest.$ac_objext` in
6966 *32-bit*)
6967 LD="${LD-ld} -32"
6969 *N32*)
6970 LD="${LD-ld} -n32"
6972 *64-bit*)
6973 LD="${LD-ld} -64"
6975 esac
6978 rm -rf conftest*
6981 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6982 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6983 # Find out which ABI we are using.
6984 echo 'int i;' > conftest.$ac_ext
6985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6986 (eval $ac_compile) 2>&5
6987 ac_status=$?
6988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989 test $ac_status = 0; }; then
6990 case `/usr/bin/file conftest.o` in
6991 *32-bit*)
6992 case $host in
6993 x86_64-*kfreebsd*-gnu)
6994 LD="${LD-ld} -m elf_i386_fbsd"
6996 x86_64-*linux*)
6997 LD="${LD-ld} -m elf_i386"
6999 ppc64-*linux*|powerpc64-*linux*)
7000 LD="${LD-ld} -m elf32ppclinux"
7002 s390x-*linux*)
7003 LD="${LD-ld} -m elf_s390"
7005 sparc64-*linux*)
7006 LD="${LD-ld} -m elf32_sparc"
7008 esac
7010 *64-bit*)
7011 case $host in
7012 x86_64-*kfreebsd*-gnu)
7013 LD="${LD-ld} -m elf_x86_64_fbsd"
7015 x86_64-*linux*)
7016 LD="${LD-ld} -m elf_x86_64"
7018 ppc*-*linux*|powerpc*-*linux*)
7019 LD="${LD-ld} -m elf64ppc"
7021 s390*-*linux*|s390*-*tpf*)
7022 LD="${LD-ld} -m elf64_s390"
7024 sparc*-*linux*)
7025 LD="${LD-ld} -m elf64_sparc"
7027 esac
7029 esac
7031 rm -rf conftest*
7034 *-*-sco3.2v5*)
7035 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7036 SAVE_CFLAGS="$CFLAGS"
7037 CFLAGS="$CFLAGS -belf"
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7039 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7040 if ${lt_cv_cc_needs_belf+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 ac_ext=c
7044 ac_cpp='$CPP $CPPFLAGS'
7045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7053 main ()
7057 return 0;
7059 _ACEOF
7060 if ac_fn_c_try_link "$LINENO"; then :
7061 lt_cv_cc_needs_belf=yes
7062 else
7063 lt_cv_cc_needs_belf=no
7065 rm -f core conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
7067 ac_ext=c
7068 ac_cpp='$CPP $CPPFLAGS'
7069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7075 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7076 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7077 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7078 CFLAGS="$SAVE_CFLAGS"
7081 *-*solaris*)
7082 # Find out which ABI we are using.
7083 echo 'int i;' > conftest.$ac_ext
7084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085 (eval $ac_compile) 2>&5
7086 ac_status=$?
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088 test $ac_status = 0; }; then
7089 case `/usr/bin/file conftest.o` in
7090 *64-bit*)
7091 case $lt_cv_prog_gnu_ld in
7092 yes*)
7093 case $host in
7094 i?86-*-solaris*)
7095 LD="${LD-ld} -m elf_x86_64"
7097 sparc*-*-solaris*)
7098 LD="${LD-ld} -m elf64_sparc"
7100 esac
7101 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7102 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7103 LD="${LD-ld}_sol2"
7107 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7108 LD="${LD-ld} -64"
7111 esac
7113 esac
7115 rm -rf conftest*
7117 esac
7119 need_locks="$enable_libtool_lock"
7121 if test -n "$ac_tool_prefix"; then
7122 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}mt; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7127 $as_echo_n "(cached) " >&6
7128 else
7129 if test -n "$MANIFEST_TOOL"; then
7130 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7139 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7143 done
7144 done
7145 IFS=$as_save_IFS
7149 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7150 if test -n "$MANIFEST_TOOL"; then
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7152 $as_echo "$MANIFEST_TOOL" >&6; }
7153 else
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7160 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7161 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7162 # Extract the first word of "mt", so it can be a program name with args.
7163 set dummy mt; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 if test -n "$ac_ct_MANIFEST_TOOL"; then
7170 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7183 done
7184 done
7185 IFS=$as_save_IFS
7189 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7190 if test -n "$ac_ct_MANIFEST_TOOL"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7192 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7193 else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7198 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7199 MANIFEST_TOOL=":"
7200 else
7201 case $cross_compiling:$ac_tool_warned in
7202 yes:)
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7209 else
7210 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7213 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7215 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7216 if ${lt_cv_path_mainfest_tool+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 lt_cv_path_mainfest_tool=no
7220 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7221 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7222 cat conftest.err >&5
7223 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7224 lt_cv_path_mainfest_tool=yes
7226 rm -f conftest*
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7229 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7230 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7231 MANIFEST_TOOL=:
7239 case $host_os in
7240 rhapsody* | darwin*)
7241 if test -n "$ac_tool_prefix"; then
7242 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$DSYMUTIL"; then
7250 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7263 done
7264 done
7265 IFS=$as_save_IFS
7269 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7270 if test -n "$DSYMUTIL"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7272 $as_echo "$DSYMUTIL" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7280 if test -z "$ac_cv_prog_DSYMUTIL"; then
7281 ac_ct_DSYMUTIL=$DSYMUTIL
7282 # Extract the first word of "dsymutil", so it can be a program name with args.
7283 set dummy dsymutil; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 if test -n "$ac_ct_DSYMUTIL"; then
7290 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7295 IFS=$as_save_IFS
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7299 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301 break 2
7303 done
7304 done
7305 IFS=$as_save_IFS
7309 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7310 if test -n "$ac_ct_DSYMUTIL"; then
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7312 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7313 else
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7318 if test "x$ac_ct_DSYMUTIL" = x; then
7319 DSYMUTIL=":"
7320 else
7321 case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327 DSYMUTIL=$ac_ct_DSYMUTIL
7329 else
7330 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_NMEDIT+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$NMEDIT"; then
7342 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7355 done
7356 done
7357 IFS=$as_save_IFS
7361 NMEDIT=$ac_cv_prog_NMEDIT
7362 if test -n "$NMEDIT"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7364 $as_echo "$NMEDIT" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7372 if test -z "$ac_cv_prog_NMEDIT"; then
7373 ac_ct_NMEDIT=$NMEDIT
7374 # Extract the first word of "nmedit", so it can be a program name with args.
7375 set dummy nmedit; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$ac_ct_NMEDIT"; then
7382 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7395 done
7396 done
7397 IFS=$as_save_IFS
7401 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7402 if test -n "$ac_ct_NMEDIT"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7404 $as_echo "$ac_ct_NMEDIT" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7410 if test "x$ac_ct_NMEDIT" = x; then
7411 NMEDIT=":"
7412 else
7413 case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419 NMEDIT=$ac_ct_NMEDIT
7421 else
7422 NMEDIT="$ac_cv_prog_NMEDIT"
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7427 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_LIPO+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$LIPO"; then
7434 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7453 LIPO=$ac_cv_prog_LIPO
7454 if test -n "$LIPO"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7456 $as_echo "$LIPO" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test -z "$ac_cv_prog_LIPO"; then
7465 ac_ct_LIPO=$LIPO
7466 # Extract the first word of "lipo", so it can be a program name with args.
7467 set dummy lipo; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$ac_ct_LIPO"; then
7474 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_ac_ct_LIPO="lipo"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7489 IFS=$as_save_IFS
7493 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7494 if test -n "$ac_ct_LIPO"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7496 $as_echo "$ac_ct_LIPO" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7502 if test "x$ac_ct_LIPO" = x; then
7503 LIPO=":"
7504 else
7505 case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511 LIPO=$ac_ct_LIPO
7513 else
7514 LIPO="$ac_cv_prog_LIPO"
7517 if test -n "$ac_tool_prefix"; then
7518 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7519 set dummy ${ac_tool_prefix}otool; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_OTOOL+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 if test -n "$OTOOL"; then
7526 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7539 done
7540 done
7541 IFS=$as_save_IFS
7545 OTOOL=$ac_cv_prog_OTOOL
7546 if test -n "$OTOOL"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7548 $as_echo "$OTOOL" >&6; }
7549 else
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7556 if test -z "$ac_cv_prog_OTOOL"; then
7557 ac_ct_OTOOL=$OTOOL
7558 # Extract the first word of "otool", so it can be a program name with args.
7559 set dummy otool; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$ac_ct_OTOOL"; then
7566 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575 ac_cv_prog_ac_ct_OTOOL="otool"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7585 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7586 if test -n "$ac_ct_OTOOL"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7588 $as_echo "$ac_ct_OTOOL" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7594 if test "x$ac_ct_OTOOL" = x; then
7595 OTOOL=":"
7596 else
7597 case $cross_compiling:$ac_tool_warned in
7598 yes:)
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7601 ac_tool_warned=yes ;;
7602 esac
7603 OTOOL=$ac_ct_OTOOL
7605 else
7606 OTOOL="$ac_cv_prog_OTOOL"
7609 if test -n "$ac_tool_prefix"; then
7610 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7611 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_OTOOL64+:} false; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617 if test -n "$OTOOL64"; then
7618 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7631 done
7632 done
7633 IFS=$as_save_IFS
7637 OTOOL64=$ac_cv_prog_OTOOL64
7638 if test -n "$OTOOL64"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7640 $as_echo "$OTOOL64" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7648 if test -z "$ac_cv_prog_OTOOL64"; then
7649 ac_ct_OTOOL64=$OTOOL64
7650 # Extract the first word of "otool64", so it can be a program name with args.
7651 set dummy otool64; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 if test -n "$ac_ct_OTOOL64"; then
7658 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_ac_ct_OTOOL64="otool64"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7671 done
7672 done
7673 IFS=$as_save_IFS
7677 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7678 if test -n "$ac_ct_OTOOL64"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7680 $as_echo "$ac_ct_OTOOL64" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7686 if test "x$ac_ct_OTOOL64" = x; then
7687 OTOOL64=":"
7688 else
7689 case $cross_compiling:$ac_tool_warned in
7690 yes:)
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7693 ac_tool_warned=yes ;;
7694 esac
7695 OTOOL64=$ac_ct_OTOOL64
7697 else
7698 OTOOL64="$ac_cv_prog_OTOOL64"
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7728 $as_echo_n "checking for -single_module linker flag... " >&6; }
7729 if ${lt_cv_apple_cc_single_mod+:} false; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 lt_cv_apple_cc_single_mod=no
7733 if test -z "${LT_MULTI_MODULE}"; then
7734 # By default we will add the -single_module flag. You can override
7735 # by either setting the environment variable LT_MULTI_MODULE
7736 # non-empty at configure time, or by adding -multi_module to the
7737 # link flags.
7738 rm -rf libconftest.dylib*
7739 echo "int foo(void){return 1;}" > conftest.c
7740 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7741 -dynamiclib -Wl,-single_module conftest.c" >&5
7742 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7743 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7744 _lt_result=$?
7745 # If there is a non-empty error log, and "single_module"
7746 # appears in it, assume the flag caused a linker warning
7747 if test -s conftest.err && $GREP single_module conftest.err; then
7748 cat conftest.err >&5
7749 # Otherwise, if the output was created with a 0 exit code from
7750 # the compiler, it worked.
7751 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7752 lt_cv_apple_cc_single_mod=yes
7753 else
7754 cat conftest.err >&5
7756 rm -rf libconftest.dylib*
7757 rm -f conftest.*
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7761 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7764 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7765 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 lt_cv_ld_exported_symbols_list=no
7769 save_LDFLAGS=$LDFLAGS
7770 echo "_main" > conftest.sym
7771 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7776 main ()
7780 return 0;
7782 _ACEOF
7783 if ac_fn_c_try_link "$LINENO"; then :
7784 lt_cv_ld_exported_symbols_list=yes
7785 else
7786 lt_cv_ld_exported_symbols_list=no
7788 rm -f core conftest.err conftest.$ac_objext \
7789 conftest$ac_exeext conftest.$ac_ext
7790 LDFLAGS="$save_LDFLAGS"
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7794 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7797 $as_echo_n "checking for -force_load linker flag... " >&6; }
7798 if ${lt_cv_ld_force_load+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 lt_cv_ld_force_load=no
7802 cat > conftest.c << _LT_EOF
7803 int forced_loaded() { return 2;}
7804 _LT_EOF
7805 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7806 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7807 echo "$AR cru libconftest.a conftest.o" >&5
7808 $AR cru libconftest.a conftest.o 2>&5
7809 echo "$RANLIB libconftest.a" >&5
7810 $RANLIB libconftest.a 2>&5
7811 cat > conftest.c << _LT_EOF
7812 int main() { return 0;}
7813 _LT_EOF
7814 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7815 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7816 _lt_result=$?
7817 if test -s conftest.err && $GREP force_load conftest.err; then
7818 cat conftest.err >&5
7819 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7820 lt_cv_ld_force_load=yes
7821 else
7822 cat conftest.err >&5
7824 rm -f conftest.err libconftest.a conftest conftest.c
7825 rm -rf conftest.dSYM
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7829 $as_echo "$lt_cv_ld_force_load" >&6; }
7830 case $host_os in
7831 rhapsody* | darwin1.[012])
7832 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7833 darwin1.*)
7834 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7835 darwin*) # darwin 5.x on
7836 # if running on 10.5 or later, the deployment target defaults
7837 # to the OS version, if on x86, and 10.4, the deployment
7838 # target defaults to 10.4. Don't you love it?
7839 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7840 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7841 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7842 10.[012]*)
7843 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7844 10.*)
7845 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7846 esac
7848 esac
7849 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7850 _lt_dar_single_mod='$single_module'
7852 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7853 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7854 else
7855 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7857 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7858 _lt_dsymutil='~$DSYMUTIL $lib || :'
7859 else
7860 _lt_dsymutil=
7863 esac
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7866 $as_echo_n "checking for ANSI C header files... " >&6; }
7867 if ${ac_cv_header_stdc+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 #include <stdlib.h>
7873 #include <stdarg.h>
7874 #include <string.h>
7875 #include <float.h>
7878 main ()
7882 return 0;
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 ac_cv_header_stdc=yes
7887 else
7888 ac_cv_header_stdc=no
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 if test $ac_cv_header_stdc = yes; then
7893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896 #include <string.h>
7898 _ACEOF
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900 $EGREP "memchr" >/dev/null 2>&1; then :
7902 else
7903 ac_cv_header_stdc=no
7905 rm -f conftest*
7909 if test $ac_cv_header_stdc = yes; then
7910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913 #include <stdlib.h>
7915 _ACEOF
7916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917 $EGREP "free" >/dev/null 2>&1; then :
7919 else
7920 ac_cv_header_stdc=no
7922 rm -f conftest*
7926 if test $ac_cv_header_stdc = yes; then
7927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7928 if test "$cross_compiling" = yes; then :
7930 else
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7933 #include <ctype.h>
7934 #include <stdlib.h>
7935 #if ((' ' & 0x0FF) == 0x020)
7936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7938 #else
7939 # define ISLOWER(c) \
7940 (('a' <= (c) && (c) <= 'i') \
7941 || ('j' <= (c) && (c) <= 'r') \
7942 || ('s' <= (c) && (c) <= 'z'))
7943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7944 #endif
7946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7948 main ()
7950 int i;
7951 for (i = 0; i < 256; i++)
7952 if (XOR (islower (i), ISLOWER (i))
7953 || toupper (i) != TOUPPER (i))
7954 return 2;
7955 return 0;
7957 _ACEOF
7958 if ac_fn_c_try_run "$LINENO"; then :
7960 else
7961 ac_cv_header_stdc=no
7963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7964 conftest.$ac_objext conftest.beam conftest.$ac_ext
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7970 $as_echo "$ac_cv_header_stdc" >&6; }
7971 if test $ac_cv_header_stdc = yes; then
7973 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7979 inttypes.h stdint.h unistd.h
7980 do :
7981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7985 cat >>confdefs.h <<_ACEOF
7986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7987 _ACEOF
7991 done
7994 for ac_header in dlfcn.h
7995 do :
7996 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7998 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7999 cat >>confdefs.h <<_ACEOF
8000 #define HAVE_DLFCN_H 1
8001 _ACEOF
8005 done
8011 # Set options
8015 enable_dlopen=no
8018 enable_win32_dll=no
8021 # Check whether --enable-shared was given.
8022 if test "${enable_shared+set}" = set; then :
8023 enableval=$enable_shared; p=${PACKAGE-default}
8024 case $enableval in
8025 yes) enable_shared=yes ;;
8026 no) enable_shared=no ;;
8028 enable_shared=no
8029 # Look at the argument we got. We use all the common list separators.
8030 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8031 for pkg in $enableval; do
8032 IFS="$lt_save_ifs"
8033 if test "X$pkg" = "X$p"; then
8034 enable_shared=yes
8036 done
8037 IFS="$lt_save_ifs"
8039 esac
8040 else
8041 enable_shared=yes
8052 # Check whether --enable-static was given.
8053 if test "${enable_static+set}" = set; then :
8054 enableval=$enable_static; p=${PACKAGE-default}
8055 case $enableval in
8056 yes) enable_static=yes ;;
8057 no) enable_static=no ;;
8059 enable_static=no
8060 # Look at the argument we got. We use all the common list separators.
8061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8062 for pkg in $enableval; do
8063 IFS="$lt_save_ifs"
8064 if test "X$pkg" = "X$p"; then
8065 enable_static=yes
8067 done
8068 IFS="$lt_save_ifs"
8070 esac
8071 else
8072 enable_static=yes
8084 # Check whether --with-pic was given.
8085 if test "${with_pic+set}" = set; then :
8086 withval=$with_pic; lt_p=${PACKAGE-default}
8087 case $withval in
8088 yes|no) pic_mode=$withval ;;
8090 pic_mode=default
8091 # Look at the argument we got. We use all the common list separators.
8092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8093 for lt_pkg in $withval; do
8094 IFS="$lt_save_ifs"
8095 if test "X$lt_pkg" = "X$lt_p"; then
8096 pic_mode=yes
8098 done
8099 IFS="$lt_save_ifs"
8101 esac
8102 else
8103 pic_mode=default
8107 test -z "$pic_mode" && pic_mode=default
8115 # Check whether --enable-fast-install was given.
8116 if test "${enable_fast_install+set}" = set; then :
8117 enableval=$enable_fast_install; p=${PACKAGE-default}
8118 case $enableval in
8119 yes) enable_fast_install=yes ;;
8120 no) enable_fast_install=no ;;
8122 enable_fast_install=no
8123 # Look at the argument we got. We use all the common list separators.
8124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8125 for pkg in $enableval; do
8126 IFS="$lt_save_ifs"
8127 if test "X$pkg" = "X$p"; then
8128 enable_fast_install=yes
8130 done
8131 IFS="$lt_save_ifs"
8133 esac
8134 else
8135 enable_fast_install=yes
8148 # This can be used to rebuild libtool when needed
8149 LIBTOOL_DEPS="$ltmain"
8151 # Always use our own libtool.
8152 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8183 test -z "$LN_S" && LN_S="ln -s"
8198 if test -n "${ZSH_VERSION+set}" ; then
8199 setopt NO_GLOB_SUBST
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8203 $as_echo_n "checking for objdir... " >&6; }
8204 if ${lt_cv_objdir+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 rm -f .libs 2>/dev/null
8208 mkdir .libs 2>/dev/null
8209 if test -d .libs; then
8210 lt_cv_objdir=.libs
8211 else
8212 # MS-DOS does not allow filenames that begin with a dot.
8213 lt_cv_objdir=_libs
8215 rmdir .libs 2>/dev/null
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8218 $as_echo "$lt_cv_objdir" >&6; }
8219 objdir=$lt_cv_objdir
8225 cat >>confdefs.h <<_ACEOF
8226 #define LT_OBJDIR "$lt_cv_objdir/"
8227 _ACEOF
8232 case $host_os in
8233 aix3*)
8234 # AIX sometimes has problems with the GCC collect2 program. For some
8235 # reason, if we set the COLLECT_NAMES environment variable, the problems
8236 # vanish in a puff of smoke.
8237 if test "X${COLLECT_NAMES+set}" != Xset; then
8238 COLLECT_NAMES=
8239 export COLLECT_NAMES
8242 esac
8244 # Global variables:
8245 ofile=libtool
8246 can_build_shared=yes
8248 # All known linkers require a `.a' archive for static linking (except MSVC,
8249 # which needs '.lib').
8250 libext=a
8252 with_gnu_ld="$lt_cv_prog_gnu_ld"
8254 old_CC="$CC"
8255 old_CFLAGS="$CFLAGS"
8257 # Set sane defaults for various variables
8258 test -z "$CC" && CC=cc
8259 test -z "$LTCC" && LTCC=$CC
8260 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8261 test -z "$LD" && LD=ld
8262 test -z "$ac_objext" && ac_objext=o
8264 for cc_temp in $compiler""; do
8265 case $cc_temp in
8266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8268 \-*) ;;
8269 *) break;;
8270 esac
8271 done
8272 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8275 # Only perform the check for file, if the check method requires it
8276 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8277 case $deplibs_check_method in
8278 file_magic*)
8279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8281 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8282 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 case $MAGIC_CMD in
8286 [\\/*] | ?:[\\/]*)
8287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290 lt_save_MAGIC_CMD="$MAGIC_CMD"
8291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293 for ac_dir in $ac_dummy; do
8294 IFS="$lt_save_ifs"
8295 test -z "$ac_dir" && ac_dir=.
8296 if test -f $ac_dir/${ac_tool_prefix}file; then
8297 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8298 if test -n "$file_magic_test_file"; then
8299 case $deplibs_check_method in
8300 "file_magic "*)
8301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304 $EGREP "$file_magic_regex" > /dev/null; then
8306 else
8307 cat <<_LT_EOF 1>&2
8309 *** Warning: the command libtool uses to detect shared libraries,
8310 *** $file_magic_cmd, produces output that libtool cannot recognize.
8311 *** The result is that libtool may fail to recognize shared libraries
8312 *** as such. This will affect the creation of libtool libraries that
8313 *** depend on shared libraries, but programs linked with such libtool
8314 *** libraries will work regardless of this problem. Nevertheless, you
8315 *** may want to report the problem to your system manager and/or to
8316 *** bug-libtool@gnu.org
8318 _LT_EOF
8319 fi ;;
8320 esac
8322 break
8324 done
8325 IFS="$lt_save_ifs"
8326 MAGIC_CMD="$lt_save_MAGIC_CMD"
8328 esac
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if test -n "$MAGIC_CMD"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8334 $as_echo "$MAGIC_CMD" >&6; }
8335 else
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8344 if test -z "$lt_cv_path_MAGIC_CMD"; then
8345 if test -n "$ac_tool_prefix"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8347 $as_echo_n "checking for file... " >&6; }
8348 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 case $MAGIC_CMD in
8352 [\\/*] | ?:[\\/]*)
8353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8356 lt_save_MAGIC_CMD="$MAGIC_CMD"
8357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8358 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8359 for ac_dir in $ac_dummy; do
8360 IFS="$lt_save_ifs"
8361 test -z "$ac_dir" && ac_dir=.
8362 if test -f $ac_dir/file; then
8363 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8364 if test -n "$file_magic_test_file"; then
8365 case $deplibs_check_method in
8366 "file_magic "*)
8367 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8370 $EGREP "$file_magic_regex" > /dev/null; then
8372 else
8373 cat <<_LT_EOF 1>&2
8375 *** Warning: the command libtool uses to detect shared libraries,
8376 *** $file_magic_cmd, produces output that libtool cannot recognize.
8377 *** The result is that libtool may fail to recognize shared libraries
8378 *** as such. This will affect the creation of libtool libraries that
8379 *** depend on shared libraries, but programs linked with such libtool
8380 *** libraries will work regardless of this problem. Nevertheless, you
8381 *** may want to report the problem to your system manager and/or to
8382 *** bug-libtool@gnu.org
8384 _LT_EOF
8385 fi ;;
8386 esac
8388 break
8390 done
8391 IFS="$lt_save_ifs"
8392 MAGIC_CMD="$lt_save_MAGIC_CMD"
8394 esac
8397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8398 if test -n "$MAGIC_CMD"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8400 $as_echo "$MAGIC_CMD" >&6; }
8401 else
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8407 else
8408 MAGIC_CMD=:
8414 esac
8416 # Use C for the default configuration in the libtool script
8418 lt_save_CC="$CC"
8419 ac_ext=c
8420 ac_cpp='$CPP $CPPFLAGS'
8421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426 # Source file extension for C test sources.
8427 ac_ext=c
8429 # Object file extension for compiled C test sources.
8430 objext=o
8431 objext=$objext
8433 # Code to be used in simple compile tests
8434 lt_simple_compile_test_code="int some_variable = 0;"
8436 # Code to be used in simple link tests
8437 lt_simple_link_test_code='int main(){return(0);}'
8445 # If no C compiler was specified, use CC.
8446 LTCC=${LTCC-"$CC"}
8448 # If no C compiler flags were specified, use CFLAGS.
8449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8451 # Allow CC to be a program name with arguments.
8452 compiler=$CC
8454 # Save the default compiler, since it gets overwritten when the other
8455 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8456 compiler_DEFAULT=$CC
8458 # save warnings/boilerplate of simple test code
8459 ac_outfile=conftest.$ac_objext
8460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8462 _lt_compiler_boilerplate=`cat conftest.err`
8463 $RM conftest*
8465 ac_outfile=conftest.$ac_objext
8466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8468 _lt_linker_boilerplate=`cat conftest.err`
8469 $RM -r conftest*
8472 ## CAVEAT EMPTOR:
8473 ## There is no encapsulation within the following macros, do not change
8474 ## the running order or otherwise move them around unless you know exactly
8475 ## what you are doing...
8476 if test -n "$compiler"; then
8478 lt_prog_compiler_no_builtin_flag=
8480 if test "$GCC" = yes; then
8481 case $cc_basename in
8482 nvcc*)
8483 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8485 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8486 esac
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8489 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8490 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8491 $as_echo_n "(cached) " >&6
8492 else
8493 lt_cv_prog_compiler_rtti_exceptions=no
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 lt_compiler_flag="-fno-rtti -fno-exceptions"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>conftest.err)
8508 ac_status=$?
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_rtti_exceptions=yes
8520 $RM conftest*
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8524 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8526 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8527 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8528 else
8539 lt_prog_compiler_wl=
8540 lt_prog_compiler_pic=
8541 lt_prog_compiler_static=
8544 if test "$GCC" = yes; then
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_static='-static'
8548 case $host_os in
8549 aix*)
8550 # All AIX code is PIC.
8551 if test "$host_cpu" = ia64; then
8552 # AIX 5 now supports IA64 processor
8553 lt_prog_compiler_static='-Bstatic'
8557 amigaos*)
8558 case $host_cpu in
8559 powerpc)
8560 # see comment about AmigaOS4 .so support
8561 lt_prog_compiler_pic='-fPIC'
8563 m68k)
8564 # FIXME: we need at least 68020 code to build shared libraries, but
8565 # adding the `-m68020' flag to GCC prevents building anything better,
8566 # like `-m68040'.
8567 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8569 esac
8572 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8573 # PIC is the default for these OSes.
8576 mingw* | cygwin* | pw32* | os2* | cegcc*)
8577 # This hack is so that the source file can tell whether it is being
8578 # built for inclusion in a dll (and should export symbols for example).
8579 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8580 # (--disable-auto-import) libraries
8581 lt_prog_compiler_pic='-DDLL_EXPORT'
8584 darwin* | rhapsody*)
8585 # PIC is the default on this platform
8586 # Common symbols not allowed in MH_DYLIB files
8587 lt_prog_compiler_pic='-fno-common'
8590 haiku*)
8591 # PIC is the default for Haiku.
8592 # The "-static" flag exists, but is broken.
8593 lt_prog_compiler_static=
8596 hpux*)
8597 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8598 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8599 # sets the default TLS model and affects inlining.
8600 case $host_cpu in
8601 hppa*64*)
8602 # +Z the default
8605 lt_prog_compiler_pic='-fPIC'
8607 esac
8610 interix[3-9]*)
8611 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8612 # Instead, we relocate shared libraries at runtime.
8615 msdosdjgpp*)
8616 # Just because we use GCC doesn't mean we suddenly get shared libraries
8617 # on systems that don't support them.
8618 lt_prog_compiler_can_build_shared=no
8619 enable_shared=no
8622 *nto* | *qnx*)
8623 # QNX uses GNU C++, but need to define -shared option too, otherwise
8624 # it will coredump.
8625 lt_prog_compiler_pic='-fPIC -shared'
8628 sysv4*MP*)
8629 if test -d /usr/nec; then
8630 lt_prog_compiler_pic=-Kconform_pic
8635 lt_prog_compiler_pic='-fPIC'
8637 esac
8639 case $cc_basename in
8640 nvcc*) # Cuda Compiler Driver 2.2
8641 lt_prog_compiler_wl='-Xlinker '
8642 if test -n "$lt_prog_compiler_pic"; then
8643 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8646 esac
8647 else
8648 # PORTME Check for flag to pass linker flags through the system compiler.
8649 case $host_os in
8650 aix*)
8651 lt_prog_compiler_wl='-Wl,'
8652 if test "$host_cpu" = ia64; then
8653 # AIX 5 now supports IA64 processor
8654 lt_prog_compiler_static='-Bstatic'
8655 else
8656 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8660 mingw* | cygwin* | pw32* | os2* | cegcc*)
8661 # This hack is so that the source file can tell whether it is being
8662 # built for inclusion in a dll (and should export symbols for example).
8663 lt_prog_compiler_pic='-DDLL_EXPORT'
8666 hpux9* | hpux10* | hpux11*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8669 # not for PA HP-UX.
8670 case $host_cpu in
8671 hppa*64*|ia64*)
8672 # +Z the default
8675 lt_prog_compiler_pic='+Z'
8677 esac
8678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679 lt_prog_compiler_static='${wl}-a ${wl}archive'
8682 irix5* | irix6* | nonstopux*)
8683 lt_prog_compiler_wl='-Wl,'
8684 # PIC (with -KPIC) is the default.
8685 lt_prog_compiler_static='-non_shared'
8688 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8689 case $cc_basename in
8690 # old Intel for x86_64 which still supported -KPIC.
8691 ecc*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-static'
8696 # icc used to be incompatible with GCC.
8697 # ICC 10 doesn't accept -KPIC any more.
8698 icc* | ifort*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-fPIC'
8701 lt_prog_compiler_static='-static'
8703 # Lahey Fortran 8.1.
8704 lf95*)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='--shared'
8707 lt_prog_compiler_static='--static'
8709 nagfor*)
8710 # NAG Fortran compiler
8711 lt_prog_compiler_wl='-Wl,-Wl,,'
8712 lt_prog_compiler_pic='-PIC'
8713 lt_prog_compiler_static='-Bstatic'
8715 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8716 # Portland Group compilers (*not* the Pentium gcc compiler,
8717 # which looks to be a dead project)
8718 lt_prog_compiler_wl='-Wl,'
8719 lt_prog_compiler_pic='-fpic'
8720 lt_prog_compiler_static='-Bstatic'
8722 ccc*)
8723 lt_prog_compiler_wl='-Wl,'
8724 # All Alpha code is PIC.
8725 lt_prog_compiler_static='-non_shared'
8727 xl* | bgxl* | bgf* | mpixl*)
8728 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8729 lt_prog_compiler_wl='-Wl,'
8730 lt_prog_compiler_pic='-qpic'
8731 lt_prog_compiler_static='-qstaticlink'
8734 case `$CC -V 2>&1 | sed 5q` in
8735 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8736 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 lt_prog_compiler_wl=''
8741 *Sun\ F* | *Sun*Fortran*)
8742 lt_prog_compiler_pic='-KPIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 lt_prog_compiler_wl='-Qoption ld '
8746 *Sun\ C*)
8747 # Sun C 5.9
8748 lt_prog_compiler_pic='-KPIC'
8749 lt_prog_compiler_static='-Bstatic'
8750 lt_prog_compiler_wl='-Wl,'
8752 *Intel*\ [CF]*Compiler*)
8753 lt_prog_compiler_wl='-Wl,'
8754 lt_prog_compiler_pic='-fPIC'
8755 lt_prog_compiler_static='-static'
8757 *Portland\ Group*)
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='-fpic'
8760 lt_prog_compiler_static='-Bstatic'
8762 esac
8764 esac
8767 newsos6)
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8772 *nto* | *qnx*)
8773 # QNX uses GNU C++, but need to define -shared option too, otherwise
8774 # it will coredump.
8775 lt_prog_compiler_pic='-fPIC -shared'
8778 osf3* | osf4* | osf5*)
8779 lt_prog_compiler_wl='-Wl,'
8780 # All OSF/1 code is PIC.
8781 lt_prog_compiler_static='-non_shared'
8784 rdos*)
8785 lt_prog_compiler_static='-non_shared'
8788 solaris*)
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 case $cc_basename in
8792 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8793 lt_prog_compiler_wl='-Qoption ld ';;
8795 lt_prog_compiler_wl='-Wl,';;
8796 esac
8799 sunos4*)
8800 lt_prog_compiler_wl='-Qoption ld '
8801 lt_prog_compiler_pic='-PIC'
8802 lt_prog_compiler_static='-Bstatic'
8805 sysv4 | sysv4.2uw2* | sysv4.3*)
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-KPIC'
8808 lt_prog_compiler_static='-Bstatic'
8811 sysv4*MP*)
8812 if test -d /usr/nec ;then
8813 lt_prog_compiler_pic='-Kconform_pic'
8814 lt_prog_compiler_static='-Bstatic'
8818 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8819 lt_prog_compiler_wl='-Wl,'
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8824 unicos*)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_can_build_shared=no
8829 uts4*)
8830 lt_prog_compiler_pic='-pic'
8831 lt_prog_compiler_static='-Bstatic'
8835 lt_prog_compiler_can_build_shared=no
8837 esac
8840 case $host_os in
8841 # For platforms which do not support PIC, -DPIC is meaningless:
8842 *djgpp*)
8843 lt_prog_compiler_pic=
8846 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8848 esac
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8851 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8852 if ${lt_cv_prog_compiler_pic+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8858 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8859 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8862 # Check to make sure the PIC flag actually works.
8864 if test -n "$lt_prog_compiler_pic"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8866 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8867 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 lt_cv_prog_compiler_pic_works=no
8871 ac_outfile=conftest.$ac_objext
8872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8873 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8874 # Insert the option either (1) after the last *FLAGS variable, or
8875 # (2) before a word containing "conftest.", or (3) at the end.
8876 # Note that $ac_compile itself does not contain backslashes and begins
8877 # with a dollar sign (not a hyphen), so the echo should work correctly.
8878 # The option is referenced via a variable to avoid confusing sed.
8879 lt_compile=`echo "$ac_compile" | $SED \
8880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8882 -e 's:$: $lt_compiler_flag:'`
8883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8884 (eval "$lt_compile" 2>conftest.err)
8885 ac_status=$?
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 if (exit $ac_status) && test -s "$ac_outfile"; then
8889 # The compiler can only warn and ignore the option if not recognized
8890 # So say no if there are warnings other than the usual output.
8891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8894 lt_cv_prog_compiler_pic_works=yes
8897 $RM conftest*
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8901 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8903 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8904 case $lt_prog_compiler_pic in
8905 "" | " "*) ;;
8906 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8907 esac
8908 else
8909 lt_prog_compiler_pic=
8910 lt_prog_compiler_can_build_shared=no
8926 # Check to make sure the static flag actually works.
8928 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8930 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8931 if ${lt_cv_prog_compiler_static_works+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 lt_cv_prog_compiler_static_works=no
8935 save_LDFLAGS="$LDFLAGS"
8936 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8937 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8938 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8939 # The linker can only warn and ignore the option if not recognized
8940 # So say no if there are warnings
8941 if test -s conftest.err; then
8942 # Append any errors to the config.log.
8943 cat conftest.err 1>&5
8944 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8946 if diff conftest.exp conftest.er2 >/dev/null; then
8947 lt_cv_prog_compiler_static_works=yes
8949 else
8950 lt_cv_prog_compiler_static_works=yes
8953 $RM -r conftest*
8954 LDFLAGS="$save_LDFLAGS"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8958 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8960 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8962 else
8963 lt_prog_compiler_static=
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8974 if ${lt_cv_prog_compiler_c_o+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 lt_cv_prog_compiler_c_o=no
8978 $RM -r conftest 2>/dev/null
8979 mkdir conftest
8980 cd conftest
8981 mkdir out
8982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8984 lt_compiler_flag="-o out/conftest2.$ac_objext"
8985 # Insert the option either (1) after the last *FLAGS variable, or
8986 # (2) before a word containing "conftest.", or (3) at the end.
8987 # Note that $ac_compile itself does not contain backslashes and begins
8988 # with a dollar sign (not a hyphen), so the echo should work correctly.
8989 lt_compile=`echo "$ac_compile" | $SED \
8990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992 -e 's:$: $lt_compiler_flag:'`
8993 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8994 (eval "$lt_compile" 2>out/conftest.err)
8995 ac_status=$?
8996 cat out/conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8999 then
9000 # The compiler can only warn and ignore the option if not recognized
9001 # So say no if there are warnings
9002 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9005 lt_cv_prog_compiler_c_o=yes
9008 chmod u+w . 2>&5
9009 $RM conftest*
9010 # SGI C++ compiler will create directory out/ii_files/ for
9011 # template instantiation
9012 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9013 $RM out/* && rmdir out
9014 cd ..
9015 $RM -r conftest
9016 $RM conftest*
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9020 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9028 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9029 if ${lt_cv_prog_compiler_c_o+:} false; then :
9030 $as_echo_n "(cached) " >&6
9031 else
9032 lt_cv_prog_compiler_c_o=no
9033 $RM -r conftest 2>/dev/null
9034 mkdir conftest
9035 cd conftest
9036 mkdir out
9037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9039 lt_compiler_flag="-o out/conftest2.$ac_objext"
9040 # Insert the option either (1) after the last *FLAGS variable, or
9041 # (2) before a word containing "conftest.", or (3) at the end.
9042 # Note that $ac_compile itself does not contain backslashes and begins
9043 # with a dollar sign (not a hyphen), so the echo should work correctly.
9044 lt_compile=`echo "$ac_compile" | $SED \
9045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9047 -e 's:$: $lt_compiler_flag:'`
9048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9049 (eval "$lt_compile" 2>out/conftest.err)
9050 ac_status=$?
9051 cat out/conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9054 then
9055 # The compiler can only warn and ignore the option if not recognized
9056 # So say no if there are warnings
9057 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9060 lt_cv_prog_compiler_c_o=yes
9063 chmod u+w . 2>&5
9064 $RM conftest*
9065 # SGI C++ compiler will create directory out/ii_files/ for
9066 # template instantiation
9067 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9068 $RM out/* && rmdir out
9069 cd ..
9070 $RM -r conftest
9071 $RM conftest*
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9075 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9080 hard_links="nottested"
9081 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9082 # do not overwrite the value of need_locks provided by the user
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9084 $as_echo_n "checking if we can lock with hard links... " >&6; }
9085 hard_links=yes
9086 $RM conftest*
9087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9088 touch conftest.a
9089 ln conftest.a conftest.b 2>&5 || hard_links=no
9090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9092 $as_echo "$hard_links" >&6; }
9093 if test "$hard_links" = no; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9095 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9096 need_locks=warn
9098 else
9099 need_locks=no
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9108 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9110 runpath_var=
9111 allow_undefined_flag=
9112 always_export_symbols=no
9113 archive_cmds=
9114 archive_expsym_cmds=
9115 compiler_needs_object=no
9116 enable_shared_with_static_runtimes=no
9117 export_dynamic_flag_spec=
9118 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9119 hardcode_automatic=no
9120 hardcode_direct=no
9121 hardcode_direct_absolute=no
9122 hardcode_libdir_flag_spec=
9123 hardcode_libdir_separator=
9124 hardcode_minus_L=no
9125 hardcode_shlibpath_var=unsupported
9126 inherit_rpath=no
9127 link_all_deplibs=unknown
9128 module_cmds=
9129 module_expsym_cmds=
9130 old_archive_from_new_cmds=
9131 old_archive_from_expsyms_cmds=
9132 thread_safe_flag_spec=
9133 whole_archive_flag_spec=
9134 # include_expsyms should be a list of space-separated symbols to be *always*
9135 # included in the symbol list
9136 include_expsyms=
9137 # exclude_expsyms can be an extended regexp of symbols to exclude
9138 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9140 # as well as any symbol that contains `d'.
9141 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9143 # platforms (ab)use it in PIC code, but their linkers get confused if
9144 # the symbol is explicitly referenced. Since portable code cannot
9145 # rely on this symbol name, it's probably fine to never include it in
9146 # preloaded symbol tables.
9147 # Exclude shared library initialization/finalization symbols.
9148 extract_expsyms_cmds=
9150 case $host_os in
9151 cygwin* | mingw* | pw32* | cegcc*)
9152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9153 # When not using gcc, we currently assume that we are using
9154 # Microsoft Visual C++.
9155 if test "$GCC" != yes; then
9156 with_gnu_ld=no
9159 interix*)
9160 # we just hope/assume this is gcc and not c89 (= MSVC++)
9161 with_gnu_ld=yes
9163 openbsd*)
9164 with_gnu_ld=no
9166 linux* | k*bsd*-gnu | gnu*)
9167 link_all_deplibs=no
9169 esac
9171 ld_shlibs=yes
9173 # On some targets, GNU ld is compatible enough with the native linker
9174 # that we're better off using the native interface for both.
9175 lt_use_gnu_ld_interface=no
9176 if test "$with_gnu_ld" = yes; then
9177 case $host_os in
9178 aix*)
9179 # The AIX port of GNU ld has always aspired to compatibility
9180 # with the native linker. However, as the warning in the GNU ld
9181 # block says, versions before 2.19.5* couldn't really create working
9182 # shared libraries, regardless of the interface used.
9183 case `$LD -v 2>&1` in
9184 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9185 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9186 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9188 lt_use_gnu_ld_interface=yes
9190 esac
9193 lt_use_gnu_ld_interface=yes
9195 esac
9198 if test "$lt_use_gnu_ld_interface" = yes; then
9199 # If archive_cmds runs LD, not CC, wlarc should be empty
9200 wlarc='${wl}'
9202 # Set some defaults for GNU ld with shared library support. These
9203 # are reset later if shared libraries are not supported. Putting them
9204 # here allows them to be overridden if necessary.
9205 runpath_var=LD_RUN_PATH
9206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9207 export_dynamic_flag_spec='${wl}--export-dynamic'
9208 # ancient GNU ld didn't support --whole-archive et. al.
9209 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9210 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9211 else
9212 whole_archive_flag_spec=
9214 supports_anon_versioning=no
9215 case `$LD -v 2>&1` in
9216 *GNU\ gold*) supports_anon_versioning=yes ;;
9217 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9218 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9219 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9220 *\ 2.11.*) ;; # other 2.11 versions
9221 *) supports_anon_versioning=yes ;;
9222 esac
9224 # See if GNU ld supports shared libraries.
9225 case $host_os in
9226 aix[3-9]*)
9227 # On AIX/PPC, the GNU linker is very broken
9228 if test "$host_cpu" != ia64; then
9229 ld_shlibs=no
9230 cat <<_LT_EOF 1>&2
9232 *** Warning: the GNU linker, at least up to release 2.19, is reported
9233 *** to be unable to reliably create shared libraries on AIX.
9234 *** Therefore, libtool is disabling shared libraries support. If you
9235 *** really care for shared libraries, you may want to install binutils
9236 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9237 *** You will then need to restart the configuration process.
9239 _LT_EOF
9243 amigaos*)
9244 case $host_cpu in
9245 powerpc)
9246 # see comment about AmigaOS4 .so support
9247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248 archive_expsym_cmds=''
9250 m68k)
9251 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)'
9252 hardcode_libdir_flag_spec='-L$libdir'
9253 hardcode_minus_L=yes
9255 esac
9258 beos*)
9259 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9260 allow_undefined_flag=unsupported
9261 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9262 # support --undefined. This deserves some investigation. FIXME
9263 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9264 else
9265 ld_shlibs=no
9269 cygwin* | mingw* | pw32* | cegcc*)
9270 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9271 # as there is no search path for DLLs.
9272 hardcode_libdir_flag_spec='-L$libdir'
9273 export_dynamic_flag_spec='${wl}--export-all-symbols'
9274 allow_undefined_flag=unsupported
9275 always_export_symbols=no
9276 enable_shared_with_static_runtimes=yes
9277 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'
9278 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9280 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9282 # If the export-symbols file already is a .def file (1st line
9283 # is EXPORTS), use it as is; otherwise, prepend...
9284 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9285 cp $export_symbols $output_objdir/$soname.def;
9286 else
9287 echo EXPORTS > $output_objdir/$soname.def;
9288 cat $export_symbols >> $output_objdir/$soname.def;
9290 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9291 else
9292 ld_shlibs=no
9296 haiku*)
9297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9298 link_all_deplibs=yes
9301 interix[3-9]*)
9302 hardcode_direct=no
9303 hardcode_shlibpath_var=no
9304 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305 export_dynamic_flag_spec='${wl}-E'
9306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9307 # Instead, shared libraries are loaded at an image base (0x10000000 by
9308 # default) and relocated if they conflict, which is a slow very memory
9309 # consuming and fragmenting process. To avoid this, we pick a random,
9310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9311 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9312 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9313 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'
9316 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9317 tmp_diet=no
9318 if test "$host_os" = linux-dietlibc; then
9319 case $cc_basename in
9320 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9321 esac
9323 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9324 && test "$tmp_diet" = no
9325 then
9326 tmp_addflag=' $pic_flag'
9327 tmp_sharedflag='-shared'
9328 case $cc_basename,$host_cpu in
9329 pgcc*) # Portland Group C compiler
9330 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'
9331 tmp_addflag=' $pic_flag'
9333 pgf77* | pgf90* | pgf95* | pgfortran*)
9334 # Portland Group f77 and f90 compilers
9335 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'
9336 tmp_addflag=' $pic_flag -Mnomain' ;;
9337 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9338 tmp_addflag=' -i_dynamic' ;;
9339 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9340 tmp_addflag=' -i_dynamic -nofor_main' ;;
9341 ifc* | ifort*) # Intel Fortran compiler
9342 tmp_addflag=' -nofor_main' ;;
9343 lf95*) # Lahey Fortran 8.1
9344 whole_archive_flag_spec=
9345 tmp_sharedflag='--shared' ;;
9346 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9347 tmp_sharedflag='-qmkshrobj'
9348 tmp_addflag= ;;
9349 nvcc*) # Cuda Compiler Driver 2.2
9350 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'
9351 compiler_needs_object=yes
9353 esac
9354 case `$CC -V 2>&1 | sed 5q` in
9355 *Sun\ C*) # Sun C 5.9
9356 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'
9357 compiler_needs_object=yes
9358 tmp_sharedflag='-G' ;;
9359 *Sun\ F*) # Sun Fortran 8.3
9360 tmp_sharedflag='-G' ;;
9361 esac
9362 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 if test "x$supports_anon_versioning" = xyes; then
9365 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9366 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9367 echo "local: *; };" >> $output_objdir/$libname.ver~
9368 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9371 case $cc_basename in
9372 xlf* | bgf* | bgxlf* | mpixlf*)
9373 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9374 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9376 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9377 if test "x$supports_anon_versioning" = xyes; then
9378 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9379 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9380 echo "local: *; };" >> $output_objdir/$libname.ver~
9381 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9384 esac
9385 else
9386 ld_shlibs=no
9390 netbsd* | netbsdelf*-gnu)
9391 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9392 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9393 wlarc=
9394 else
9395 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9396 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400 solaris*)
9401 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9402 ld_shlibs=no
9403 cat <<_LT_EOF 1>&2
9405 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9406 *** create shared libraries on Solaris systems. Therefore, libtool
9407 *** is disabling shared libraries support. We urge you to upgrade GNU
9408 *** binutils to release 2.9.1 or newer. Another option is to modify
9409 *** your PATH or compiler configuration so that the native linker is
9410 *** used, and then restart.
9412 _LT_EOF
9413 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9414 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9416 else
9417 ld_shlibs=no
9421 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9422 case `$LD -v 2>&1` in
9423 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9424 ld_shlibs=no
9425 cat <<_LT_EOF 1>&2
9427 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9428 *** reliably create shared libraries on SCO systems. Therefore, libtool
9429 *** is disabling shared libraries support. We urge you to upgrade GNU
9430 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9431 *** your PATH or compiler configuration so that the native linker is
9432 *** used, and then restart.
9434 _LT_EOF
9437 # For security reasons, it is highly recommended that you always
9438 # use absolute paths for naming shared libraries, and exclude the
9439 # DT_RUNPATH tag from executables and libraries. But doing so
9440 # requires that you compile everything twice, which is a pain.
9441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9445 else
9446 ld_shlibs=no
9449 esac
9452 sunos4*)
9453 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9454 wlarc=
9455 hardcode_direct=yes
9456 hardcode_shlibpath_var=no
9460 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9461 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9462 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9463 else
9464 ld_shlibs=no
9467 esac
9469 if test "$ld_shlibs" = no; then
9470 runpath_var=
9471 hardcode_libdir_flag_spec=
9472 export_dynamic_flag_spec=
9473 whole_archive_flag_spec=
9475 else
9476 # PORTME fill in a description of your system's linker (not GNU ld)
9477 case $host_os in
9478 aix3*)
9479 allow_undefined_flag=unsupported
9480 always_export_symbols=yes
9481 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'
9482 # Note: this linker hardcodes the directories in LIBPATH if there
9483 # are no directories specified by -L.
9484 hardcode_minus_L=yes
9485 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9486 # Neither direct hardcoding nor static linking is supported with a
9487 # broken collect2.
9488 hardcode_direct=unsupported
9492 aix[4-9]*)
9493 if test "$host_cpu" = ia64; then
9494 # On IA64, the linker does run time linking by default, so we don't
9495 # have to do anything special.
9496 aix_use_runtimelinking=no
9497 exp_sym_flag='-Bexport'
9498 no_entry_flag=""
9499 else
9500 # If we're using GNU nm, then we don't want the "-C" option.
9501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9502 # Also, AIX nm treats weak defined symbols like other global
9503 # defined symbols, whereas GNU nm marks them as "W".
9504 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9505 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'
9506 else
9507 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'
9509 aix_use_runtimelinking=no
9511 # Test if we are trying to use run time linking or normal
9512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9513 # need to do runtime linking.
9514 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9515 for ld_flag in $LDFLAGS; do
9516 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9517 aix_use_runtimelinking=yes
9518 break
9520 done
9522 esac
9524 exp_sym_flag='-bexport'
9525 no_entry_flag='-bnoentry'
9528 # When large executables or shared objects are built, AIX ld can
9529 # have problems creating the table of contents. If linking a library
9530 # or program results in "error TOC overflow" add -mminimal-toc to
9531 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9532 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9534 archive_cmds=''
9535 hardcode_direct=yes
9536 hardcode_direct_absolute=yes
9537 hardcode_libdir_separator=':'
9538 link_all_deplibs=yes
9539 file_list_spec='${wl}-f,'
9541 if test "$GCC" = yes; then
9542 case $host_os in aix4.[012]|aix4.[012].*)
9543 # We only want to do this on AIX 4.2 and lower, the check
9544 # below for broken collect2 doesn't work under 4.3+
9545 collect2name=`${CC} -print-prog-name=collect2`
9546 if test -f "$collect2name" &&
9547 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9548 then
9549 # We have reworked collect2
9551 else
9552 # We have old collect2
9553 hardcode_direct=unsupported
9554 # It fails to find uninstalled libraries when the uninstalled
9555 # path is not listed in the libpath. Setting hardcode_minus_L
9556 # to unsupported forces relinking
9557 hardcode_minus_L=yes
9558 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_libdir_separator=
9562 esac
9563 shared_flag='-shared'
9564 if test "$aix_use_runtimelinking" = yes; then
9565 shared_flag="$shared_flag "'${wl}-G'
9567 link_all_deplibs=no
9568 else
9569 # not using gcc
9570 if test "$host_cpu" = ia64; then
9571 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9572 # chokes on -Wl,-G. The following line is correct:
9573 shared_flag='-G'
9574 else
9575 if test "$aix_use_runtimelinking" = yes; then
9576 shared_flag='${wl}-G'
9577 else
9578 shared_flag='${wl}-bM:SRE'
9583 export_dynamic_flag_spec='${wl}-bexpall'
9584 # It seems that -bexpall does not export symbols beginning with
9585 # underscore (_), so it is better to generate a list of symbols to export.
9586 always_export_symbols=yes
9587 if test "$aix_use_runtimelinking" = yes; then
9588 # Warning - without using the other runtime loading flags (-brtl),
9589 # -berok will link without error, but may produce a broken library.
9590 allow_undefined_flag='-berok'
9591 # Determine the default libpath from the value encoded in an
9592 # empty executable.
9593 if test "${lt_cv_aix_libpath+set}" = set; then
9594 aix_libpath=$lt_cv_aix_libpath
9595 else
9596 if ${lt_cv_aix_libpath_+:} false; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9603 main ()
9607 return 0;
9609 _ACEOF
9610 if ac_fn_c_try_link "$LINENO"; then :
9612 lt_aix_libpath_sed='
9613 /Import File Strings/,/^$/ {
9614 /^0/ {
9615 s/^0 *\([^ ]*\) *$/\1/
9619 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9620 # Check for a 64-bit object if we didn't find anything.
9621 if test -z "$lt_cv_aix_libpath_"; then
9622 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9625 rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627 if test -z "$lt_cv_aix_libpath_"; then
9628 lt_cv_aix_libpath_="/usr/lib:/lib"
9633 aix_libpath=$lt_cv_aix_libpath_
9636 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9637 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"
9638 else
9639 if test "$host_cpu" = ia64; then
9640 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9641 allow_undefined_flag="-z nodefs"
9642 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"
9643 else
9644 # Determine the default libpath from the value encoded in an
9645 # empty executable.
9646 if test "${lt_cv_aix_libpath+set}" = set; then
9647 aix_libpath=$lt_cv_aix_libpath
9648 else
9649 if ${lt_cv_aix_libpath_+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9656 main ()
9660 return 0;
9662 _ACEOF
9663 if ac_fn_c_try_link "$LINENO"; then :
9665 lt_aix_libpath_sed='
9666 /Import File Strings/,/^$/ {
9667 /^0/ {
9668 s/^0 *\([^ ]*\) *$/\1/
9672 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9673 # Check for a 64-bit object if we didn't find anything.
9674 if test -z "$lt_cv_aix_libpath_"; then
9675 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678 rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
9680 if test -z "$lt_cv_aix_libpath_"; then
9681 lt_cv_aix_libpath_="/usr/lib:/lib"
9686 aix_libpath=$lt_cv_aix_libpath_
9689 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9690 # Warning - without using the other run time loading flags,
9691 # -berok will link without error, but may produce a broken library.
9692 no_undefined_flag=' ${wl}-bernotok'
9693 allow_undefined_flag=' ${wl}-berok'
9694 if test "$with_gnu_ld" = yes; then
9695 # We only use this code for GNU lds that support --whole-archive.
9696 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9697 else
9698 # Exported symbols can be pulled into shared objects from archives
9699 whole_archive_flag_spec='$convenience'
9701 archive_cmds_need_lc=yes
9702 # This is similar to how AIX traditionally builds its shared libraries.
9703 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'
9708 amigaos*)
9709 case $host_cpu in
9710 powerpc)
9711 # see comment about AmigaOS4 .so support
9712 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9713 archive_expsym_cmds=''
9715 m68k)
9716 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)'
9717 hardcode_libdir_flag_spec='-L$libdir'
9718 hardcode_minus_L=yes
9720 esac
9723 bsdi[45]*)
9724 export_dynamic_flag_spec=-rdynamic
9727 cygwin* | mingw* | pw32* | cegcc*)
9728 # When not using gcc, we currently assume that we are using
9729 # Microsoft Visual C++.
9730 # hardcode_libdir_flag_spec is actually meaningless, as there is
9731 # no search path for DLLs.
9732 case $cc_basename in
9733 cl*)
9734 # Native MSVC
9735 hardcode_libdir_flag_spec=' '
9736 allow_undefined_flag=unsupported
9737 always_export_symbols=yes
9738 file_list_spec='@'
9739 # Tell ltmain to make .lib files, not .a files.
9740 libext=lib
9741 # Tell ltmain to make .dll files, not .so files.
9742 shrext_cmds=".dll"
9743 # FIXME: Setting linknames here is a bad hack.
9744 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9745 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9746 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9747 else
9748 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9750 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9751 linknames='
9752 # The linker will not automatically build a static lib if we build a DLL.
9753 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9754 enable_shared_with_static_runtimes=yes
9755 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9756 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9757 # Don't use ranlib
9758 old_postinstall_cmds='chmod 644 $oldlib'
9759 postlink_cmds='lt_outputfile="@OUTPUT@"~
9760 lt_tool_outputfile="@TOOL_OUTPUT@"~
9761 case $lt_outputfile in
9762 *.exe|*.EXE) ;;
9764 lt_outputfile="$lt_outputfile.exe"
9765 lt_tool_outputfile="$lt_tool_outputfile.exe"
9767 esac~
9768 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9769 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9770 $RM "$lt_outputfile.manifest";
9774 # Assume MSVC wrapper
9775 hardcode_libdir_flag_spec=' '
9776 allow_undefined_flag=unsupported
9777 # Tell ltmain to make .lib files, not .a files.
9778 libext=lib
9779 # Tell ltmain to make .dll files, not .so files.
9780 shrext_cmds=".dll"
9781 # FIXME: Setting linknames here is a bad hack.
9782 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9783 # The linker will automatically build a .lib file if we build a DLL.
9784 old_archive_from_new_cmds='true'
9785 # FIXME: Should let the user specify the lib program.
9786 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9787 enable_shared_with_static_runtimes=yes
9789 esac
9792 darwin* | rhapsody*)
9795 archive_cmds_need_lc=no
9796 hardcode_direct=no
9797 hardcode_automatic=yes
9798 hardcode_shlibpath_var=unsupported
9799 if test "$lt_cv_ld_force_load" = "yes"; then
9800 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\"`'
9802 else
9803 whole_archive_flag_spec=''
9805 link_all_deplibs=yes
9806 allow_undefined_flag="$_lt_dar_allow_undefined"
9807 case $cc_basename in
9808 ifort*) _lt_dar_can_shared=yes ;;
9809 *) _lt_dar_can_shared=$GCC ;;
9810 esac
9811 if test "$_lt_dar_can_shared" = "yes"; then
9812 output_verbose_link_cmd=func_echo_all
9813 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9814 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9815 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}"
9816 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}"
9818 else
9819 ld_shlibs=no
9824 dgux*)
9825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 hardcode_shlibpath_var=no
9830 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9831 # support. Future versions do this automatically, but an explicit c++rt0.o
9832 # does not break anything, and helps significantly (at the cost of a little
9833 # extra space).
9834 freebsd2.2*)
9835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9836 hardcode_libdir_flag_spec='-R$libdir'
9837 hardcode_direct=yes
9838 hardcode_shlibpath_var=no
9841 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9842 freebsd2.*)
9843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9844 hardcode_direct=yes
9845 hardcode_minus_L=yes
9846 hardcode_shlibpath_var=no
9849 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9850 freebsd* | dragonfly*)
9851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9852 hardcode_libdir_flag_spec='-R$libdir'
9853 hardcode_direct=yes
9854 hardcode_shlibpath_var=no
9857 hpux9*)
9858 if test "$GCC" = yes; then
9859 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'
9860 else
9861 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'
9863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9864 hardcode_libdir_separator=:
9865 hardcode_direct=yes
9867 # hardcode_minus_L: Not really in the search PATH,
9868 # but as the default location of the library.
9869 hardcode_minus_L=yes
9870 export_dynamic_flag_spec='${wl}-E'
9873 hpux10*)
9874 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9875 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9876 else
9877 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9879 if test "$with_gnu_ld" = no; then
9880 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9881 hardcode_libdir_separator=:
9882 hardcode_direct=yes
9883 hardcode_direct_absolute=yes
9884 export_dynamic_flag_spec='${wl}-E'
9885 # hardcode_minus_L: Not really in the search PATH,
9886 # but as the default location of the library.
9887 hardcode_minus_L=yes
9891 hpux11*)
9892 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9893 case $host_cpu in
9894 hppa*64*)
9895 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9897 ia64*)
9898 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9901 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903 esac
9904 else
9905 case $host_cpu in
9906 hppa*64*)
9907 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9909 ia64*)
9910 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9914 # Older versions of the 11.00 compiler do not understand -b yet
9915 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9917 $as_echo_n "checking if $CC understands -b... " >&6; }
9918 if ${lt_cv_prog_compiler__b+:} false; then :
9919 $as_echo_n "(cached) " >&6
9920 else
9921 lt_cv_prog_compiler__b=no
9922 save_LDFLAGS="$LDFLAGS"
9923 LDFLAGS="$LDFLAGS -b"
9924 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9926 # The linker can only warn and ignore the option if not recognized
9927 # So say no if there are warnings
9928 if test -s conftest.err; then
9929 # Append any errors to the config.log.
9930 cat conftest.err 1>&5
9931 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9933 if diff conftest.exp conftest.er2 >/dev/null; then
9934 lt_cv_prog_compiler__b=yes
9936 else
9937 lt_cv_prog_compiler__b=yes
9940 $RM -r conftest*
9941 LDFLAGS="$save_LDFLAGS"
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9945 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9947 if test x"$lt_cv_prog_compiler__b" = xyes; then
9948 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9949 else
9950 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9954 esac
9956 if test "$with_gnu_ld" = no; then
9957 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9958 hardcode_libdir_separator=:
9960 case $host_cpu in
9961 hppa*64*|ia64*)
9962 hardcode_direct=no
9963 hardcode_shlibpath_var=no
9966 hardcode_direct=yes
9967 hardcode_direct_absolute=yes
9968 export_dynamic_flag_spec='${wl}-E'
9970 # hardcode_minus_L: Not really in the search PATH,
9971 # but as the default location of the library.
9972 hardcode_minus_L=yes
9974 esac
9978 irix5* | irix6* | nonstopux*)
9979 if test "$GCC" = yes; then
9980 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'
9981 # Try to use the -exported_symbol ld option, if it does not
9982 # work, assume that -exports_file does not work either and
9983 # implicitly export all symbols.
9984 # This should be the same for all languages, so no per-tag cache variable.
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9986 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9987 if ${lt_cv_irix_exported_symbol+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 save_LDFLAGS="$LDFLAGS"
9991 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993 /* end confdefs.h. */
9994 int foo (void) { return 0; }
9995 _ACEOF
9996 if ac_fn_c_try_link "$LINENO"; then :
9997 lt_cv_irix_exported_symbol=yes
9998 else
9999 lt_cv_irix_exported_symbol=no
10001 rm -f core conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003 LDFLAGS="$save_LDFLAGS"
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10006 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10007 if test "$lt_cv_irix_exported_symbol" = yes; then
10008 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'
10010 else
10011 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'
10012 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'
10014 archive_cmds_need_lc='no'
10015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10016 hardcode_libdir_separator=:
10017 inherit_rpath=yes
10018 link_all_deplibs=yes
10021 netbsd* | netbsdelf*-gnu)
10022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10024 else
10025 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10027 hardcode_libdir_flag_spec='-R$libdir'
10028 hardcode_direct=yes
10029 hardcode_shlibpath_var=no
10032 newsos6)
10033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_direct=yes
10035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10036 hardcode_libdir_separator=:
10037 hardcode_shlibpath_var=no
10040 *nto* | *qnx*)
10043 openbsd*)
10044 if test -f /usr/libexec/ld.so; then
10045 hardcode_direct=yes
10046 hardcode_shlibpath_var=no
10047 hardcode_direct_absolute=yes
10048 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10049 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10051 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10052 export_dynamic_flag_spec='${wl}-E'
10053 else
10054 case $host_os in
10055 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10056 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_libdir_flag_spec='-R$libdir'
10060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10061 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10063 esac
10065 else
10066 ld_shlibs=no
10070 os2*)
10071 hardcode_libdir_flag_spec='-L$libdir'
10072 hardcode_minus_L=yes
10073 allow_undefined_flag=unsupported
10074 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'
10075 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10078 osf3*)
10079 if test "$GCC" = yes; then
10080 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10081 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'
10082 else
10083 allow_undefined_flag=' -expect_unresolved \*'
10084 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'
10086 archive_cmds_need_lc='no'
10087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10088 hardcode_libdir_separator=:
10091 osf4* | osf5*) # as osf3* with the addition of -msym flag
10092 if test "$GCC" = yes; then
10093 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10094 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'
10095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10096 else
10097 allow_undefined_flag=' -expect_unresolved \*'
10098 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'
10099 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~
10100 $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'
10102 # Both c and cxx compiler support -rpath directly
10103 hardcode_libdir_flag_spec='-rpath $libdir'
10105 archive_cmds_need_lc='no'
10106 hardcode_libdir_separator=:
10109 solaris*)
10110 no_undefined_flag=' -z defs'
10111 if test "$GCC" = yes; then
10112 wlarc='${wl}'
10113 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10114 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10115 $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'
10116 else
10117 case `$CC -V 2>&1` in
10118 *"Compilers 5.0"*)
10119 wlarc=''
10120 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10122 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10125 wlarc='${wl}'
10126 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10127 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10128 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10130 esac
10132 hardcode_libdir_flag_spec='-R$libdir'
10133 hardcode_shlibpath_var=no
10134 case $host_os in
10135 solaris2.[0-5] | solaris2.[0-5].*) ;;
10137 # The compiler driver will combine and reorder linker options,
10138 # but understands `-z linker_flag'. GCC discards it without `$wl',
10139 # but is careful enough not to reorder.
10140 # Supported since Solaris 2.6 (maybe 2.5.1?)
10141 if test "$GCC" = yes; then
10142 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10143 else
10144 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10147 esac
10148 link_all_deplibs=yes
10151 sunos4*)
10152 if test "x$host_vendor" = xsequent; then
10153 # Use $CC to link under sequent, because it throws in some extra .o
10154 # files that make .init and .fini sections work.
10155 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10156 else
10157 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10159 hardcode_libdir_flag_spec='-L$libdir'
10160 hardcode_direct=yes
10161 hardcode_minus_L=yes
10162 hardcode_shlibpath_var=no
10165 sysv4)
10166 case $host_vendor in
10167 sni)
10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_direct=yes # is this really true???
10171 siemens)
10172 ## LD is ld it makes a PLAMLIB
10173 ## CC just makes a GrossModule.
10174 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10175 reload_cmds='$CC -r -o $output$reload_objs'
10176 hardcode_direct=no
10178 motorola)
10179 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10182 esac
10183 runpath_var='LD_RUN_PATH'
10184 hardcode_shlibpath_var=no
10187 sysv4.3*)
10188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10189 hardcode_shlibpath_var=no
10190 export_dynamic_flag_spec='-Bexport'
10193 sysv4*MP*)
10194 if test -d /usr/nec; then
10195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10196 hardcode_shlibpath_var=no
10197 runpath_var=LD_RUN_PATH
10198 hardcode_runpath_var=yes
10199 ld_shlibs=yes
10203 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10204 no_undefined_flag='${wl}-z,text'
10205 archive_cmds_need_lc=no
10206 hardcode_shlibpath_var=no
10207 runpath_var='LD_RUN_PATH'
10209 if test "$GCC" = yes; then
10210 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10212 else
10213 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 sysv5* | sco3.2v5* | sco5v6*)
10219 # Note: We can NOT use -z defs as we might desire, because we do not
10220 # link with -lc, and that would cause any symbols used from libc to
10221 # always be unresolved, which means just about no library would
10222 # ever link correctly. If we're not using GNU ld we use -z text
10223 # though, which does catch some bad symbols but isn't as heavy-handed
10224 # as -z defs.
10225 no_undefined_flag='${wl}-z,text'
10226 allow_undefined_flag='${wl}-z,nodefs'
10227 archive_cmds_need_lc=no
10228 hardcode_shlibpath_var=no
10229 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10230 hardcode_libdir_separator=':'
10231 link_all_deplibs=yes
10232 export_dynamic_flag_spec='${wl}-Bexport'
10233 runpath_var='LD_RUN_PATH'
10235 if test "$GCC" = yes; then
10236 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 else
10239 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 uts4*)
10245 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_shlibpath_var=no
10251 ld_shlibs=no
10253 esac
10255 if test x$host_vendor = xsni; then
10256 case $host in
10257 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10258 export_dynamic_flag_spec='${wl}-Blargedynsym'
10260 esac
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10265 $as_echo "$ld_shlibs" >&6; }
10266 test "$ld_shlibs" = no && can_build_shared=no
10268 with_gnu_ld=$with_gnu_ld
10285 # Do we need to explicitly link libc?
10287 case "x$archive_cmds_need_lc" in
10288 x|xyes)
10289 # Assume -lc should be added
10290 archive_cmds_need_lc=yes
10292 if test "$enable_shared" = yes && test "$GCC" = yes; then
10293 case $archive_cmds in
10294 *'~'*)
10295 # FIXME: we may have to deal with multi-command sequences.
10297 '$CC '*)
10298 # Test whether the compiler implicitly links with -lc since on some
10299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10300 # to ld, don't add -lc before -lgcc.
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10302 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10303 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10304 $as_echo_n "(cached) " >&6
10305 else
10306 $RM conftest*
10307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10310 (eval $ac_compile) 2>&5
10311 ac_status=$?
10312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10313 test $ac_status = 0; } 2>conftest.err; then
10314 soname=conftest
10315 lib=conftest
10316 libobjs=conftest.$ac_objext
10317 deplibs=
10318 wl=$lt_prog_compiler_wl
10319 pic_flag=$lt_prog_compiler_pic
10320 compiler_flags=-v
10321 linker_flags=-v
10322 verstring=
10323 output_objdir=.
10324 libname=conftest
10325 lt_save_allow_undefined_flag=$allow_undefined_flag
10326 allow_undefined_flag=
10327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10328 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10329 ac_status=$?
10330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10331 test $ac_status = 0; }
10332 then
10333 lt_cv_archive_cmds_need_lc=no
10334 else
10335 lt_cv_archive_cmds_need_lc=yes
10337 allow_undefined_flag=$lt_save_allow_undefined_flag
10338 else
10339 cat conftest.err 1>&5
10341 $RM conftest*
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10345 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10346 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10348 esac
10351 esac
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10505 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10507 if test "$GCC" = yes; then
10508 case $host_os in
10509 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10510 *) lt_awk_arg="/^libraries:/" ;;
10511 esac
10512 case $host_os in
10513 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10514 *) lt_sed_strip_eq="s,=/,/,g" ;;
10515 esac
10516 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10517 case $lt_search_path_spec in
10518 *\;*)
10519 # if the path contains ";" then we assume it to be the separator
10520 # otherwise default to the standard path separator (i.e. ":") - it is
10521 # assumed that no part of a normal pathname contains ";" but that should
10522 # okay in the real world where ";" in dirpaths is itself problematic.
10523 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10526 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10528 esac
10529 # Ok, now we have the path, separated by spaces, we can step through it
10530 # and add multilib dir if necessary.
10531 lt_tmp_lt_search_path_spec=
10532 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10533 for lt_sys_path in $lt_search_path_spec; do
10534 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10535 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10536 else
10537 test -d "$lt_sys_path" && \
10538 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10540 done
10541 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10542 BEGIN {RS=" "; FS="/|\n";} {
10543 lt_foo="";
10544 lt_count=0;
10545 for (lt_i = NF; lt_i > 0; lt_i--) {
10546 if ($lt_i != "" && $lt_i != ".") {
10547 if ($lt_i == "..") {
10548 lt_count++;
10549 } else {
10550 if (lt_count == 0) {
10551 lt_foo="/" $lt_i lt_foo;
10552 } else {
10553 lt_count--;
10558 if (lt_foo != "") { lt_freq[lt_foo]++; }
10559 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10561 # AWK program above erroneously prepends '/' to C:/dos/paths
10562 # for these hosts.
10563 case $host_os in
10564 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10565 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10566 esac
10567 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10568 else
10569 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10571 library_names_spec=
10572 libname_spec='lib$name'
10573 soname_spec=
10574 shrext_cmds=".so"
10575 postinstall_cmds=
10576 postuninstall_cmds=
10577 finish_cmds=
10578 finish_eval=
10579 shlibpath_var=
10580 shlibpath_overrides_runpath=unknown
10581 version_type=none
10582 dynamic_linker="$host_os ld.so"
10583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10584 need_lib_prefix=unknown
10585 hardcode_into_libs=no
10587 # when you set need_version to no, make sure it does not cause -set_version
10588 # flags to be left without arguments
10589 need_version=unknown
10591 case $host_os in
10592 aix3*)
10593 version_type=linux # correct to gnu/linux during the next big refactor
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10595 shlibpath_var=LIBPATH
10597 # AIX 3 has no versioning support, so we append a major version to the name.
10598 soname_spec='${libname}${release}${shared_ext}$major'
10601 aix[4-9]*)
10602 version_type=linux # correct to gnu/linux during the next big refactor
10603 need_lib_prefix=no
10604 need_version=no
10605 hardcode_into_libs=yes
10606 if test "$host_cpu" = ia64; then
10607 # AIX 5 supports IA64
10608 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 else
10611 # With GCC up to 2.95.x, collect2 would create an import file
10612 # for dependence libraries. The import file would start with
10613 # the line `#! .'. This would cause the generated library to
10614 # depend on `.', always an invalid library. This was fixed in
10615 # development snapshots of GCC prior to 3.0.
10616 case $host_os in
10617 aix4 | aix4.[01] | aix4.[01].*)
10618 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10619 echo ' yes '
10620 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10622 else
10623 can_build_shared=no
10626 esac
10627 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10628 # soname into executable. Probably we can add versioning support to
10629 # collect2, so additional links can be useful in future.
10630 if test "$aix_use_runtimelinking" = yes; then
10631 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10632 # instead of lib<name>.a to let people know that these are not
10633 # typical AIX shared libraries.
10634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10635 else
10636 # We preserve .a as extension for shared libraries through AIX4.2
10637 # and later when we are not doing run time linking.
10638 library_names_spec='${libname}${release}.a $libname.a'
10639 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LIBPATH
10645 amigaos*)
10646 case $host_cpu in
10647 powerpc)
10648 # Since July 2007 AmigaOS4 officially supports .so libraries.
10649 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 m68k)
10653 library_names_spec='$libname.ixlibrary $libname.a'
10654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10655 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'
10657 esac
10660 beos*)
10661 library_names_spec='${libname}${shared_ext}'
10662 dynamic_linker="$host_os ld.so"
10663 shlibpath_var=LIBRARY_PATH
10666 bsdi[45]*)
10667 version_type=linux # correct to gnu/linux during the next big refactor
10668 need_version=no
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10675 # the default ld.so.conf also contains /usr/contrib/lib and
10676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10677 # libtool to hard-code these into programs
10680 cygwin* | mingw* | pw32* | cegcc*)
10681 version_type=windows
10682 shrext_cmds=".dll"
10683 need_version=no
10684 need_lib_prefix=no
10686 case $GCC,$cc_basename in
10687 yes,*)
10688 # gcc
10689 library_names_spec='$libname.dll.a'
10690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10691 postinstall_cmds='base_file=`basename \${file}`~
10692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10693 dldir=$destdir/`dirname \$dlpath`~
10694 test -d \$dldir || mkdir -p \$dldir~
10695 $install_prog $dir/$dlname \$dldir/$dlname~
10696 chmod a+x \$dldir/$dlname~
10697 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10698 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10701 dlpath=$dir/\$dldll~
10702 $RM \$dlpath'
10703 shlibpath_overrides_runpath=yes
10705 case $host_os in
10706 cygwin*)
10707 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10708 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10710 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10712 mingw* | cegcc*)
10713 # MinGW DLLs use traditional 'lib' prefix
10714 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10716 pw32*)
10717 # pw32 DLLs use 'pw' prefix rather than 'lib'
10718 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10720 esac
10721 dynamic_linker='Win32 ld.exe'
10724 *,cl*)
10725 # Native MSVC
10726 libname_spec='$name'
10727 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728 library_names_spec='${libname}.dll.lib'
10730 case $build_os in
10731 mingw*)
10732 sys_lib_search_path_spec=
10733 lt_save_ifs=$IFS
10734 IFS=';'
10735 for lt_path in $LIB
10737 IFS=$lt_save_ifs
10738 # Let DOS variable expansion print the short 8.3 style file name.
10739 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10740 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10741 done
10742 IFS=$lt_save_ifs
10743 # Convert to MSYS style.
10744 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10746 cygwin*)
10747 # Convert to unix form, then to dos form, then back to unix form
10748 # but this time dos style (no spaces!) so that the unix form looks
10749 # like /cygdrive/c/PROGRA~1:/cygdr...
10750 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10751 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10752 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10755 sys_lib_search_path_spec="$LIB"
10756 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10757 # It is most probably a Windows format PATH.
10758 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10759 else
10760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10762 # FIXME: find the short name or the path components, as spaces are
10763 # common. (e.g. "Program Files" -> "PROGRA~1")
10765 esac
10767 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10768 postinstall_cmds='base_file=`basename \${file}`~
10769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10770 dldir=$destdir/`dirname \$dlpath`~
10771 test -d \$dldir || mkdir -p \$dldir~
10772 $install_prog $dir/$dlname \$dldir/$dlname'
10773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10774 dlpath=$dir/\$dldll~
10775 $RM \$dlpath'
10776 shlibpath_overrides_runpath=yes
10777 dynamic_linker='Win32 link.exe'
10781 # Assume MSVC wrapper
10782 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10783 dynamic_linker='Win32 ld.exe'
10785 esac
10786 # FIXME: first we should search . and the directory the executable is in
10787 shlibpath_var=PATH
10790 darwin* | rhapsody*)
10791 dynamic_linker="$host_os dyld"
10792 version_type=darwin
10793 need_lib_prefix=no
10794 need_version=no
10795 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10796 soname_spec='${libname}${release}${major}$shared_ext'
10797 shlibpath_overrides_runpath=yes
10798 shlibpath_var=DYLD_LIBRARY_PATH
10799 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10801 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10805 dgux*)
10806 version_type=linux # correct to gnu/linux during the next big refactor
10807 need_lib_prefix=no
10808 need_version=no
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10810 soname_spec='${libname}${release}${shared_ext}$major'
10811 shlibpath_var=LD_LIBRARY_PATH
10814 freebsd* | dragonfly*)
10815 # DragonFly does not have aout. When/if they implement a new
10816 # versioning mechanism, adjust this.
10817 if test -x /usr/bin/objformat; then
10818 objformat=`/usr/bin/objformat`
10819 else
10820 case $host_os in
10821 freebsd[23].*) objformat=aout ;;
10822 *) objformat=elf ;;
10823 esac
10825 version_type=freebsd-$objformat
10826 case $version_type in
10827 freebsd-elf*)
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10829 need_version=no
10830 need_lib_prefix=no
10832 freebsd-*)
10833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10834 need_version=yes
10836 esac
10837 shlibpath_var=LD_LIBRARY_PATH
10838 case $host_os in
10839 freebsd2.*)
10840 shlibpath_overrides_runpath=yes
10842 freebsd3.[01]* | freebsdelf3.[01]*)
10843 shlibpath_overrides_runpath=yes
10844 hardcode_into_libs=yes
10846 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10847 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10848 shlibpath_overrides_runpath=no
10849 hardcode_into_libs=yes
10851 *) # from 4.6 on, and DragonFly
10852 shlibpath_overrides_runpath=yes
10853 hardcode_into_libs=yes
10855 esac
10858 haiku*)
10859 version_type=linux # correct to gnu/linux during the next big refactor
10860 need_lib_prefix=no
10861 need_version=no
10862 dynamic_linker="$host_os runtime_loader"
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10864 soname_spec='${libname}${release}${shared_ext}$major'
10865 shlibpath_var=LIBRARY_PATH
10866 shlibpath_overrides_runpath=yes
10867 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10868 hardcode_into_libs=yes
10871 hpux9* | hpux10* | hpux11*)
10872 # Give a soname corresponding to the major version so that dld.sl refuses to
10873 # link against other versions.
10874 version_type=sunos
10875 need_lib_prefix=no
10876 need_version=no
10877 case $host_cpu in
10878 ia64*)
10879 shrext_cmds='.so'
10880 hardcode_into_libs=yes
10881 dynamic_linker="$host_os dld.so"
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 if test "X$HPUX_IA64_MODE" = X32; then
10887 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10888 else
10889 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10893 hppa*64*)
10894 shrext_cmds='.sl'
10895 hardcode_into_libs=yes
10896 dynamic_linker="$host_os dld.sl"
10897 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900 soname_spec='${libname}${release}${shared_ext}$major'
10901 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10905 shrext_cmds='.sl'
10906 dynamic_linker="$host_os dld.sl"
10907 shlibpath_var=SHLIB_PATH
10908 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10912 esac
10913 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10914 postinstall_cmds='chmod 555 $lib'
10915 # or fails outright, so override atomically:
10916 install_override_mode=555
10919 interix[3-9]*)
10920 version_type=linux # correct to gnu/linux during the next big refactor
10921 need_lib_prefix=no
10922 need_version=no
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=no
10928 hardcode_into_libs=yes
10931 irix5* | irix6* | nonstopux*)
10932 case $host_os in
10933 nonstopux*) version_type=nonstopux ;;
10935 if test "$lt_cv_prog_gnu_ld" = yes; then
10936 version_type=linux # correct to gnu/linux during the next big refactor
10937 else
10938 version_type=irix
10939 fi ;;
10940 esac
10941 need_lib_prefix=no
10942 need_version=no
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10945 case $host_os in
10946 irix5* | nonstopux*)
10947 libsuff= shlibsuff=
10950 case $LD in # libtool.m4 will add one of these switches to LD
10951 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10952 libsuff= shlibsuff= libmagic=32-bit;;
10953 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10954 libsuff=32 shlibsuff=N32 libmagic=N32;;
10955 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10956 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10957 *) libsuff= shlibsuff= libmagic=never-match;;
10958 esac
10960 esac
10961 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10962 shlibpath_overrides_runpath=no
10963 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10964 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10965 hardcode_into_libs=yes
10968 # No shared lib support for Linux oldld, aout, or coff.
10969 linux*oldld* | linux*aout* | linux*coff*)
10970 dynamic_linker=no
10973 # This must be glibc/ELF.
10974 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=no
10984 # Some binutils ld are patched to set DT_RUNPATH
10985 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10986 $as_echo_n "(cached) " >&6
10987 else
10988 lt_cv_shlibpath_overrides_runpath=no
10989 save_LDFLAGS=$LDFLAGS
10990 save_libdir=$libdir
10991 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10992 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10997 main ()
11001 return 0;
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11006 lt_cv_shlibpath_overrides_runpath=yes
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LDFLAGS=$save_LDFLAGS
11012 libdir=$save_libdir
11016 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11018 # This implies no fast_install, which is unacceptable.
11019 # Some rework will be needed to allow for fast_install
11020 # before this can be enabled.
11021 hardcode_into_libs=yes
11023 # Append ld.so.conf contents to the search path
11024 if test -f /etc/ld.so.conf; then
11025 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' ' '`
11026 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11029 # We used to test for /lib/ld.so.1 and disable shared libraries on
11030 # powerpc, because MkLinux only supported shared libraries with the
11031 # GNU dynamic linker. Since this was broken with cross compilers,
11032 # most powerpc-linux boxes support dynamic linking these days and
11033 # people can always --disable-shared, the test was removed, and we
11034 # assume the GNU/Linux dynamic linker is in use.
11035 dynamic_linker='GNU/Linux ld.so'
11038 netbsdelf*-gnu)
11039 version_type=linux
11040 need_lib_prefix=no
11041 need_version=no
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 shlibpath_var=LD_LIBRARY_PATH
11045 shlibpath_overrides_runpath=no
11046 hardcode_into_libs=yes
11047 dynamic_linker='NetBSD ld.elf_so'
11050 netbsd*)
11051 version_type=sunos
11052 need_lib_prefix=no
11053 need_version=no
11054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11057 dynamic_linker='NetBSD (a.out) ld.so'
11058 else
11059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11060 soname_spec='${libname}${release}${shared_ext}$major'
11061 dynamic_linker='NetBSD ld.elf_so'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=yes
11065 hardcode_into_libs=yes
11068 newsos6)
11069 version_type=linux # correct to gnu/linux during the next big refactor
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=yes
11075 *nto* | *qnx*)
11076 version_type=qnx
11077 need_lib_prefix=no
11078 need_version=no
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath=no
11083 hardcode_into_libs=yes
11084 dynamic_linker='ldqnx.so'
11087 openbsd*)
11088 version_type=sunos
11089 sys_lib_dlsearch_path_spec="/usr/lib"
11090 need_lib_prefix=no
11091 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11092 case $host_os in
11093 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11094 *) need_version=no ;;
11095 esac
11096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11100 case $host_os in
11101 openbsd2.[89] | openbsd2.[89].*)
11102 shlibpath_overrides_runpath=no
11105 shlibpath_overrides_runpath=yes
11107 esac
11108 else
11109 shlibpath_overrides_runpath=yes
11113 os2*)
11114 libname_spec='$name'
11115 shrext_cmds=".dll"
11116 need_lib_prefix=no
11117 library_names_spec='$libname${shared_ext} $libname.a'
11118 dynamic_linker='OS/2 ld.exe'
11119 shlibpath_var=LIBPATH
11122 osf3* | osf4* | osf5*)
11123 version_type=osf
11124 need_lib_prefix=no
11125 need_version=no
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 shlibpath_var=LD_LIBRARY_PATH
11129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11130 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11133 rdos*)
11134 dynamic_linker=no
11137 solaris*)
11138 version_type=linux # correct to gnu/linux during the next big refactor
11139 need_lib_prefix=no
11140 need_version=no
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11142 soname_spec='${libname}${release}${shared_ext}$major'
11143 shlibpath_var=LD_LIBRARY_PATH
11144 shlibpath_overrides_runpath=yes
11145 hardcode_into_libs=yes
11146 # ldd complains unless libraries are executable
11147 postinstall_cmds='chmod +x $lib'
11150 sunos4*)
11151 version_type=sunos
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11154 shlibpath_var=LD_LIBRARY_PATH
11155 shlibpath_overrides_runpath=yes
11156 if test "$with_gnu_ld" = yes; then
11157 need_lib_prefix=no
11159 need_version=yes
11162 sysv4 | sysv4.3*)
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11167 case $host_vendor in
11168 sni)
11169 shlibpath_overrides_runpath=no
11170 need_lib_prefix=no
11171 runpath_var=LD_RUN_PATH
11173 siemens)
11174 need_lib_prefix=no
11176 motorola)
11177 need_lib_prefix=no
11178 need_version=no
11179 shlibpath_overrides_runpath=no
11180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11182 esac
11185 sysv4*MP*)
11186 if test -d /usr/nec ;then
11187 version_type=linux # correct to gnu/linux during the next big refactor
11188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11189 soname_spec='$libname${shared_ext}.$major'
11190 shlibpath_var=LD_LIBRARY_PATH
11194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11195 version_type=freebsd-elf
11196 need_lib_prefix=no
11197 need_version=no
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=yes
11202 hardcode_into_libs=yes
11203 if test "$with_gnu_ld" = yes; then
11204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11205 else
11206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11207 case $host_os in
11208 sco3.2v5*)
11209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11211 esac
11213 sys_lib_dlsearch_path_spec='/usr/lib'
11216 tpf*)
11217 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11218 version_type=linux # correct to gnu/linux during the next big refactor
11219 need_lib_prefix=no
11220 need_version=no
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath=no
11224 hardcode_into_libs=yes
11227 uts4*)
11228 version_type=linux # correct to gnu/linux during the next big refactor
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11230 soname_spec='${libname}${release}${shared_ext}$major'
11231 shlibpath_var=LD_LIBRARY_PATH
11235 dynamic_linker=no
11237 esac
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11239 $as_echo "$dynamic_linker" >&6; }
11240 test "$dynamic_linker" = no && can_build_shared=no
11242 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11243 if test "$GCC" = yes; then
11244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11247 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11248 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11250 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11251 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11346 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11347 hardcode_action=
11348 if test -n "$hardcode_libdir_flag_spec" ||
11349 test -n "$runpath_var" ||
11350 test "X$hardcode_automatic" = "Xyes" ; then
11352 # We can hardcode non-existent directories.
11353 if test "$hardcode_direct" != no &&
11354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11355 # have to relink, otherwise we might link with an installed library
11356 # when we should be linking with a yet-to-be-installed one
11357 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11358 test "$hardcode_minus_L" != no; then
11359 # Linking always hardcodes the temporary library directory.
11360 hardcode_action=relink
11361 else
11362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11363 hardcode_action=immediate
11365 else
11366 # We cannot hardcode anything, or else we can only hardcode existing
11367 # directories.
11368 hardcode_action=unsupported
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11371 $as_echo "$hardcode_action" >&6; }
11373 if test "$hardcode_action" = relink ||
11374 test "$inherit_rpath" = yes; then
11375 # Fast installation is not supported
11376 enable_fast_install=no
11377 elif test "$shlibpath_overrides_runpath" = yes ||
11378 test "$enable_shared" = no; then
11379 # Fast installation is not necessary
11380 enable_fast_install=needless
11388 if test "x$enable_dlopen" != xyes; then
11389 enable_dlopen=unknown
11390 enable_dlopen_self=unknown
11391 enable_dlopen_self_static=unknown
11392 else
11393 lt_cv_dlopen=no
11394 lt_cv_dlopen_libs=
11396 case $host_os in
11397 beos*)
11398 lt_cv_dlopen="load_add_on"
11399 lt_cv_dlopen_libs=
11400 lt_cv_dlopen_self=yes
11403 mingw* | pw32* | cegcc*)
11404 lt_cv_dlopen="LoadLibrary"
11405 lt_cv_dlopen_libs=
11408 cygwin*)
11409 lt_cv_dlopen="dlopen"
11410 lt_cv_dlopen_libs=
11413 darwin*)
11414 # if libdl is installed we need to link against it
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11416 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11417 if ${ac_cv_lib_dl_dlopen+:} false; then :
11418 $as_echo_n "(cached) " >&6
11419 else
11420 ac_check_lib_save_LIBS=$LIBS
11421 LIBS="-ldl $LIBS"
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 /* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428 #ifdef __cplusplus
11429 extern "C"
11430 #endif
11431 char dlopen ();
11433 main ()
11435 return dlopen ();
11437 return 0;
11439 _ACEOF
11440 if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_lib_dl_dlopen=yes
11442 else
11443 ac_cv_lib_dl_dlopen=no
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_lib_save_LIBS
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11450 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11451 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11452 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11453 else
11455 lt_cv_dlopen="dyld"
11456 lt_cv_dlopen_libs=
11457 lt_cv_dlopen_self=yes
11464 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11465 if test "x$ac_cv_func_shl_load" = xyes; then :
11466 lt_cv_dlopen="shl_load"
11467 else
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11469 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11470 if ${ac_cv_lib_dld_shl_load+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 ac_check_lib_save_LIBS=$LIBS
11474 LIBS="-ldld $LIBS"
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11478 /* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11481 #ifdef __cplusplus
11482 extern "C"
11483 #endif
11484 char shl_load ();
11486 main ()
11488 return shl_load ();
11490 return 0;
11492 _ACEOF
11493 if ac_fn_c_try_link "$LINENO"; then :
11494 ac_cv_lib_dld_shl_load=yes
11495 else
11496 ac_cv_lib_dld_shl_load=no
11498 rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
11500 LIBS=$ac_check_lib_save_LIBS
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11503 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11504 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11505 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11506 else
11507 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11508 if test "x$ac_cv_func_dlopen" = xyes; then :
11509 lt_cv_dlopen="dlopen"
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11512 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11513 if ${ac_cv_lib_dl_dlopen+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 ac_check_lib_save_LIBS=$LIBS
11517 LIBS="-ldl $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 dlopen ();
11529 main ()
11531 return dlopen ();
11533 return 0;
11535 _ACEOF
11536 if ac_fn_c_try_link "$LINENO"; then :
11537 ac_cv_lib_dl_dlopen=yes
11538 else
11539 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
11546 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11547 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11551 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11552 if ${ac_cv_lib_svld_dlopen+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 ac_check_lib_save_LIBS=$LIBS
11556 LIBS="-lsvld $LIBS"
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11563 #ifdef __cplusplus
11564 extern "C"
11565 #endif
11566 char dlopen ();
11568 main ()
11570 return dlopen ();
11572 return 0;
11574 _ACEOF
11575 if ac_fn_c_try_link "$LINENO"; then :
11576 ac_cv_lib_svld_dlopen=yes
11577 else
11578 ac_cv_lib_svld_dlopen=no
11580 rm -f core conftest.err conftest.$ac_objext \
11581 conftest$ac_exeext conftest.$ac_ext
11582 LIBS=$ac_check_lib_save_LIBS
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11585 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11586 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11588 else
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11590 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11591 if ${ac_cv_lib_dld_dld_link+:} false; then :
11592 $as_echo_n "(cached) " >&6
11593 else
11594 ac_check_lib_save_LIBS=$LIBS
11595 LIBS="-ldld $LIBS"
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11599 /* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11602 #ifdef __cplusplus
11603 extern "C"
11604 #endif
11605 char dld_link ();
11607 main ()
11609 return dld_link ();
11611 return 0;
11613 _ACEOF
11614 if ac_fn_c_try_link "$LINENO"; then :
11615 ac_cv_lib_dld_dld_link=yes
11616 else
11617 ac_cv_lib_dld_dld_link=no
11619 rm -f core conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_lib_save_LIBS
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11624 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11625 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11626 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11645 esac
11647 if test "x$lt_cv_dlopen" != xno; then
11648 enable_dlopen=yes
11649 else
11650 enable_dlopen=no
11653 case $lt_cv_dlopen in
11654 dlopen)
11655 save_CPPFLAGS="$CPPFLAGS"
11656 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11658 save_LDFLAGS="$LDFLAGS"
11659 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11661 save_LIBS="$LIBS"
11662 LIBS="$lt_cv_dlopen_libs $LIBS"
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11665 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11666 if ${lt_cv_dlopen_self+:} false; then :
11667 $as_echo_n "(cached) " >&6
11668 else
11669 if test "$cross_compiling" = yes; then :
11670 lt_cv_dlopen_self=cross
11671 else
11672 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11673 lt_status=$lt_dlunknown
11674 cat > conftest.$ac_ext <<_LT_EOF
11675 #line $LINENO "configure"
11676 #include "confdefs.h"
11678 #if HAVE_DLFCN_H
11679 #include <dlfcn.h>
11680 #endif
11682 #include <stdio.h>
11684 #ifdef RTLD_GLOBAL
11685 # define LT_DLGLOBAL RTLD_GLOBAL
11686 #else
11687 # ifdef DL_GLOBAL
11688 # define LT_DLGLOBAL DL_GLOBAL
11689 # else
11690 # define LT_DLGLOBAL 0
11691 # endif
11692 #endif
11694 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11695 find out it does not work in some platform. */
11696 #ifndef LT_DLLAZY_OR_NOW
11697 # ifdef RTLD_LAZY
11698 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11699 # else
11700 # ifdef DL_LAZY
11701 # define LT_DLLAZY_OR_NOW DL_LAZY
11702 # else
11703 # ifdef RTLD_NOW
11704 # define LT_DLLAZY_OR_NOW RTLD_NOW
11705 # else
11706 # ifdef DL_NOW
11707 # define LT_DLLAZY_OR_NOW DL_NOW
11708 # else
11709 # define LT_DLLAZY_OR_NOW 0
11710 # endif
11711 # endif
11712 # endif
11713 # endif
11714 #endif
11716 /* When -fvisbility=hidden is used, assume the code has been annotated
11717 correspondingly for the symbols needed. */
11718 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11719 int fnord () __attribute__((visibility("default")));
11720 #endif
11722 int fnord () { return 42; }
11723 int main ()
11725 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11726 int status = $lt_dlunknown;
11728 if (self)
11730 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11731 else
11733 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11734 else puts (dlerror ());
11736 /* dlclose (self); */
11738 else
11739 puts (dlerror ());
11741 return status;
11743 _LT_EOF
11744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11745 (eval $ac_link) 2>&5
11746 ac_status=$?
11747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11748 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11749 (./conftest; exit; ) >&5 2>/dev/null
11750 lt_status=$?
11751 case x$lt_status in
11752 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11753 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11754 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11755 esac
11756 else :
11757 # compilation failed
11758 lt_cv_dlopen_self=no
11761 rm -fr conftest*
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11766 $as_echo "$lt_cv_dlopen_self" >&6; }
11768 if test "x$lt_cv_dlopen_self" = xyes; then
11769 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11771 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11772 if ${lt_cv_dlopen_self_static+:} false; then :
11773 $as_echo_n "(cached) " >&6
11774 else
11775 if test "$cross_compiling" = yes; then :
11776 lt_cv_dlopen_self_static=cross
11777 else
11778 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11779 lt_status=$lt_dlunknown
11780 cat > conftest.$ac_ext <<_LT_EOF
11781 #line $LINENO "configure"
11782 #include "confdefs.h"
11784 #if HAVE_DLFCN_H
11785 #include <dlfcn.h>
11786 #endif
11788 #include <stdio.h>
11790 #ifdef RTLD_GLOBAL
11791 # define LT_DLGLOBAL RTLD_GLOBAL
11792 #else
11793 # ifdef DL_GLOBAL
11794 # define LT_DLGLOBAL DL_GLOBAL
11795 # else
11796 # define LT_DLGLOBAL 0
11797 # endif
11798 #endif
11800 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11801 find out it does not work in some platform. */
11802 #ifndef LT_DLLAZY_OR_NOW
11803 # ifdef RTLD_LAZY
11804 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11805 # else
11806 # ifdef DL_LAZY
11807 # define LT_DLLAZY_OR_NOW DL_LAZY
11808 # else
11809 # ifdef RTLD_NOW
11810 # define LT_DLLAZY_OR_NOW RTLD_NOW
11811 # else
11812 # ifdef DL_NOW
11813 # define LT_DLLAZY_OR_NOW DL_NOW
11814 # else
11815 # define LT_DLLAZY_OR_NOW 0
11816 # endif
11817 # endif
11818 # endif
11819 # endif
11820 #endif
11822 /* When -fvisbility=hidden is used, assume the code has been annotated
11823 correspondingly for the symbols needed. */
11824 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11825 int fnord () __attribute__((visibility("default")));
11826 #endif
11828 int fnord () { return 42; }
11829 int main ()
11831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11832 int status = $lt_dlunknown;
11834 if (self)
11836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11837 else
11839 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11840 else puts (dlerror ());
11842 /* dlclose (self); */
11844 else
11845 puts (dlerror ());
11847 return status;
11849 _LT_EOF
11850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11851 (eval $ac_link) 2>&5
11852 ac_status=$?
11853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11854 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11855 (./conftest; exit; ) >&5 2>/dev/null
11856 lt_status=$?
11857 case x$lt_status in
11858 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11859 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11860 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11861 esac
11862 else :
11863 # compilation failed
11864 lt_cv_dlopen_self_static=no
11867 rm -fr conftest*
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11872 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11875 CPPFLAGS="$save_CPPFLAGS"
11876 LDFLAGS="$save_LDFLAGS"
11877 LIBS="$save_LIBS"
11879 esac
11881 case $lt_cv_dlopen_self in
11882 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11883 *) enable_dlopen_self=unknown ;;
11884 esac
11886 case $lt_cv_dlopen_self_static in
11887 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11888 *) enable_dlopen_self_static=unknown ;;
11889 esac
11908 striplib=
11909 old_striplib=
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11911 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11912 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11913 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11914 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11916 $as_echo "yes" >&6; }
11917 else
11918 # FIXME - insert some real tests, host_os isn't really good enough
11919 case $host_os in
11920 darwin*)
11921 if test -n "$STRIP" ; then
11922 striplib="$STRIP -x"
11923 old_striplib="$STRIP -S"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11925 $as_echo "yes" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11935 esac
11949 # Report which library types will actually be built
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11951 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11953 $as_echo "$can_build_shared" >&6; }
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11956 $as_echo_n "checking whether to build shared libraries... " >&6; }
11957 test "$can_build_shared" = "no" && enable_shared=no
11959 # On AIX, shared libraries and static libraries use the same namespace, and
11960 # are all built from PIC.
11961 case $host_os in
11962 aix3*)
11963 test "$enable_shared" = yes && enable_static=no
11964 if test -n "$RANLIB"; then
11965 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11966 postinstall_cmds='$RANLIB $lib'
11970 aix[4-9]*)
11971 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11972 test "$enable_shared" = yes && enable_static=no
11975 esac
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11977 $as_echo "$enable_shared" >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11980 $as_echo_n "checking whether to build static libraries... " >&6; }
11981 # Make sure either enable_shared or enable_static is yes.
11982 test "$enable_shared" = yes || enable_static=yes
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11984 $as_echo "$enable_static" >&6; }
11990 ac_ext=c
11991 ac_cpp='$CPP $CPPFLAGS'
11992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11996 CC="$lt_save_CC"
12012 ac_config_commands="$ac_config_commands libtool"
12017 # Only expand once:
12023 if test "$enable_libevent_regress" = "yes"; then
12024 BUILD_REGRESS_TRUE=
12025 BUILD_REGRESS_FALSE='#'
12026 else
12027 BUILD_REGRESS_TRUE='#'
12028 BUILD_REGRESS_FALSE=
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12033 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12034 if ${ac_cv_search_inet_ntoa+:} false; then :
12035 $as_echo_n "(cached) " >&6
12036 else
12037 ac_func_search_save_LIBS=$LIBS
12038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12039 /* end confdefs.h. */
12041 /* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
12044 #ifdef __cplusplus
12045 extern "C"
12046 #endif
12047 char inet_ntoa ();
12049 main ()
12051 return inet_ntoa ();
12053 return 0;
12055 _ACEOF
12056 for ac_lib in '' nsl; do
12057 if test -z "$ac_lib"; then
12058 ac_res="none required"
12059 else
12060 ac_res=-l$ac_lib
12061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_search_inet_ntoa=$ac_res
12066 rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext
12068 if ${ac_cv_search_inet_ntoa+:} false; then :
12069 break
12071 done
12072 if ${ac_cv_search_inet_ntoa+:} false; then :
12074 else
12075 ac_cv_search_inet_ntoa=no
12077 rm conftest.$ac_ext
12078 LIBS=$ac_func_search_save_LIBS
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12081 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12082 ac_res=$ac_cv_search_inet_ntoa
12083 if test "$ac_res" != no; then :
12084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12089 $as_echo_n "checking for library containing socket... " >&6; }
12090 if ${ac_cv_search_socket+:} false; then :
12091 $as_echo_n "(cached) " >&6
12092 else
12093 ac_func_search_save_LIBS=$LIBS
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12097 /* Override any GCC internal prototype to avoid an error.
12098 Use char because int might match the return type of a GCC
12099 builtin and then its argument prototype would still apply. */
12100 #ifdef __cplusplus
12101 extern "C"
12102 #endif
12103 char socket ();
12105 main ()
12107 return socket ();
12109 return 0;
12111 _ACEOF
12112 for ac_lib in '' socket; do
12113 if test -z "$ac_lib"; then
12114 ac_res="none required"
12115 else
12116 ac_res=-l$ac_lib
12117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12119 if ac_fn_c_try_link "$LINENO"; then :
12120 ac_cv_search_socket=$ac_res
12122 rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext
12124 if ${ac_cv_search_socket+:} false; then :
12125 break
12127 done
12128 if ${ac_cv_search_socket+:} false; then :
12130 else
12131 ac_cv_search_socket=no
12133 rm conftest.$ac_ext
12134 LIBS=$ac_func_search_save_LIBS
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12137 $as_echo "$ac_cv_search_socket" >&6; }
12138 ac_res=$ac_cv_search_socket
12139 if test "$ac_res" != no; then :
12140 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12145 $as_echo_n "checking for library containing inet_aton... " >&6; }
12146 if ${ac_cv_search_inet_aton+:} false; then :
12147 $as_echo_n "(cached) " >&6
12148 else
12149 ac_func_search_save_LIBS=$LIBS
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12153 /* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12156 #ifdef __cplusplus
12157 extern "C"
12158 #endif
12159 char inet_aton ();
12161 main ()
12163 return inet_aton ();
12165 return 0;
12167 _ACEOF
12168 for ac_lib in '' resolv; do
12169 if test -z "$ac_lib"; then
12170 ac_res="none required"
12171 else
12172 ac_res=-l$ac_lib
12173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12175 if ac_fn_c_try_link "$LINENO"; then :
12176 ac_cv_search_inet_aton=$ac_res
12178 rm -f core conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext
12180 if ${ac_cv_search_inet_aton+:} false; then :
12181 break
12183 done
12184 if ${ac_cv_search_inet_aton+:} false; then :
12186 else
12187 ac_cv_search_inet_aton=no
12189 rm conftest.$ac_ext
12190 LIBS=$ac_func_search_save_LIBS
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12193 $as_echo "$ac_cv_search_inet_aton" >&6; }
12194 ac_res=$ac_cv_search_inet_aton
12195 if test "$ac_res" != no; then :
12196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12201 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12202 if ${ac_cv_search_clock_gettime+:} false; then :
12203 $as_echo_n "(cached) " >&6
12204 else
12205 ac_func_search_save_LIBS=$LIBS
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12212 #ifdef __cplusplus
12213 extern "C"
12214 #endif
12215 char clock_gettime ();
12217 main ()
12219 return clock_gettime ();
12221 return 0;
12223 _ACEOF
12224 for ac_lib in '' rt; do
12225 if test -z "$ac_lib"; then
12226 ac_res="none required"
12227 else
12228 ac_res=-l$ac_lib
12229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12231 if ac_fn_c_try_link "$LINENO"; then :
12232 ac_cv_search_clock_gettime=$ac_res
12234 rm -f core conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext
12236 if ${ac_cv_search_clock_gettime+:} false; then :
12237 break
12239 done
12240 if ${ac_cv_search_clock_gettime+:} false; then :
12242 else
12243 ac_cv_search_clock_gettime=no
12245 rm conftest.$ac_ext
12246 LIBS=$ac_func_search_save_LIBS
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12249 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12250 ac_res=$ac_cv_search_clock_gettime
12251 if test "$ac_res" != no; then :
12252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12257 $as_echo_n "checking for library containing sendfile... " >&6; }
12258 if ${ac_cv_search_sendfile+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 ac_func_search_save_LIBS=$LIBS
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12265 /* Override any GCC internal prototype to avoid an error.
12266 Use char because int might match the return type of a GCC
12267 builtin and then its argument prototype would still apply. */
12268 #ifdef __cplusplus
12269 extern "C"
12270 #endif
12271 char sendfile ();
12273 main ()
12275 return sendfile ();
12277 return 0;
12279 _ACEOF
12280 for ac_lib in '' sendfile; do
12281 if test -z "$ac_lib"; then
12282 ac_res="none required"
12283 else
12284 ac_res=-l$ac_lib
12285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12287 if ac_fn_c_try_link "$LINENO"; then :
12288 ac_cv_search_sendfile=$ac_res
12290 rm -f core conftest.err conftest.$ac_objext \
12291 conftest$ac_exeext
12292 if ${ac_cv_search_sendfile+:} false; then :
12293 break
12295 done
12296 if ${ac_cv_search_sendfile+:} false; then :
12298 else
12299 ac_cv_search_sendfile=no
12301 rm conftest.$ac_ext
12302 LIBS=$ac_func_search_save_LIBS
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12305 $as_echo "$ac_cv_search_sendfile" >&6; }
12306 ac_res=$ac_cv_search_sendfile
12307 if test "$ac_res" != no; then :
12308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12314 $as_echo_n "checking for WIN32... " >&6; }
12315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12316 /* end confdefs.h. */
12319 main ()
12322 #ifndef WIN32
12323 die horribly
12324 #endif
12327 return 0;
12329 _ACEOF
12330 if ac_fn_c_try_compile "$LINENO"; then :
12331 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12332 $as_echo "yes" >&6; }
12333 else
12334 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12340 $as_echo_n "checking for CYGWIN... " >&6; }
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12345 main ()
12348 #ifndef __CYGWIN__
12349 die horribly
12350 #endif
12353 return 0;
12355 _ACEOF
12356 if ac_fn_c_try_compile "$LINENO"; then :
12357 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; }
12359 else
12360 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 for ac_header in zlib.h
12366 do :
12367 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12368 if test "x$ac_cv_header_zlib_h" = xyes; then :
12369 cat >>confdefs.h <<_ACEOF
12370 #define HAVE_ZLIB_H 1
12371 _ACEOF
12375 done
12378 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12379 save_LIBS="$LIBS"
12380 LIBS=""
12381 ZLIB_LIBS=""
12382 have_zlib=no
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12384 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12385 if ${ac_cv_search_inflateEnd+:} false; then :
12386 $as_echo_n "(cached) " >&6
12387 else
12388 ac_func_search_save_LIBS=$LIBS
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12392 /* Override any GCC internal prototype to avoid an error.
12393 Use char because int might match the return type of a GCC
12394 builtin and then its argument prototype would still apply. */
12395 #ifdef __cplusplus
12396 extern "C"
12397 #endif
12398 char inflateEnd ();
12400 main ()
12402 return inflateEnd ();
12404 return 0;
12406 _ACEOF
12407 for ac_lib in '' z; do
12408 if test -z "$ac_lib"; then
12409 ac_res="none required"
12410 else
12411 ac_res=-l$ac_lib
12412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12414 if ac_fn_c_try_link "$LINENO"; then :
12415 ac_cv_search_inflateEnd=$ac_res
12417 rm -f core conftest.err conftest.$ac_objext \
12418 conftest$ac_exeext
12419 if ${ac_cv_search_inflateEnd+:} false; then :
12420 break
12422 done
12423 if ${ac_cv_search_inflateEnd+:} false; then :
12425 else
12426 ac_cv_search_inflateEnd=no
12428 rm conftest.$ac_ext
12429 LIBS=$ac_func_search_save_LIBS
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12432 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12433 ac_res=$ac_cv_search_inflateEnd
12434 if test "$ac_res" != no; then :
12435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12436 have_zlib=yes
12437 ZLIB_LIBS="$LIBS"
12439 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12443 LIBS="$save_LIBS"
12446 if test "$have_zlib" = "yes"; then
12447 ZLIB_REGRESS_TRUE=
12448 ZLIB_REGRESS_FALSE='#'
12449 else
12450 ZLIB_REGRESS_TRUE='#'
12451 ZLIB_REGRESS_FALSE=
12455 if test "$bwin32" = true; then
12456 EV_LIB_WS32=-lws2_32
12457 EV_LIB_GDI=-lgdi32
12458 else
12459 EV_LIB_WS32=
12460 EV_LIB_GDI=
12466 for ac_header in openssl/bio.h
12467 do :
12468 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12469 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12470 cat >>confdefs.h <<_ACEOF
12471 #define HAVE_OPENSSL_BIO_H 1
12472 _ACEOF
12476 done
12479 if test "$enable_openssl" = "yes"; then
12480 save_LIBS="$LIBS"
12481 LIBS=""
12482 OPENSSL_LIBS=""
12483 have_openssl=no
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12485 $as_echo_n "checking for library containing SSL_new... " >&6; }
12486 if ${ac_cv_search_SSL_new+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488 else
12489 ac_func_search_save_LIBS=$LIBS
12490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12491 /* end confdefs.h. */
12493 /* Override any GCC internal prototype to avoid an error.
12494 Use char because int might match the return type of a GCC
12495 builtin and then its argument prototype would still apply. */
12496 #ifdef __cplusplus
12497 extern "C"
12498 #endif
12499 char SSL_new ();
12501 main ()
12503 return SSL_new ();
12505 return 0;
12507 _ACEOF
12508 for ac_lib in '' ssl; do
12509 if test -z "$ac_lib"; then
12510 ac_res="none required"
12511 else
12512 ac_res=-l$ac_lib
12513 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12515 if ac_fn_c_try_link "$LINENO"; then :
12516 ac_cv_search_SSL_new=$ac_res
12518 rm -f core conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext
12520 if ${ac_cv_search_SSL_new+:} false; then :
12521 break
12523 done
12524 if ${ac_cv_search_SSL_new+:} false; then :
12526 else
12527 ac_cv_search_SSL_new=no
12529 rm conftest.$ac_ext
12530 LIBS=$ac_func_search_save_LIBS
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12533 $as_echo "$ac_cv_search_SSL_new" >&6; }
12534 ac_res=$ac_cv_search_SSL_new
12535 if test "$ac_res" != no; then :
12536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12537 have_openssl=yes
12538 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12540 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12542 else
12543 have_openssl=no
12546 LIBS="$save_LIBS"
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12551 $as_echo_n "checking for ANSI C header files... " >&6; }
12552 if ${ac_cv_header_stdc+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h. */
12557 #include <stdlib.h>
12558 #include <stdarg.h>
12559 #include <string.h>
12560 #include <float.h>
12563 main ()
12567 return 0;
12569 _ACEOF
12570 if ac_fn_c_try_compile "$LINENO"; then :
12571 ac_cv_header_stdc=yes
12572 else
12573 ac_cv_header_stdc=no
12575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 if test $ac_cv_header_stdc = yes; then
12578 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581 #include <string.h>
12583 _ACEOF
12584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12585 $EGREP "memchr" >/dev/null 2>&1; then :
12587 else
12588 ac_cv_header_stdc=no
12590 rm -f conftest*
12594 if test $ac_cv_header_stdc = yes; then
12595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h. */
12598 #include <stdlib.h>
12600 _ACEOF
12601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12602 $EGREP "free" >/dev/null 2>&1; then :
12604 else
12605 ac_cv_header_stdc=no
12607 rm -f conftest*
12611 if test $ac_cv_header_stdc = yes; then
12612 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12613 if test "$cross_compiling" = yes; then :
12615 else
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618 #include <ctype.h>
12619 #include <stdlib.h>
12620 #if ((' ' & 0x0FF) == 0x020)
12621 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12622 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12623 #else
12624 # define ISLOWER(c) \
12625 (('a' <= (c) && (c) <= 'i') \
12626 || ('j' <= (c) && (c) <= 'r') \
12627 || ('s' <= (c) && (c) <= 'z'))
12628 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12629 #endif
12631 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12633 main ()
12635 int i;
12636 for (i = 0; i < 256; i++)
12637 if (XOR (islower (i), ISLOWER (i))
12638 || toupper (i) != TOUPPER (i))
12639 return 2;
12640 return 0;
12642 _ACEOF
12643 if ac_fn_c_try_run "$LINENO"; then :
12645 else
12646 ac_cv_header_stdc=no
12648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12649 conftest.$ac_objext conftest.beam conftest.$ac_ext
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12655 $as_echo "$ac_cv_header_stdc" >&6; }
12656 if test $ac_cv_header_stdc = yes; then
12658 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12662 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
12663 do :
12664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12665 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12666 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12667 cat >>confdefs.h <<_ACEOF
12668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12669 _ACEOF
12673 done
12675 for ac_header in sys/stat.h
12676 do :
12677 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12678 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
12679 cat >>confdefs.h <<_ACEOF
12680 #define HAVE_SYS_STAT_H 1
12681 _ACEOF
12685 done
12687 for ac_header in sys/sysctl.h
12688 do :
12689 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12690 #ifdef HAVE_SYS_PARAM_H
12691 #include <sys/param.h>
12692 #endif
12695 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12696 cat >>confdefs.h <<_ACEOF
12697 #define HAVE_SYS_SYSCTL_H 1
12698 _ACEOF
12702 done
12704 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12706 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708 /* end confdefs.h. */
12710 #include <sys/queue.h>
12711 #ifdef TAILQ_FOREACH
12713 #endif
12715 _ACEOF
12716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12717 $EGREP "yes" >/dev/null 2>&1; then :
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12719 $as_echo "yes" >&6; }
12721 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12723 else
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725 $as_echo "no" >&6; }
12728 rm -f conftest*
12732 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12734 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12738 #include <sys/time.h>
12739 #ifdef timeradd
12741 #endif
12743 _ACEOF
12744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12745 $EGREP "yes" >/dev/null 2>&1; then :
12747 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12750 $as_echo "yes" >&6; }
12751 else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; }
12756 rm -f conftest*
12760 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12762 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12766 #include <sys/time.h>
12767 #ifdef timercmp
12769 #endif
12771 _ACEOF
12772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12773 $EGREP "yes" >/dev/null 2>&1; then :
12775 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778 $as_echo "yes" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781 $as_echo "no" >&6; }
12784 rm -f conftest*
12788 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12790 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12792 /* end confdefs.h. */
12794 #include <sys/time.h>
12795 #ifdef timerclear
12797 #endif
12799 _ACEOF
12800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12801 $EGREP "yes" >/dev/null 2>&1; then :
12803 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12806 $as_echo "yes" >&6; }
12807 else
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12812 rm -f conftest*
12816 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12818 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12822 #include <sys/time.h>
12823 #ifdef timerisset
12825 #endif
12827 _ACEOF
12828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12829 $EGREP "yes" >/dev/null 2>&1; then :
12831 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12834 $as_echo "yes" >&6; }
12835 else
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837 $as_echo "no" >&6; }
12840 rm -f conftest*
12844 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12845 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12846 #include <sys/sysctl.h>
12849 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12850 ac_have_decl=1
12851 else
12852 ac_have_decl=0
12855 cat >>confdefs.h <<_ACEOF
12856 #define HAVE_DECL_CTL_KERN $ac_have_decl
12857 _ACEOF
12858 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12859 #include <sys/sysctl.h>
12862 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12863 ac_have_decl=1
12864 else
12865 ac_have_decl=0
12868 cat >>confdefs.h <<_ACEOF
12869 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
12870 _ACEOF
12871 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12872 #include <sys/sysctl.h>
12875 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12876 ac_have_decl=1
12877 else
12878 ac_have_decl=0
12881 cat >>confdefs.h <<_ACEOF
12882 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
12883 _ACEOF
12884 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12885 #include <sys/sysctl.h>
12888 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12889 ac_have_decl=1
12890 else
12891 ac_have_decl=0
12894 cat >>confdefs.h <<_ACEOF
12895 #define HAVE_DECL_KERN_ARND $ac_have_decl
12896 _ACEOF
12900 if test x$bwin32 = xtrue; then
12901 BUILD_WIN32_TRUE=
12902 BUILD_WIN32_FALSE='#'
12903 else
12904 BUILD_WIN32_TRUE='#'
12905 BUILD_WIN32_FALSE=
12908 if test x$cygwin = xtrue; then
12909 BUILD_CYGWIN_TRUE=
12910 BUILD_CYGWIN_FALSE='#'
12911 else
12912 BUILD_CYGWIN_TRUE='#'
12913 BUILD_CYGWIN_FALSE=
12916 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12917 BUILD_WITH_NO_UNDEFINED_TRUE=
12918 BUILD_WITH_NO_UNDEFINED_FALSE='#'
12919 else
12920 BUILD_WITH_NO_UNDEFINED_TRUE='#'
12921 BUILD_WITH_NO_UNDEFINED_FALSE=
12925 if test x$bwin32 = xtrue; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12927 $as_echo_n "checking for library containing getservbyname... " >&6; }
12928 if ${ac_cv_search_getservbyname+:} false; then :
12929 $as_echo_n "(cached) " >&6
12930 else
12931 ac_func_search_save_LIBS=$LIBS
12932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h. */
12935 /* Override any GCC internal prototype to avoid an error.
12936 Use char because int might match the return type of a GCC
12937 builtin and then its argument prototype would still apply. */
12938 #ifdef __cplusplus
12939 extern "C"
12940 #endif
12941 char getservbyname ();
12943 main ()
12945 return getservbyname ();
12947 return 0;
12949 _ACEOF
12950 for ac_lib in '' ws2_32; do
12951 if test -z "$ac_lib"; then
12952 ac_res="none required"
12953 else
12954 ac_res=-l$ac_lib
12955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12957 if ac_fn_c_try_link "$LINENO"; then :
12958 ac_cv_search_getservbyname=$ac_res
12960 rm -f core conftest.err conftest.$ac_objext \
12961 conftest$ac_exeext
12962 if ${ac_cv_search_getservbyname+:} false; then :
12963 break
12965 done
12966 if ${ac_cv_search_getservbyname+:} false; then :
12968 else
12969 ac_cv_search_getservbyname=no
12971 rm conftest.$ac_ext
12972 LIBS=$ac_func_search_save_LIBS
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12975 $as_echo "$ac_cv_search_getservbyname" >&6; }
12976 ac_res=$ac_cv_search_getservbyname
12977 if test "$ac_res" != no; then :
12978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12985 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12986 if ${ac_cv_c_const+:} false; then :
12987 $as_echo_n "(cached) " >&6
12988 else
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12993 main ()
12996 #ifndef __cplusplus
12997 /* Ultrix mips cc rejects this sort of thing. */
12998 typedef int charset[2];
12999 const charset cs = { 0, 0 };
13000 /* SunOS 4.1.1 cc rejects this. */
13001 char const *const *pcpcc;
13002 char **ppc;
13003 /* NEC SVR4.0.2 mips cc rejects this. */
13004 struct point {int x, y;};
13005 static struct point const zero = {0,0};
13006 /* AIX XL C 1.02.0.0 rejects this.
13007 It does not let you subtract one const X* pointer from another in
13008 an arm of an if-expression whose if-part is not a constant
13009 expression */
13010 const char *g = "string";
13011 pcpcc = &g + (g ? g-g : 0);
13012 /* HPUX 7.0 cc rejects these. */
13013 ++pcpcc;
13014 ppc = (char**) pcpcc;
13015 pcpcc = (char const *const *) ppc;
13016 { /* SCO 3.2v4 cc rejects this sort of thing. */
13017 char tx;
13018 char *t = &tx;
13019 char const *s = 0 ? (char *) 0 : (char const *) 0;
13021 *t++ = 0;
13022 if (s) return 0;
13024 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13025 int x[] = {25, 17};
13026 const int *foo = &x[0];
13027 ++foo;
13029 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13030 typedef const int *iptr;
13031 iptr p = 0;
13032 ++p;
13034 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13035 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13036 struct s { int j; const int *ap[3]; } bx;
13037 struct s *b = &bx; b->j = 5;
13039 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13040 const int foo = 10;
13041 if (!foo) return 0;
13043 return !cs[0] && !zero.x;
13044 #endif
13047 return 0;
13049 _ACEOF
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051 ac_cv_c_const=yes
13052 else
13053 ac_cv_c_const=no
13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13058 $as_echo "$ac_cv_c_const" >&6; }
13059 if test $ac_cv_c_const = no; then
13061 $as_echo "#define const /**/" >>confdefs.h
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13066 $as_echo_n "checking for inline... " >&6; }
13067 if ${ac_cv_c_inline+:} false; then :
13068 $as_echo_n "(cached) " >&6
13069 else
13070 ac_cv_c_inline=no
13071 for ac_kw in inline __inline__ __inline; do
13072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073 /* end confdefs.h. */
13074 #ifndef __cplusplus
13075 typedef int foo_t;
13076 static $ac_kw foo_t static_foo () {return 0; }
13077 $ac_kw foo_t foo () {return 0; }
13078 #endif
13080 _ACEOF
13081 if ac_fn_c_try_compile "$LINENO"; then :
13082 ac_cv_c_inline=$ac_kw
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 test "$ac_cv_c_inline" != no && break
13086 done
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13090 $as_echo "$ac_cv_c_inline" >&6; }
13092 case $ac_cv_c_inline in
13093 inline | yes) ;;
13095 case $ac_cv_c_inline in
13096 no) ac_val=;;
13097 *) ac_val=$ac_cv_c_inline;;
13098 esac
13099 cat >>confdefs.h <<_ACEOF
13100 #ifndef __cplusplus
13101 #define inline $ac_val
13102 #endif
13103 _ACEOF
13105 esac
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13108 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13109 if ${ac_cv_header_time+:} false; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 #include <sys/types.h>
13115 #include <sys/time.h>
13116 #include <time.h>
13119 main ()
13121 if ((struct tm *) 0)
13122 return 0;
13124 return 0;
13126 _ACEOF
13127 if ac_fn_c_try_compile "$LINENO"; then :
13128 ac_cv_header_time=yes
13129 else
13130 ac_cv_header_time=no
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13135 $as_echo "$ac_cv_header_time" >&6; }
13136 if test $ac_cv_header_time = yes; then
13138 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13143 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
13144 do :
13145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13148 cat >>confdefs.h <<_ACEOF
13149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13150 _ACEOF
13153 done
13155 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
13156 do :
13157 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13158 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13159 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13160 cat >>confdefs.h <<_ACEOF
13161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13162 _ACEOF
13165 done
13167 for ac_func in umask
13168 do :
13169 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13170 if test "x$ac_cv_func_umask" = xyes; then :
13171 cat >>confdefs.h <<_ACEOF
13172 #define HAVE_UMASK 1
13173 _ACEOF
13176 done
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13180 $as_echo_n "checking for getaddrinfo... " >&6; }
13181 if ${libevent_cv_getaddrinfo+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13187 #ifdef HAVE_NETDB_H
13188 #include <netdb.h>
13189 #endif
13192 main ()
13195 getaddrinfo;
13199 return 0;
13201 _ACEOF
13202 if ac_fn_c_try_link "$LINENO"; then :
13203 libevent_cv_getaddrinfo=yes
13204 else
13205 libevent_cv_getaddrinfo=no
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13213 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13214 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13216 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13218 else
13220 for ac_func in getservbyname
13221 do :
13222 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13223 if test "x$ac_cv_func_getservbyname" = xyes; then :
13224 cat >>confdefs.h <<_ACEOF
13225 #define HAVE_GETSERVBYNAME 1
13226 _ACEOF
13229 done
13231 # Check for gethostbyname_r in all its glorious incompatible versions.
13232 # (This is cut-and-pasted from Tor, which based its logic on
13233 # Python's configure.in.)
13236 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13237 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13240 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13241 OLD_CFLAGS=$CFLAGS
13242 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13246 #include <netdb.h>
13249 main ()
13252 char *cp1, *cp2;
13253 struct hostent *h1, *h2;
13254 int i1, i2;
13255 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13258 return 0;
13260 _ACEOF
13261 if ac_fn_c_try_compile "$LINENO"; then :
13263 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13266 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13269 $as_echo "6" >&6; }
13271 else
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13276 #include <netdb.h>
13279 main ()
13282 char *cp1, *cp2;
13283 struct hostent *h1;
13284 int i1, i2;
13285 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13288 return 0;
13290 _ACEOF
13291 if ac_fn_c_try_compile "$LINENO"; then :
13293 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13296 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13299 $as_echo "5" >&6; }
13301 else
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13306 #include <netdb.h>
13309 main ()
13312 char *cp1;
13313 struct hostent *h1;
13314 struct hostent_data hd;
13315 (void) gethostbyname_r(cp1,h1,&hd);
13318 return 0;
13320 _ACEOF
13321 if ac_fn_c_try_compile "$LINENO"; then :
13323 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13326 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13329 $as_echo "3" >&6; }
13331 else
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13334 $as_echo "0" >&6; }
13337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 CFLAGS=$OLD_CFLAGS
13351 # The cast to long int works around a bug in the HP C Compiler
13352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13354 # This bug is HP SR number 8606223364.
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13356 $as_echo_n "checking size of long... " >&6; }
13357 if ${ac_cv_sizeof_long+:} false; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13362 else
13363 if test "$ac_cv_type_long" = yes; then
13364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13366 as_fn_error 77 "cannot compute sizeof (long)
13367 See \`config.log' for more details" "$LINENO" 5; }
13368 else
13369 ac_cv_sizeof_long=0
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13375 $as_echo "$ac_cv_sizeof_long" >&6; }
13379 cat >>confdefs.h <<_ACEOF
13380 #define SIZEOF_LONG $ac_cv_sizeof_long
13381 _ACEOF
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13386 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13390 #define _GNU_SOURCE
13391 #include <fcntl.h>
13392 #ifdef F_SETFD
13394 #endif
13396 _ACEOF
13397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13398 $EGREP "yes" >/dev/null 2>&1; then :
13400 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403 $as_echo "yes" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13408 rm -f conftest*
13411 needsignal=no
13412 haveselect=no
13413 if test x$bwin32 != xtrue; then
13414 for ac_func in select
13415 do :
13416 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13417 if test "x$ac_cv_func_select" = xyes; then :
13418 cat >>confdefs.h <<_ACEOF
13419 #define HAVE_SELECT 1
13420 _ACEOF
13421 haveselect=yes
13423 done
13425 if test "x$haveselect" = "xyes" ; then
13426 needsignal=yes
13429 if test "x$haveselect" = "xyes"; then
13430 SELECT_BACKEND_TRUE=
13431 SELECT_BACKEND_FALSE='#'
13432 else
13433 SELECT_BACKEND_TRUE='#'
13434 SELECT_BACKEND_FALSE=
13438 havepoll=no
13439 for ac_func in poll
13440 do :
13441 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13442 if test "x$ac_cv_func_poll" = xyes; then :
13443 cat >>confdefs.h <<_ACEOF
13444 #define HAVE_POLL 1
13445 _ACEOF
13446 havepoll=yes
13448 done
13450 if test "x$havepoll" = "xyes" ; then
13451 needsignal=yes
13453 if test "x$havepoll" = "xyes"; then
13454 POLL_BACKEND_TRUE=
13455 POLL_BACKEND_FALSE='#'
13456 else
13457 POLL_BACKEND_TRUE='#'
13458 POLL_BACKEND_FALSE=
13462 havedevpoll=no
13463 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13465 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13468 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13469 DEVPOLL_BACKEND_TRUE=
13470 DEVPOLL_BACKEND_FALSE='#'
13471 else
13472 DEVPOLL_BACKEND_TRUE='#'
13473 DEVPOLL_BACKEND_FALSE=
13477 havekqueue=no
13478 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13479 for ac_func in kqueue
13480 do :
13481 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13482 if test "x$ac_cv_func_kqueue" = xyes; then :
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_KQUEUE 1
13485 _ACEOF
13486 havekqueue=yes
13488 done
13490 if test "x$havekqueue" = "xyes" ; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13492 $as_echo_n "checking for working kqueue... " >&6; }
13493 if test "$cross_compiling" = yes; then :
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495 $as_echo "no" >&6; }
13496 else
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 #include <sys/types.h>
13500 #include <sys/time.h>
13501 #include <sys/event.h>
13502 #include <stdio.h>
13503 #include <unistd.h>
13504 #include <fcntl.h>
13507 main(int argc, char **argv)
13509 int kq;
13510 int n;
13511 int fd[2];
13512 struct kevent ev;
13513 struct timespec ts;
13514 char buf[8000];
13516 if (pipe(fd) == -1)
13517 exit(1);
13518 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13519 exit(1);
13521 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13524 if ((kq = kqueue()) == -1)
13525 exit(1);
13527 memset(&ev, 0, sizeof(ev));
13528 ev.ident = fd[1];
13529 ev.filter = EVFILT_WRITE;
13530 ev.flags = EV_ADD | EV_ENABLE;
13531 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13532 if (n == -1)
13533 exit(1);
13535 read(fd[0], buf, sizeof(buf));
13537 ts.tv_sec = 0;
13538 ts.tv_nsec = 0;
13539 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13540 if (n == -1 || n == 0)
13541 exit(1);
13543 exit(0);
13545 _ACEOF
13546 if ac_fn_c_try_run "$LINENO"; then :
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13548 $as_echo "yes" >&6; }
13550 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13552 havekqueue=yes
13554 else
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13556 $as_echo "no" >&6; }
13558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13559 conftest.$ac_objext conftest.beam conftest.$ac_ext
13564 if test "x$havekqueue" = "xyes"; then
13565 KQUEUE_BACKEND_TRUE=
13566 KQUEUE_BACKEND_FALSE='#'
13567 else
13568 KQUEUE_BACKEND_TRUE='#'
13569 KQUEUE_BACKEND_FALSE=
13573 haveepollsyscall=no
13574 haveepoll=no
13575 for ac_func in epoll_ctl
13576 do :
13577 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13578 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13579 cat >>confdefs.h <<_ACEOF
13580 #define HAVE_EPOLL_CTL 1
13581 _ACEOF
13582 haveepoll=yes
13584 done
13586 if test "x$haveepoll" = "xyes" ; then
13588 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13590 needsignal=yes
13592 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13593 if test "x$haveepoll" = "xno" ; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13595 $as_echo_n "checking for epoll system call... " >&6; }
13596 if test "$cross_compiling" = yes; then :
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598 $as_echo "no" >&6; }
13599 else
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602 #include <stdint.h>
13603 #include <sys/param.h>
13604 #include <sys/types.h>
13605 #include <sys/syscall.h>
13606 #include <sys/epoll.h>
13607 #include <unistd.h>
13610 epoll_create(int size)
13612 return (syscall(__NR_epoll_create, size));
13616 main(int argc, char **argv)
13618 int epfd;
13620 epfd = epoll_create(256);
13621 exit (epfd == -1 ? 1 : 0);
13623 _ACEOF
13624 if ac_fn_c_try_run "$LINENO"; then :
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13626 $as_echo "yes" >&6; }
13628 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13630 needsignal=yes
13631 have_epoll=yes
13632 case " $LIBOBJS " in
13633 *" epoll_sub.$ac_objext "* ) ;;
13634 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13636 esac
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13644 conftest.$ac_objext conftest.beam conftest.$ac_ext
13649 if test "x$haveepoll" = "xyes"; then
13650 EPOLL_BACKEND_TRUE=
13651 EPOLL_BACKEND_FALSE='#'
13652 else
13653 EPOLL_BACKEND_TRUE='#'
13654 EPOLL_BACKEND_FALSE=
13658 haveeventports=no
13659 for ac_func in port_create
13660 do :
13661 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13662 if test "x$ac_cv_func_port_create" = xyes; then :
13663 cat >>confdefs.h <<_ACEOF
13664 #define HAVE_PORT_CREATE 1
13665 _ACEOF
13666 haveeventports=yes
13668 done
13670 if test "x$haveeventports" = "xyes" ; then
13672 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13674 needsignal=yes
13676 if test "x$haveeventports" = "xyes"; then
13677 EVPORT_BACKEND_TRUE=
13678 EVPORT_BACKEND_FALSE='#'
13679 else
13680 EVPORT_BACKEND_TRUE='#'
13681 EVPORT_BACKEND_FALSE=
13685 if test "x$bwin32" = "xtrue"; then
13686 needsignal=yes
13689 if test "x$needsignal" = "xyes"; then
13690 SIGNAL_SUPPORT_TRUE=
13691 SIGNAL_SUPPORT_FALSE='#'
13692 else
13693 SIGNAL_SUPPORT_TRUE='#'
13694 SIGNAL_SUPPORT_FALSE=
13698 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13699 if test "x$ac_cv_type_pid_t" = xyes; then :
13701 else
13703 cat >>confdefs.h <<_ACEOF
13704 #define pid_t int
13705 _ACEOF
13709 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13710 if test "x$ac_cv_type_size_t" = xyes; then :
13712 else
13714 cat >>confdefs.h <<_ACEOF
13715 #define size_t unsigned int
13716 _ACEOF
13720 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13721 if test "x$ac_cv_type_ssize_t" = xyes; then :
13723 else
13725 cat >>confdefs.h <<_ACEOF
13726 #define ssize_t int
13727 _ACEOF
13732 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13733 #include <stdint.h>
13734 #elif defined(HAVE_INTTYPES_H)
13735 #include <inttypes.h>
13736 #endif
13737 #ifdef HAVE_SYS_TYPES_H
13738 #include <sys/types.h>
13739 #endif
13741 if test "x$ac_cv_type_uint64_t" = xyes; then :
13743 cat >>confdefs.h <<_ACEOF
13744 #define HAVE_UINT64_T 1
13745 _ACEOF
13749 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13750 #include <stdint.h>
13751 #elif defined(HAVE_INTTYPES_H)
13752 #include <inttypes.h>
13753 #endif
13754 #ifdef HAVE_SYS_TYPES_H
13755 #include <sys/types.h>
13756 #endif
13758 if test "x$ac_cv_type_uint32_t" = xyes; then :
13760 cat >>confdefs.h <<_ACEOF
13761 #define HAVE_UINT32_T 1
13762 _ACEOF
13766 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13767 #include <stdint.h>
13768 #elif defined(HAVE_INTTYPES_H)
13769 #include <inttypes.h>
13770 #endif
13771 #ifdef HAVE_SYS_TYPES_H
13772 #include <sys/types.h>
13773 #endif
13775 if test "x$ac_cv_type_uint16_t" = xyes; then :
13777 cat >>confdefs.h <<_ACEOF
13778 #define HAVE_UINT16_T 1
13779 _ACEOF
13783 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13784 #include <stdint.h>
13785 #elif defined(HAVE_INTTYPES_H)
13786 #include <inttypes.h>
13787 #endif
13788 #ifdef HAVE_SYS_TYPES_H
13789 #include <sys/types.h>
13790 #endif
13792 if test "x$ac_cv_type_uint8_t" = xyes; then :
13794 cat >>confdefs.h <<_ACEOF
13795 #define HAVE_UINT8_T 1
13796 _ACEOF
13800 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13801 #include <stdint.h>
13802 #elif defined(HAVE_INTTYPES_H)
13803 #include <inttypes.h>
13804 #endif
13805 #ifdef HAVE_SYS_TYPES_H
13806 #include <sys/types.h>
13807 #endif
13809 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13811 cat >>confdefs.h <<_ACEOF
13812 #define HAVE_UINTPTR_T 1
13813 _ACEOF
13819 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13820 #include <sys/types.h>
13821 #endif
13822 #ifdef HAVE_SYS_SELECT_H
13823 #include <sys/select.h>
13824 #endif
13826 if test "x$ac_cv_type_fd_mask" = xyes; then :
13828 cat >>confdefs.h <<_ACEOF
13829 #define HAVE_FD_MASK 1
13830 _ACEOF
13836 # The cast to long int works around a bug in the HP C Compiler
13837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13839 # This bug is HP SR number 8606223364.
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13841 $as_echo_n "checking size of long long... " >&6; }
13842 if ${ac_cv_sizeof_long_long+:} false; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
13847 else
13848 if test "$ac_cv_type_long_long" = yes; then
13849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13851 as_fn_error 77 "cannot compute sizeof (long long)
13852 See \`config.log' for more details" "$LINENO" 5; }
13853 else
13854 ac_cv_sizeof_long_long=0
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13860 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13864 cat >>confdefs.h <<_ACEOF
13865 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13866 _ACEOF
13869 # The cast to long int works around a bug in the HP C Compiler
13870 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13871 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13872 # This bug is HP SR number 8606223364.
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13874 $as_echo_n "checking size of long... " >&6; }
13875 if ${ac_cv_sizeof_long+:} false; then :
13876 $as_echo_n "(cached) " >&6
13877 else
13878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13880 else
13881 if test "$ac_cv_type_long" = yes; then
13882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13884 as_fn_error 77 "cannot compute sizeof (long)
13885 See \`config.log' for more details" "$LINENO" 5; }
13886 else
13887 ac_cv_sizeof_long=0
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13893 $as_echo "$ac_cv_sizeof_long" >&6; }
13897 cat >>confdefs.h <<_ACEOF
13898 #define SIZEOF_LONG $ac_cv_sizeof_long
13899 _ACEOF
13902 # The cast to long int works around a bug in the HP C Compiler
13903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13905 # This bug is HP SR number 8606223364.
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13907 $as_echo_n "checking size of int... " >&6; }
13908 if ${ac_cv_sizeof_int+:} false; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13913 else
13914 if test "$ac_cv_type_int" = yes; then
13915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13917 as_fn_error 77 "cannot compute sizeof (int)
13918 See \`config.log' for more details" "$LINENO" 5; }
13919 else
13920 ac_cv_sizeof_int=0
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13926 $as_echo "$ac_cv_sizeof_int" >&6; }
13930 cat >>confdefs.h <<_ACEOF
13931 #define SIZEOF_INT $ac_cv_sizeof_int
13932 _ACEOF
13935 # The cast to long int works around a bug in the HP C Compiler
13936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13938 # This bug is HP SR number 8606223364.
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13940 $as_echo_n "checking size of short... " >&6; }
13941 if ${ac_cv_sizeof_short+:} false; then :
13942 $as_echo_n "(cached) " >&6
13943 else
13944 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13946 else
13947 if test "$ac_cv_type_short" = yes; then
13948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13950 as_fn_error 77 "cannot compute sizeof (short)
13951 See \`config.log' for more details" "$LINENO" 5; }
13952 else
13953 ac_cv_sizeof_short=0
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13959 $as_echo "$ac_cv_sizeof_short" >&6; }
13963 cat >>confdefs.h <<_ACEOF
13964 #define SIZEOF_SHORT $ac_cv_sizeof_short
13965 _ACEOF
13968 # The cast to long int works around a bug in the HP C Compiler
13969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13971 # This bug is HP SR number 8606223364.
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13973 $as_echo_n "checking size of size_t... " >&6; }
13974 if ${ac_cv_sizeof_size_t+:} false; then :
13975 $as_echo_n "(cached) " >&6
13976 else
13977 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
13979 else
13980 if test "$ac_cv_type_size_t" = yes; then
13981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13983 as_fn_error 77 "cannot compute sizeof (size_t)
13984 See \`config.log' for more details" "$LINENO" 5; }
13985 else
13986 ac_cv_sizeof_size_t=0
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13992 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13996 cat >>confdefs.h <<_ACEOF
13997 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13998 _ACEOF
14001 # The cast to long int works around a bug in the HP C Compiler
14002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14004 # This bug is HP SR number 8606223364.
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14006 $as_echo_n "checking size of void *... " >&6; }
14007 if ${ac_cv_sizeof_void_p+:} false; then :
14008 $as_echo_n "(cached) " >&6
14009 else
14010 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14012 else
14013 if test "$ac_cv_type_void_p" = yes; then
14014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14016 as_fn_error 77 "cannot compute sizeof (void *)
14017 See \`config.log' for more details" "$LINENO" 5; }
14018 else
14019 ac_cv_sizeof_void_p=0
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14025 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14029 cat >>confdefs.h <<_ACEOF
14030 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14031 _ACEOF
14035 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14036 #include <sys/types.h>
14037 #ifdef HAVE_NETINET_IN_H
14038 #include <netinet/in.h>
14039 #endif
14040 #ifdef HAVE_NETINET_IN6_H
14041 #include <netinet/in6.h>
14042 #endif
14043 #ifdef HAVE_SYS_SOCKET_H
14044 #include <sys/socket.h>
14045 #endif
14046 #ifdef HAVE_NETDB_H
14047 #include <netdb.h>
14048 #endif
14049 #ifdef WIN32
14050 #define WIN32_WINNT 0x400
14051 #define _WIN32_WINNT 0x400
14052 #define WIN32_LEAN_AND_MEAN
14053 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14054 #include <winsock.h>
14055 #else
14056 #include <winsock2.h>
14057 #include <ws2tcpip.h>
14058 #endif
14059 #endif
14062 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14064 cat >>confdefs.h <<_ACEOF
14065 #define HAVE_STRUCT_IN6_ADDR 1
14066 _ACEOF
14070 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14071 #include <sys/types.h>
14072 #ifdef HAVE_NETINET_IN_H
14073 #include <netinet/in.h>
14074 #endif
14075 #ifdef HAVE_NETINET_IN6_H
14076 #include <netinet/in6.h>
14077 #endif
14078 #ifdef HAVE_SYS_SOCKET_H
14079 #include <sys/socket.h>
14080 #endif
14081 #ifdef HAVE_NETDB_H
14082 #include <netdb.h>
14083 #endif
14084 #ifdef WIN32
14085 #define WIN32_WINNT 0x400
14086 #define _WIN32_WINNT 0x400
14087 #define WIN32_LEAN_AND_MEAN
14088 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14089 #include <winsock.h>
14090 #else
14091 #include <winsock2.h>
14092 #include <ws2tcpip.h>
14093 #endif
14094 #endif
14097 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14099 cat >>confdefs.h <<_ACEOF
14100 #define HAVE_STRUCT_SOCKADDR_IN6 1
14101 _ACEOF
14105 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14106 #include <sys/types.h>
14107 #ifdef HAVE_NETINET_IN_H
14108 #include <netinet/in.h>
14109 #endif
14110 #ifdef HAVE_NETINET_IN6_H
14111 #include <netinet/in6.h>
14112 #endif
14113 #ifdef HAVE_SYS_SOCKET_H
14114 #include <sys/socket.h>
14115 #endif
14116 #ifdef HAVE_NETDB_H
14117 #include <netdb.h>
14118 #endif
14119 #ifdef WIN32
14120 #define WIN32_WINNT 0x400
14121 #define _WIN32_WINNT 0x400
14122 #define WIN32_LEAN_AND_MEAN
14123 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14124 #include <winsock.h>
14125 #else
14126 #include <winsock2.h>
14127 #include <ws2tcpip.h>
14128 #endif
14129 #endif
14132 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14134 cat >>confdefs.h <<_ACEOF
14135 #define HAVE_SA_FAMILY_T 1
14136 _ACEOF
14140 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14141 #include <sys/types.h>
14142 #ifdef HAVE_NETINET_IN_H
14143 #include <netinet/in.h>
14144 #endif
14145 #ifdef HAVE_NETINET_IN6_H
14146 #include <netinet/in6.h>
14147 #endif
14148 #ifdef HAVE_SYS_SOCKET_H
14149 #include <sys/socket.h>
14150 #endif
14151 #ifdef HAVE_NETDB_H
14152 #include <netdb.h>
14153 #endif
14154 #ifdef WIN32
14155 #define WIN32_WINNT 0x400
14156 #define _WIN32_WINNT 0x400
14157 #define WIN32_LEAN_AND_MEAN
14158 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14159 #include <winsock.h>
14160 #else
14161 #include <winsock2.h>
14162 #include <ws2tcpip.h>
14163 #endif
14164 #endif
14167 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14169 cat >>confdefs.h <<_ACEOF
14170 #define HAVE_STRUCT_ADDRINFO 1
14171 _ACEOF
14175 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14176 #include <sys/types.h>
14177 #ifdef HAVE_NETINET_IN_H
14178 #include <netinet/in.h>
14179 #endif
14180 #ifdef HAVE_NETINET_IN6_H
14181 #include <netinet/in6.h>
14182 #endif
14183 #ifdef HAVE_SYS_SOCKET_H
14184 #include <sys/socket.h>
14185 #endif
14186 #ifdef HAVE_NETDB_H
14187 #include <netdb.h>
14188 #endif
14189 #ifdef WIN32
14190 #define WIN32_WINNT 0x400
14191 #define _WIN32_WINNT 0x400
14192 #define WIN32_LEAN_AND_MEAN
14193 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14194 #include <winsock.h>
14195 #else
14196 #include <winsock2.h>
14197 #include <ws2tcpip.h>
14198 #endif
14199 #endif
14202 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14204 cat >>confdefs.h <<_ACEOF
14205 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14206 _ACEOF
14211 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14212 #ifdef HAVE_NETINET_IN_H
14213 #include <netinet/in.h>
14214 #endif
14215 #ifdef HAVE_NETINET_IN6_H
14216 #include <netinet/in6.h>
14217 #endif
14218 #ifdef HAVE_SYS_SOCKET_H
14219 #include <sys/socket.h>
14220 #endif
14221 #ifdef WIN32
14222 #define WIN32_WINNT 0x400
14223 #define _WIN32_WINNT 0x400
14224 #define WIN32_LEAN_AND_MEAN
14225 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14226 #include <winsock.h>
14227 #else
14228 #include <winsock2.h>
14229 #include <ws2tcpip.h>
14230 #endif
14231 #endif
14234 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14236 cat >>confdefs.h <<_ACEOF
14237 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14238 _ACEOF
14242 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14243 #ifdef HAVE_NETINET_IN_H
14244 #include <netinet/in.h>
14245 #endif
14246 #ifdef HAVE_NETINET_IN6_H
14247 #include <netinet/in6.h>
14248 #endif
14249 #ifdef HAVE_SYS_SOCKET_H
14250 #include <sys/socket.h>
14251 #endif
14252 #ifdef WIN32
14253 #define WIN32_WINNT 0x400
14254 #define _WIN32_WINNT 0x400
14255 #define WIN32_LEAN_AND_MEAN
14256 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14257 #include <winsock.h>
14258 #else
14259 #include <winsock2.h>
14260 #include <ws2tcpip.h>
14261 #endif
14262 #endif
14265 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14267 cat >>confdefs.h <<_ACEOF
14268 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14269 _ACEOF
14273 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14274 #ifdef HAVE_NETINET_IN_H
14275 #include <netinet/in.h>
14276 #endif
14277 #ifdef HAVE_NETINET_IN6_H
14278 #include <netinet/in6.h>
14279 #endif
14280 #ifdef HAVE_SYS_SOCKET_H
14281 #include <sys/socket.h>
14282 #endif
14283 #ifdef WIN32
14284 #define WIN32_WINNT 0x400
14285 #define _WIN32_WINNT 0x400
14286 #define WIN32_LEAN_AND_MEAN
14287 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14288 #include <winsock.h>
14289 #else
14290 #include <winsock2.h>
14291 #include <ws2tcpip.h>
14292 #endif
14293 #endif
14296 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14298 cat >>confdefs.h <<_ACEOF
14299 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14300 _ACEOF
14304 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14305 #ifdef HAVE_NETINET_IN_H
14306 #include <netinet/in.h>
14307 #endif
14308 #ifdef HAVE_NETINET_IN6_H
14309 #include <netinet/in6.h>
14310 #endif
14311 #ifdef HAVE_SYS_SOCKET_H
14312 #include <sys/socket.h>
14313 #endif
14314 #ifdef WIN32
14315 #define WIN32_WINNT 0x400
14316 #define _WIN32_WINNT 0x400
14317 #define WIN32_LEAN_AND_MEAN
14318 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14319 #include <winsock.h>
14320 #else
14321 #include <winsock2.h>
14322 #include <ws2tcpip.h>
14323 #endif
14324 #endif
14327 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14329 cat >>confdefs.h <<_ACEOF
14330 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14331 _ACEOF
14335 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14336 #ifdef HAVE_NETINET_IN_H
14337 #include <netinet/in.h>
14338 #endif
14339 #ifdef HAVE_NETINET_IN6_H
14340 #include <netinet/in6.h>
14341 #endif
14342 #ifdef HAVE_SYS_SOCKET_H
14343 #include <sys/socket.h>
14344 #endif
14345 #ifdef WIN32
14346 #define WIN32_WINNT 0x400
14347 #define _WIN32_WINNT 0x400
14348 #define WIN32_LEAN_AND_MEAN
14349 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14350 #include <winsock.h>
14351 #else
14352 #include <winsock2.h>
14353 #include <ws2tcpip.h>
14354 #endif
14355 #endif
14358 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14360 cat >>confdefs.h <<_ACEOF
14361 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14362 _ACEOF
14366 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14367 #ifdef HAVE_NETINET_IN_H
14368 #include <netinet/in.h>
14369 #endif
14370 #ifdef HAVE_NETINET_IN6_H
14371 #include <netinet/in6.h>
14372 #endif
14373 #ifdef HAVE_SYS_SOCKET_H
14374 #include <sys/socket.h>
14375 #endif
14376 #ifdef WIN32
14377 #define WIN32_WINNT 0x400
14378 #define _WIN32_WINNT 0x400
14379 #define WIN32_LEAN_AND_MEAN
14380 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14381 #include <winsock.h>
14382 #else
14383 #include <winsock2.h>
14384 #include <ws2tcpip.h>
14385 #endif
14386 #endif
14389 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14393 _ACEOF
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14400 $as_echo_n "checking for socklen_t... " >&6; }
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14404 #include <sys/types.h>
14405 #include <sys/socket.h>
14407 main ()
14409 socklen_t x;
14411 return 0;
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14416 $as_echo "yes" >&6; }
14417 else
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14421 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14428 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h. */
14433 main ()
14435 const char *cp = __func__;
14437 return 0;
14439 _ACEOF
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14442 $as_echo "yes" >&6; }
14443 else
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14445 $as_echo "no" >&6; }
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14447 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14452 main ()
14454 const char *cp = __FUNCTION__;
14456 return 0;
14458 _ACEOF
14459 if ac_fn_c_try_compile "$LINENO"; then :
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14461 $as_echo "yes" >&6; }
14463 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14465 else
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467 $as_echo "no" >&6; }
14469 $as_echo "#define __func__ __FILE__" >>confdefs.h
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14477 # check if we can compile with pthreads
14478 have_pthreads=no
14479 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14483 ac_ext=c
14484 ac_cpp='$CPP $CPPFLAGS'
14485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14489 acx_pthread_ok=no
14491 # We used to check for pthread.h first, but this fails if pthread.h
14492 # requires special compiler flags (e.g. on True64 or Sequent).
14493 # It gets checked for in the link test anyway.
14495 # First of all, check if the user has set any of the PTHREAD_LIBS,
14496 # etcetera environment variables, and if threads linking works using
14497 # them:
14498 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14499 save_CFLAGS="$CFLAGS"
14500 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14501 save_LIBS="$LIBS"
14502 LIBS="$PTHREAD_LIBS $LIBS"
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14504 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14508 /* Override any GCC internal prototype to avoid an error.
14509 Use char because int might match the return type of a GCC
14510 builtin and then its argument prototype would still apply. */
14511 #ifdef __cplusplus
14512 extern "C"
14513 #endif
14514 char pthread_join ();
14516 main ()
14518 return pthread_join ();
14520 return 0;
14522 _ACEOF
14523 if ac_fn_c_try_link "$LINENO"; then :
14524 acx_pthread_ok=yes
14526 rm -f core conftest.err conftest.$ac_objext \
14527 conftest$ac_exeext conftest.$ac_ext
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14529 $as_echo "$acx_pthread_ok" >&6; }
14530 if test x"$acx_pthread_ok" = xno; then
14531 PTHREAD_LIBS=""
14532 PTHREAD_CFLAGS=""
14534 LIBS="$save_LIBS"
14535 CFLAGS="$save_CFLAGS"
14538 # We must check for the threads library under a number of different
14539 # names; the ordering is very important because some systems
14540 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14541 # libraries is broken (non-POSIX).
14543 # Create a list of thread flags to try. Items starting with a "-" are
14544 # C compiler flags, and other items are library names, except for "none"
14545 # which indicates that we try without any flags at all, and "pthread-config"
14546 # which is a program returning the flags for the Pth emulation library.
14548 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14550 # The ordering *is* (sometimes) important. Some notes on the
14551 # individual items follow:
14553 # pthreads: AIX (must check this before -lpthread)
14554 # none: in case threads are in libc; should be tried before -Kthread and
14555 # other compiler flags to prevent continual compiler warnings
14556 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14557 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14558 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14559 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14560 # -pthreads: Solaris/gcc
14561 # -mthreads: Mingw32/gcc, Lynx/gcc
14562 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14563 # doesn't hurt to check since this sometimes defines pthreads too;
14564 # also defines -D_REENTRANT)
14565 # ... -mt is also the pthreads flag for HP/aCC
14566 # pthread: Linux, etcetera
14567 # --thread-safe: KAI C++
14568 # pthread-config: use pthread-config program (for GNU Pth library)
14570 case "${host_cpu}-${host_os}" in
14571 *solaris*)
14573 # On Solaris (at least, for some versions), libc contains stubbed
14574 # (non-functional) versions of the pthreads routines, so link-based
14575 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14576 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14577 # a function called by this macro, so we could check for that, but
14578 # who knows whether they'll stub that too in a future libc.) So,
14579 # we'll just look for -pthreads and -lpthread first:
14581 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14583 esac
14585 if test x"$acx_pthread_ok" = xno; then
14586 for flag in $acx_pthread_flags; do
14588 case $flag in
14589 none)
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14591 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14596 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14597 PTHREAD_CFLAGS="$flag"
14600 pthread-config)
14601 # Extract the first word of "pthread-config", so it can be a program name with args.
14602 set dummy pthread-config; ac_word=$2
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14604 $as_echo_n "checking for $ac_word... " >&6; }
14605 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 if test -n "$acx_pthread_config"; then
14609 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14610 else
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14614 IFS=$as_save_IFS
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14618 ac_cv_prog_acx_pthread_config="yes"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14620 break 2
14622 done
14623 done
14624 IFS=$as_save_IFS
14626 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14629 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14630 if test -n "$acx_pthread_config"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14632 $as_echo "$acx_pthread_config" >&6; }
14633 else
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14635 $as_echo "no" >&6; }
14639 if test x"$acx_pthread_config" = xno; then continue; fi
14640 PTHREAD_CFLAGS="`pthread-config --cflags`"
14641 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14646 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14647 PTHREAD_LIBS="-l$flag"
14649 esac
14651 save_LIBS="$LIBS"
14652 save_CFLAGS="$CFLAGS"
14653 LIBS="$PTHREAD_LIBS $LIBS"
14654 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14656 # Check for various functions. We must include pthread.h,
14657 # since some functions may be macros. (On the Sequent, we
14658 # need a special flag -Kthread to make this header compile.)
14659 # We check for pthread_join because it is in -lpthread on IRIX
14660 # while pthread_create is in libc. We check for pthread_attr_init
14661 # due to DEC craziness with -lpthreads. We check for
14662 # pthread_cleanup_push because it is one of the few pthread
14663 # functions on Solaris that doesn't have a non-functional libc stub.
14664 # We try pthread_create on general principles.
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14667 #include <pthread.h>
14669 main ()
14671 pthread_t th; pthread_join(th, 0);
14672 pthread_attr_init(0); pthread_cleanup_push(0, 0);
14673 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14675 return 0;
14677 _ACEOF
14678 if ac_fn_c_try_link "$LINENO"; then :
14679 acx_pthread_ok=yes
14681 rm -f core conftest.err conftest.$ac_objext \
14682 conftest$ac_exeext conftest.$ac_ext
14684 LIBS="$save_LIBS"
14685 CFLAGS="$save_CFLAGS"
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14688 $as_echo "$acx_pthread_ok" >&6; }
14689 if test "x$acx_pthread_ok" = xyes; then
14690 break;
14693 PTHREAD_LIBS=""
14694 PTHREAD_CFLAGS=""
14695 done
14698 # Various other checks:
14699 if test "x$acx_pthread_ok" = xyes; then
14700 save_LIBS="$LIBS"
14701 LIBS="$PTHREAD_LIBS $LIBS"
14702 save_CFLAGS="$CFLAGS"
14703 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14705 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14707 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14708 attr_name=unknown
14709 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14711 /* end confdefs.h. */
14712 #include <pthread.h>
14714 main ()
14716 int attr=$attr; return attr;
14718 return 0;
14720 _ACEOF
14721 if ac_fn_c_try_link "$LINENO"; then :
14722 attr_name=$attr; break
14724 rm -f core conftest.err conftest.$ac_objext \
14725 conftest$ac_exeext conftest.$ac_ext
14726 done
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14728 $as_echo "$attr_name" >&6; }
14729 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14731 cat >>confdefs.h <<_ACEOF
14732 #define PTHREAD_CREATE_JOINABLE $attr_name
14733 _ACEOF
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14738 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14739 flag=no
14740 case "${host_cpu}-${host_os}" in
14741 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14742 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14743 esac
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14745 $as_echo "${flag}" >&6; }
14746 if test "x$flag" != xno; then
14747 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14750 LIBS="$save_LIBS"
14751 CFLAGS="$save_CFLAGS"
14753 # More AIX lossage: must compile with xlc_r or cc_r
14754 if test x"$GCC" != xyes; then
14755 for ac_prog in xlc_r cc_r
14757 # Extract the first word of "$ac_prog", so it can be a program name with args.
14758 set dummy $ac_prog; ac_word=$2
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14760 $as_echo_n "checking for $ac_word... " >&6; }
14761 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 if test -n "$PTHREAD_CC"; then
14765 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14766 else
14767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14768 for as_dir in $PATH
14770 IFS=$as_save_IFS
14771 test -z "$as_dir" && as_dir=.
14772 for ac_exec_ext in '' $ac_executable_extensions; do
14773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14774 ac_cv_prog_PTHREAD_CC="$ac_prog"
14775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14776 break 2
14778 done
14779 done
14780 IFS=$as_save_IFS
14784 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14785 if test -n "$PTHREAD_CC"; then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14787 $as_echo "$PTHREAD_CC" >&6; }
14788 else
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790 $as_echo "no" >&6; }
14794 test -n "$PTHREAD_CC" && break
14795 done
14796 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14798 else
14799 PTHREAD_CC=$CC
14801 else
14802 PTHREAD_CC="$CC"
14809 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14810 if test x"$acx_pthread_ok" = xyes; then
14813 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14815 have_pthreads=yes
14817 else
14818 acx_pthread_ok=no
14821 ac_ext=c
14822 ac_cpp='$CPP $CPPFLAGS'
14823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14828 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14829 # The cast to long int works around a bug in the HP C Compiler
14830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14832 # This bug is HP SR number 8606223364.
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14834 $as_echo_n "checking size of pthread_t... " >&6; }
14835 if ${ac_cv_sizeof_pthread_t+:} false; then :
14836 $as_echo_n "(cached) " >&6
14837 else
14838 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
14839 #include <pthread.h>
14841 "; then :
14843 else
14844 if test "$ac_cv_type_pthread_t" = yes; then
14845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14847 as_fn_error 77 "cannot compute sizeof (pthread_t)
14848 See \`config.log' for more details" "$LINENO" 5; }
14849 else
14850 ac_cv_sizeof_pthread_t=0
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14856 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14860 cat >>confdefs.h <<_ACEOF
14861 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14862 _ACEOF
14866 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14867 PTHREADS_TRUE=
14868 PTHREADS_FALSE='#'
14869 else
14870 PTHREADS_TRUE='#'
14871 PTHREADS_FALSE=
14875 # check if we should compile locking into the library
14876 if test x$enable_thread_support = xno; then
14878 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14882 # check if we should hard-code the mm functions.
14883 if test x$enable_malloc_replacement = xno; then
14885 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14889 # check if we should hard-code debugging out
14890 if test x$enable_debug_mode = xno; then
14892 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14896 # check if we have and should use openssl
14897 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14898 OPENSSL_TRUE=
14899 OPENSSL_FALSE='#'
14900 else
14901 OPENSSL_TRUE='#'
14902 OPENSSL_FALSE=
14906 # Add some more warnings which we use in development but not in the
14907 # released versions. (Some relevant gcc versions can't handle these.)
14908 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14914 main ()
14917 #if !defined(__GNUC__) || (__GNUC__ < 4)
14918 #error
14919 #endif
14921 return 0;
14923 _ACEOF
14924 if ac_fn_c_try_compile "$LINENO"; then :
14925 have_gcc4=yes
14926 else
14927 have_gcc4=no
14929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14932 /* end confdefs.h. */
14935 main ()
14938 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14939 #error
14940 #endif
14942 return 0;
14944 _ACEOF
14945 if ac_fn_c_try_compile "$LINENO"; then :
14946 have_gcc42=yes
14947 else
14948 have_gcc42=no
14950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14956 main ()
14959 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
14960 #error
14961 #endif
14963 return 0;
14965 _ACEOF
14966 if ac_fn_c_try_compile "$LINENO"; then :
14967 have_gcc45=yes
14968 else
14969 have_gcc45=no
14971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14977 main ()
14980 #if !defined(__clang__)
14981 #error
14982 #endif
14984 return 0;
14986 _ACEOF
14987 if ac_fn_c_try_compile "$LINENO"; then :
14988 have_clang=yes
14989 else
14990 have_clang=no
14992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 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"
14995 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
14997 if test x$have_gcc4 = xyes ; then
14998 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
14999 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15000 #CFLAGS="$CFLAGS -Wold-style-definition"
15003 if test x$have_gcc42 = xyes ; then
15004 # These warnings break gcc 4.0.2 and work on gcc 4.2
15005 CFLAGS="$CFLAGS -Waddress"
15008 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
15009 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
15010 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
15013 if test x$have_gcc45 = xyes ; then
15014 # These warnings work on gcc 4.5
15015 CFLAGS="$CFLAGS -Wlogical-op"
15018 if test x$have_clang = xyes; then
15019 # Disable the unused-function warnings, because these trigger
15020 # for minheap-internal.h related code.
15021 CFLAGS="$CFLAGS -Wno-unused-function"
15024 ##This will break the world on some 64-bit architectures
15025 # CFLAGS="$CFLAGS -Winline"
15029 LIBEVENT_GC_SECTIONS=
15030 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
15032 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
15033 if ${libevent_cv_gc_sections_runs+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15037 origCFLAGS="$CFLAGS"
15038 CFLAGS="$CFLAGS -Wl,--gc-sections"
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040 /* end confdefs.h. */
15042 #include <stdlib.h>
15043 #include <stdio.h>
15046 main ()
15049 FILE * fpC;
15050 char buf[32];
15051 size_t cch;
15052 int read_success_once;
15054 fpC = fopen("conftest.c", "r");
15055 if (NULL == fpC)
15056 exit(1);
15057 do {
15058 cch = fread(buf, sizeof(buf), 1, fpC);
15059 read_success_once |= (0 != cch);
15060 } while (0 != cch);
15061 if (!read_success_once)
15062 exit(2);
15063 if (!feof(fpC))
15064 exit(3);
15065 if (0 != fclose(fpC))
15066 exit(4);
15068 exit(EXIT_SUCCESS);
15072 return 0;
15074 _ACEOF
15075 if ac_fn_c_try_link "$LINENO"; then :
15077 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
15078 libevent_cv_gc_sections_runs=no
15079 else
15080 libevent_cv_gc_sections_runs=no
15081 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
15084 else
15085 libevent_cv_gc_sections_runs=no
15088 rm -f core conftest.err conftest.$ac_objext \
15089 conftest$ac_exeext conftest.$ac_ext
15090 CFLAGS="$origCFLAGS"
15091 { origCFLAGS=; unset origCFLAGS;}
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
15096 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
15097 case "$libevent_cv_gc_sections_runs" in
15098 yes)
15099 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
15100 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
15102 esac
15106 if test "$enable_libevent_install" = "yes"; then
15107 INSTALL_LIBEVENT_TRUE=
15108 INSTALL_LIBEVENT_FALSE='#'
15109 else
15110 INSTALL_LIBEVENT_TRUE='#'
15111 INSTALL_LIBEVENT_FALSE=
15115 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
15117 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
15119 cat >confcache <<\_ACEOF
15120 # This file is a shell script that caches the results of configure
15121 # tests run on this system so they can be shared between configure
15122 # scripts and configure runs, see configure's option --config-cache.
15123 # It is not useful on other systems. If it contains results you don't
15124 # want to keep, you may remove or edit it.
15126 # config.status only pays attention to the cache file if you give it
15127 # the --recheck option to rerun configure.
15129 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15130 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15131 # following values.
15133 _ACEOF
15135 # The following way of writing the cache mishandles newlines in values,
15136 # but we know of no workaround that is simple, portable, and efficient.
15137 # So, we kill variables containing newlines.
15138 # Ultrix sh set writes to stderr and can't be redirected directly,
15139 # and sets the high bit in the cache file unless we assign to the vars.
15141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15142 eval ac_val=\$$ac_var
15143 case $ac_val in #(
15144 *${as_nl}*)
15145 case $ac_var in #(
15146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15148 esac
15149 case $ac_var in #(
15150 _ | IFS | as_nl) ;; #(
15151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15152 *) { eval $ac_var=; unset $ac_var;} ;;
15153 esac ;;
15154 esac
15155 done
15157 (set) 2>&1 |
15158 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15159 *${as_nl}ac_space=\ *)
15160 # `set' does not quote correctly, so add quotes: double-quote
15161 # substitution turns \\\\ into \\, and sed turns \\ into \.
15162 sed -n \
15163 "s/'/'\\\\''/g;
15164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15165 ;; #(
15167 # `set' quotes correctly as required by POSIX, so do not add quotes.
15168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15170 esac |
15171 sort
15173 sed '
15174 /^ac_cv_env_/b end
15175 t clear
15176 :clear
15177 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15178 t end
15179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15180 :end' >>confcache
15181 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15182 if test -w "$cache_file"; then
15183 if test "x$cache_file" != "x/dev/null"; then
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15185 $as_echo "$as_me: updating cache $cache_file" >&6;}
15186 if test ! -f "$cache_file" || test -h "$cache_file"; then
15187 cat confcache >"$cache_file"
15188 else
15189 case $cache_file in #(
15190 */* | ?:*)
15191 mv -f confcache "$cache_file"$$ &&
15192 mv -f "$cache_file"$$ "$cache_file" ;; #(
15194 mv -f confcache "$cache_file" ;;
15195 esac
15198 else
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15200 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15203 rm -f confcache
15205 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15206 # Let make expand exec_prefix.
15207 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15209 DEFS=-DHAVE_CONFIG_H
15211 ac_libobjs=
15212 ac_ltlibobjs=
15214 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15215 # 1. Remove the extension, and $U if already installed.
15216 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15217 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15218 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15219 # will be set to the directory where LIBOBJS objects are built.
15220 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15221 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15222 done
15223 LIBOBJS=$ac_libobjs
15225 LTLIBOBJS=$ac_ltlibobjs
15228 if test -n "$EXEEXT"; then
15229 am__EXEEXT_TRUE=
15230 am__EXEEXT_FALSE='#'
15231 else
15232 am__EXEEXT_TRUE='#'
15233 am__EXEEXT_FALSE=
15236 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15237 as_fn_error $? "conditional \"AMDEP\" was never defined.
15238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15240 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15241 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15244 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15245 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15248 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15249 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15252 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15253 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15256 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15257 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15260 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15261 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15264 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15265 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15268 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15269 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15272 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15273 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15276 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15277 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15280 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15281 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15284 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15285 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15288 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15289 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15292 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15293 as_fn_error $? "conditional \"PTHREADS\" was never defined.
15294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15296 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15297 as_fn_error $? "conditional \"OPENSSL\" was never defined.
15298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15300 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15301 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15305 : "${CONFIG_STATUS=./config.status}"
15306 ac_write_fail=0
15307 ac_clean_files_save=$ac_clean_files
15308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15310 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15311 as_write_fail=0
15312 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15313 #! $SHELL
15314 # Generated by $as_me.
15315 # Run this file to recreate the current configuration.
15316 # Compiler output produced by configure, useful for debugging
15317 # configure, is in config.log if it exists.
15319 debug=false
15320 ac_cs_recheck=false
15321 ac_cs_silent=false
15323 SHELL=\${CONFIG_SHELL-$SHELL}
15324 export SHELL
15325 _ASEOF
15326 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15327 ## -------------------- ##
15328 ## M4sh Initialization. ##
15329 ## -------------------- ##
15331 # Be more Bourne compatible
15332 DUALCASE=1; export DUALCASE # for MKS sh
15333 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15334 emulate sh
15335 NULLCMD=:
15336 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15337 # is contrary to our usage. Disable this feature.
15338 alias -g '${1+"$@"}'='"$@"'
15339 setopt NO_GLOB_SUBST
15340 else
15341 case `(set -o) 2>/dev/null` in #(
15342 *posix*) :
15343 set -o posix ;; #(
15344 *) :
15346 esac
15350 as_nl='
15352 export as_nl
15353 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15354 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15356 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15357 # Prefer a ksh shell builtin over an external printf program on Solaris,
15358 # but without wasting forks for bash or zsh.
15359 if test -z "$BASH_VERSION$ZSH_VERSION" \
15360 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15361 as_echo='print -r --'
15362 as_echo_n='print -rn --'
15363 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15364 as_echo='printf %s\n'
15365 as_echo_n='printf %s'
15366 else
15367 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15368 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15369 as_echo_n='/usr/ucb/echo -n'
15370 else
15371 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15372 as_echo_n_body='eval
15373 arg=$1;
15374 case $arg in #(
15375 *"$as_nl"*)
15376 expr "X$arg" : "X\\(.*\\)$as_nl";
15377 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15378 esac;
15379 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15381 export as_echo_n_body
15382 as_echo_n='sh -c $as_echo_n_body as_echo'
15384 export as_echo_body
15385 as_echo='sh -c $as_echo_body as_echo'
15388 # The user is always right.
15389 if test "${PATH_SEPARATOR+set}" != set; then
15390 PATH_SEPARATOR=:
15391 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15392 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15393 PATH_SEPARATOR=';'
15398 # IFS
15399 # We need space, tab and new line, in precisely that order. Quoting is
15400 # there to prevent editors from complaining about space-tab.
15401 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15402 # splitting by setting IFS to empty value.)
15403 IFS=" "" $as_nl"
15405 # Find who we are. Look in the path if we contain no directory separator.
15406 as_myself=
15407 case $0 in #((
15408 *[\\/]* ) as_myself=$0 ;;
15409 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15410 for as_dir in $PATH
15412 IFS=$as_save_IFS
15413 test -z "$as_dir" && as_dir=.
15414 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15415 done
15416 IFS=$as_save_IFS
15419 esac
15420 # We did not find ourselves, most probably we were run as `sh COMMAND'
15421 # in which case we are not to be found in the path.
15422 if test "x$as_myself" = x; then
15423 as_myself=$0
15425 if test ! -f "$as_myself"; then
15426 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15427 exit 1
15430 # Unset variables that we do not need and which cause bugs (e.g. in
15431 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15432 # suppresses any "Segmentation fault" message there. '((' could
15433 # trigger a bug in pdksh 5.2.14.
15434 for as_var in BASH_ENV ENV MAIL MAILPATH
15435 do eval test x\${$as_var+set} = xset \
15436 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15437 done
15438 PS1='$ '
15439 PS2='> '
15440 PS4='+ '
15442 # NLS nuisances.
15443 LC_ALL=C
15444 export LC_ALL
15445 LANGUAGE=C
15446 export LANGUAGE
15448 # CDPATH.
15449 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15452 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15453 # ----------------------------------------
15454 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15455 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15456 # script with STATUS, using 1 if that was 0.
15457 as_fn_error ()
15459 as_status=$1; test $as_status -eq 0 && as_status=1
15460 if test "$4"; then
15461 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15462 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15464 $as_echo "$as_me: error: $2" >&2
15465 as_fn_exit $as_status
15466 } # as_fn_error
15469 # as_fn_set_status STATUS
15470 # -----------------------
15471 # Set $? to STATUS, without forking.
15472 as_fn_set_status ()
15474 return $1
15475 } # as_fn_set_status
15477 # as_fn_exit STATUS
15478 # -----------------
15479 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15480 as_fn_exit ()
15482 set +e
15483 as_fn_set_status $1
15484 exit $1
15485 } # as_fn_exit
15487 # as_fn_unset VAR
15488 # ---------------
15489 # Portably unset VAR.
15490 as_fn_unset ()
15492 { eval $1=; unset $1;}
15494 as_unset=as_fn_unset
15495 # as_fn_append VAR VALUE
15496 # ----------------------
15497 # Append the text in VALUE to the end of the definition contained in VAR. Take
15498 # advantage of any shell optimizations that allow amortized linear growth over
15499 # repeated appends, instead of the typical quadratic growth present in naive
15500 # implementations.
15501 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15502 eval 'as_fn_append ()
15504 eval $1+=\$2
15506 else
15507 as_fn_append ()
15509 eval $1=\$$1\$2
15511 fi # as_fn_append
15513 # as_fn_arith ARG...
15514 # ------------------
15515 # Perform arithmetic evaluation on the ARGs, and store the result in the
15516 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15517 # must be portable across $(()) and expr.
15518 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15519 eval 'as_fn_arith ()
15521 as_val=$(( $* ))
15523 else
15524 as_fn_arith ()
15526 as_val=`expr "$@" || test $? -eq 1`
15528 fi # as_fn_arith
15531 if expr a : '\(a\)' >/dev/null 2>&1 &&
15532 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15533 as_expr=expr
15534 else
15535 as_expr=false
15538 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15539 as_basename=basename
15540 else
15541 as_basename=false
15544 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15545 as_dirname=dirname
15546 else
15547 as_dirname=false
15550 as_me=`$as_basename -- "$0" ||
15551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15552 X"$0" : 'X\(//\)$' \| \
15553 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15554 $as_echo X/"$0" |
15555 sed '/^.*\/\([^/][^/]*\)\/*$/{
15556 s//\1/
15559 /^X\/\(\/\/\)$/{
15560 s//\1/
15563 /^X\/\(\/\).*/{
15564 s//\1/
15567 s/.*/./; q'`
15569 # Avoid depending upon Character Ranges.
15570 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15571 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15572 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15573 as_cr_digits='0123456789'
15574 as_cr_alnum=$as_cr_Letters$as_cr_digits
15576 ECHO_C= ECHO_N= ECHO_T=
15577 case `echo -n x` in #(((((
15578 -n*)
15579 case `echo 'xy\c'` in
15580 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15581 xy) ECHO_C='\c';;
15582 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15583 ECHO_T=' ';;
15584 esac;;
15586 ECHO_N='-n';;
15587 esac
15589 rm -f conf$$ conf$$.exe conf$$.file
15590 if test -d conf$$.dir; then
15591 rm -f conf$$.dir/conf$$.file
15592 else
15593 rm -f conf$$.dir
15594 mkdir conf$$.dir 2>/dev/null
15596 if (echo >conf$$.file) 2>/dev/null; then
15597 if ln -s conf$$.file conf$$ 2>/dev/null; then
15598 as_ln_s='ln -s'
15599 # ... but there are two gotchas:
15600 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15601 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15602 # In both cases, we have to default to `cp -pR'.
15603 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15604 as_ln_s='cp -pR'
15605 elif ln conf$$.file conf$$ 2>/dev/null; then
15606 as_ln_s=ln
15607 else
15608 as_ln_s='cp -pR'
15610 else
15611 as_ln_s='cp -pR'
15613 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15614 rmdir conf$$.dir 2>/dev/null
15617 # as_fn_mkdir_p
15618 # -------------
15619 # Create "$as_dir" as a directory, including parents if necessary.
15620 as_fn_mkdir_p ()
15623 case $as_dir in #(
15624 -*) as_dir=./$as_dir;;
15625 esac
15626 test -d "$as_dir" || eval $as_mkdir_p || {
15627 as_dirs=
15628 while :; do
15629 case $as_dir in #(
15630 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15631 *) as_qdir=$as_dir;;
15632 esac
15633 as_dirs="'$as_qdir' $as_dirs"
15634 as_dir=`$as_dirname -- "$as_dir" ||
15635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15636 X"$as_dir" : 'X\(//\)[^/]' \| \
15637 X"$as_dir" : 'X\(//\)$' \| \
15638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15639 $as_echo X"$as_dir" |
15640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15641 s//\1/
15644 /^X\(\/\/\)[^/].*/{
15645 s//\1/
15648 /^X\(\/\/\)$/{
15649 s//\1/
15652 /^X\(\/\).*/{
15653 s//\1/
15656 s/.*/./; q'`
15657 test -d "$as_dir" && break
15658 done
15659 test -z "$as_dirs" || eval "mkdir $as_dirs"
15660 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15663 } # as_fn_mkdir_p
15664 if mkdir -p . 2>/dev/null; then
15665 as_mkdir_p='mkdir -p "$as_dir"'
15666 else
15667 test -d ./-p && rmdir ./-p
15668 as_mkdir_p=false
15672 # as_fn_executable_p FILE
15673 # -----------------------
15674 # Test if FILE is an executable regular file.
15675 as_fn_executable_p ()
15677 test -f "$1" && test -x "$1"
15678 } # as_fn_executable_p
15679 as_test_x='test -x'
15680 as_executable_p=as_fn_executable_p
15682 # Sed expression to map a string onto a valid CPP name.
15683 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15685 # Sed expression to map a string onto a valid variable name.
15686 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15689 exec 6>&1
15690 ## ----------------------------------- ##
15691 ## Main body of $CONFIG_STATUS script. ##
15692 ## ----------------------------------- ##
15693 _ASEOF
15694 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15697 # Save the log message, to keep $0 and so on meaningful, and to
15698 # report actual input values of CONFIG_FILES etc. instead of their
15699 # values after options handling.
15700 ac_log="
15701 This file was extended by libevent $as_me 2.0.21-stable-dev, which was
15702 generated by GNU Autoconf 2.69. Invocation command line was
15704 CONFIG_FILES = $CONFIG_FILES
15705 CONFIG_HEADERS = $CONFIG_HEADERS
15706 CONFIG_LINKS = $CONFIG_LINKS
15707 CONFIG_COMMANDS = $CONFIG_COMMANDS
15708 $ $0 $@
15710 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15713 _ACEOF
15715 case $ac_config_files in *"
15716 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15717 esac
15719 case $ac_config_headers in *"
15720 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15721 esac
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 # Files that config.status was made for.
15726 config_files="$ac_config_files"
15727 config_headers="$ac_config_headers"
15728 config_commands="$ac_config_commands"
15730 _ACEOF
15732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15733 ac_cs_usage="\
15734 \`$as_me' instantiates files and other configuration actions
15735 from templates according to the current configuration. Unless the files
15736 and actions are specified as TAGs, all are instantiated by default.
15738 Usage: $0 [OPTION]... [TAG]...
15740 -h, --help print this help, then exit
15741 -V, --version print version number and configuration settings, then exit
15742 --config print configuration, then exit
15743 -q, --quiet, --silent
15744 do not print progress messages
15745 -d, --debug don't remove temporary files
15746 --recheck update $as_me by reconfiguring in the same conditions
15747 --file=FILE[:TEMPLATE]
15748 instantiate the configuration file FILE
15749 --header=FILE[:TEMPLATE]
15750 instantiate the configuration header FILE
15752 Configuration files:
15753 $config_files
15755 Configuration headers:
15756 $config_headers
15758 Configuration commands:
15759 $config_commands
15761 Report bugs to the package provider."
15763 _ACEOF
15764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15765 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15766 ac_cs_version="\\
15767 libevent config.status 2.0.21-stable-dev
15768 configured by $0, generated by GNU Autoconf 2.69,
15769 with options \\"\$ac_cs_config\\"
15771 Copyright (C) 2012 Free Software Foundation, Inc.
15772 This config.status script is free software; the Free Software Foundation
15773 gives unlimited permission to copy, distribute and modify it."
15775 ac_pwd='$ac_pwd'
15776 srcdir='$srcdir'
15777 INSTALL='$INSTALL'
15778 MKDIR_P='$MKDIR_P'
15779 AWK='$AWK'
15780 test -n "\$AWK" || AWK=awk
15781 _ACEOF
15783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15784 # The default lists apply if the user does not specify any file.
15785 ac_need_defaults=:
15786 while test $# != 0
15788 case $1 in
15789 --*=?*)
15790 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15791 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15792 ac_shift=:
15794 --*=)
15795 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15796 ac_optarg=
15797 ac_shift=:
15800 ac_option=$1
15801 ac_optarg=$2
15802 ac_shift=shift
15804 esac
15806 case $ac_option in
15807 # Handling of the options.
15808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15809 ac_cs_recheck=: ;;
15810 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15811 $as_echo "$ac_cs_version"; exit ;;
15812 --config | --confi | --conf | --con | --co | --c )
15813 $as_echo "$ac_cs_config"; exit ;;
15814 --debug | --debu | --deb | --de | --d | -d )
15815 debug=: ;;
15816 --file | --fil | --fi | --f )
15817 $ac_shift
15818 case $ac_optarg in
15819 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15820 '') as_fn_error $? "missing file argument" ;;
15821 esac
15822 as_fn_append CONFIG_FILES " '$ac_optarg'"
15823 ac_need_defaults=false;;
15824 --header | --heade | --head | --hea )
15825 $ac_shift
15826 case $ac_optarg in
15827 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15828 esac
15829 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15830 ac_need_defaults=false;;
15831 --he | --h)
15832 # Conflict between --help and --header
15833 as_fn_error $? "ambiguous option: \`$1'
15834 Try \`$0 --help' for more information.";;
15835 --help | --hel | -h )
15836 $as_echo "$ac_cs_usage"; exit ;;
15837 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15838 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15839 ac_cs_silent=: ;;
15841 # This is an error.
15842 -*) as_fn_error $? "unrecognized option: \`$1'
15843 Try \`$0 --help' for more information." ;;
15845 *) as_fn_append ac_config_targets " $1"
15846 ac_need_defaults=false ;;
15848 esac
15849 shift
15850 done
15852 ac_configure_extra_args=
15854 if $ac_cs_silent; then
15855 exec 6>/dev/null
15856 ac_configure_extra_args="$ac_configure_extra_args --silent"
15859 _ACEOF
15860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861 if \$ac_cs_recheck; then
15862 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15863 shift
15864 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15865 CONFIG_SHELL='$SHELL'
15866 export CONFIG_SHELL
15867 exec "\$@"
15870 _ACEOF
15871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15872 exec 5>>config.log
15874 echo
15875 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15876 ## Running $as_me. ##
15877 _ASBOX
15878 $as_echo "$ac_log"
15879 } >&5
15881 _ACEOF
15882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15884 # INIT-COMMANDS
15886 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15889 # The HP-UX ksh and POSIX shell print the target directory to stdout
15890 # if CDPATH is set.
15891 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15893 sed_quote_subst='$sed_quote_subst'
15894 double_quote_subst='$double_quote_subst'
15895 delay_variable_subst='$delay_variable_subst'
15896 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15897 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15898 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15899 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15900 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15901 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15902 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15903 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15904 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15905 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15906 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15907 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15908 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15909 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15910 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15911 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15912 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15913 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15914 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15915 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15916 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15917 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15918 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15919 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15920 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15921 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15922 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15923 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15924 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15925 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15926 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15927 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15928 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15929 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15930 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15931 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15932 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15933 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15934 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15935 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15936 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15937 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15938 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15939 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15940 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15941 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15942 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15943 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15944 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15945 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15946 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15947 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15948 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15949 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15950 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15951 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15952 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"`'
15953 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15954 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15955 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15956 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15957 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15958 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15959 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15960 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15961 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15962 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15963 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15964 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15965 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15966 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15967 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15968 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15969 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15970 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15971 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15972 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15973 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15974 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15975 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15976 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15977 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15978 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15979 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15980 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15981 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15982 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15983 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15984 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15985 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15986 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15987 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15988 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15989 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15990 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15991 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15992 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15993 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15994 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15995 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15996 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15997 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15998 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15999 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16000 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16001 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16002 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16003 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16004 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16005 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16006 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16007 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16008 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16009 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16010 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16011 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16012 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16013 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16014 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16015 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16016 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16017 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16018 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16019 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16020 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16021 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16022 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16023 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16024 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16025 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16027 LTCC='$LTCC'
16028 LTCFLAGS='$LTCFLAGS'
16029 compiler='$compiler_DEFAULT'
16031 # A function that is used when there is no print builtin or printf.
16032 func_fallback_echo ()
16034 eval 'cat <<_LTECHO_EOF
16036 _LTECHO_EOF'
16039 # Quote evaled strings.
16040 for var in SHELL \
16041 ECHO \
16042 PATH_SEPARATOR \
16043 SED \
16044 GREP \
16045 EGREP \
16046 FGREP \
16047 LD \
16048 NM \
16049 LN_S \
16050 lt_SP2NL \
16051 lt_NL2SP \
16052 reload_flag \
16053 OBJDUMP \
16054 deplibs_check_method \
16055 file_magic_cmd \
16056 file_magic_glob \
16057 want_nocaseglob \
16058 DLLTOOL \
16059 sharedlib_from_linklib_cmd \
16060 AR \
16061 AR_FLAGS \
16062 archiver_list_spec \
16063 STRIP \
16064 RANLIB \
16065 CC \
16066 CFLAGS \
16067 compiler \
16068 lt_cv_sys_global_symbol_pipe \
16069 lt_cv_sys_global_symbol_to_cdecl \
16070 lt_cv_sys_global_symbol_to_c_name_address \
16071 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16072 nm_file_list_spec \
16073 lt_prog_compiler_no_builtin_flag \
16074 lt_prog_compiler_pic \
16075 lt_prog_compiler_wl \
16076 lt_prog_compiler_static \
16077 lt_cv_prog_compiler_c_o \
16078 need_locks \
16079 MANIFEST_TOOL \
16080 DSYMUTIL \
16081 NMEDIT \
16082 LIPO \
16083 OTOOL \
16084 OTOOL64 \
16085 shrext_cmds \
16086 export_dynamic_flag_spec \
16087 whole_archive_flag_spec \
16088 compiler_needs_object \
16089 with_gnu_ld \
16090 allow_undefined_flag \
16091 no_undefined_flag \
16092 hardcode_libdir_flag_spec \
16093 hardcode_libdir_separator \
16094 exclude_expsyms \
16095 include_expsyms \
16096 file_list_spec \
16097 variables_saved_for_relink \
16098 libname_spec \
16099 library_names_spec \
16100 soname_spec \
16101 install_override_mode \
16102 finish_eval \
16103 old_striplib \
16104 striplib; do
16105 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16106 *[\\\\\\\`\\"\\\$]*)
16107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16112 esac
16113 done
16115 # Double-quote double-evaled strings.
16116 for var in reload_cmds \
16117 old_postinstall_cmds \
16118 old_postuninstall_cmds \
16119 old_archive_cmds \
16120 extract_expsyms_cmds \
16121 old_archive_from_new_cmds \
16122 old_archive_from_expsyms_cmds \
16123 archive_cmds \
16124 archive_expsym_cmds \
16125 module_cmds \
16126 module_expsym_cmds \
16127 export_symbols_cmds \
16128 prelink_cmds \
16129 postlink_cmds \
16130 postinstall_cmds \
16131 postuninstall_cmds \
16132 finish_cmds \
16133 sys_lib_search_path_spec \
16134 sys_lib_dlsearch_path_spec; do
16135 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16136 *[\\\\\\\`\\"\\\$]*)
16137 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16140 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16142 esac
16143 done
16145 ac_aux_dir='$ac_aux_dir'
16146 xsi_shell='$xsi_shell'
16147 lt_shell_append='$lt_shell_append'
16149 # See if we are running on zsh, and set the options which allow our
16150 # commands through without removal of \ escapes INIT.
16151 if test -n "\${ZSH_VERSION+set}" ; then
16152 setopt NO_GLOB_SUBST
16156 PACKAGE='$PACKAGE'
16157 VERSION='$VERSION'
16158 TIMESTAMP='$TIMESTAMP'
16159 RM='$RM'
16160 ofile='$ofile'
16165 _ACEOF
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16169 # Handling of arguments.
16170 for ac_config_target in $ac_config_targets
16172 case $ac_config_target in
16173 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16174 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16175 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16176 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16177 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16178 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16179 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16180 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16181 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16182 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16184 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16185 esac
16186 done
16189 # If the user did not use the arguments to specify the items to instantiate,
16190 # then the envvar interface is used. Set only those that are not.
16191 # We use the long form for the default assignment because of an extremely
16192 # bizarre bug on SunOS 4.1.3.
16193 if $ac_need_defaults; then
16194 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16195 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16199 # Have a temporary directory for convenience. Make it in the build tree
16200 # simply because there is no reason against having it here, and in addition,
16201 # creating and moving files from /tmp can sometimes cause problems.
16202 # Hook for its removal unless debugging.
16203 # Note that there is a small window in which the directory will not be cleaned:
16204 # after its creation but before its name has been assigned to `$tmp'.
16205 $debug ||
16207 tmp= ac_tmp=
16208 trap 'exit_status=$?
16209 : "${ac_tmp:=$tmp}"
16210 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16212 trap 'as_fn_exit 1' 1 2 13 15
16214 # Create a (secure) tmp directory for tmp files.
16217 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16218 test -d "$tmp"
16219 } ||
16221 tmp=./conf$$-$RANDOM
16222 (umask 077 && mkdir "$tmp")
16223 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16224 ac_tmp=$tmp
16226 # Set up the scripts for CONFIG_FILES section.
16227 # No need to generate them if there are no CONFIG_FILES.
16228 # This happens for instance with `./config.status config.h'.
16229 if test -n "$CONFIG_FILES"; then
16232 ac_cr=`echo X | tr X '\015'`
16233 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16234 # But we know of no other shell where ac_cr would be empty at this
16235 # point, so we can use a bashism as a fallback.
16236 if test "x$ac_cr" = x; then
16237 eval ac_cr=\$\'\\r\'
16239 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16240 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16241 ac_cs_awk_cr='\\r'
16242 else
16243 ac_cs_awk_cr=$ac_cr
16246 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16247 _ACEOF
16251 echo "cat >conf$$subs.awk <<_ACEOF" &&
16252 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16253 echo "_ACEOF"
16254 } >conf$$subs.sh ||
16255 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16256 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16257 ac_delim='%!_!# '
16258 for ac_last_try in false false false false false :; do
16259 . ./conf$$subs.sh ||
16260 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16262 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16263 if test $ac_delim_n = $ac_delim_num; then
16264 break
16265 elif $ac_last_try; then
16266 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16267 else
16268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16270 done
16271 rm -f conf$$subs.sh
16273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16275 _ACEOF
16276 sed -n '
16278 s/^/S["/; s/!.*/"]=/
16281 s/^[^!]*!//
16282 :repl
16283 t repl
16284 s/'"$ac_delim"'$//
16285 t delim
16288 s/\(.\{148\}\)..*/\1/
16289 t more1
16290 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16293 b repl
16294 :more1
16295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16298 s/.\{148\}//
16299 t nl
16300 :delim
16302 s/\(.\{148\}\)..*/\1/
16303 t more2
16304 s/["\\]/\\&/g; s/^/"/; s/$/"/
16307 :more2
16308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16311 s/.\{148\}//
16312 t delim
16313 ' <conf$$subs.awk | sed '
16314 /^[^""]/{
16316 s/\n//
16318 ' >>$CONFIG_STATUS || ac_write_fail=1
16319 rm -f conf$$subs.awk
16320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321 _ACAWK
16322 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16323 for (key in S) S_is_set[key] = 1
16324 FS = "\a"
16328 line = $ 0
16329 nfields = split(line, field, "@")
16330 substed = 0
16331 len = length(field[1])
16332 for (i = 2; i < nfields; i++) {
16333 key = field[i]
16334 keylen = length(key)
16335 if (S_is_set[key]) {
16336 value = S[key]
16337 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16338 len += length(value) + length(field[++i])
16339 substed = 1
16340 } else
16341 len += 1 + keylen
16344 print line
16347 _ACAWK
16348 _ACEOF
16349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16350 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16351 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16352 else
16354 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16355 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16356 _ACEOF
16358 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16359 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16360 # trailing colons and then remove the whole line if VPATH becomes empty
16361 # (actually we leave an empty line to preserve line numbers).
16362 if test "x$srcdir" = x.; then
16363 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16365 s///
16366 s/^/:/
16367 s/[ ]*$/:/
16368 s/:\$(srcdir):/:/g
16369 s/:\${srcdir}:/:/g
16370 s/:@srcdir@:/:/g
16371 s/^:*//
16372 s/:*$//
16374 s/\(=[ ]*\).*/\1/
16376 s/\n//
16377 s/^[^=]*=[ ]*$//
16381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16382 fi # test -n "$CONFIG_FILES"
16384 # Set up the scripts for CONFIG_HEADERS section.
16385 # No need to generate them if there are no CONFIG_HEADERS.
16386 # This happens for instance with `./config.status Makefile'.
16387 if test -n "$CONFIG_HEADERS"; then
16388 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16389 BEGIN {
16390 _ACEOF
16392 # Transform confdefs.h into an awk script `defines.awk', embedded as
16393 # here-document in config.status, that substitutes the proper values into
16394 # config.h.in to produce config.h.
16396 # Create a delimiter string that does not exist in confdefs.h, to ease
16397 # handling of long lines.
16398 ac_delim='%!_!# '
16399 for ac_last_try in false false :; do
16400 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16401 if test -z "$ac_tt"; then
16402 break
16403 elif $ac_last_try; then
16404 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16405 else
16406 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16408 done
16410 # For the awk script, D is an array of macro values keyed by name,
16411 # likewise P contains macro parameters if any. Preserve backslash
16412 # newline sequences.
16414 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16415 sed -n '
16416 s/.\{148\}/&'"$ac_delim"'/g
16417 t rset
16418 :rset
16419 s/^[ ]*#[ ]*define[ ][ ]*/ /
16420 t def
16422 :def
16423 s/\\$//
16424 t bsnl
16425 s/["\\]/\\&/g
16426 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16427 D["\1"]=" \3"/p
16428 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16430 :bsnl
16431 s/["\\]/\\&/g
16432 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16433 D["\1"]=" \3\\\\\\n"\\/p
16434 t cont
16435 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16436 t cont
16438 :cont
16440 s/.\{148\}/&'"$ac_delim"'/g
16441 t clear
16442 :clear
16443 s/\\$//
16444 t bsnlc
16445 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16447 :bsnlc
16448 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16449 b cont
16450 ' <confdefs.h | sed '
16451 s/'"$ac_delim"'/"\\\
16452 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16455 for (key in D) D_is_set[key] = 1
16456 FS = "\a"
16458 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16459 line = \$ 0
16460 split(line, arg, " ")
16461 if (arg[1] == "#") {
16462 defundef = arg[2]
16463 mac1 = arg[3]
16464 } else {
16465 defundef = substr(arg[1], 2)
16466 mac1 = arg[2]
16468 split(mac1, mac2, "(") #)
16469 macro = mac2[1]
16470 prefix = substr(line, 1, index(line, defundef) - 1)
16471 if (D_is_set[macro]) {
16472 # Preserve the white space surrounding the "#".
16473 print prefix "define", macro P[macro] D[macro]
16474 next
16475 } else {
16476 # Replace #undef with comments. This is necessary, for example,
16477 # in the case of _POSIX_SOURCE, which is predefined and required
16478 # on some systems where configure will not decide to define it.
16479 if (defundef == "undef") {
16480 print "/*", prefix defundef, macro, "*/"
16481 next
16485 { print }
16486 _ACAWK
16487 _ACEOF
16488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16489 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16490 fi # test -n "$CONFIG_HEADERS"
16493 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16494 shift
16495 for ac_tag
16497 case $ac_tag in
16498 :[FHLC]) ac_mode=$ac_tag; continue;;
16499 esac
16500 case $ac_mode$ac_tag in
16501 :[FHL]*:*);;
16502 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16503 :[FH]-) ac_tag=-:-;;
16504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16505 esac
16506 ac_save_IFS=$IFS
16507 IFS=:
16508 set x $ac_tag
16509 IFS=$ac_save_IFS
16510 shift
16511 ac_file=$1
16512 shift
16514 case $ac_mode in
16515 :L) ac_source=$1;;
16516 :[FH])
16517 ac_file_inputs=
16518 for ac_f
16520 case $ac_f in
16521 -) ac_f="$ac_tmp/stdin";;
16522 *) # Look for the file first in the build tree, then in the source tree
16523 # (if the path is not absolute). The absolute path cannot be DOS-style,
16524 # because $ac_f cannot contain `:'.
16525 test -f "$ac_f" ||
16526 case $ac_f in
16527 [\\/$]*) false;;
16528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16529 esac ||
16530 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16531 esac
16532 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16533 as_fn_append ac_file_inputs " '$ac_f'"
16534 done
16536 # Let's still pretend it is `configure' which instantiates (i.e., don't
16537 # use $as_me), people would be surprised to read:
16538 # /* config.h. Generated by config.status. */
16539 configure_input='Generated from '`
16540 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16541 `' by configure.'
16542 if test x"$ac_file" != x-; then
16543 configure_input="$ac_file. $configure_input"
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16545 $as_echo "$as_me: creating $ac_file" >&6;}
16547 # Neutralize special characters interpreted by sed in replacement strings.
16548 case $configure_input in #(
16549 *\&* | *\|* | *\\* )
16550 ac_sed_conf_input=`$as_echo "$configure_input" |
16551 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16552 *) ac_sed_conf_input=$configure_input;;
16553 esac
16555 case $ac_tag in
16556 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16557 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16558 esac
16560 esac
16562 ac_dir=`$as_dirname -- "$ac_file" ||
16563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16564 X"$ac_file" : 'X\(//\)[^/]' \| \
16565 X"$ac_file" : 'X\(//\)$' \| \
16566 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16567 $as_echo X"$ac_file" |
16568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16569 s//\1/
16572 /^X\(\/\/\)[^/].*/{
16573 s//\1/
16576 /^X\(\/\/\)$/{
16577 s//\1/
16580 /^X\(\/\).*/{
16581 s//\1/
16584 s/.*/./; q'`
16585 as_dir="$ac_dir"; as_fn_mkdir_p
16586 ac_builddir=.
16588 case "$ac_dir" in
16589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16592 # A ".." for each directory in $ac_dir_suffix.
16593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16594 case $ac_top_builddir_sub in
16595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16597 esac ;;
16598 esac
16599 ac_abs_top_builddir=$ac_pwd
16600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16601 # for backward compatibility:
16602 ac_top_builddir=$ac_top_build_prefix
16604 case $srcdir in
16605 .) # We are building in place.
16606 ac_srcdir=.
16607 ac_top_srcdir=$ac_top_builddir_sub
16608 ac_abs_top_srcdir=$ac_pwd ;;
16609 [\\/]* | ?:[\\/]* ) # Absolute name.
16610 ac_srcdir=$srcdir$ac_dir_suffix;
16611 ac_top_srcdir=$srcdir
16612 ac_abs_top_srcdir=$srcdir ;;
16613 *) # Relative name.
16614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16615 ac_top_srcdir=$ac_top_build_prefix$srcdir
16616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16617 esac
16618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16621 case $ac_mode in
16624 # CONFIG_FILE
16627 case $INSTALL in
16628 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16629 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16630 esac
16631 ac_MKDIR_P=$MKDIR_P
16632 case $MKDIR_P in
16633 [\\/$]* | ?:[\\/]* ) ;;
16634 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16635 esac
16636 _ACEOF
16638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16639 # If the template does not know about datarootdir, expand it.
16640 # FIXME: This hack should be removed a few years after 2.60.
16641 ac_datarootdir_hack=; ac_datarootdir_seen=
16642 ac_sed_dataroot='
16643 /datarootdir/ {
16647 /@datadir@/p
16648 /@docdir@/p
16649 /@infodir@/p
16650 /@localedir@/p
16651 /@mandir@/p'
16652 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16653 *datarootdir*) ac_datarootdir_seen=yes;;
16654 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16656 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16657 _ACEOF
16658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16659 ac_datarootdir_hack='
16660 s&@datadir@&$datadir&g
16661 s&@docdir@&$docdir&g
16662 s&@infodir@&$infodir&g
16663 s&@localedir@&$localedir&g
16664 s&@mandir@&$mandir&g
16665 s&\\\${datarootdir}&$datarootdir&g' ;;
16666 esac
16667 _ACEOF
16669 # Neutralize VPATH when `$srcdir' = `.'.
16670 # Shell code in configure.ac might set extrasub.
16671 # FIXME: do we really want to maintain this feature?
16672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16673 ac_sed_extra="$ac_vpsub
16674 $extrasub
16675 _ACEOF
16676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16679 s|@configure_input@|$ac_sed_conf_input|;t t
16680 s&@top_builddir@&$ac_top_builddir_sub&;t t
16681 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16682 s&@srcdir@&$ac_srcdir&;t t
16683 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16684 s&@top_srcdir@&$ac_top_srcdir&;t t
16685 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16686 s&@builddir@&$ac_builddir&;t t
16687 s&@abs_builddir@&$ac_abs_builddir&;t t
16688 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16689 s&@INSTALL@&$ac_INSTALL&;t t
16690 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16691 $ac_datarootdir_hack
16693 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16694 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16699 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16701 which seems to be undefined. Please make sure it is defined" >&5
16702 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16703 which seems to be undefined. Please make sure it is defined" >&2;}
16705 rm -f "$ac_tmp/stdin"
16706 case $ac_file in
16707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16709 esac \
16710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16714 # CONFIG_HEADER
16716 if test x"$ac_file" != x-; then
16718 $as_echo "/* $configure_input */" \
16719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16720 } >"$ac_tmp/config.h" \
16721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16722 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16724 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16725 else
16726 rm -f "$ac_file"
16727 mv "$ac_tmp/config.h" "$ac_file" \
16728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16730 else
16731 $as_echo "/* $configure_input */" \
16732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16733 || as_fn_error $? "could not create -" "$LINENO" 5
16735 # Compute "$ac_file"'s index in $config_headers.
16736 _am_arg="$ac_file"
16737 _am_stamp_count=1
16738 for _am_header in $config_headers :; do
16739 case $_am_header in
16740 $_am_arg | $_am_arg:* )
16741 break ;;
16743 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16744 esac
16745 done
16746 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16747 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16748 X"$_am_arg" : 'X\(//\)[^/]' \| \
16749 X"$_am_arg" : 'X\(//\)$' \| \
16750 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16751 $as_echo X"$_am_arg" |
16752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16753 s//\1/
16756 /^X\(\/\/\)[^/].*/{
16757 s//\1/
16760 /^X\(\/\/\)$/{
16761 s//\1/
16764 /^X\(\/\).*/{
16765 s//\1/
16768 s/.*/./; q'`/stamp-h$_am_stamp_count
16771 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16772 $as_echo "$as_me: executing $ac_file commands" >&6;}
16774 esac
16777 case $ac_file$ac_mode in
16778 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16779 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16780 # are listed without --file. Let's play safe and only enable the eval
16781 # if we detect the quoting.
16782 case $CONFIG_FILES in
16783 *\'*) eval set x "$CONFIG_FILES" ;;
16784 *) set x $CONFIG_FILES ;;
16785 esac
16786 shift
16787 for mf
16789 # Strip MF so we end up with the name of the file.
16790 mf=`echo "$mf" | sed -e 's/:.*$//'`
16791 # Check whether this is an Automake generated Makefile or not.
16792 # We used to match only the files named `Makefile.in', but
16793 # some people rename them; so instead we look at the file content.
16794 # Grep'ing the first line is not enough: some people post-process
16795 # each Makefile.in and add a new line on top of each file to say so.
16796 # Grep'ing the whole file is not good either: AIX grep has a line
16797 # limit of 2048, but all sed's we know have understand at least 4000.
16798 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16799 dirpart=`$as_dirname -- "$mf" ||
16800 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16801 X"$mf" : 'X\(//\)[^/]' \| \
16802 X"$mf" : 'X\(//\)$' \| \
16803 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16804 $as_echo X"$mf" |
16805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16806 s//\1/
16809 /^X\(\/\/\)[^/].*/{
16810 s//\1/
16813 /^X\(\/\/\)$/{
16814 s//\1/
16817 /^X\(\/\).*/{
16818 s//\1/
16821 s/.*/./; q'`
16822 else
16823 continue
16825 # Extract the definition of DEPDIR, am__include, and am__quote
16826 # from the Makefile without running `make'.
16827 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16828 test -z "$DEPDIR" && continue
16829 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16830 test -z "am__include" && continue
16831 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16832 # When using ansi2knr, U may be empty or an underscore; expand it
16833 U=`sed -n 's/^U = //p' < "$mf"`
16834 # Find all dependency output files, they are included files with
16835 # $(DEPDIR) in their names. We invoke sed twice because it is the
16836 # simplest approach to changing $(DEPDIR) to its actual value in the
16837 # expansion.
16838 for file in `sed -n "
16839 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16840 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16841 # Make sure the directory exists.
16842 test -f "$dirpart/$file" && continue
16843 fdir=`$as_dirname -- "$file" ||
16844 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16845 X"$file" : 'X\(//\)[^/]' \| \
16846 X"$file" : 'X\(//\)$' \| \
16847 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16848 $as_echo X"$file" |
16849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16850 s//\1/
16853 /^X\(\/\/\)[^/].*/{
16854 s//\1/
16857 /^X\(\/\/\)$/{
16858 s//\1/
16861 /^X\(\/\).*/{
16862 s//\1/
16865 s/.*/./; q'`
16866 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16867 # echo "creating $dirpart/$file"
16868 echo '# dummy' > "$dirpart/$file"
16869 done
16870 done
16873 "libtool":C)
16875 # See if we are running on zsh, and set the options which allow our
16876 # commands through without removal of \ escapes.
16877 if test -n "${ZSH_VERSION+set}" ; then
16878 setopt NO_GLOB_SUBST
16881 cfgfile="${ofile}T"
16882 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16883 $RM "$cfgfile"
16885 cat <<_LT_EOF >> "$cfgfile"
16886 #! $SHELL
16888 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16889 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16890 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16891 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16893 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16894 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16895 # Foundation, Inc.
16896 # Written by Gordon Matzigkeit, 1996
16898 # This file is part of GNU Libtool.
16900 # GNU Libtool is free software; you can redistribute it and/or
16901 # modify it under the terms of the GNU General Public License as
16902 # published by the Free Software Foundation; either version 2 of
16903 # the License, or (at your option) any later version.
16905 # As a special exception to the GNU General Public License,
16906 # if you distribute this file as part of a program or library that
16907 # is built using GNU Libtool, you may include this file under the
16908 # same distribution terms that you use for the rest of that program.
16910 # GNU Libtool is distributed in the hope that it will be useful,
16911 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16912 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16913 # GNU General Public License for more details.
16915 # You should have received a copy of the GNU General Public License
16916 # along with GNU Libtool; see the file COPYING. If not, a copy
16917 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16918 # obtained by writing to the Free Software Foundation, Inc.,
16919 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16922 # The names of the tagged configurations supported by this script.
16923 available_tags=""
16925 # ### BEGIN LIBTOOL CONFIG
16927 # Which release of libtool.m4 was used?
16928 macro_version=$macro_version
16929 macro_revision=$macro_revision
16931 # Whether or not to build shared libraries.
16932 build_libtool_libs=$enable_shared
16934 # Whether or not to build static libraries.
16935 build_old_libs=$enable_static
16937 # What type of objects to build.
16938 pic_mode=$pic_mode
16940 # Whether or not to optimize for fast installation.
16941 fast_install=$enable_fast_install
16943 # Shell to use when invoking shell scripts.
16944 SHELL=$lt_SHELL
16946 # An echo program that protects backslashes.
16947 ECHO=$lt_ECHO
16949 # The PATH separator for the build system.
16950 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16952 # The host system.
16953 host_alias=$host_alias
16954 host=$host
16955 host_os=$host_os
16957 # The build system.
16958 build_alias=$build_alias
16959 build=$build
16960 build_os=$build_os
16962 # A sed program that does not truncate output.
16963 SED=$lt_SED
16965 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16966 Xsed="\$SED -e 1s/^X//"
16968 # A grep program that handles long lines.
16969 GREP=$lt_GREP
16971 # An ERE matcher.
16972 EGREP=$lt_EGREP
16974 # A literal string matcher.
16975 FGREP=$lt_FGREP
16977 # A BSD- or MS-compatible name lister.
16978 NM=$lt_NM
16980 # Whether we need soft or hard links.
16981 LN_S=$lt_LN_S
16983 # What is the maximum length of a command?
16984 max_cmd_len=$max_cmd_len
16986 # Object file suffix (normally "o").
16987 objext=$ac_objext
16989 # Executable file suffix (normally "").
16990 exeext=$exeext
16992 # whether the shell understands "unset".
16993 lt_unset=$lt_unset
16995 # turn spaces into newlines.
16996 SP2NL=$lt_lt_SP2NL
16998 # turn newlines into spaces.
16999 NL2SP=$lt_lt_NL2SP
17001 # convert \$build file names to \$host format.
17002 to_host_file_cmd=$lt_cv_to_host_file_cmd
17004 # convert \$build files to toolchain format.
17005 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17007 # An object symbol dumper.
17008 OBJDUMP=$lt_OBJDUMP
17010 # Method to check whether dependent libraries are shared objects.
17011 deplibs_check_method=$lt_deplibs_check_method
17013 # Command to use when deplibs_check_method = "file_magic".
17014 file_magic_cmd=$lt_file_magic_cmd
17016 # How to find potential files when deplibs_check_method = "file_magic".
17017 file_magic_glob=$lt_file_magic_glob
17019 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17020 want_nocaseglob=$lt_want_nocaseglob
17022 # DLL creation program.
17023 DLLTOOL=$lt_DLLTOOL
17025 # Command to associate shared and link libraries.
17026 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17028 # The archiver.
17029 AR=$lt_AR
17031 # Flags to create an archive.
17032 AR_FLAGS=$lt_AR_FLAGS
17034 # How to feed a file listing to the archiver.
17035 archiver_list_spec=$lt_archiver_list_spec
17037 # A symbol stripping program.
17038 STRIP=$lt_STRIP
17040 # Commands used to install an old-style archive.
17041 RANLIB=$lt_RANLIB
17042 old_postinstall_cmds=$lt_old_postinstall_cmds
17043 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17045 # Whether to use a lock for old archive extraction.
17046 lock_old_archive_extraction=$lock_old_archive_extraction
17048 # A C compiler.
17049 LTCC=$lt_CC
17051 # LTCC compiler flags.
17052 LTCFLAGS=$lt_CFLAGS
17054 # Take the output of nm and produce a listing of raw symbols and C names.
17055 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17057 # Transform the output of nm in a proper C declaration.
17058 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17060 # Transform the output of nm in a C name address pair.
17061 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17063 # Transform the output of nm in a C name address pair when lib prefix is needed.
17064 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17066 # Specify filename containing input files for \$NM.
17067 nm_file_list_spec=$lt_nm_file_list_spec
17069 # The root where to search for dependent libraries,and in which our libraries should be installed.
17070 lt_sysroot=$lt_sysroot
17072 # The name of the directory that contains temporary libtool files.
17073 objdir=$objdir
17075 # Used to examine libraries when file_magic_cmd begins with "file".
17076 MAGIC_CMD=$MAGIC_CMD
17078 # Must we lock files when doing compilation?
17079 need_locks=$lt_need_locks
17081 # Manifest tool.
17082 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17084 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17085 DSYMUTIL=$lt_DSYMUTIL
17087 # Tool to change global to local symbols on Mac OS X.
17088 NMEDIT=$lt_NMEDIT
17090 # Tool to manipulate fat objects and archives on Mac OS X.
17091 LIPO=$lt_LIPO
17093 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17094 OTOOL=$lt_OTOOL
17096 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17097 OTOOL64=$lt_OTOOL64
17099 # Old archive suffix (normally "a").
17100 libext=$libext
17102 # Shared library suffix (normally ".so").
17103 shrext_cmds=$lt_shrext_cmds
17105 # The commands to extract the exported symbol list from a shared archive.
17106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17108 # Variables whose values should be saved in libtool wrapper scripts and
17109 # restored at link time.
17110 variables_saved_for_relink=$lt_variables_saved_for_relink
17112 # Do we need the "lib" prefix for modules?
17113 need_lib_prefix=$need_lib_prefix
17115 # Do we need a version for libraries?
17116 need_version=$need_version
17118 # Library versioning type.
17119 version_type=$version_type
17121 # Shared library runtime path variable.
17122 runpath_var=$runpath_var
17124 # Shared library path variable.
17125 shlibpath_var=$shlibpath_var
17127 # Is shlibpath searched before the hard-coded library search path?
17128 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17130 # Format of library name prefix.
17131 libname_spec=$lt_libname_spec
17133 # List of archive names. First name is the real one, the rest are links.
17134 # The last name is the one that the linker finds with -lNAME
17135 library_names_spec=$lt_library_names_spec
17137 # The coded name of the library, if different from the real name.
17138 soname_spec=$lt_soname_spec
17140 # Permission mode override for installation of shared libraries.
17141 install_override_mode=$lt_install_override_mode
17143 # Command to use after installation of a shared archive.
17144 postinstall_cmds=$lt_postinstall_cmds
17146 # Command to use after uninstallation of a shared archive.
17147 postuninstall_cmds=$lt_postuninstall_cmds
17149 # Commands used to finish a libtool library installation in a directory.
17150 finish_cmds=$lt_finish_cmds
17152 # As "finish_cmds", except a single script fragment to be evaled but
17153 # not shown.
17154 finish_eval=$lt_finish_eval
17156 # Whether we should hardcode library paths into libraries.
17157 hardcode_into_libs=$hardcode_into_libs
17159 # Compile-time system search path for libraries.
17160 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17162 # Run-time system search path for libraries.
17163 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17165 # Whether dlopen is supported.
17166 dlopen_support=$enable_dlopen
17168 # Whether dlopen of programs is supported.
17169 dlopen_self=$enable_dlopen_self
17171 # Whether dlopen of statically linked programs is supported.
17172 dlopen_self_static=$enable_dlopen_self_static
17174 # Commands to strip libraries.
17175 old_striplib=$lt_old_striplib
17176 striplib=$lt_striplib
17179 # The linker used to build libraries.
17180 LD=$lt_LD
17182 # How to create reloadable object files.
17183 reload_flag=$lt_reload_flag
17184 reload_cmds=$lt_reload_cmds
17186 # Commands used to build an old-style archive.
17187 old_archive_cmds=$lt_old_archive_cmds
17189 # A language specific compiler.
17190 CC=$lt_compiler
17192 # Is the compiler the GNU compiler?
17193 with_gcc=$GCC
17195 # Compiler flag to turn off builtin functions.
17196 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17198 # Additional compiler flags for building library objects.
17199 pic_flag=$lt_lt_prog_compiler_pic
17201 # How to pass a linker flag through the compiler.
17202 wl=$lt_lt_prog_compiler_wl
17204 # Compiler flag to prevent dynamic linking.
17205 link_static_flag=$lt_lt_prog_compiler_static
17207 # Does compiler simultaneously support -c and -o options?
17208 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17210 # Whether or not to add -lc for building shared libraries.
17211 build_libtool_need_lc=$archive_cmds_need_lc
17213 # Whether or not to disallow shared libs when runtime libs are static.
17214 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17216 # Compiler flag to allow reflexive dlopens.
17217 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17219 # Compiler flag to generate shared objects directly from archives.
17220 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17222 # Whether the compiler copes with passing no objects directly.
17223 compiler_needs_object=$lt_compiler_needs_object
17225 # Create an old-style archive from a shared archive.
17226 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17228 # Create a temporary old-style archive to link instead of a shared archive.
17229 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17231 # Commands used to build a shared archive.
17232 archive_cmds=$lt_archive_cmds
17233 archive_expsym_cmds=$lt_archive_expsym_cmds
17235 # Commands used to build a loadable module if different from building
17236 # a shared archive.
17237 module_cmds=$lt_module_cmds
17238 module_expsym_cmds=$lt_module_expsym_cmds
17240 # Whether we are building with GNU ld or not.
17241 with_gnu_ld=$lt_with_gnu_ld
17243 # Flag that allows shared libraries with undefined symbols to be built.
17244 allow_undefined_flag=$lt_allow_undefined_flag
17246 # Flag that enforces no undefined symbols.
17247 no_undefined_flag=$lt_no_undefined_flag
17249 # Flag to hardcode \$libdir into a binary during linking.
17250 # This must work even if \$libdir does not exist
17251 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17253 # Whether we need a single "-rpath" flag with a separated argument.
17254 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17256 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17257 # DIR into the resulting binary.
17258 hardcode_direct=$hardcode_direct
17260 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17261 # DIR into the resulting binary and the resulting library dependency is
17262 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17263 # library is relocated.
17264 hardcode_direct_absolute=$hardcode_direct_absolute
17266 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17267 # into the resulting binary.
17268 hardcode_minus_L=$hardcode_minus_L
17270 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17271 # into the resulting binary.
17272 hardcode_shlibpath_var=$hardcode_shlibpath_var
17274 # Set to "yes" if building a shared library automatically hardcodes DIR
17275 # into the library and all subsequent libraries and executables linked
17276 # against it.
17277 hardcode_automatic=$hardcode_automatic
17279 # Set to yes if linker adds runtime paths of dependent libraries
17280 # to runtime path list.
17281 inherit_rpath=$inherit_rpath
17283 # Whether libtool must link a program against all its dependency libraries.
17284 link_all_deplibs=$link_all_deplibs
17286 # Set to "yes" if exported symbols are required.
17287 always_export_symbols=$always_export_symbols
17289 # The commands to list exported symbols.
17290 export_symbols_cmds=$lt_export_symbols_cmds
17292 # Symbols that should not be listed in the preloaded symbols.
17293 exclude_expsyms=$lt_exclude_expsyms
17295 # Symbols that must always be exported.
17296 include_expsyms=$lt_include_expsyms
17298 # Commands necessary for linking programs (against libraries) with templates.
17299 prelink_cmds=$lt_prelink_cmds
17301 # Commands necessary for finishing linking programs.
17302 postlink_cmds=$lt_postlink_cmds
17304 # Specify filename containing input files.
17305 file_list_spec=$lt_file_list_spec
17307 # How to hardcode a shared library path into an executable.
17308 hardcode_action=$hardcode_action
17310 # ### END LIBTOOL CONFIG
17312 _LT_EOF
17314 case $host_os in
17315 aix3*)
17316 cat <<\_LT_EOF >> "$cfgfile"
17317 # AIX sometimes has problems with the GCC collect2 program. For some
17318 # reason, if we set the COLLECT_NAMES environment variable, the problems
17319 # vanish in a puff of smoke.
17320 if test "X${COLLECT_NAMES+set}" != Xset; then
17321 COLLECT_NAMES=
17322 export COLLECT_NAMES
17324 _LT_EOF
17326 esac
17329 ltmain="$ac_aux_dir/ltmain.sh"
17332 # We use sed instead of cat because bash on DJGPP gets confused if
17333 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17334 # text mode, it properly converts lines to CR/LF. This bash problem
17335 # is reportedly fixed, but why not run on old versions too?
17336 sed '$q' "$ltmain" >> "$cfgfile" \
17337 || (rm -f "$cfgfile"; exit 1)
17339 if test x"$xsi_shell" = xyes; then
17340 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17341 func_dirname ()\
17343 \ case ${1} in\
17344 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17345 \ * ) func_dirname_result="${3}" ;;\
17346 \ esac\
17347 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17348 && mv -f "$cfgfile.tmp" "$cfgfile" \
17349 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17350 test 0 -eq $? || _lt_function_replace_fail=:
17353 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17354 func_basename ()\
17356 \ func_basename_result="${1##*/}"\
17357 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17358 && mv -f "$cfgfile.tmp" "$cfgfile" \
17359 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17360 test 0 -eq $? || _lt_function_replace_fail=:
17363 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17364 func_dirname_and_basename ()\
17366 \ case ${1} in\
17367 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17368 \ * ) func_dirname_result="${3}" ;;\
17369 \ esac\
17370 \ func_basename_result="${1##*/}"\
17371 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17372 && mv -f "$cfgfile.tmp" "$cfgfile" \
17373 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17374 test 0 -eq $? || _lt_function_replace_fail=:
17377 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17378 func_stripname ()\
17380 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17381 \ # positional parameters, so assign one to ordinary parameter first.\
17382 \ func_stripname_result=${3}\
17383 \ func_stripname_result=${func_stripname_result#"${1}"}\
17384 \ func_stripname_result=${func_stripname_result%"${2}"}\
17385 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17386 && mv -f "$cfgfile.tmp" "$cfgfile" \
17387 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17388 test 0 -eq $? || _lt_function_replace_fail=:
17391 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17392 func_split_long_opt ()\
17394 \ func_split_long_opt_name=${1%%=*}\
17395 \ func_split_long_opt_arg=${1#*=}\
17396 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17397 && mv -f "$cfgfile.tmp" "$cfgfile" \
17398 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17399 test 0 -eq $? || _lt_function_replace_fail=:
17402 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17403 func_split_short_opt ()\
17405 \ func_split_short_opt_arg=${1#??}\
17406 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17407 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17408 && mv -f "$cfgfile.tmp" "$cfgfile" \
17409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17410 test 0 -eq $? || _lt_function_replace_fail=:
17413 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17414 func_lo2o ()\
17416 \ case ${1} in\
17417 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17418 \ *) func_lo2o_result=${1} ;;\
17419 \ esac\
17420 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17421 && mv -f "$cfgfile.tmp" "$cfgfile" \
17422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17423 test 0 -eq $? || _lt_function_replace_fail=:
17426 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17427 func_xform ()\
17429 func_xform_result=${1%.*}.lo\
17430 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17431 && mv -f "$cfgfile.tmp" "$cfgfile" \
17432 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17433 test 0 -eq $? || _lt_function_replace_fail=:
17436 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17437 func_arith ()\
17439 func_arith_result=$(( $* ))\
17440 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17441 && mv -f "$cfgfile.tmp" "$cfgfile" \
17442 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17443 test 0 -eq $? || _lt_function_replace_fail=:
17446 sed -e '/^func_len ()$/,/^} # func_len /c\
17447 func_len ()\
17449 func_len_result=${#1}\
17450 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17451 && mv -f "$cfgfile.tmp" "$cfgfile" \
17452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17453 test 0 -eq $? || _lt_function_replace_fail=:
17457 if test x"$lt_shell_append" = xyes; then
17458 sed -e '/^func_append ()$/,/^} # func_append /c\
17459 func_append ()\
17461 eval "${1}+=\\${2}"\
17462 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17463 && mv -f "$cfgfile.tmp" "$cfgfile" \
17464 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17465 test 0 -eq $? || _lt_function_replace_fail=:
17468 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17469 func_append_quoted ()\
17471 \ func_quote_for_eval "${2}"\
17472 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17473 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17474 && mv -f "$cfgfile.tmp" "$cfgfile" \
17475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17476 test 0 -eq $? || _lt_function_replace_fail=:
17479 # Save a `func_append' function call where possible by direct use of '+='
17480 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17481 && mv -f "$cfgfile.tmp" "$cfgfile" \
17482 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17483 test 0 -eq $? || _lt_function_replace_fail=:
17484 else
17485 # Save a `func_append' function call even when '+=' is not available
17486 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17487 && mv -f "$cfgfile.tmp" "$cfgfile" \
17488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17489 test 0 -eq $? || _lt_function_replace_fail=:
17492 if test x"$_lt_function_replace_fail" = x":"; then
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17494 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17498 mv -f "$cfgfile" "$ofile" ||
17499 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17500 chmod +x "$ofile"
17504 esac
17505 done # for ac_tag
17508 as_fn_exit 0
17509 _ACEOF
17510 ac_clean_files=$ac_clean_files_save
17512 test $ac_write_fail = 0 ||
17513 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17516 # configure is writing to config.log, and then calls config.status.
17517 # config.status does its own redirection, appending to config.log.
17518 # Unfortunately, on DOS this fails, as config.log is still kept open
17519 # by configure, so config.status won't be able to write to it; its
17520 # output is simply discarded. So we exec the FD to /dev/null,
17521 # effectively closing config.log, so it can be properly (re)opened and
17522 # appended to by config.status. When coming back to configure, we
17523 # need to make the FD available again.
17524 if test "$no_create" != yes; then
17525 ac_cs_success=:
17526 ac_config_status_args=
17527 test "$silent" = yes &&
17528 ac_config_status_args="$ac_config_status_args --quiet"
17529 exec 5>/dev/null
17530 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17531 exec 5>>config.log
17532 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17533 # would make configure fail if this is the last instruction.
17534 $ac_cs_success || as_fn_exit 1
17536 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17538 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}