]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ntp/sntp/libevent/configure
Update ntpd to 4.2.8p13 to fix authenticated denial of service.
[FreeBSD/FreeBSD.git] / contrib / ntp / sntp / libevent / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libevent 2.1.5-beta.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
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 ## -------------------- ##
14
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   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78   }
79 fi
80
81
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"
88
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
95 do
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
101
102      ;;
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
108 fi
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
112 fi
113
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='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
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
157   fi
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   *) :
173      ;;
174 esac
175 fi
176 "
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; }
182
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 :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
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
200
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
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
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
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
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
233 fi
234 fi
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
244
245
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
266 fi
267
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."
279   fi
280   exit 1
281 fi
282 fi
283 fi
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
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
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 ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
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/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
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"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
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 ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
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 ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
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 ()
417 {
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
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
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
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
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
444 fi
445
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/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
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
471
472
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 '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
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; }
495
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
506 }
507
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;;
517 *)
518   ECHO_N='-n';;
519 esac
520
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
527 fi
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'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
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
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
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'"
560
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'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
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`
574
575 #
576 # Initializations.
577 #
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=
586
587 # Identity of this package.
588 PACKAGE_NAME='libevent'
589 PACKAGE_TARNAME='libevent'
590 PACKAGE_VERSION='2.1.5-beta'
591 PACKAGE_STRING='libevent 2.1.5-beta'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="event.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"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LEP_LDFLAGS
636 LEP_CPPFLAGS
637 LEP_CFLAGS
638 INSTALL_LIBEVENT_FALSE
639 INSTALL_LIBEVENT_TRUE
640 LIBEVENT_GC_SECTIONS
641 PTHREADS_FALSE
642 PTHREADS_TRUE
643 PTHREAD_CFLAGS
644 PTHREAD_LIBS
645 PTHREAD_CC
646 acx_pthread_config
647 SIGNAL_SUPPORT_FALSE
648 SIGNAL_SUPPORT_TRUE
649 EVPORT_BACKEND_FALSE
650 EVPORT_BACKEND_TRUE
651 EPOLL_BACKEND_FALSE
652 EPOLL_BACKEND_TRUE
653 LIBOBJS
654 KQUEUE_BACKEND_FALSE
655 KQUEUE_BACKEND_TRUE
656 DEVPOLL_BACKEND_FALSE
657 DEVPOLL_BACKEND_TRUE
658 POLL_BACKEND_FALSE
659 POLL_BACKEND_TRUE
660 SELECT_BACKEND_FALSE
661 SELECT_BACKEND_TRUE
662 STRLCPY_IMPL_FALSE
663 STRLCPY_IMPL_TRUE
664 BUILD_WITH_NO_UNDEFINED_FALSE
665 BUILD_WITH_NO_UNDEFINED_TRUE
666 BUILD_CYGWIN_FALSE
667 BUILD_CYGWIN_TRUE
668 BUILD_WIN32_FALSE
669 BUILD_WIN32_TRUE
670 OPENSSL_FALSE
671 OPENSSL_TRUE
672 OPENSSL_LIBS
673 OPENSSL_INCS
674 PKG_CONFIG
675 OPENSSL_LIBADD
676 EV_LIB_GDI
677 EV_LIB_WS32
678 ZLIB_REGRESS_FALSE
679 ZLIB_REGRESS_TRUE
680 ZLIB_LIBS
681 BUILD_REGRESS_FALSE
682 BUILD_REGRESS_TRUE
683 BUILD_SAMPLES_FALSE
684 BUILD_SAMPLES_TRUE
685 LIBTOOL_DEPS
686 LT_SYS_LIBRARY_PATH
687 OTOOL64
688 OTOOL
689 LIPO
690 NMEDIT
691 DSYMUTIL
692 MANIFEST_TOOL
693 RANLIB
694 ac_ct_AR
695 AR
696 DLLTOOL
697 OBJDUMP
698 NM
699 ac_ct_DUMPBIN
700 DUMPBIN
701 LD
702 FGREP
703 LIBTOOL
704 SED
705 LN_S
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 EGREP
715 GREP
716 CPP
717 am__fastdepCC_FALSE
718 am__fastdepCC_TRUE
719 CCDEPMODE
720 am__nodep
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_silent_rules
803 enable_dependency_tracking
804 enable_gcc_warnings
805 enable_gcc_hardening
806 enable_thread_support
807 enable_malloc_replacement
808 enable_openssl
809 enable_debug_mode
810 enable_libevent_install
811 enable_libevent_regress
812 enable_samples
813 enable_function_sections
814 enable_verbose_debug
815 enable_shared
816 enable_static
817 with_pic
818 enable_fast_install
819 with_aix_soname
820 with_gnu_ld
821 with_sysroot
822 enable_libtool_lock
823 enable_largefile
824 '
825       ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CPP
834 LT_SYS_LIBRARY_PATH'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889   # If the previous option needs an argument, assign it.
890   if test -n "$ac_prev"; then
891     eval $ac_prev=\$ac_option
892     ac_prev=
893     continue
894   fi
895
896   case $ac_option in
897   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898   *=)   ac_optarg= ;;
899   *)    ac_optarg=yes ;;
900   esac
901
902   # Accept the important Cygnus configure options, so we can diagnose typos.
903
904   case $ac_dashdash$ac_option in
905   --)
906     ac_dashdash=yes ;;
907
908   -bindir | --bindir | --bindi | --bind | --bin | --bi)
909     ac_prev=bindir ;;
910   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911     bindir=$ac_optarg ;;
912
913   -build | --build | --buil | --bui | --bu)
914     ac_prev=build_alias ;;
915   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916     build_alias=$ac_optarg ;;
917
918   -cache-file | --cache-file | --cache-fil | --cache-fi \
919   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920     ac_prev=cache_file ;;
921   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923     cache_file=$ac_optarg ;;
924
925   --config-cache | -C)
926     cache_file=config.cache ;;
927
928   -datadir | --datadir | --datadi | --datad)
929     ac_prev=datadir ;;
930   -datadir=* | --datadir=* | --datadi=* | --datad=*)
931     datadir=$ac_optarg ;;
932
933   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934   | --dataroo | --dataro | --datar)
935     ac_prev=datarootdir ;;
936   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938     datarootdir=$ac_optarg ;;
939
940   -disable-* | --disable-*)
941     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942     # Reject names that are not valid shell variable names.
943     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944       as_fn_error $? "invalid feature name: $ac_useropt"
945     ac_useropt_orig=$ac_useropt
946     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947     case $ac_user_opts in
948       *"
949 "enable_$ac_useropt"
950 "*) ;;
951       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952          ac_unrecognized_sep=', ';;
953     esac
954     eval enable_$ac_useropt=no ;;
955
956   -docdir | --docdir | --docdi | --doc | --do)
957     ac_prev=docdir ;;
958   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959     docdir=$ac_optarg ;;
960
961   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962     ac_prev=dvidir ;;
963   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964     dvidir=$ac_optarg ;;
965
966   -enable-* | --enable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=\$ac_optarg ;;
981
982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984   | --exec | --exe | --ex)
985     ac_prev=exec_prefix ;;
986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988   | --exec=* | --exe=* | --ex=*)
989     exec_prefix=$ac_optarg ;;
990
991   -gas | --gas | --ga | --g)
992     # Obsolete; use --with-gas.
993     with_gas=yes ;;
994
995   -help | --help | --hel | --he | -h)
996     ac_init_help=long ;;
997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998     ac_init_help=recursive ;;
999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000     ac_init_help=short ;;
1001
1002   -host | --host | --hos | --ho)
1003     ac_prev=host_alias ;;
1004   -host=* | --host=* | --hos=* | --ho=*)
1005     host_alias=$ac_optarg ;;
1006
1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008     ac_prev=htmldir ;;
1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010   | --ht=*)
1011     htmldir=$ac_optarg ;;
1012
1013   -includedir | --includedir | --includedi | --included | --include \
1014   | --includ | --inclu | --incl | --inc)
1015     ac_prev=includedir ;;
1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
1018     includedir=$ac_optarg ;;
1019
1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
1021     ac_prev=infodir ;;
1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023     infodir=$ac_optarg ;;
1024
1025   -libdir | --libdir | --libdi | --libd)
1026     ac_prev=libdir ;;
1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028     libdir=$ac_optarg ;;
1029
1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031   | --libexe | --libex | --libe)
1032     ac_prev=libexecdir ;;
1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034   | --libexe=* | --libex=* | --libe=*)
1035     libexecdir=$ac_optarg ;;
1036
1037   -localedir | --localedir | --localedi | --localed | --locale)
1038     ac_prev=localedir ;;
1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040     localedir=$ac_optarg ;;
1041
1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
1043   | --localstate | --localstat | --localsta | --localst | --locals)
1044     ac_prev=localstatedir ;;
1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047     localstatedir=$ac_optarg ;;
1048
1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050     ac_prev=mandir ;;
1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052     mandir=$ac_optarg ;;
1053
1054   -nfp | --nfp | --nf)
1055     # Obsolete; use --without-fp.
1056     with_fp=no ;;
1057
1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059   | --no-cr | --no-c | -n)
1060     no_create=yes ;;
1061
1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064     no_recursion=yes ;;
1065
1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068   | --oldin | --oldi | --old | --ol | --o)
1069     ac_prev=oldincludedir ;;
1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073     oldincludedir=$ac_optarg ;;
1074
1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076     ac_prev=prefix ;;
1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078     prefix=$ac_optarg ;;
1079
1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081   | --program-pre | --program-pr | --program-p)
1082     ac_prev=program_prefix ;;
1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085     program_prefix=$ac_optarg ;;
1086
1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088   | --program-suf | --program-su | --program-s)
1089     ac_prev=program_suffix ;;
1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092     program_suffix=$ac_optarg ;;
1093
1094   -program-transform-name | --program-transform-name \
1095   | --program-transform-nam | --program-transform-na \
1096   | --program-transform-n | --program-transform- \
1097   | --program-transform | --program-transfor \
1098   | --program-transfo | --program-transf \
1099   | --program-trans | --program-tran \
1100   | --progr-tra | --program-tr | --program-t)
1101     ac_prev=program_transform_name ;;
1102   -program-transform-name=* | --program-transform-name=* \
1103   | --program-transform-nam=* | --program-transform-na=* \
1104   | --program-transform-n=* | --program-transform-=* \
1105   | --program-transform=* | --program-transfor=* \
1106   | --program-transfo=* | --program-transf=* \
1107   | --program-trans=* | --program-tran=* \
1108   | --progr-tra=* | --program-tr=* | --program-t=*)
1109     program_transform_name=$ac_optarg ;;
1110
1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112     ac_prev=pdfdir ;;
1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114     pdfdir=$ac_optarg ;;
1115
1116   -psdir | --psdir | --psdi | --psd | --ps)
1117     ac_prev=psdir ;;
1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119     psdir=$ac_optarg ;;
1120
1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122   | -silent | --silent | --silen | --sile | --sil)
1123     silent=yes ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174       as_fn_error $? "invalid package name: $ac_useropt"
1175     ac_useropt_orig=$ac_useropt
1176     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177     case $ac_user_opts in
1178       *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182          ac_unrecognized_sep=', ';;
1183     esac
1184     eval with_$ac_useropt=\$ac_optarg ;;
1185
1186   -without-* | --without-*)
1187     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190       as_fn_error $? "invalid package name: $ac_useropt"
1191     ac_useropt_orig=$ac_useropt
1192     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193     case $ac_user_opts in
1194       *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198          ac_unrecognized_sep=', ';;
1199     esac
1200     eval with_$ac_useropt=no ;;
1201
1202   --x)
1203     # Obsolete; use --with-x.
1204     with_x=yes ;;
1205
1206   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207   | --x-incl | --x-inc | --x-in | --x-i)
1208     ac_prev=x_includes ;;
1209   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211     x_includes=$ac_optarg ;;
1212
1213   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215     ac_prev=x_libraries ;;
1216   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218     x_libraries=$ac_optarg ;;
1219
1220   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222     ;;
1223
1224   *=*)
1225     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226     # Reject names that are not valid shell variable names.
1227     case $ac_envvar in #(
1228       '' | [0-9]* | *[!_$as_cr_alnum]* )
1229       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230     esac
1231     eval $ac_envvar=\$ac_optarg
1232     export $ac_envvar ;;
1233
1234   *)
1235     # FIXME: should be removed in autoconf 3.0.
1236     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240     ;;
1241
1242   esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247   as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251   case $enable_option_checking in
1252     no) ;;
1253     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255   esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260                 datadir sysconfdir sharedstatedir localstatedir includedir \
1261                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262                 libdir localedir mandir
1263 do
1264   eval ac_val=\$$ac_var
1265   # Remove trailing slashes.
1266   case $ac_val in
1267     */ )
1268       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269       eval $ac_var=\$ac_val;;
1270   esac
1271   # Be sure to have absolute directory names.
1272   case $ac_val in
1273     [\\/$]* | ?:[\\/]* )  continue;;
1274     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275   esac
1276   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288   if test "x$build_alias" = x; then
1289     cross_compiling=maybe
1290   elif test "x$build_alias" != "x$host_alias"; then
1291     cross_compiling=yes
1292   fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304   as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311   ac_srcdir_defaulted=yes
1312   # Try the directory containing this script, then the parent directory.
1313   ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315          X"$as_myself" : 'X\(//\)[^/]' \| \
1316          X"$as_myself" : 'X\(//\)$' \| \
1317          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\/\)[^/].*/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)$/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\).*/{
1332             s//\1/
1333             q
1334           }
1335           s/.*/./; q'`
1336   srcdir=$ac_confdir
1337   if test ! -r "$srcdir/$ac_unique_file"; then
1338     srcdir=..
1339   fi
1340 else
1341   ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350         pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353   srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363   eval ac_env_${ac_var}_value=\$${ac_var}
1364   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372   # Omit some internal or obsolete options to make the list less imposing.
1373   # This message is too long to be a string in the A/UX 3.1 sh.
1374   cat <<_ACEOF
1375 \`configure' configures libevent 2.1.5-beta to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE.  See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385   -h, --help              display this help and exit
1386       --help=short        display options specific to this package
1387       --help=recursive    display the short help of all the included packages
1388   -V, --version           display version information and exit
1389   -q, --quiet, --silent   do not print \`checking ...' messages
1390       --cache-file=FILE   cache test results in FILE [disabled]
1391   -C, --config-cache      alias for \`--cache-file=config.cache'
1392   -n, --no-create         do not create output files
1393       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396   --prefix=PREFIX         install architecture-independent files in PREFIX
1397                           [$ac_default_prefix]
1398   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1399                           [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409   --bindir=DIR            user executables [EPREFIX/bin]
1410   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1411   --libexecdir=DIR        program executables [EPREFIX/libexec]
1412   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1413   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1414   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1415   --libdir=DIR            object code libraries [EPREFIX/lib]
1416   --includedir=DIR        C header files [PREFIX/include]
1417   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1418   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1419   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1420   --infodir=DIR           info documentation [DATAROOTDIR/info]
1421   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1422   --mandir=DIR            man documentation [DATAROOTDIR/man]
1423   --docdir=DIR            documentation root [DATAROOTDIR/doc/libevent]
1424   --htmldir=DIR           html documentation [DOCDIR]
1425   --dvidir=DIR            dvi documentation [DOCDIR]
1426   --pdfdir=DIR            pdf documentation [DOCDIR]
1427   --psdir=DIR             ps documentation [DOCDIR]
1428 _ACEOF
1429
1430   cat <<\_ACEOF
1431
1432 Program names:
1433   --program-prefix=PREFIX            prepend PREFIX to installed program names
1434   --program-suffix=SUFFIX            append SUFFIX to installed program names
1435   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1436
1437 System types:
1438   --build=BUILD     configure for building on BUILD [guessed]
1439   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444   case $ac_init_help in
1445      short | recursive ) echo "Configuration of libevent 2.1.5-beta:";;
1446    esac
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-option-checking  ignore unrecognized --enable/--with options
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --enable-silent-rules   less verbose build output (undo: "make V=1")
1454   --disable-silent-rules  verbose build output (undo: "make V=0")
1455   --enable-dependency-tracking
1456                           do not reject slow dependency extractors
1457   --disable-dependency-tracking
1458                           speeds up one-time build
1459   --disable-gcc-warnings  disable verbose warnings with GCC
1460   --enable-gcc-hardening  enable compiler security checks
1461   --disable-thread-support
1462                           disable support for threading
1463   --disable-malloc-replacement
1464                           disable support for replacing the memory mgt
1465                           functions
1466   --disable-openssl       disable support for openssl encryption
1467   --disable-debug-mode    disable support for running in debug mode
1468   --disable-libevent-install, disable installation of libevent
1469
1470   --disable-libevent-regress, skip regress in make check
1471
1472   --disable-samples, skip building of sample programs
1473
1474   --enable-function-sections, make static library allow smaller binaries with --gc-sections
1475
1476   --enable-verbose-debug, verbose debug logging
1477
1478   --enable-shared[=PKGS]  build shared libraries [default=yes]
1479   --enable-static[=PKGS]  build static libraries [default=yes]
1480   --enable-fast-install[=PKGS]
1481                           optimize for fast installation [default=yes]
1482   --disable-libtool-lock  avoid locking (might break parallel builds)
1483   --disable-largefile     omit support for large files
1484
1485 Optional Packages:
1486   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1487   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1488   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1489                           both]
1490   --with-aix-soname=aix|svr4|both
1491                           shared library versioning (aka "SONAME") variant to
1492                           provide on AIX, [default=aix].
1493   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1494   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1495                           compiler's sysroot if not specified).
1496
1497 Some influential environment variables:
1498   CC          C compiler command
1499   CFLAGS      C compiler flags
1500   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1501               nonstandard directory <lib dir>
1502   LIBS        libraries to pass to the linker, e.g. -l<library>
1503   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1504               you have headers in a nonstandard directory <include dir>
1505   CPP         C preprocessor
1506   LT_SYS_LIBRARY_PATH
1507               User-defined run-time library search path.
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 Report bugs to the package provider.
1513 _ACEOF
1514 ac_status=$?
1515 fi
1516
1517 if test "$ac_init_help" = "recursive"; then
1518   # If there are subdirs, report their specific --help.
1519   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520     test -d "$ac_dir" ||
1521       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522       continue
1523     ac_builddir=.
1524
1525 case "$ac_dir" in
1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *)
1528   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529   # A ".." for each directory in $ac_dir_suffix.
1530   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531   case $ac_top_builddir_sub in
1532   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534   esac ;;
1535 esac
1536 ac_abs_top_builddir=$ac_pwd
1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538 # for backward compatibility:
1539 ac_top_builddir=$ac_top_build_prefix
1540
1541 case $srcdir in
1542   .)  # We are building in place.
1543     ac_srcdir=.
1544     ac_top_srcdir=$ac_top_builddir_sub
1545     ac_abs_top_srcdir=$ac_pwd ;;
1546   [\\/]* | ?:[\\/]* )  # Absolute name.
1547     ac_srcdir=$srcdir$ac_dir_suffix;
1548     ac_top_srcdir=$srcdir
1549     ac_abs_top_srcdir=$srcdir ;;
1550   *) # Relative name.
1551     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552     ac_top_srcdir=$ac_top_build_prefix$srcdir
1553     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 esac
1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557     cd "$ac_dir" || { ac_status=$?; continue; }
1558     # Check for guested configure.
1559     if test -f "$ac_srcdir/configure.gnu"; then
1560       echo &&
1561       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562     elif test -f "$ac_srcdir/configure"; then
1563       echo &&
1564       $SHELL "$ac_srcdir/configure" --help=recursive
1565     else
1566       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567     fi || ac_status=$?
1568     cd "$ac_pwd" || { ac_status=$?; break; }
1569   done
1570 fi
1571
1572 test -n "$ac_init_help" && exit $ac_status
1573 if $ac_init_version; then
1574   cat <<\_ACEOF
1575 libevent configure 2.1.5-beta
1576 generated by GNU Autoconf 2.69
1577
1578 Copyright (C) 2012 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1581 _ACEOF
1582   exit
1583 fi
1584
1585 ## ------------------------ ##
1586 ## Autoconf initialization. ##
1587 ## ------------------------ ##
1588
1589 # ac_fn_c_try_compile LINENO
1590 # --------------------------
1591 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1592 ac_fn_c_try_compile ()
1593 {
1594   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595   rm -f conftest.$ac_objext
1596   if { { ac_try="$ac_compile"
1597 case "(($ac_try" in
1598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599   *) ac_try_echo=$ac_try;;
1600 esac
1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602 $as_echo "$ac_try_echo"; } >&5
1603   (eval "$ac_compile") 2>conftest.err
1604   ac_status=$?
1605   if test -s conftest.err; then
1606     grep -v '^ *+' conftest.err >conftest.er1
1607     cat conftest.er1 >&5
1608     mv -f conftest.er1 conftest.err
1609   fi
1610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611   test $ac_status = 0; } && {
1612          test -z "$ac_c_werror_flag" ||
1613          test ! -s conftest.err
1614        } && test -s conftest.$ac_objext; then :
1615   ac_retval=0
1616 else
1617   $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620         ac_retval=1
1621 fi
1622   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623   as_fn_set_status $ac_retval
1624
1625 } # ac_fn_c_try_compile
1626
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_cpp ()
1631 {
1632   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633   if { { ac_try="$ac_cpp conftest.$ac_ext"
1634 case "(($ac_try" in
1635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636   *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641   ac_status=$?
1642   if test -s conftest.err; then
1643     grep -v '^ *+' conftest.err >conftest.er1
1644     cat conftest.er1 >&5
1645     mv -f conftest.er1 conftest.err
1646   fi
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } > conftest.i && {
1649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650          test ! -s conftest.err
1651        }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657     ac_retval=1
1658 fi
1659   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660   as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_cpp
1663
1664 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1665 # -------------------------------------------------------
1666 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1667 # the include files in INCLUDES and setting the cache variable VAR
1668 # accordingly.
1669 ac_fn_c_check_header_mongrel ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   if eval \${$3+:} false; then :
1673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674 $as_echo_n "checking for $2... " >&6; }
1675 if eval \${$3+:} false; then :
1676   $as_echo_n "(cached) " >&6
1677 fi
1678 eval ac_res=\$$3
1679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681 else
1682   # Is the header compilable?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1684 $as_echo_n "checking $2 usability... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h.  */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691   ac_header_compiler=yes
1692 else
1693   ac_header_compiler=no
1694 fi
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1697 $as_echo "$ac_header_compiler" >&6; }
1698
1699 # Is the header present?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1701 $as_echo_n "checking $2 presence... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h.  */
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_cpp "$LINENO"; then :
1707   ac_header_preproc=yes
1708 else
1709   ac_header_preproc=no
1710 fi
1711 rm -f conftest.err conftest.i conftest.$ac_ext
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1713 $as_echo "$ac_header_preproc" >&6; }
1714
1715 # So?  What about this header?
1716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1717   yes:no: )
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1719 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722     ;;
1723   no:yes:* )
1724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1725 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1727 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1729 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1731 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734     ;;
1735 esac
1736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739   $as_echo_n "(cached) " >&6
1740 else
1741   eval "$3=\$ac_header_compiler"
1742 fi
1743 eval ac_res=\$$3
1744                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 fi
1747   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748
1749 } # ac_fn_c_check_header_mongrel
1750
1751 # ac_fn_c_try_run LINENO
1752 # ----------------------
1753 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1754 # that executables *can* be run.
1755 ac_fn_c_try_run ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   if { { ac_try="$ac_link"
1759 case "(($ac_try" in
1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761   *) ac_try_echo=$ac_try;;
1762 esac
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765   (eval "$ac_link") 2>&5
1766   ac_status=$?
1767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1769   { { case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_try") 2>&5
1776   ac_status=$?
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; }; }; then :
1779   ac_retval=0
1780 else
1781   $as_echo "$as_me: program exited with status $ac_status" >&5
1782        $as_echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1784
1785        ac_retval=$ac_status
1786 fi
1787   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789   as_fn_set_status $ac_retval
1790
1791 } # ac_fn_c_try_run
1792
1793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists and can be compiled using the include files in
1796 # INCLUDES, setting the cache variable VAR accordingly.
1797 ac_fn_c_check_header_compile ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval \${$3+:} false; then :
1803   $as_echo_n "(cached) " >&6
1804 else
1805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h.  */
1807 $4
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1811   eval "$3=yes"
1812 else
1813   eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_header_compile
1823
1824 # ac_fn_c_try_link LINENO
1825 # -----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_link ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   rm -f conftest.$ac_objext conftest$ac_exeext
1831   if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834   *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838   (eval "$ac_link") 2>conftest.err
1839   ac_status=$?
1840   if test -s conftest.err; then
1841     grep -v '^ *+' conftest.err >conftest.er1
1842     cat conftest.er1 >&5
1843     mv -f conftest.er1 conftest.err
1844   fi
1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846   test $ac_status = 0; } && {
1847          test -z "$ac_c_werror_flag" ||
1848          test ! -s conftest.err
1849        } && test -s conftest$ac_exeext && {
1850          test "$cross_compiling" = yes ||
1851          test -x conftest$ac_exeext
1852        }; then :
1853   ac_retval=0
1854 else
1855   $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858         ac_retval=1
1859 fi
1860   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1861   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1862   # interfere with the next link command; also delete a directory that is
1863   # left behind by Apple's compiler.  We do this before executing the actions.
1864   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866   as_fn_set_status $ac_retval
1867
1868 } # ac_fn_c_try_link
1869
1870 # ac_fn_c_check_func LINENO FUNC VAR
1871 # ----------------------------------
1872 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1873 ac_fn_c_check_func ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1877 $as_echo_n "checking for $2... " >&6; }
1878 if eval \${$3+:} false; then :
1879   $as_echo_n "(cached) " >&6
1880 else
1881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h.  */
1883 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1885 #define $2 innocuous_$2
1886
1887 /* System header to define __stub macros and hopefully few prototypes,
1888     which can conflict with char $2 (); below.
1889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1890     <limits.h> exists even on freestanding compilers.  */
1891
1892 #ifdef __STDC__
1893 # include <limits.h>
1894 #else
1895 # include <assert.h>
1896 #endif
1897
1898 #undef $2
1899
1900 /* Override any GCC internal prototype to avoid an error.
1901    Use char because int might match the return type of a GCC
1902    builtin and then its argument prototype would still apply.  */
1903 #ifdef __cplusplus
1904 extern "C"
1905 #endif
1906 char $2 ();
1907 /* The GNU C library defines this for functions which it implements
1908     to always fail with ENOSYS.  Some functions are actually named
1909     something starting with __ and the normal name is an alias.  */
1910 #if defined __stub_$2 || defined __stub___$2
1911 choke me
1912 #endif
1913
1914 int
1915 main ()
1916 {
1917 return $2 ();
1918   ;
1919   return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_link "$LINENO"; then :
1923   eval "$3=yes"
1924 else
1925   eval "$3=no"
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext \
1928     conftest$ac_exeext conftest.$ac_ext
1929 fi
1930 eval ac_res=\$$3
1931                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935 } # ac_fn_c_check_func
1936
1937 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1938 # ---------------------------------------------
1939 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1940 # accordingly.
1941 ac_fn_c_check_decl ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   as_decl_name=`echo $2|sed 's/ *(.*//'`
1945   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1947 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1948 if eval \${$3+:} false; then :
1949   $as_echo_n "(cached) " >&6
1950 else
1951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h.  */
1953 $4
1954 int
1955 main ()
1956 {
1957 #ifndef $as_decl_name
1958 #ifdef __cplusplus
1959   (void) $as_decl_use;
1960 #else
1961   (void) $as_decl_name;
1962 #endif
1963 #endif
1964
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970   eval "$3=yes"
1971 else
1972   eval "$3=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 eval ac_res=\$$3
1977                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980
1981 } # ac_fn_c_check_decl
1982
1983 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1984 # -------------------------------------------
1985 # Tests whether TYPE exists after having included INCLUDES, setting cache
1986 # variable VAR accordingly.
1987 ac_fn_c_check_type ()
1988 {
1989   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993   $as_echo_n "(cached) " >&6
1994 else
1995   eval "$3=no"
1996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h.  */
1998 $4
1999 int
2000 main ()
2001 {
2002 if (sizeof ($2))
2003          return 0;
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h.  */
2011 $4
2012 int
2013 main ()
2014 {
2015 if (sizeof (($2)))
2016             return 0;
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022
2023 else
2024   eval "$3=yes"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 fi
2030 eval ac_res=\$$3
2031                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034
2035 } # ac_fn_c_check_type
2036
2037 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2038 # --------------------------------------------
2039 # Tries to find the compile-time value of EXPR in a program that includes
2040 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2041 # computed
2042 ac_fn_c_compute_int ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   if test "$cross_compiling" = yes; then
2046     # Depending upon the size, compute the lo and hi bounds.
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h.  */
2049 $4
2050 int
2051 main ()
2052 {
2053 static int test_array [1 - 2 * !(($2) >= 0)];
2054 test_array [0] = 0;
2055 return test_array [0];
2056
2057   ;
2058   return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062   ac_lo=0 ac_mid=0
2063   while :; do
2064     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h.  */
2066 $4
2067 int
2068 main ()
2069 {
2070 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2071 test_array [0] = 0;
2072 return test_array [0];
2073
2074   ;
2075   return 0;
2076 }
2077 _ACEOF
2078 if ac_fn_c_try_compile "$LINENO"; then :
2079   ac_hi=$ac_mid; break
2080 else
2081   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2082                         if test $ac_lo -le $ac_mid; then
2083                           ac_lo= ac_hi=
2084                           break
2085                         fi
2086                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089   done
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 $4
2094 int
2095 main ()
2096 {
2097 static int test_array [1 - 2 * !(($2) < 0)];
2098 test_array [0] = 0;
2099 return test_array [0];
2100
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   ac_hi=-1 ac_mid=-1
2107   while :; do
2108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h.  */
2110 $4
2111 int
2112 main ()
2113 {
2114 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2115 test_array [0] = 0;
2116 return test_array [0];
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123   ac_lo=$ac_mid; break
2124 else
2125   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2126                         if test $ac_mid -le $ac_hi; then
2127                           ac_lo= ac_hi=
2128                           break
2129                         fi
2130                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2131 fi
2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133   done
2134 else
2135   ac_lo= ac_hi=
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 # Binary search between lo and hi bounds.
2141 while test "x$ac_lo" != "x$ac_hi"; do
2142   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h.  */
2145 $4
2146 int
2147 main ()
2148 {
2149 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 test_array [0] = 0;
2151 return test_array [0];
2152
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2158   ac_hi=$ac_mid
2159 else
2160   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 done
2164 case $ac_lo in #((
2165 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2166 '') ac_retval=1 ;;
2167 esac
2168   else
2169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h.  */
2171 $4
2172 static long int longval () { return $2; }
2173 static unsigned long int ulongval () { return $2; }
2174 #include <stdio.h>
2175 #include <stdlib.h>
2176 int
2177 main ()
2178 {
2179
2180   FILE *f = fopen ("conftest.val", "w");
2181   if (! f)
2182     return 1;
2183   if (($2) < 0)
2184     {
2185       long int i = longval ();
2186       if (i != ($2))
2187         return 1;
2188       fprintf (f, "%ld", i);
2189     }
2190   else
2191     {
2192       unsigned long int i = ulongval ();
2193       if (i != ($2))
2194         return 1;
2195       fprintf (f, "%lu", i);
2196     }
2197   /* Do not output a trailing newline, as this causes \r\n confusion
2198      on some platforms.  */
2199   return ferror (f) || fclose (f) != 0;
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_run "$LINENO"; then :
2206   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2207 else
2208   ac_retval=1
2209 fi
2210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2211   conftest.$ac_objext conftest.beam conftest.$ac_ext
2212 rm -f conftest.val
2213
2214   fi
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216   as_fn_set_status $ac_retval
2217
2218 } # ac_fn_c_compute_int
2219
2220 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2221 # ----------------------------------------------------
2222 # Tries to find if the field MEMBER exists in type AGGR, after including
2223 # INCLUDES, setting cache variable VAR accordingly.
2224 ac_fn_c_check_member ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2228 $as_echo_n "checking for $2.$3... " >&6; }
2229 if eval \${$4+:} false; then :
2230   $as_echo_n "(cached) " >&6
2231 else
2232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $5
2235 int
2236 main ()
2237 {
2238 static $2 ac_aggr;
2239 if (ac_aggr.$3)
2240 return 0;
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246   eval "$4=yes"
2247 else
2248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h.  */
2250 $5
2251 int
2252 main ()
2253 {
2254 static $2 ac_aggr;
2255 if (sizeof ac_aggr.$3)
2256 return 0;
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 if ac_fn_c_try_compile "$LINENO"; then :
2262   eval "$4=yes"
2263 else
2264   eval "$4=no"
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 eval ac_res=\$$4
2271                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272 $as_echo "$ac_res" >&6; }
2273   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2274
2275 } # ac_fn_c_check_member
2276 cat >config.log <<_ACEOF
2277 This file contains any messages produced by compilers while
2278 running configure, to aid debugging if configure makes a mistake.
2279
2280 It was created by libevent $as_me 2.1.5-beta, which was
2281 generated by GNU Autoconf 2.69.  Invocation command line was
2282
2283   $ $0 $@
2284
2285 _ACEOF
2286 exec 5>>config.log
2287 {
2288 cat <<_ASUNAME
2289 ## --------- ##
2290 ## Platform. ##
2291 ## --------- ##
2292
2293 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
2302 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
2310 _ASUNAME
2311
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315   IFS=$as_save_IFS
2316   test -z "$as_dir" && as_dir=.
2317     $as_echo "PATH: $as_dir"
2318   done
2319 IFS=$as_save_IFS
2320
2321 } >&5
2322
2323 cat >&5 <<_ACEOF
2324
2325
2326 ## ----------- ##
2327 ## Core tests. ##
2328 ## ----------- ##
2329
2330 _ACEOF
2331
2332
2333 # Keep a trace of the command line.
2334 # Strip out --no-create and --no-recursion so they do not pile up.
2335 # Strip out --silent because we don't want to record it for future runs.
2336 # Also quote any args containing shell meta-characters.
2337 # Make two passes to allow for proper duplicate-argument suppression.
2338 ac_configure_args=
2339 ac_configure_args0=
2340 ac_configure_args1=
2341 ac_must_keep_next=false
2342 for ac_pass in 1 2
2343 do
2344   for ac_arg
2345   do
2346     case $ac_arg in
2347     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349     | -silent | --silent | --silen | --sile | --sil)
2350       continue ;;
2351     *\'*)
2352       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353     esac
2354     case $ac_pass in
2355     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356     2)
2357       as_fn_append ac_configure_args1 " '$ac_arg'"
2358       if test $ac_must_keep_next = true; then
2359         ac_must_keep_next=false # Got value, back to normal.
2360       else
2361         case $ac_arg in
2362           *=* | --config-cache | -C | -disable-* | --disable-* \
2363           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365           | -with-* | --with-* | -without-* | --without-* | --x)
2366             case "$ac_configure_args0 " in
2367               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368             esac
2369             ;;
2370           -* ) ac_must_keep_next=true ;;
2371         esac
2372       fi
2373       as_fn_append ac_configure_args " '$ac_arg'"
2374       ;;
2375     esac
2376   done
2377 done
2378 { ac_configure_args0=; unset ac_configure_args0;}
2379 { ac_configure_args1=; unset ac_configure_args1;}
2380
2381 # When interrupted or exit'd, cleanup temporary files, and complete
2382 # config.log.  We remove comments because anyway the quotes in there
2383 # would cause problems or look ugly.
2384 # WARNING: Use '\'' to represent an apostrophe within the trap.
2385 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386 trap 'exit_status=$?
2387   # Save into config.log some information that might help in debugging.
2388   {
2389     echo
2390
2391     $as_echo "## ---------------- ##
2392 ## Cache variables. ##
2393 ## ---------------- ##"
2394     echo
2395     # The following way of writing the cache mishandles newlines in values,
2396 (
2397   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2398     eval ac_val=\$$ac_var
2399     case $ac_val in #(
2400     *${as_nl}*)
2401       case $ac_var in #(
2402       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2404       esac
2405       case $ac_var in #(
2406       _ | IFS | as_nl) ;; #(
2407       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2408       *) { eval $ac_var=; unset $ac_var;} ;;
2409       esac ;;
2410     esac
2411   done
2412   (set) 2>&1 |
2413     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2414     *${as_nl}ac_space=\ *)
2415       sed -n \
2416         "s/'\''/'\''\\\\'\'''\''/g;
2417           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2418       ;; #(
2419     *)
2420       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421       ;;
2422     esac |
2423     sort
2424 )
2425     echo
2426
2427     $as_echo "## ----------------- ##
2428 ## Output variables. ##
2429 ## ----------------- ##"
2430     echo
2431     for ac_var in $ac_subst_vars
2432     do
2433       eval ac_val=\$$ac_var
2434       case $ac_val in
2435       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436       esac
2437       $as_echo "$ac_var='\''$ac_val'\''"
2438     done | sort
2439     echo
2440
2441     if test -n "$ac_subst_files"; then
2442       $as_echo "## ------------------- ##
2443 ## File substitutions. ##
2444 ## ------------------- ##"
2445       echo
2446       for ac_var in $ac_subst_files
2447       do
2448         eval ac_val=\$$ac_var
2449         case $ac_val in
2450         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2451         esac
2452         $as_echo "$ac_var='\''$ac_val'\''"
2453       done | sort
2454       echo
2455     fi
2456
2457     if test -s confdefs.h; then
2458       $as_echo "## ----------- ##
2459 ## confdefs.h. ##
2460 ## ----------- ##"
2461       echo
2462       cat confdefs.h
2463       echo
2464     fi
2465     test "$ac_signal" != 0 &&
2466       $as_echo "$as_me: caught signal $ac_signal"
2467     $as_echo "$as_me: exit $exit_status"
2468   } >&5
2469   rm -f core *.core core.conftest.* &&
2470     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2471     exit $exit_status
2472 ' 0
2473 for ac_signal in 1 2 13 15; do
2474   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2475 done
2476 ac_signal=0
2477
2478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2479 rm -f -r conftest* confdefs.h
2480
2481 $as_echo "/* confdefs.h */" > confdefs.h
2482
2483 # Predefined preprocessor variables.
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_NAME "$PACKAGE_NAME"
2487 _ACEOF
2488
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2491 _ACEOF
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2495 _ACEOF
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_STRING "$PACKAGE_STRING"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_URL "$PACKAGE_URL"
2507 _ACEOF
2508
2509
2510 # Let the site file select an alternate cache file if it wants to.
2511 # Prefer an explicitly selected file to automatically selected ones.
2512 ac_site_file1=NONE
2513 ac_site_file2=NONE
2514 if test -n "$CONFIG_SITE"; then
2515   # We do not want a PATH search for config.site.
2516   case $CONFIG_SITE in #((
2517     -*)  ac_site_file1=./$CONFIG_SITE;;
2518     */*) ac_site_file1=$CONFIG_SITE;;
2519     *)   ac_site_file1=./$CONFIG_SITE;;
2520   esac
2521 elif test "x$prefix" != xNONE; then
2522   ac_site_file1=$prefix/share/config.site
2523   ac_site_file2=$prefix/etc/config.site
2524 else
2525   ac_site_file1=$ac_default_prefix/share/config.site
2526   ac_site_file2=$ac_default_prefix/etc/config.site
2527 fi
2528 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2529 do
2530   test "x$ac_site_file" = xNONE && continue
2531   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2532     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2533 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2534     sed 's/^/| /' "$ac_site_file" >&5
2535     . "$ac_site_file" \
2536       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538 as_fn_error $? "failed to load site script $ac_site_file
2539 See \`config.log' for more details" "$LINENO" 5; }
2540   fi
2541 done
2542
2543 if test -r "$cache_file"; then
2544   # Some versions of bash will fail to source /dev/null (special files
2545   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2546   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2547     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2548 $as_echo "$as_me: loading cache $cache_file" >&6;}
2549     case $cache_file in
2550       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2551       *)                      . "./$cache_file";;
2552     esac
2553   fi
2554 else
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2556 $as_echo "$as_me: creating cache $cache_file" >&6;}
2557   >$cache_file
2558 fi
2559
2560 # Check that the precious variables saved in the cache have kept the same
2561 # value.
2562 ac_cache_corrupted=false
2563 for ac_var in $ac_precious_vars; do
2564   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2565   eval ac_new_set=\$ac_env_${ac_var}_set
2566   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2567   eval ac_new_val=\$ac_env_${ac_var}_value
2568   case $ac_old_set,$ac_new_set in
2569     set,)
2570       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2572       ac_cache_corrupted=: ;;
2573     ,set)
2574       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2575 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2576       ac_cache_corrupted=: ;;
2577     ,);;
2578     *)
2579       if test "x$ac_old_val" != "x$ac_new_val"; then
2580         # differences in whitespace do not lead to failure.
2581         ac_old_val_w=`echo x $ac_old_val`
2582         ac_new_val_w=`echo x $ac_new_val`
2583         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2584           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2585 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2586           ac_cache_corrupted=:
2587         else
2588           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2589 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2590           eval $ac_var=\$ac_old_val
2591         fi
2592         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2593 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2594         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2595 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2596       fi;;
2597   esac
2598   # Pass precious variables to config.status.
2599   if test "$ac_new_set" = set; then
2600     case $ac_new_val in
2601     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2602     *) ac_arg=$ac_var=$ac_new_val ;;
2603     esac
2604     case " $ac_configure_args " in
2605       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2606       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607     esac
2608   fi
2609 done
2610 if $ac_cache_corrupted; then
2611   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2613   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2614 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2615   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2616 fi
2617 ## -------------------- ##
2618 ## Main body of script. ##
2619 ## -------------------- ##
2620
2621 ac_ext=c
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626
2627
2628
2629
2630
2631
2632 ac_aux_dir=
2633 for ac_dir in build-aux "$srcdir"/build-aux; do
2634   if test -f "$ac_dir/install-sh"; then
2635     ac_aux_dir=$ac_dir
2636     ac_install_sh="$ac_aux_dir/install-sh -c"
2637     break
2638   elif test -f "$ac_dir/install.sh"; then
2639     ac_aux_dir=$ac_dir
2640     ac_install_sh="$ac_aux_dir/install.sh -c"
2641     break
2642   elif test -f "$ac_dir/shtool"; then
2643     ac_aux_dir=$ac_dir
2644     ac_install_sh="$ac_aux_dir/shtool install -c"
2645     break
2646   fi
2647 done
2648 if test -z "$ac_aux_dir"; then
2649   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2650 fi
2651
2652 # These three variables are undocumented and unsupported,
2653 # and are intended to be withdrawn in a future Autoconf release.
2654 # They can cause serious problems if a builder's source tree is in a directory
2655 # whose full name contains unusual characters.
2656 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2657 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2658 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2659
2660
2661 am__api_version='1.15'
2662
2663 # Find a good install program.  We prefer a C program (faster),
2664 # so one script is as good as another.  But avoid the broken or
2665 # incompatible versions:
2666 # SysV /etc/install, /usr/sbin/install
2667 # SunOS /usr/etc/install
2668 # IRIX /sbin/install
2669 # AIX /bin/install
2670 # AmigaOS /C/install, which installs bootblocks on floppy discs
2671 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2672 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2673 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2674 # OS/2's system install, which has a completely different semantic
2675 # ./install, which can be erroneously created by make from ./install.sh.
2676 # Reject install programs that cannot install multiple files.
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2678 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2679 if test -z "$INSTALL"; then
2680 if ${ac_cv_path_install+:} false; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688     # Account for people who put trailing slashes in PATH elements.
2689 case $as_dir/ in #((
2690   ./ | .// | /[cC]/* | \
2691   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2692   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2693   /usr/ucb/* ) ;;
2694   *)
2695     # OSF1 and SCO ODT 3.0 have their own names for install.
2696     # Don't use installbsd from OSF since it installs stuff as root
2697     # by default.
2698     for ac_prog in ginstall scoinst install; do
2699       for ac_exec_ext in '' $ac_executable_extensions; do
2700         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2701           if test $ac_prog = install &&
2702             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2703             # AIX install.  It has an incompatible calling convention.
2704             :
2705           elif test $ac_prog = install &&
2706             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707             # program-specific install script used by HP pwplus--don't use.
2708             :
2709           else
2710             rm -rf conftest.one conftest.two conftest.dir
2711             echo one > conftest.one
2712             echo two > conftest.two
2713             mkdir conftest.dir
2714             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2715               test -s conftest.one && test -s conftest.two &&
2716               test -s conftest.dir/conftest.one &&
2717               test -s conftest.dir/conftest.two
2718             then
2719               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2720               break 3
2721             fi
2722           fi
2723         fi
2724       done
2725     done
2726     ;;
2727 esac
2728
2729   done
2730 IFS=$as_save_IFS
2731
2732 rm -rf conftest.one conftest.two conftest.dir
2733
2734 fi
2735   if test "${ac_cv_path_install+set}" = set; then
2736     INSTALL=$ac_cv_path_install
2737   else
2738     # As a last resort, use the slow shell script.  Don't cache a
2739     # value for INSTALL within a source directory, because that will
2740     # break other packages using the cache if that directory is
2741     # removed, or if the value is a relative name.
2742     INSTALL=$ac_install_sh
2743   fi
2744 fi
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2746 $as_echo "$INSTALL" >&6; }
2747
2748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2749 # It thinks the first close brace ends the variable substitution.
2750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2751
2752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2753
2754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2757 $as_echo_n "checking whether build environment is sane... " >&6; }
2758 # Reject unsafe characters in $srcdir or the absolute working directory
2759 # name.  Accept space and tab only in the latter.
2760 am_lf='
2761 '
2762 case `pwd` in
2763   *[\\\"\#\$\&\'\`$am_lf]*)
2764     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2765 esac
2766 case $srcdir in
2767   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2768     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2769 esac
2770
2771 # Do 'set' in a subshell so we don't clobber the current shell's
2772 # arguments.  Must try -L first in case configure is actually a
2773 # symlink; some systems play weird games with the mod time of symlinks
2774 # (eg FreeBSD returns the mod time of the symlink's containing
2775 # directory).
2776 if (
2777    am_has_slept=no
2778    for am_try in 1 2; do
2779      echo "timestamp, slept: $am_has_slept" > conftest.file
2780      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2781      if test "$*" = "X"; then
2782         # -L didn't work.
2783         set X `ls -t "$srcdir/configure" conftest.file`
2784      fi
2785      if test "$*" != "X $srcdir/configure conftest.file" \
2786         && test "$*" != "X conftest.file $srcdir/configure"; then
2787
2788         # If neither matched, then we have a broken ls.  This can happen
2789         # if, for instance, CONFIG_SHELL is bash and it inherits a
2790         # broken ls alias from the environment.  This has actually
2791         # happened.  Such a system could not be considered "sane".
2792         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2793   alias in your environment" "$LINENO" 5
2794      fi
2795      if test "$2" = conftest.file || test $am_try -eq 2; then
2796        break
2797      fi
2798      # Just in case.
2799      sleep 1
2800      am_has_slept=yes
2801    done
2802    test "$2" = conftest.file
2803    )
2804 then
2805    # Ok.
2806    :
2807 else
2808    as_fn_error $? "newly created file is older than distributed files!
2809 Check your system clock" "$LINENO" 5
2810 fi
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2813 # If we didn't sleep, we still need to ensure time stamps of config.status and
2814 # generated files are strictly newer.
2815 am_sleep_pid=
2816 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2817   ( sleep 1 ) &
2818   am_sleep_pid=$!
2819 fi
2820
2821 rm -f conftest.file
2822
2823 test "$program_prefix" != NONE &&
2824   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2825 # Use a double $ so make ignores it.
2826 test "$program_suffix" != NONE &&
2827   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2828 # Double any \ or $.
2829 # By default was `s,x,x', remove it if useless.
2830 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2831 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2832
2833 # Expand $ac_aux_dir to an absolute path.
2834 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2835
2836 if test x"${MISSING+set}" != xset; then
2837   case $am_aux_dir in
2838   *\ * | *\     *)
2839     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2840   *)
2841     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2842   esac
2843 fi
2844 # Use eval to expand $SHELL
2845 if eval "$MISSING --is-lightweight"; then
2846   am_missing_run="$MISSING "
2847 else
2848   am_missing_run=
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2850 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2851 fi
2852
2853 if test x"${install_sh+set}" != xset; then
2854   case $am_aux_dir in
2855   *\ * | *\     *)
2856     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2857   *)
2858     install_sh="\${SHELL} $am_aux_dir/install-sh"
2859   esac
2860 fi
2861
2862 # Installed binaries are usually stripped using 'strip' when the user
2863 # run "make install-strip".  However 'strip' might not be the right
2864 # tool to use in cross-compilation environments, therefore Automake
2865 # will honor the 'STRIP' environment variable to overrule this program.
2866 if test "$cross_compiling" != no; then
2867   if test -n "$ac_tool_prefix"; then
2868   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2869 set dummy ${ac_tool_prefix}strip; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if ${ac_cv_prog_STRIP+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if test -n "$STRIP"; then
2876   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_exec_ext in '' $ac_executable_extensions; do
2884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2885     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890   done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 STRIP=$ac_cv_prog_STRIP
2896 if test -n "$STRIP"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2898 $as_echo "$STRIP" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905 fi
2906 if test -z "$ac_cv_prog_STRIP"; then
2907   ac_ct_STRIP=$STRIP
2908   # Extract the first word of "strip", so it can be a program name with args.
2909 set dummy strip; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2913   $as_echo_n "(cached) " >&6
2914 else
2915   if test -n "$ac_ct_STRIP"; then
2916   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923     for ac_exec_ext in '' $ac_executable_extensions; do
2924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925     ac_cv_prog_ac_ct_STRIP="strip"
2926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927     break 2
2928   fi
2929 done
2930   done
2931 IFS=$as_save_IFS
2932
2933 fi
2934 fi
2935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936 if test -n "$ac_ct_STRIP"; then
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2938 $as_echo "$ac_ct_STRIP" >&6; }
2939 else
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 fi
2943
2944   if test "x$ac_ct_STRIP" = x; then
2945     STRIP=":"
2946   else
2947     case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2951 ac_tool_warned=yes ;;
2952 esac
2953     STRIP=$ac_ct_STRIP
2954   fi
2955 else
2956   STRIP="$ac_cv_prog_STRIP"
2957 fi
2958
2959 fi
2960 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2963 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2964 if test -z "$MKDIR_P"; then
2965   if ${ac_cv_path_mkdir+:} false; then :
2966   $as_echo_n "(cached) " >&6
2967 else
2968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2970 do
2971   IFS=$as_save_IFS
2972   test -z "$as_dir" && as_dir=.
2973     for ac_prog in mkdir gmkdir; do
2974          for ac_exec_ext in '' $ac_executable_extensions; do
2975            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2976            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2977              'mkdir (GNU coreutils) '* | \
2978              'mkdir (coreutils) '* | \
2979              'mkdir (fileutils) '4.1*)
2980                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2981                break 3;;
2982            esac
2983          done
2984        done
2985   done
2986 IFS=$as_save_IFS
2987
2988 fi
2989
2990   test -d ./--version && rmdir ./--version
2991   if test "${ac_cv_path_mkdir+set}" = set; then
2992     MKDIR_P="$ac_cv_path_mkdir -p"
2993   else
2994     # As a last resort, use the slow shell script.  Don't cache a
2995     # value for MKDIR_P within a source directory, because that will
2996     # break other packages using the cache if that directory is
2997     # removed, or if the value is a relative name.
2998     MKDIR_P="$ac_install_sh -d"
2999   fi
3000 fi
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3002 $as_echo "$MKDIR_P" >&6; }
3003
3004 for ac_prog in gawk mawk nawk awk
3005 do
3006   # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_AWK+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if test -n "$AWK"; then
3014   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021     for ac_exec_ext in '' $ac_executable_extensions; do
3022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023     ac_cv_prog_AWK="$ac_prog"
3024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028   done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 AWK=$ac_cv_prog_AWK
3034 if test -n "$AWK"; then
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3036 $as_echo "$AWK" >&6; }
3037 else
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043   test -n "$AWK" && break
3044 done
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3047 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3048 set x ${MAKE-make}
3049 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3050 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3051   $as_echo_n "(cached) " >&6
3052 else
3053   cat >conftest.make <<\_ACEOF
3054 SHELL = /bin/sh
3055 all:
3056         @echo '@@@%%%=$(MAKE)=@@@%%%'
3057 _ACEOF
3058 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3059 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3060   *@@@%%%=?*=@@@%%%*)
3061     eval ac_cv_prog_make_${ac_make}_set=yes;;
3062   *)
3063     eval ac_cv_prog_make_${ac_make}_set=no;;
3064 esac
3065 rm -f conftest.make
3066 fi
3067 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070   SET_MAKE=
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074   SET_MAKE="MAKE=${MAKE-make}"
3075 fi
3076
3077 rm -rf .tst 2>/dev/null
3078 mkdir .tst 2>/dev/null
3079 if test -d .tst; then
3080   am__leading_dot=.
3081 else
3082   am__leading_dot=_
3083 fi
3084 rmdir .tst 2>/dev/null
3085
3086 # Check whether --enable-silent-rules was given.
3087 if test "${enable_silent_rules+set}" = set; then :
3088   enableval=$enable_silent_rules;
3089 fi
3090
3091 case $enable_silent_rules in # (((
3092   yes) AM_DEFAULT_VERBOSITY=0;;
3093    no) AM_DEFAULT_VERBOSITY=1;;
3094     *) AM_DEFAULT_VERBOSITY=1;;
3095 esac
3096 am_make=${MAKE-make}
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3098 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3099 if ${am_cv_make_support_nested_variables+:} false; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if $as_echo 'TRUE=$(BAR$(V))
3103 BAR0=false
3104 BAR1=true
3105 V=1
3106 am__doit:
3107         @$(TRUE)
3108 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3109   am_cv_make_support_nested_variables=yes
3110 else
3111   am_cv_make_support_nested_variables=no
3112 fi
3113 fi
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3115 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3116 if test $am_cv_make_support_nested_variables = yes; then
3117     AM_V='$(V)'
3118   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3119 else
3120   AM_V=$AM_DEFAULT_VERBOSITY
3121   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3122 fi
3123 AM_BACKSLASH='\'
3124
3125 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3126   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3127   # is not polluted with repeated "-I."
3128   am__isrc=' -I$(srcdir)'
3129   # test to see if srcdir already configured
3130   if test -f $srcdir/config.status; then
3131     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3132   fi
3133 fi
3134
3135 # test whether we have cygpath
3136 if test -z "$CYGPATH_W"; then
3137   if (cygpath --version) >/dev/null 2>/dev/null; then
3138     CYGPATH_W='cygpath -w'
3139   else
3140     CYGPATH_W=echo
3141   fi
3142 fi
3143
3144
3145 # Define the identity of the package.
3146  PACKAGE='libevent'
3147  VERSION='2.1.5-beta'
3148
3149
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE "$PACKAGE"
3152 _ACEOF
3153
3154
3155 cat >>confdefs.h <<_ACEOF
3156 #define VERSION "$VERSION"
3157 _ACEOF
3158
3159 # Some tools Automake needs.
3160
3161 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3162
3163
3164 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3165
3166
3167 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3168
3169
3170 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3171
3172
3173 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3174
3175 # For better backward compatibility.  To be removed once Automake 1.9.x
3176 # dies out for good.  For more background, see:
3177 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3178 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3179 mkdir_p='$(MKDIR_P)'
3180
3181 # We need awk for the "check" target (and possibly the TAP driver).  The
3182 # system "awk" is bad on some platforms.
3183 # Always define AMTAR for backward compatibility.  Yes, it's still used
3184 # in the wild :-(  We should find a proper way to deprecate it ...
3185 AMTAR='$${TAR-tar}'
3186
3187
3188 # We'll loop over all known methods to create a tar archive until one works.
3189 _am_tools='gnutar  pax cpio none'
3190
3191 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3192
3193
3194
3195
3196
3197
3198 # POSIX will say in a future version that running "rm -f" with no argument
3199 # is OK; and we want to be able to make that assumption in our Makefile
3200 # recipes.  So use an aggressive probe to check that the usage we want is
3201 # actually supported "in the wild" to an acceptable degree.
3202 # See automake bug#10828.
3203 # To make any issue more visible, cause the running configure to be aborted
3204 # by default if the 'rm' program in use doesn't match our expectations; the
3205 # user can still override this though.
3206 if rm -f && rm -fr && rm -rf; then : OK; else
3207   cat >&2 <<'END'
3208 Oops!
3209
3210 Your 'rm' program seems unable to run without file operands specified
3211 on the command line, even when the '-f' option is present.  This is contrary
3212 to the behaviour of most rm programs out there, and not conforming with
3213 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3214
3215 Please tell bug-automake@gnu.org about your system, including the value
3216 of your $PATH and any error possibly output before this message.  This
3217 can help us improve future automake versions.
3218
3219 END
3220   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3221     echo 'Configuration will proceed anyway, since you have set the' >&2
3222     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3223     echo >&2
3224   else
3225     cat >&2 <<'END'
3226 Aborting the configuration process, to ensure you take notice of the issue.
3227
3228 You can download and install GNU coreutils to get an 'rm' implementation
3229 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3230
3231 If you want to complete the configuration process using your problematic
3232 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3233 to "yes", and re-run configure.
3234
3235 END
3236     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3237   fi
3238 fi
3239
3240 # Check whether --enable-silent-rules was given.
3241 if test "${enable_silent_rules+set}" = set; then :
3242   enableval=$enable_silent_rules;
3243 fi
3244
3245 case $enable_silent_rules in # (((
3246   yes) AM_DEFAULT_VERBOSITY=0;;
3247    no) AM_DEFAULT_VERBOSITY=1;;
3248     *) AM_DEFAULT_VERBOSITY=0;;
3249 esac
3250 am_make=${MAKE-make}
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3252 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3253 if ${am_cv_make_support_nested_variables+:} false; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   if $as_echo 'TRUE=$(BAR$(V))
3257 BAR0=false
3258 BAR1=true
3259 V=1
3260 am__doit:
3261         @$(TRUE)
3262 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3263   am_cv_make_support_nested_variables=yes
3264 else
3265   am_cv_make_support_nested_variables=no
3266 fi
3267 fi
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3269 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3270 if test $am_cv_make_support_nested_variables = yes; then
3271     AM_V='$(V)'
3272   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3273 else
3274   AM_V=$AM_DEFAULT_VERBOSITY
3275   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3276 fi
3277 AM_BACKSLASH='\'
3278
3279 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3280
3281
3282 $as_echo "#define NUMERIC_VERSION 0x02010500" >>confdefs.h
3283
3284
3285 if test "$prefix" = "NONE"; then
3286    prefix="/usr/local"
3287 fi
3288
3289
3290 DEPDIR="${am__leading_dot}deps"
3291
3292 ac_config_commands="$ac_config_commands depfiles"
3293
3294
3295 am_make=${MAKE-make}
3296 cat > confinc << 'END'
3297 am__doit:
3298         @echo this is the am__doit target
3299 .PHONY: am__doit
3300 END
3301 # If we don't find an include directive, just comment out the code.
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3303 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3304 am__include="#"
3305 am__quote=
3306 _am_result=none
3307 # First try GNU make style include.
3308 echo "include confinc" > confmf
3309 # Ignore all kinds of additional output from 'make'.
3310 case `$am_make -s -f confmf 2> /dev/null` in #(
3311 *the\ am__doit\ target*)
3312   am__include=include
3313   am__quote=
3314   _am_result=GNU
3315   ;;
3316 esac
3317 # Now try BSD make style include.
3318 if test "$am__include" = "#"; then
3319    echo '.include "confinc"' > confmf
3320    case `$am_make -s -f confmf 2> /dev/null` in #(
3321    *the\ am__doit\ target*)
3322      am__include=.include
3323      am__quote="\""
3324      _am_result=BSD
3325      ;;
3326    esac
3327 fi
3328
3329
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3331 $as_echo "$_am_result" >&6; }
3332 rm -f confinc confmf
3333
3334 # Check whether --enable-dependency-tracking was given.
3335 if test "${enable_dependency_tracking+set}" = set; then :
3336   enableval=$enable_dependency_tracking;
3337 fi
3338
3339 if test "x$enable_dependency_tracking" != xno; then
3340   am_depcomp="$ac_aux_dir/depcomp"
3341   AMDEPBACKSLASH='\'
3342   am__nodep='_no'
3343 fi
3344  if test "x$enable_dependency_tracking" != xno; then
3345   AMDEP_TRUE=
3346   AMDEP_FALSE='#'
3347 else
3348   AMDEP_TRUE='#'
3349   AMDEP_FALSE=
3350 fi
3351
3352
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 if test -n "$ac_tool_prefix"; then
3359   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if ${ac_cv_prog_CC+:} false; then :
3364   $as_echo_n "(cached) " >&6
3365 else
3366   if test -n "$CC"; then
3367   ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3371 do
3372   IFS=$as_save_IFS
3373   test -z "$as_dir" && as_dir=.
3374     for ac_exec_ext in '' $ac_executable_extensions; do
3375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3376     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378     break 2
3379   fi
3380 done
3381   done
3382 IFS=$as_save_IFS
3383
3384 fi
3385 fi
3386 CC=$ac_cv_prog_CC
3387 if test -n "$CC"; then
3388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389 $as_echo "$CC" >&6; }
3390 else
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3393 fi
3394
3395
3396 fi
3397 if test -z "$ac_cv_prog_CC"; then
3398   ac_ct_CC=$CC
3399   # Extract the first word of "gcc", so it can be a program name with args.
3400 set dummy gcc; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3404   $as_echo_n "(cached) " >&6
3405 else
3406   if test -n "$ac_ct_CC"; then
3407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412   IFS=$as_save_IFS
3413   test -z "$as_dir" && as_dir=.
3414     for ac_exec_ext in '' $ac_executable_extensions; do
3415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416     ac_cv_prog_ac_ct_CC="gcc"
3417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418     break 2
3419   fi
3420 done
3421   done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3427 if test -n "$ac_ct_CC"; then
3428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3429 $as_echo "$ac_ct_CC" >&6; }
3430 else
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3433 fi
3434
3435   if test "x$ac_ct_CC" = x; then
3436     CC=""
3437   else
3438     case $cross_compiling:$ac_tool_warned in
3439 yes:)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3442 ac_tool_warned=yes ;;
3443 esac
3444     CC=$ac_ct_CC
3445   fi
3446 else
3447   CC="$ac_cv_prog_CC"
3448 fi
3449
3450 if test -z "$CC"; then
3451           if test -n "$ac_tool_prefix"; then
3452     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3453 set dummy ${ac_tool_prefix}cc; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_CC+:} false; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   if test -n "$CC"; then
3460   ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465   IFS=$as_save_IFS
3466   test -z "$as_dir" && as_dir=.
3467     for ac_exec_ext in '' $ac_executable_extensions; do
3468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3469     ac_cv_prog_CC="${ac_tool_prefix}cc"
3470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471     break 2
3472   fi
3473 done
3474   done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3483 else
3484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488
3489   fi
3490 fi
3491 if test -z "$CC"; then
3492   # Extract the first word of "cc", so it can be a program name with args.
3493 set dummy cc; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if ${ac_cv_prog_CC+:} false; then :
3497   $as_echo_n "(cached) " >&6
3498 else
3499   if test -n "$CC"; then
3500   ac_cv_prog_CC="$CC" # Let the user override the test.
3501 else
3502   ac_prog_rejected=no
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508     for ac_exec_ext in '' $ac_executable_extensions; do
3509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3511        ac_prog_rejected=yes
3512        continue
3513      fi
3514     ac_cv_prog_CC="cc"
3515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516     break 2
3517   fi
3518 done
3519   done
3520 IFS=$as_save_IFS
3521
3522 if test $ac_prog_rejected = yes; then
3523   # We found a bogon in the path, so make sure we never use it.
3524   set dummy $ac_cv_prog_CC
3525   shift
3526   if test $# != 0; then
3527     # We chose a different compiler from the bogus one.
3528     # However, it has the same basename, so the bogon will be chosen
3529     # first if we set CC to just the basename; use the full file name.
3530     shift
3531     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3532   fi
3533 fi
3534 fi
3535 fi
3536 CC=$ac_cv_prog_CC
3537 if test -n "$CC"; then
3538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3539 $as_echo "$CC" >&6; }
3540 else
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 fi
3544
3545
3546 fi
3547 if test -z "$CC"; then
3548   if test -n "$ac_tool_prefix"; then
3549   for ac_prog in cl.exe
3550   do
3551     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_CC+:} false; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   if test -n "$CC"; then
3559   ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566     for ac_exec_ext in '' $ac_executable_extensions; do
3567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573   done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588     test -n "$CC" && break
3589   done
3590 fi
3591 if test -z "$CC"; then
3592   ac_ct_CC=$CC
3593   for ac_prog in cl.exe
3594 do
3595   # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3600   $as_echo_n "(cached) " >&6
3601 else
3602   if test -n "$ac_ct_CC"; then
3603   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608   IFS=$as_save_IFS
3609   test -z "$as_dir" && as_dir=.
3610     for ac_exec_ext in '' $ac_executable_extensions; do
3611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612     ac_cv_prog_ac_ct_CC="$ac_prog"
3613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614     break 2
3615   fi
3616 done
3617   done
3618 IFS=$as_save_IFS
3619
3620 fi
3621 fi
3622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3623 if test -n "$ac_ct_CC"; then
3624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3625 $as_echo "$ac_ct_CC" >&6; }
3626 else
3627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 fi
3630
3631
3632   test -n "$ac_ct_CC" && break
3633 done
3634
3635   if test "x$ac_ct_CC" = x; then
3636     CC=""
3637   else
3638     case $cross_compiling:$ac_tool_warned in
3639 yes:)
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3642 ac_tool_warned=yes ;;
3643 esac
3644     CC=$ac_ct_CC
3645   fi
3646 fi
3647
3648 fi
3649
3650
3651 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 as_fn_error $? "no acceptable C compiler found in \$PATH
3654 See \`config.log' for more details" "$LINENO" 5; }
3655
3656 # Provide some information about the compiler.
3657 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3658 set X $ac_compile
3659 ac_compiler=$2
3660 for ac_option in --version -v -V -qversion; do
3661   { { ac_try="$ac_compiler $ac_option >&5"
3662 case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3669   ac_status=$?
3670   if test -s conftest.err; then
3671     sed '10a\
3672 ... rest of stderr output deleted ...
3673          10q' conftest.err >conftest.er1
3674     cat conftest.er1 >&5
3675   fi
3676   rm -f conftest.er1 conftest.err
3677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678   test $ac_status = 0; }
3679 done
3680
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 ac_clean_files_save=$ac_clean_files
3693 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3694 # Try to create an executable without -o first, disregard a.out.
3695 # It will help us diagnose broken compilers, and finding out an intuition
3696 # of exeext.
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3698 $as_echo_n "checking whether the C compiler works... " >&6; }
3699 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3700
3701 # The possible output files:
3702 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3703
3704 ac_rmfiles=
3705 for ac_file in $ac_files
3706 do
3707   case $ac_file in
3708     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3709     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3710   esac
3711 done
3712 rm -f $ac_rmfiles
3713
3714 if { { ac_try="$ac_link_default"
3715 case "(($ac_try" in
3716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717   *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720 $as_echo "$ac_try_echo"; } >&5
3721   (eval "$ac_link_default") 2>&5
3722   ac_status=$?
3723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724   test $ac_status = 0; }; then :
3725   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3726 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3727 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3728 # so that the user can short-circuit this test for compilers unknown to
3729 # Autoconf.
3730 for ac_file in $ac_files ''
3731 do
3732   test -f "$ac_file" || continue
3733   case $ac_file in
3734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3735         ;;
3736     [ab].out )
3737         # We found the default executable, but exeext='' is most
3738         # certainly right.
3739         break;;
3740     *.* )
3741         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3742         then :; else
3743            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744         fi
3745         # We set ac_cv_exeext here because the later test for it is not
3746         # safe: cross compilers may not add the suffix if given an `-o'
3747         # argument, so we may need to know it at that point already.
3748         # Even if this section looks crufty: it has the advantage of
3749         # actually working.
3750         break;;
3751     * )
3752         break;;
3753   esac
3754 done
3755 test "$ac_cv_exeext" = no && ac_cv_exeext=
3756
3757 else
3758   ac_file=''
3759 fi
3760 if test -z "$ac_file"; then :
3761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 $as_echo "no" >&6; }
3763 $as_echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 as_fn_error 77 "C compiler cannot create executables
3769 See \`config.log' for more details" "$LINENO" 5; }
3770 else
3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772 $as_echo "yes" >&6; }
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3775 $as_echo_n "checking for C compiler default output file name... " >&6; }
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3777 $as_echo "$ac_file" >&6; }
3778 ac_exeext=$ac_cv_exeext
3779
3780 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3781 ac_clean_files=$ac_clean_files_save
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3783 $as_echo_n "checking for suffix of executables... " >&6; }
3784 if { { ac_try="$ac_link"
3785 case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3790 $as_echo "$ac_try_echo"; } >&5
3791   (eval "$ac_link") 2>&5
3792   ac_status=$?
3793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794   test $ac_status = 0; }; then :
3795   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3796 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3797 # work properly (i.e., refer to `conftest.exe'), while it won't with
3798 # `rm'.
3799 for ac_file in conftest.exe conftest conftest.*; do
3800   test -f "$ac_file" || continue
3801   case $ac_file in
3802     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3803     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3804           break;;
3805     * ) break;;
3806   esac
3807 done
3808 else
3809   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3812 See \`config.log' for more details" "$LINENO" 5; }
3813 fi
3814 rm -f conftest conftest$ac_cv_exeext
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3816 $as_echo "$ac_cv_exeext" >&6; }
3817
3818 rm -f conftest.$ac_ext
3819 EXEEXT=$ac_cv_exeext
3820 ac_exeext=$EXEEXT
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h.  */
3823 #include <stdio.h>
3824 int
3825 main ()
3826 {
3827 FILE *f = fopen ("conftest.out", "w");
3828  return ferror (f) || fclose (f) != 0;
3829
3830   ;
3831   return 0;
3832 }
3833 _ACEOF
3834 ac_clean_files="$ac_clean_files conftest.out"
3835 # Check that the compiler produces executables we can run.  If not, either
3836 # the compiler is broken, or we cross compile.
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3838 $as_echo_n "checking whether we are cross compiling... " >&6; }
3839 if test "$cross_compiling" != yes; then
3840   { { ac_try="$ac_link"
3841 case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847   (eval "$ac_link") 2>&5
3848   ac_status=$?
3849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3850   test $ac_status = 0; }
3851   if { ac_try='./conftest$ac_cv_exeext'
3852   { { case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858   (eval "$ac_try") 2>&5
3859   ac_status=$?
3860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861   test $ac_status = 0; }; }; then
3862     cross_compiling=no
3863   else
3864     if test "$cross_compiling" = maybe; then
3865         cross_compiling=yes
3866     else
3867         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error $? "cannot run C compiled programs.
3870 If you meant to cross compile, use \`--host'.
3871 See \`config.log' for more details" "$LINENO" 5; }
3872     fi
3873   fi
3874 fi
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3876 $as_echo "$cross_compiling" >&6; }
3877
3878 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3879 ac_clean_files=$ac_clean_files_save
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3881 $as_echo_n "checking for suffix of object files... " >&6; }
3882 if ${ac_cv_objext+:} false; then :
3883   $as_echo_n "(cached) " >&6
3884 else
3885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h.  */
3887
3888 int
3889 main ()
3890 {
3891
3892   ;
3893   return 0;
3894 }
3895 _ACEOF
3896 rm -f conftest.o conftest.obj
3897 if { { ac_try="$ac_compile"
3898 case "(($ac_try" in
3899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900   *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904   (eval "$ac_compile") 2>&5
3905   ac_status=$?
3906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907   test $ac_status = 0; }; then :
3908   for ac_file in conftest.o conftest.obj conftest.*; do
3909   test -f "$ac_file" || continue;
3910   case $ac_file in
3911     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3912     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3913        break;;
3914   esac
3915 done
3916 else
3917   $as_echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3922 as_fn_error $? "cannot compute suffix of object files: cannot compile
3923 See \`config.log' for more details" "$LINENO" 5; }
3924 fi
3925 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3928 $as_echo "$ac_cv_objext" >&6; }
3929 OBJEXT=$ac_cv_objext
3930 ac_objext=$OBJEXT
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3932 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3933 if ${ac_cv_c_compiler_gnu+:} false; then :
3934   $as_echo_n "(cached) " >&6
3935 else
3936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h.  */
3938
3939 int
3940 main ()
3941 {
3942 #ifndef __GNUC__
3943        choke me
3944 #endif
3945
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 if ac_fn_c_try_compile "$LINENO"; then :
3951   ac_compiler_gnu=yes
3952 else
3953   ac_compiler_gnu=no
3954 fi
3955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3957
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3960 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3961 if test $ac_compiler_gnu = yes; then
3962   GCC=yes
3963 else
3964   GCC=
3965 fi
3966 ac_test_CFLAGS=${CFLAGS+set}
3967 ac_save_CFLAGS=$CFLAGS
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3969 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3970 if ${ac_cv_prog_cc_g+:} false; then :
3971   $as_echo_n "(cached) " >&6
3972 else
3973   ac_save_c_werror_flag=$ac_c_werror_flag
3974    ac_c_werror_flag=yes
3975    ac_cv_prog_cc_g=no
3976    CFLAGS="-g"
3977    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h.  */
3979
3980 int
3981 main ()
3982 {
3983
3984   ;
3985   return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989   ac_cv_prog_cc_g=yes
3990 else
3991   CFLAGS=""
3992       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h.  */
3994
3995 int
3996 main ()
3997 {
3998
3999   ;
4000   return 0;
4001 }
4002 _ACEOF
4003 if ac_fn_c_try_compile "$LINENO"; then :
4004
4005 else
4006   ac_c_werror_flag=$ac_save_c_werror_flag
4007          CFLAGS="-g"
4008          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h.  */
4010
4011 int
4012 main ()
4013 {
4014
4015   ;
4016   return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020   ac_cv_prog_cc_g=yes
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027    ac_c_werror_flag=$ac_save_c_werror_flag
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4030 $as_echo "$ac_cv_prog_cc_g" >&6; }
4031 if test "$ac_test_CFLAGS" = set; then
4032   CFLAGS=$ac_save_CFLAGS
4033 elif test $ac_cv_prog_cc_g = yes; then
4034   if test "$GCC" = yes; then
4035     CFLAGS="-g -O2"
4036   else
4037     CFLAGS="-g"
4038   fi
4039 else
4040   if test "$GCC" = yes; then
4041     CFLAGS="-O2"
4042   else
4043     CFLAGS=
4044   fi
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4047 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4048 if ${ac_cv_prog_cc_c89+:} false; then :
4049   $as_echo_n "(cached) " >&6
4050 else
4051   ac_cv_prog_cc_c89=no
4052 ac_save_CC=$CC
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h.  */
4055 #include <stdarg.h>
4056 #include <stdio.h>
4057 struct stat;
4058 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4059 struct buf { int x; };
4060 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4061 static char *e (p, i)
4062      char **p;
4063      int i;
4064 {
4065   return p[i];
4066 }
4067 static char *f (char * (*g) (char **, int), char **p, ...)
4068 {
4069   char *s;
4070   va_list v;
4071   va_start (v,p);
4072   s = g (p, va_arg (v,int));
4073   va_end (v);
4074   return s;
4075 }
4076
4077 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4078    function prototypes and stuff, but not '\xHH' hex character constants.
4079    These don't provoke an error unfortunately, instead are silently treated
4080    as 'x'.  The following induces an error, until -std is added to get
4081    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4082    array size at least.  It's necessary to write '\x00'==0 to get something
4083    that's true only with -std.  */
4084 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4085
4086 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4087    inside strings and character constants.  */
4088 #define FOO(x) 'x'
4089 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4090
4091 int test (int i, double x);
4092 struct s1 {int (*f) (int a);};
4093 struct s2 {int (*f) (double a);};
4094 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 int argc;
4096 char **argv;
4097 int
4098 main ()
4099 {
4100 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4101   ;
4102   return 0;
4103 }
4104 _ACEOF
4105 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4106         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4107 do
4108   CC="$ac_save_CC $ac_arg"
4109   if ac_fn_c_try_compile "$LINENO"; then :
4110   ac_cv_prog_cc_c89=$ac_arg
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext
4113   test "x$ac_cv_prog_cc_c89" != "xno" && break
4114 done
4115 rm -f conftest.$ac_ext
4116 CC=$ac_save_CC
4117
4118 fi
4119 # AC_CACHE_VAL
4120 case "x$ac_cv_prog_cc_c89" in
4121   x)
4122     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4123 $as_echo "none needed" >&6; } ;;
4124   xno)
4125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4126 $as_echo "unsupported" >&6; } ;;
4127   *)
4128     CC="$CC $ac_cv_prog_cc_c89"
4129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4130 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4131 esac
4132 if test "x$ac_cv_prog_cc_c89" != xno; then :
4133
4134 fi
4135
4136 ac_ext=c
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4148 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4149 if ${am_cv_prog_cc_c_o+:} false; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h.  */
4154
4155 int
4156 main ()
4157 {
4158
4159   ;
4160   return 0;
4161 }
4162 _ACEOF
4163   # Make sure it works both with $CC and with simple cc.
4164   # Following AC_PROG_CC_C_O, we do the test twice because some
4165   # compilers refuse to overwrite an existing .o file with -o,
4166   # though they will create one.
4167   am_cv_prog_cc_c_o=yes
4168   for am_i in 1 2; do
4169     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4170    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4171    ac_status=$?
4172    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173    (exit $ac_status); } \
4174          && test -f conftest2.$ac_objext; then
4175       : OK
4176     else
4177       am_cv_prog_cc_c_o=no
4178       break
4179     fi
4180   done
4181   rm -f core conftest*
4182   unset am_i
4183 fi
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4185 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4186 if test "$am_cv_prog_cc_c_o" != yes; then
4187    # Losing compiler, so override with the script.
4188    # FIXME: It is wrong to rewrite CC.
4189    # But if we don't then we get into trouble of one sort or another.
4190    # A longer-term fix would be to have automake use am__CC in this case,
4191    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4192    CC="$am_aux_dir/compile $CC"
4193 fi
4194 ac_ext=c
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199
4200
4201 depcc="$CC"   am_compiler_list=
4202
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4204 $as_echo_n "checking dependency style of $depcc... " >&6; }
4205 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4206   $as_echo_n "(cached) " >&6
4207 else
4208   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4209   # We make a subdir and do the tests there.  Otherwise we can end up
4210   # making bogus files that we don't know about and never remove.  For
4211   # instance it was reported that on HP-UX the gcc test will end up
4212   # making a dummy file named 'D' -- because '-MD' means "put the output
4213   # in D".
4214   rm -rf conftest.dir
4215   mkdir conftest.dir
4216   # Copy depcomp to subdir because otherwise we won't find it if we're
4217   # using a relative directory.
4218   cp "$am_depcomp" conftest.dir
4219   cd conftest.dir
4220   # We will build objects and dependencies in a subdirectory because
4221   # it helps to detect inapplicable dependency modes.  For instance
4222   # both Tru64's cc and ICC support -MD to output dependencies as a
4223   # side effect of compilation, but ICC will put the dependencies in
4224   # the current directory while Tru64 will put them in the object
4225   # directory.
4226   mkdir sub
4227
4228   am_cv_CC_dependencies_compiler_type=none
4229   if test "$am_compiler_list" = ""; then
4230      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4231   fi
4232   am__universal=false
4233   case " $depcc " in #(
4234      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4235      esac
4236
4237   for depmode in $am_compiler_list; do
4238     # Setup a source with many dependencies, because some compilers
4239     # like to wrap large dependency lists on column 80 (with \), and
4240     # we should not choose a depcomp mode which is confused by this.
4241     #
4242     # We need to recreate these files for each test, as the compiler may
4243     # overwrite some of them when testing with obscure command lines.
4244     # This happens at least with the AIX C compiler.
4245     : > sub/conftest.c
4246     for i in 1 2 3 4 5 6; do
4247       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4248       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4249       # Solaris 10 /bin/sh.
4250       echo '/* dummy */' > sub/conftst$i.h
4251     done
4252     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4253
4254     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4255     # mode.  It turns out that the SunPro C++ compiler does not properly
4256     # handle '-M -o', and we need to detect this.  Also, some Intel
4257     # versions had trouble with output in subdirs.
4258     am__obj=sub/conftest.${OBJEXT-o}
4259     am__minus_obj="-o $am__obj"
4260     case $depmode in
4261     gcc)
4262       # This depmode causes a compiler race in universal mode.
4263       test "$am__universal" = false || continue
4264       ;;
4265     nosideeffect)
4266       # After this tag, mechanisms are not by side-effect, so they'll
4267       # only be used when explicitly requested.
4268       if test "x$enable_dependency_tracking" = xyes; then
4269         continue
4270       else
4271         break
4272       fi
4273       ;;
4274     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4275       # This compiler won't grok '-c -o', but also, the minuso test has
4276       # not run yet.  These depmodes are late enough in the game, and
4277       # so weak that their functioning should not be impacted.
4278       am__obj=conftest.${OBJEXT-o}
4279       am__minus_obj=
4280       ;;
4281     none) break ;;
4282     esac
4283     if depmode=$depmode \
4284        source=sub/conftest.c object=$am__obj \
4285        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4286        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4287          >/dev/null 2>conftest.err &&
4288        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4289        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4290        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4291        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4292       # icc doesn't choke on unknown options, it will just issue warnings
4293       # or remarks (even with -Werror).  So we grep stderr for any message
4294       # that says an option was ignored or not supported.
4295       # When given -MP, icc 7.0 and 7.1 complain thusly:
4296       #   icc: Command line warning: ignoring option '-M'; no argument required
4297       # The diagnosis changed in icc 8.0:
4298       #   icc: Command line remark: option '-MP' not supported
4299       if (grep 'ignoring option' conftest.err ||
4300           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4301         am_cv_CC_dependencies_compiler_type=$depmode
4302         break
4303       fi
4304     fi
4305   done
4306
4307   cd ..
4308   rm -rf conftest.dir
4309 else
4310   am_cv_CC_dependencies_compiler_type=none
4311 fi
4312
4313 fi
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4315 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4316 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4317
4318  if
4319   test "x$enable_dependency_tracking" != xno \
4320   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4321   am__fastdepCC_TRUE=
4322   am__fastdepCC_FALSE='#'
4323 else
4324   am__fastdepCC_TRUE='#'
4325   am__fastdepCC_FALSE=
4326 fi
4327
4328
4329
4330 ac_ext=c
4331 ac_cpp='$CPP $CPPFLAGS'
4332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4336 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4337 # On Suns, sometimes $CPP names a directory.
4338 if test -n "$CPP" && test -d "$CPP"; then
4339   CPP=
4340 fi
4341 if test -z "$CPP"; then
4342   if ${ac_cv_prog_CPP+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345       # Double quotes because CPP needs to be expanded
4346     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4347     do
4348       ac_preproc_ok=false
4349 for ac_c_preproc_warn_flag in '' yes
4350 do
4351   # Use a header file that comes with gcc, so configuring glibc
4352   # with a fresh cross-compiler works.
4353   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4354   # <limits.h> exists even on freestanding compilers.
4355   # On the NeXT, cc -E runs the code through the compiler's parser,
4356   # not just through cpp. "Syntax error" is here to catch this case.
4357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h.  */
4359 #ifdef __STDC__
4360 # include <limits.h>
4361 #else
4362 # include <assert.h>
4363 #endif
4364                      Syntax error
4365 _ACEOF
4366 if ac_fn_c_try_cpp "$LINENO"; then :
4367
4368 else
4369   # Broken: fails on valid input.
4370 continue
4371 fi
4372 rm -f conftest.err conftest.i conftest.$ac_ext
4373
4374   # OK, works on sane cases.  Now check whether nonexistent headers
4375   # can be detected and how.
4376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h.  */
4378 #include <ac_nonexistent.h>
4379 _ACEOF
4380 if ac_fn_c_try_cpp "$LINENO"; then :
4381   # Broken: success on invalid input.
4382 continue
4383 else
4384   # Passes both tests.
4385 ac_preproc_ok=:
4386 break
4387 fi
4388 rm -f conftest.err conftest.i conftest.$ac_ext
4389
4390 done
4391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4392 rm -f conftest.i conftest.err conftest.$ac_ext
4393 if $ac_preproc_ok; then :
4394   break
4395 fi
4396
4397     done
4398     ac_cv_prog_CPP=$CPP
4399
4400 fi
4401   CPP=$ac_cv_prog_CPP
4402 else
4403   ac_cv_prog_CPP=$CPP
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4406 $as_echo "$CPP" >&6; }
4407 ac_preproc_ok=false
4408 for ac_c_preproc_warn_flag in '' yes
4409 do
4410   # Use a header file that comes with gcc, so configuring glibc
4411   # with a fresh cross-compiler works.
4412   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4413   # <limits.h> exists even on freestanding compilers.
4414   # On the NeXT, cc -E runs the code through the compiler's parser,
4415   # not just through cpp. "Syntax error" is here to catch this case.
4416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h.  */
4418 #ifdef __STDC__
4419 # include <limits.h>
4420 #else
4421 # include <assert.h>
4422 #endif
4423                      Syntax error
4424 _ACEOF
4425 if ac_fn_c_try_cpp "$LINENO"; then :
4426
4427 else
4428   # Broken: fails on valid input.
4429 continue
4430 fi
4431 rm -f conftest.err conftest.i conftest.$ac_ext
4432
4433   # OK, works on sane cases.  Now check whether nonexistent headers
4434   # can be detected and how.
4435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h.  */
4437 #include <ac_nonexistent.h>
4438 _ACEOF
4439 if ac_fn_c_try_cpp "$LINENO"; then :
4440   # Broken: success on invalid input.
4441 continue
4442 else
4443   # Passes both tests.
4444 ac_preproc_ok=:
4445 break
4446 fi
4447 rm -f conftest.err conftest.i conftest.$ac_ext
4448
4449 done
4450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4451 rm -f conftest.i conftest.err conftest.$ac_ext
4452 if $ac_preproc_ok; then :
4453
4454 else
4455   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4457 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4458 See \`config.log' for more details" "$LINENO" 5; }
4459 fi
4460
4461 ac_ext=c
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466
4467
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4469 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4470 if ${ac_cv_path_GREP+:} false; then :
4471   $as_echo_n "(cached) " >&6
4472 else
4473   if test -z "$GREP"; then
4474   ac_path_GREP_found=false
4475   # Loop through the user's path and test for each of PROGNAME-LIST
4476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4478 do
4479   IFS=$as_save_IFS
4480   test -z "$as_dir" && as_dir=.
4481     for ac_prog in grep ggrep; do
4482     for ac_exec_ext in '' $ac_executable_extensions; do
4483       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4484       as_fn_executable_p "$ac_path_GREP" || continue
4485 # Check for GNU ac_path_GREP and select it if it is found.
4486   # Check for GNU $ac_path_GREP
4487 case `"$ac_path_GREP" --version 2>&1` in
4488 *GNU*)
4489   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4490 *)
4491   ac_count=0
4492   $as_echo_n 0123456789 >"conftest.in"
4493   while :
4494   do
4495     cat "conftest.in" "conftest.in" >"conftest.tmp"
4496     mv "conftest.tmp" "conftest.in"
4497     cp "conftest.in" "conftest.nl"
4498     $as_echo 'GREP' >> "conftest.nl"
4499     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4500     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4501     as_fn_arith $ac_count + 1 && ac_count=$as_val
4502     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4503       # Best one so far, save it but keep looking for a better one
4504       ac_cv_path_GREP="$ac_path_GREP"
4505       ac_path_GREP_max=$ac_count
4506     fi
4507     # 10*(2^10) chars as input seems more than enough
4508     test $ac_count -gt 10 && break
4509   done
4510   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4511 esac
4512
4513       $ac_path_GREP_found && break 3
4514     done
4515   done
4516   done
4517 IFS=$as_save_IFS
4518   if test -z "$ac_cv_path_GREP"; then
4519     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4520   fi
4521 else
4522   ac_cv_path_GREP=$GREP
4523 fi
4524
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4527 $as_echo "$ac_cv_path_GREP" >&6; }
4528  GREP="$ac_cv_path_GREP"
4529
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4532 $as_echo_n "checking for egrep... " >&6; }
4533 if ${ac_cv_path_EGREP+:} false; then :
4534   $as_echo_n "(cached) " >&6
4535 else
4536   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4537    then ac_cv_path_EGREP="$GREP -E"
4538    else
4539      if test -z "$EGREP"; then
4540   ac_path_EGREP_found=false
4541   # Loop through the user's path and test for each of PROGNAME-LIST
4542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4544 do
4545   IFS=$as_save_IFS
4546   test -z "$as_dir" && as_dir=.
4547     for ac_prog in egrep; do
4548     for ac_exec_ext in '' $ac_executable_extensions; do
4549       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4550       as_fn_executable_p "$ac_path_EGREP" || continue
4551 # Check for GNU ac_path_EGREP and select it if it is found.
4552   # Check for GNU $ac_path_EGREP
4553 case `"$ac_path_EGREP" --version 2>&1` in
4554 *GNU*)
4555   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4556 *)
4557   ac_count=0
4558   $as_echo_n 0123456789 >"conftest.in"
4559   while :
4560   do
4561     cat "conftest.in" "conftest.in" >"conftest.tmp"
4562     mv "conftest.tmp" "conftest.in"
4563     cp "conftest.in" "conftest.nl"
4564     $as_echo 'EGREP' >> "conftest.nl"
4565     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4566     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4567     as_fn_arith $ac_count + 1 && ac_count=$as_val
4568     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4569       # Best one so far, save it but keep looking for a better one
4570       ac_cv_path_EGREP="$ac_path_EGREP"
4571       ac_path_EGREP_max=$ac_count
4572     fi
4573     # 10*(2^10) chars as input seems more than enough
4574     test $ac_count -gt 10 && break
4575   done
4576   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4577 esac
4578
4579       $ac_path_EGREP_found && break 3
4580     done
4581   done
4582   done
4583 IFS=$as_save_IFS
4584   if test -z "$ac_cv_path_EGREP"; then
4585     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4586   fi
4587 else
4588   ac_cv_path_EGREP=$EGREP
4589 fi
4590
4591    fi
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4594 $as_echo "$ac_cv_path_EGREP" >&6; }
4595  EGREP="$ac_cv_path_EGREP"
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4599 $as_echo_n "checking for ANSI C header files... " >&6; }
4600 if ${ac_cv_header_stdc+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h.  */
4605 #include <stdlib.h>
4606 #include <stdarg.h>
4607 #include <string.h>
4608 #include <float.h>
4609
4610 int
4611 main ()
4612 {
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619   ac_cv_header_stdc=yes
4620 else
4621   ac_cv_header_stdc=no
4622 fi
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624
4625 if test $ac_cv_header_stdc = yes; then
4626   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629 #include <string.h>
4630
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633   $EGREP "memchr" >/dev/null 2>&1; then :
4634
4635 else
4636   ac_cv_header_stdc=no
4637 fi
4638 rm -f conftest*
4639
4640 fi
4641
4642 if test $ac_cv_header_stdc = yes; then
4643   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h.  */
4646 #include <stdlib.h>
4647
4648 _ACEOF
4649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4650   $EGREP "free" >/dev/null 2>&1; then :
4651
4652 else
4653   ac_cv_header_stdc=no
4654 fi
4655 rm -f conftest*
4656
4657 fi
4658
4659 if test $ac_cv_header_stdc = yes; then
4660   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4661   if test "$cross_compiling" = yes; then :
4662   :
4663 else
4664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h.  */
4666 #include <ctype.h>
4667 #include <stdlib.h>
4668 #if ((' ' & 0x0FF) == 0x020)
4669 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4670 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4671 #else
4672 # define ISLOWER(c) \
4673                    (('a' <= (c) && (c) <= 'i') \
4674                      || ('j' <= (c) && (c) <= 'r') \
4675                      || ('s' <= (c) && (c) <= 'z'))
4676 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4677 #endif
4678
4679 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4680 int
4681 main ()
4682 {
4683   int i;
4684   for (i = 0; i < 256; i++)
4685     if (XOR (islower (i), ISLOWER (i))
4686         || toupper (i) != TOUPPER (i))
4687       return 2;
4688   return 0;
4689 }
4690 _ACEOF
4691 if ac_fn_c_try_run "$LINENO"; then :
4692
4693 else
4694   ac_cv_header_stdc=no
4695 fi
4696 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4697   conftest.$ac_objext conftest.beam conftest.$ac_ext
4698 fi
4699
4700 fi
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4703 $as_echo "$ac_cv_header_stdc" >&6; }
4704 if test $ac_cv_header_stdc = yes; then
4705
4706 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4707
4708 fi
4709
4710 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4711 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4712                   inttypes.h stdint.h unistd.h
4713 do :
4714   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4716 "
4717 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4718   cat >>confdefs.h <<_ACEOF
4719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4720 _ACEOF
4721
4722 fi
4723
4724 done
4725
4726
4727
4728   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4729 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4730   MINIX=yes
4731 else
4732   MINIX=
4733 fi
4734
4735
4736   if test "$MINIX" = yes; then
4737
4738 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4739
4740
4741 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4742
4743
4744 $as_echo "#define _MINIX 1" >>confdefs.h
4745
4746   fi
4747
4748
4749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4750 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4751 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h.  */
4756
4757 #         define __EXTENSIONS__ 1
4758           $ac_includes_default
4759 int
4760 main ()
4761 {
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768   ac_cv_safe_to_define___extensions__=yes
4769 else
4770   ac_cv_safe_to_define___extensions__=no
4771 fi
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4775 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4776   test $ac_cv_safe_to_define___extensions__ = yes &&
4777     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4778
4779   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4780
4781   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4782
4783   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4784
4785   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4786
4787
4788
4789
4790 # Make sure we can run config.sub.
4791 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4792   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4793
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4795 $as_echo_n "checking build system type... " >&6; }
4796 if ${ac_cv_build+:} false; then :
4797   $as_echo_n "(cached) " >&6
4798 else
4799   ac_build_alias=$build_alias
4800 test "x$ac_build_alias" = x &&
4801   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4802 test "x$ac_build_alias" = x &&
4803   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4804 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4805   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4806
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4809 $as_echo "$ac_cv_build" >&6; }
4810 case $ac_cv_build in
4811 *-*-*) ;;
4812 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4813 esac
4814 build=$ac_cv_build
4815 ac_save_IFS=$IFS; IFS='-'
4816 set x $ac_cv_build
4817 shift
4818 build_cpu=$1
4819 build_vendor=$2
4820 shift; shift
4821 # Remember, the first character of IFS is used to create $*,
4822 # except with old shells:
4823 build_os=$*
4824 IFS=$ac_save_IFS
4825 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4826
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4829 $as_echo_n "checking host system type... " >&6; }
4830 if ${ac_cv_host+:} false; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   if test "x$host_alias" = x; then
4834   ac_cv_host=$ac_cv_build
4835 else
4836   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4837     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4838 fi
4839
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4842 $as_echo "$ac_cv_host" >&6; }
4843 case $ac_cv_host in
4844 *-*-*) ;;
4845 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4846 esac
4847 host=$ac_cv_host
4848 ac_save_IFS=$IFS; IFS='-'
4849 set x $ac_cv_host
4850 shift
4851 host_cpu=$1
4852 host_vendor=$2
4853 shift; shift
4854 # Remember, the first character of IFS is used to create $*,
4855 # except with old shells:
4856 host_os=$*
4857 IFS=$ac_save_IFS
4858 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4859
4860
4861
4862 #case "$host_os" in
4863 #
4864 # osf5*)
4865 #    CFLAGS="$CFLAGS -D_OSF_SOURCE"
4866 #    ;;
4867 #esac
4868
4869
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4872 $as_echo_n "checking whether ln -s works... " >&6; }
4873 LN_S=$as_ln_s
4874 if test "$LN_S" = "ln -s"; then
4875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4876 $as_echo "yes" >&6; }
4877 else
4878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4879 $as_echo "no, using $LN_S" >&6; }
4880 fi
4881
4882 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4883
4884 # AC_PROG_SED is only available in Autoconf >= 2.59b; workaround for older
4885 # versions
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4887 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4888 if ${ac_cv_path_SED+:} false; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4892      for ac_i in 1 2 3 4 5 6 7; do
4893        ac_script="$ac_script$as_nl$ac_script"
4894      done
4895      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4896      { ac_script=; unset ac_script;}
4897      if test -z "$SED"; then
4898   ac_path_SED_found=false
4899   # Loop through the user's path and test for each of PROGNAME-LIST
4900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905     for ac_prog in sed gsed; do
4906     for ac_exec_ext in '' $ac_executable_extensions; do
4907       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4908       as_fn_executable_p "$ac_path_SED" || continue
4909 # Check for GNU ac_path_SED and select it if it is found.
4910   # Check for GNU $ac_path_SED
4911 case `"$ac_path_SED" --version 2>&1` in
4912 *GNU*)
4913   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4914 *)
4915   ac_count=0
4916   $as_echo_n 0123456789 >"conftest.in"
4917   while :
4918   do
4919     cat "conftest.in" "conftest.in" >"conftest.tmp"
4920     mv "conftest.tmp" "conftest.in"
4921     cp "conftest.in" "conftest.nl"
4922     $as_echo '' >> "conftest.nl"
4923     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925     as_fn_arith $ac_count + 1 && ac_count=$as_val
4926     if test $ac_count -gt ${ac_path_SED_max-0}; then
4927       # Best one so far, save it but keep looking for a better one
4928       ac_cv_path_SED="$ac_path_SED"
4929       ac_path_SED_max=$ac_count
4930     fi
4931     # 10*(2^10) chars as input seems more than enough
4932     test $ac_count -gt 10 && break
4933   done
4934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937       $ac_path_SED_found && break 3
4938     done
4939   done
4940   done
4941 IFS=$as_save_IFS
4942   if test -z "$ac_cv_path_SED"; then
4943     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4944   fi
4945 else
4946   ac_cv_path_SED=$SED
4947 fi
4948
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4951 $as_echo "$ac_cv_path_SED" >&6; }
4952  SED="$ac_cv_path_SED"
4953   rm -f conftest.sed
4954
4955
4956 if test $ac_cv_c_compiler_gnu = yes; then
4957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4958 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4959 if ${ac_cv_prog_gcc_traditional+:} false; then :
4960   $as_echo_n "(cached) " >&6
4961 else
4962     ac_pattern="Autoconf.*'x'"
4963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h.  */
4965 #include <sgtty.h>
4966 Autoconf TIOCGETP
4967 _ACEOF
4968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4969   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4970   ac_cv_prog_gcc_traditional=yes
4971 else
4972   ac_cv_prog_gcc_traditional=no
4973 fi
4974 rm -f conftest*
4975
4976
4977   if test $ac_cv_prog_gcc_traditional = no; then
4978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h.  */
4980 #include <termio.h>
4981 Autoconf TCGETA
4982 _ACEOF
4983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4984   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4985   ac_cv_prog_gcc_traditional=yes
4986 fi
4987 rm -f conftest*
4988
4989   fi
4990 fi
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4992 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4993   if test $ac_cv_prog_gcc_traditional = yes; then
4994     CC="$CC -traditional"
4995   fi
4996 fi
4997
4998
4999 # We need to test for at least gcc 2.95 here, because older versions don't
5000 # have -fno-strict-aliasing
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h.  */
5003
5004 int
5005 main ()
5006 {
5007
5008 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5009 #error
5010 #endif
5011   ;
5012   return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_c_try_compile "$LINENO"; then :
5016   have_gcc295=yes
5017 else
5018   have_gcc295=no
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021
5022 if test "$GCC" = "yes" ; then
5023         # Enable many gcc warnings by default...
5024         CFLAGS="$CFLAGS -Wall"
5025         # And disable the strict-aliasing optimization, since it breaks
5026         # our sockaddr-handling code in strange ways.
5027         if test x$have_gcc295 = xyes; then
5028                 CFLAGS="$CFLAGS -fno-strict-aliasing"
5029         fi
5030 fi
5031
5032 # OS X Lion started deprecating the system openssl. Let's just disable
5033 # all deprecation warnings on OS X.
5034 case "$host_os" in
5035
5036  darwin*)
5037     CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5038     ;;
5039 esac
5040
5041 # Check whether --enable-gcc-warnings was given.
5042 if test "${enable_gcc_warnings+set}" = set; then :
5043   enableval=$enable_gcc_warnings;
5044 fi
5045
5046
5047 # Check whether --enable-gcc-hardening was given.
5048 if test "${enable_gcc_hardening+set}" = set; then :
5049   enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5050     CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5051     CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5052     CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5053 fi
5054 fi
5055
5056
5057 # Check whether --enable-thread-support was given.
5058 if test "${enable_thread_support+set}" = set; then :
5059   enableval=$enable_thread_support;
5060 else
5061   enable_thread_support=yes
5062 fi
5063
5064 # Check whether --enable-malloc-replacement was given.
5065 if test "${enable_malloc_replacement+set}" = set; then :
5066   enableval=$enable_malloc_replacement;
5067 else
5068   enable_malloc_replacement=yes
5069 fi
5070
5071 # Check whether --enable-openssl was given.
5072 if test "${enable_openssl+set}" = set; then :
5073   enableval=$enable_openssl;
5074 else
5075   enable_openssl=yes
5076 fi
5077
5078 # Check whether --enable-debug-mode was given.
5079 if test "${enable_debug_mode+set}" = set; then :
5080   enableval=$enable_debug_mode;
5081 else
5082   enable_debug_mode=yes
5083 fi
5084
5085 # Check whether --enable-libevent-install was given.
5086 if test "${enable_libevent_install+set}" = set; then :
5087   enableval=$enable_libevent_install;
5088 else
5089   enable_libevent_install=yes
5090 fi
5091
5092 # Check whether --enable-libevent-regress was given.
5093 if test "${enable_libevent_regress+set}" = set; then :
5094   enableval=$enable_libevent_regress;
5095 else
5096   enable_libevent_regress=yes
5097 fi
5098
5099 # Check whether --enable-samples was given.
5100 if test "${enable_samples+set}" = set; then :
5101   enableval=$enable_samples;
5102 else
5103   enable_samples=yes
5104 fi
5105
5106 # Check whether --enable-function-sections was given.
5107 if test "${enable_function_sections+set}" = set; then :
5108   enableval=$enable_function_sections;
5109 else
5110   enable_function_sections=no
5111 fi
5112
5113 # Check whether --enable-verbose-debug was given.
5114 if test "${enable_verbose_debug+set}" = set; then :
5115   enableval=$enable_verbose_debug;
5116 else
5117   enable_verbose_debug=no
5118 fi
5119
5120
5121
5122 case `pwd` in
5123   *\ * | *\     *)
5124     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5125 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5126 esac
5127
5128
5129
5130 macro_version='2.4.6'
5131 macro_revision='2.4.6'
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145 ltmain=$ac_aux_dir/ltmain.sh
5146
5147 # Backslashify metacharacters that are still active within
5148 # double-quoted strings.
5149 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5150
5151 # Same as above, but do not quote variable references.
5152 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5153
5154 # Sed substitution to delay expansion of an escaped shell variable in a
5155 # double_quote_subst'ed string.
5156 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5157
5158 # Sed substitution to delay expansion of an escaped single quote.
5159 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5160
5161 # Sed substitution to avoid accidental globbing in evaled expressions
5162 no_glob_subst='s/\*/\\\*/g'
5163
5164 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5165 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5166 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5169 $as_echo_n "checking how to print strings... " >&6; }
5170 # Test print first, because it will be a builtin if present.
5171 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5172    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5173   ECHO='print -r --'
5174 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5175   ECHO='printf %s\n'
5176 else
5177   # Use this function as a fallback that always works.
5178   func_fallback_echo ()
5179   {
5180     eval 'cat <<_LTECHO_EOF
5181 $1
5182 _LTECHO_EOF'
5183   }
5184   ECHO='func_fallback_echo'
5185 fi
5186
5187 # func_echo_all arg...
5188 # Invoke $ECHO with all args, space-separated.
5189 func_echo_all ()
5190 {
5191     $ECHO ""
5192 }
5193
5194 case $ECHO in
5195   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5196 $as_echo "printf" >&6; } ;;
5197   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5198 $as_echo "print -r" >&6; } ;;
5199   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5200 $as_echo "cat" >&6; } ;;
5201 esac
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5217 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5218 if ${ac_cv_path_SED+:} false; then :
5219   $as_echo_n "(cached) " >&6
5220 else
5221             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5222      for ac_i in 1 2 3 4 5 6 7; do
5223        ac_script="$ac_script$as_nl$ac_script"
5224      done
5225      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5226      { ac_script=; unset ac_script;}
5227      if test -z "$SED"; then
5228   ac_path_SED_found=false
5229   # Loop through the user's path and test for each of PROGNAME-LIST
5230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235     for ac_prog in sed gsed; do
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5238       as_fn_executable_p "$ac_path_SED" || continue
5239 # Check for GNU ac_path_SED and select it if it is found.
5240   # Check for GNU $ac_path_SED
5241 case `"$ac_path_SED" --version 2>&1` in
5242 *GNU*)
5243   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5244 *)
5245   ac_count=0
5246   $as_echo_n 0123456789 >"conftest.in"
5247   while :
5248   do
5249     cat "conftest.in" "conftest.in" >"conftest.tmp"
5250     mv "conftest.tmp" "conftest.in"
5251     cp "conftest.in" "conftest.nl"
5252     $as_echo '' >> "conftest.nl"
5253     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5254     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5255     as_fn_arith $ac_count + 1 && ac_count=$as_val
5256     if test $ac_count -gt ${ac_path_SED_max-0}; then
5257       # Best one so far, save it but keep looking for a better one
5258       ac_cv_path_SED="$ac_path_SED"
5259       ac_path_SED_max=$ac_count
5260     fi
5261     # 10*(2^10) chars as input seems more than enough
5262     test $ac_count -gt 10 && break
5263   done
5264   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5265 esac
5266
5267       $ac_path_SED_found && break 3
5268     done
5269   done
5270   done
5271 IFS=$as_save_IFS
5272   if test -z "$ac_cv_path_SED"; then
5273     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5274   fi
5275 else
5276   ac_cv_path_SED=$SED
5277 fi
5278
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5281 $as_echo "$ac_cv_path_SED" >&6; }
5282  SED="$ac_cv_path_SED"
5283   rm -f conftest.sed
5284
5285 test -z "$SED" && SED=sed
5286 Xsed="$SED -e 1s/^X//"
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5299 $as_echo_n "checking for fgrep... " >&6; }
5300 if ${ac_cv_path_FGREP+:} false; then :
5301   $as_echo_n "(cached) " >&6
5302 else
5303   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5304    then ac_cv_path_FGREP="$GREP -F"
5305    else
5306      if test -z "$FGREP"; then
5307   ac_path_FGREP_found=false
5308   # Loop through the user's path and test for each of PROGNAME-LIST
5309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5311 do
5312   IFS=$as_save_IFS
5313   test -z "$as_dir" && as_dir=.
5314     for ac_prog in fgrep; do
5315     for ac_exec_ext in '' $ac_executable_extensions; do
5316       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5317       as_fn_executable_p "$ac_path_FGREP" || continue
5318 # Check for GNU ac_path_FGREP and select it if it is found.
5319   # Check for GNU $ac_path_FGREP
5320 case `"$ac_path_FGREP" --version 2>&1` in
5321 *GNU*)
5322   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5323 *)
5324   ac_count=0
5325   $as_echo_n 0123456789 >"conftest.in"
5326   while :
5327   do
5328     cat "conftest.in" "conftest.in" >"conftest.tmp"
5329     mv "conftest.tmp" "conftest.in"
5330     cp "conftest.in" "conftest.nl"
5331     $as_echo 'FGREP' >> "conftest.nl"
5332     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5333     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5334     as_fn_arith $ac_count + 1 && ac_count=$as_val
5335     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5336       # Best one so far, save it but keep looking for a better one
5337       ac_cv_path_FGREP="$ac_path_FGREP"
5338       ac_path_FGREP_max=$ac_count
5339     fi
5340     # 10*(2^10) chars as input seems more than enough
5341     test $ac_count -gt 10 && break
5342   done
5343   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5344 esac
5345
5346       $ac_path_FGREP_found && break 3
5347     done
5348   done
5349   done
5350 IFS=$as_save_IFS
5351   if test -z "$ac_cv_path_FGREP"; then
5352     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5353   fi
5354 else
5355   ac_cv_path_FGREP=$FGREP
5356 fi
5357
5358    fi
5359 fi
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5361 $as_echo "$ac_cv_path_FGREP" >&6; }
5362  FGREP="$ac_cv_path_FGREP"
5363
5364
5365 test -z "$GREP" && GREP=grep
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 # Check whether --with-gnu-ld was given.
5386 if test "${with_gnu_ld+set}" = set; then :
5387   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5388 else
5389   with_gnu_ld=no
5390 fi
5391
5392 ac_prog=ld
5393 if test yes = "$GCC"; then
5394   # Check if gcc -print-prog-name=ld gives a path.
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5396 $as_echo_n "checking for ld used by $CC... " >&6; }
5397   case $host in
5398   *-*-mingw*)
5399     # gcc leaves a trailing carriage return, which upsets mingw
5400     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5401   *)
5402     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5403   esac
5404   case $ac_prog in
5405     # Accept absolute paths.
5406     [\\/]* | ?:[\\/]*)
5407       re_direlt='/[^/][^/]*/\.\./'
5408       # Canonicalize the pathname of ld
5409       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5410       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5411         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5412       done
5413       test -z "$LD" && LD=$ac_prog
5414       ;;
5415   "")
5416     # If it fails, then pretend we aren't using GCC.
5417     ac_prog=ld
5418     ;;
5419   *)
5420     # If it is relative, then search for the first ld in PATH.
5421     with_gnu_ld=unknown
5422     ;;
5423   esac
5424 elif test yes = "$with_gnu_ld"; then
5425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5426 $as_echo_n "checking for GNU ld... " >&6; }
5427 else
5428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5429 $as_echo_n "checking for non-GNU ld... " >&6; }
5430 fi
5431 if ${lt_cv_path_LD+:} false; then :
5432   $as_echo_n "(cached) " >&6
5433 else
5434   if test -z "$LD"; then
5435   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5436   for ac_dir in $PATH; do
5437     IFS=$lt_save_ifs
5438     test -z "$ac_dir" && ac_dir=.
5439     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5440       lt_cv_path_LD=$ac_dir/$ac_prog
5441       # Check to see if the program is GNU ld.  I'd rather use --version,
5442       # but apparently some variants of GNU ld only accept -v.
5443       # Break only if it was the GNU/non-GNU ld that we prefer.
5444       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5445       *GNU* | *'with BFD'*)
5446         test no != "$with_gnu_ld" && break
5447         ;;
5448       *)
5449         test yes != "$with_gnu_ld" && break
5450         ;;
5451       esac
5452     fi
5453   done
5454   IFS=$lt_save_ifs
5455 else
5456   lt_cv_path_LD=$LD # Let the user override the test with a path.
5457 fi
5458 fi
5459
5460 LD=$lt_cv_path_LD
5461 if test -n "$LD"; then
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5463 $as_echo "$LD" >&6; }
5464 else
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 fi
5468 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5470 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5471 if ${lt_cv_prog_gnu_ld+:} false; then :
5472   $as_echo_n "(cached) " >&6
5473 else
5474   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5475 case `$LD -v 2>&1 </dev/null` in
5476 *GNU* | *'with BFD'*)
5477   lt_cv_prog_gnu_ld=yes
5478   ;;
5479 *)
5480   lt_cv_prog_gnu_ld=no
5481   ;;
5482 esac
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5485 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5486 with_gnu_ld=$lt_cv_prog_gnu_ld
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5497 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5498 if ${lt_cv_path_NM+:} false; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if test -n "$NM"; then
5502   # Let the user override the test.
5503   lt_cv_path_NM=$NM
5504 else
5505   lt_nm_to_check=${ac_tool_prefix}nm
5506   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5507     lt_nm_to_check="$lt_nm_to_check nm"
5508   fi
5509   for lt_tmp_nm in $lt_nm_to_check; do
5510     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5511     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5512       IFS=$lt_save_ifs
5513       test -z "$ac_dir" && ac_dir=.
5514       tmp_nm=$ac_dir/$lt_tmp_nm
5515       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5516         # Check to see if the nm accepts a BSD-compat flag.
5517         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5518         #   nm: unknown option "B" ignored
5519         # Tru64's nm complains that /dev/null is an invalid object file
5520         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5521         case $build_os in
5522         mingw*) lt_bad_file=conftest.nm/nofile ;;
5523         *) lt_bad_file=/dev/null ;;
5524         esac
5525         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5526         *$lt_bad_file* | *'Invalid file or object type'*)
5527           lt_cv_path_NM="$tmp_nm -B"
5528           break 2
5529           ;;
5530         *)
5531           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5532           */dev/null*)
5533             lt_cv_path_NM="$tmp_nm -p"
5534             break 2
5535             ;;
5536           *)
5537             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5538             continue # so that we can try to find one that supports BSD flags
5539             ;;
5540           esac
5541           ;;
5542         esac
5543       fi
5544     done
5545     IFS=$lt_save_ifs
5546   done
5547   : ${lt_cv_path_NM=no}
5548 fi
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5551 $as_echo "$lt_cv_path_NM" >&6; }
5552 if test no != "$lt_cv_path_NM"; then
5553   NM=$lt_cv_path_NM
5554 else
5555   # Didn't find any BSD compatible name lister, look for dumpbin.
5556   if test -n "$DUMPBIN"; then :
5557     # Let the user override the test.
5558   else
5559     if test -n "$ac_tool_prefix"; then
5560   for ac_prog in dumpbin "link -dump"
5561   do
5562     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_DUMPBIN+:} false; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569   if test -n "$DUMPBIN"; then
5570   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577     for ac_exec_ext in '' $ac_executable_extensions; do
5578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584   done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 DUMPBIN=$ac_cv_prog_DUMPBIN
5590 if test -n "$DUMPBIN"; then
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5592 $as_echo "$DUMPBIN" >&6; }
5593 else
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598
5599     test -n "$DUMPBIN" && break
5600   done
5601 fi
5602 if test -z "$DUMPBIN"; then
5603   ac_ct_DUMPBIN=$DUMPBIN
5604   for ac_prog in dumpbin "link -dump"
5605 do
5606   # Extract the first word of "$ac_prog", so it can be a program name with args.
5607 set dummy $ac_prog; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5611   $as_echo_n "(cached) " >&6
5612 else
5613   if test -n "$ac_ct_DUMPBIN"; then
5614   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621     for ac_exec_ext in '' $ac_executable_extensions; do
5622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625     break 2
5626   fi
5627 done
5628   done
5629 IFS=$as_save_IFS
5630
5631 fi
5632 fi
5633 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5634 if test -n "$ac_ct_DUMPBIN"; then
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5636 $as_echo "$ac_ct_DUMPBIN" >&6; }
5637 else
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5640 fi
5641
5642
5643   test -n "$ac_ct_DUMPBIN" && break
5644 done
5645
5646   if test "x$ac_ct_DUMPBIN" = x; then
5647     DUMPBIN=":"
5648   else
5649     case $cross_compiling:$ac_tool_warned in
5650 yes:)
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653 ac_tool_warned=yes ;;
5654 esac
5655     DUMPBIN=$ac_ct_DUMPBIN
5656   fi
5657 fi
5658
5659     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5660     *COFF*)
5661       DUMPBIN="$DUMPBIN -symbols -headers"
5662       ;;
5663     *)
5664       DUMPBIN=:
5665       ;;
5666     esac
5667   fi
5668
5669   if test : != "$DUMPBIN"; then
5670     NM=$DUMPBIN
5671   fi
5672 fi
5673 test -z "$NM" && NM=nm
5674
5675
5676
5677
5678
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5681 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5682 if ${lt_cv_nm_interface+:} false; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   lt_cv_nm_interface="BSD nm"
5686   echo "int some_variable = 0;" > conftest.$ac_ext
5687   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5688   (eval "$ac_compile" 2>conftest.err)
5689   cat conftest.err >&5
5690   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5691   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5692   cat conftest.err >&5
5693   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5694   cat conftest.out >&5
5695   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5696     lt_cv_nm_interface="MS dumpbin"
5697   fi
5698   rm -f conftest*
5699 fi
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5701 $as_echo "$lt_cv_nm_interface" >&6; }
5702
5703 # find the maximum length of command line arguments
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5705 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5706 if ${lt_cv_sys_max_cmd_len+:} false; then :
5707   $as_echo_n "(cached) " >&6
5708 else
5709     i=0
5710   teststring=ABCD
5711
5712   case $build_os in
5713   msdosdjgpp*)
5714     # On DJGPP, this test can blow up pretty badly due to problems in libc
5715     # (any single argument exceeding 2000 bytes causes a buffer overrun
5716     # during glob expansion).  Even if it were fixed, the result of this
5717     # check would be larger than it should be.
5718     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5719     ;;
5720
5721   gnu*)
5722     # Under GNU Hurd, this test is not required because there is
5723     # no limit to the length of command line arguments.
5724     # Libtool will interpret -1 as no limit whatsoever
5725     lt_cv_sys_max_cmd_len=-1;
5726     ;;
5727
5728   cygwin* | mingw* | cegcc*)
5729     # On Win9x/ME, this test blows up -- it succeeds, but takes
5730     # about 5 minutes as the teststring grows exponentially.
5731     # Worse, since 9x/ME are not pre-emptively multitasking,
5732     # you end up with a "frozen" computer, even though with patience
5733     # the test eventually succeeds (with a max line length of 256k).
5734     # Instead, let's just punt: use the minimum linelength reported by
5735     # all of the supported platforms: 8192 (on NT/2K/XP).
5736     lt_cv_sys_max_cmd_len=8192;
5737     ;;
5738
5739   mint*)
5740     # On MiNT this can take a long time and run out of memory.
5741     lt_cv_sys_max_cmd_len=8192;
5742     ;;
5743
5744   amigaos*)
5745     # On AmigaOS with pdksh, this test takes hours, literally.
5746     # So we just punt and use a minimum line length of 8192.
5747     lt_cv_sys_max_cmd_len=8192;
5748     ;;
5749
5750   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5751     # This has been around since 386BSD, at least.  Likely further.
5752     if test -x /sbin/sysctl; then
5753       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5754     elif test -x /usr/sbin/sysctl; then
5755       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5756     else
5757       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5758     fi
5759     # And add a safety zone
5760     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5761     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5762     ;;
5763
5764   interix*)
5765     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5766     lt_cv_sys_max_cmd_len=196608
5767     ;;
5768
5769   os2*)
5770     # The test takes a long time on OS/2.
5771     lt_cv_sys_max_cmd_len=8192
5772     ;;
5773
5774   osf*)
5775     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5776     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5777     # nice to cause kernel panics so lets avoid the loop below.
5778     # First set a reasonable default.
5779     lt_cv_sys_max_cmd_len=16384
5780     #
5781     if test -x /sbin/sysconfig; then
5782       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5783         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5784       esac
5785     fi
5786     ;;
5787   sco3.2v5*)
5788     lt_cv_sys_max_cmd_len=102400
5789     ;;
5790   sysv5* | sco5v6* | sysv4.2uw2*)
5791     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5792     if test -n "$kargmax"; then
5793       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5794     else
5795       lt_cv_sys_max_cmd_len=32768
5796     fi
5797     ;;
5798   *)
5799     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5800     if test -n "$lt_cv_sys_max_cmd_len" && \
5801        test undefined != "$lt_cv_sys_max_cmd_len"; then
5802       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5803       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5804     else
5805       # Make teststring a little bigger before we do anything with it.
5806       # a 1K string should be a reasonable start.
5807       for i in 1 2 3 4 5 6 7 8; do
5808         teststring=$teststring$teststring
5809       done
5810       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5811       # If test is not a shell built-in, we'll probably end up computing a
5812       # maximum length that is only half of the actual maximum length, but
5813       # we can't tell.
5814       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5815                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5816               test 17 != "$i" # 1/2 MB should be enough
5817       do
5818         i=`expr $i + 1`
5819         teststring=$teststring$teststring
5820       done
5821       # Only check the string length outside the loop.
5822       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5823       teststring=
5824       # Add a significant safety factor because C++ compilers can tack on
5825       # massive amounts of additional arguments before passing them to the
5826       # linker.  It appears as though 1/2 is a usable value.
5827       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5828     fi
5829     ;;
5830   esac
5831
5832 fi
5833
5834 if test -n "$lt_cv_sys_max_cmd_len"; then
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5836 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5837 else
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5839 $as_echo "none" >&6; }
5840 fi
5841 max_cmd_len=$lt_cv_sys_max_cmd_len
5842
5843
5844
5845
5846
5847
5848 : ${CP="cp -f"}
5849 : ${MV="mv -f"}
5850 : ${RM="rm -f"}
5851
5852 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5853   lt_unset=unset
5854 else
5855   lt_unset=false
5856 fi
5857
5858
5859
5860
5861
5862 # test EBCDIC or ASCII
5863 case `echo X|tr X '\101'` in
5864  A) # ASCII based system
5865     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5866   lt_SP2NL='tr \040 \012'
5867   lt_NL2SP='tr \015\012 \040\040'
5868   ;;
5869  *) # EBCDIC based system
5870   lt_SP2NL='tr \100 \n'
5871   lt_NL2SP='tr \r\n \100\100'
5872   ;;
5873 esac
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5884 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5885 if ${lt_cv_to_host_file_cmd+:} false; then :
5886   $as_echo_n "(cached) " >&6
5887 else
5888   case $host in
5889   *-*-mingw* )
5890     case $build in
5891       *-*-mingw* ) # actually msys
5892         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5893         ;;
5894       *-*-cygwin* )
5895         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5896         ;;
5897       * ) # otherwise, assume *nix
5898         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5899         ;;
5900     esac
5901     ;;
5902   *-*-cygwin* )
5903     case $build in
5904       *-*-mingw* ) # actually msys
5905         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5906         ;;
5907       *-*-cygwin* )
5908         lt_cv_to_host_file_cmd=func_convert_file_noop
5909         ;;
5910       * ) # otherwise, assume *nix
5911         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5912         ;;
5913     esac
5914     ;;
5915   * ) # unhandled hosts (and "normal" native builds)
5916     lt_cv_to_host_file_cmd=func_convert_file_noop
5917     ;;
5918 esac
5919
5920 fi
5921
5922 to_host_file_cmd=$lt_cv_to_host_file_cmd
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5924 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5925
5926
5927
5928
5929
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5931 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5932 if ${lt_cv_to_tool_file_cmd+:} false; then :
5933   $as_echo_n "(cached) " >&6
5934 else
5935   #assume ordinary cross tools, or native build.
5936 lt_cv_to_tool_file_cmd=func_convert_file_noop
5937 case $host in
5938   *-*-mingw* )
5939     case $build in
5940       *-*-mingw* ) # actually msys
5941         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5942         ;;
5943     esac
5944     ;;
5945 esac
5946
5947 fi
5948
5949 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5951 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5952
5953
5954
5955
5956
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5958 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5959 if ${lt_cv_ld_reload_flag+:} false; then :
5960   $as_echo_n "(cached) " >&6
5961 else
5962   lt_cv_ld_reload_flag='-r'
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5965 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5966 reload_flag=$lt_cv_ld_reload_flag
5967 case $reload_flag in
5968 "" | " "*) ;;
5969 *) reload_flag=" $reload_flag" ;;
5970 esac
5971 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5972 case $host_os in
5973   cygwin* | mingw* | pw32* | cegcc*)
5974     if test yes != "$GCC"; then
5975       reload_cmds=false
5976     fi
5977     ;;
5978   darwin*)
5979     if test yes = "$GCC"; then
5980       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5981     else
5982       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5983     fi
5984     ;;
5985 esac
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995 if test -n "$ac_tool_prefix"; then
5996   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5997 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5999 $as_echo_n "checking for $ac_word... " >&6; }
6000 if ${ac_cv_prog_OBJDUMP+:} false; then :
6001   $as_echo_n "(cached) " >&6
6002 else
6003   if test -n "$OBJDUMP"; then
6004   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011     for ac_exec_ext in '' $ac_executable_extensions; do
6012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018   done
6019 IFS=$as_save_IFS
6020
6021 fi
6022 fi
6023 OBJDUMP=$ac_cv_prog_OBJDUMP
6024 if test -n "$OBJDUMP"; then
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6026 $as_echo "$OBJDUMP" >&6; }
6027 else
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031
6032
6033 fi
6034 if test -z "$ac_cv_prog_OBJDUMP"; then
6035   ac_ct_OBJDUMP=$OBJDUMP
6036   # Extract the first word of "objdump", so it can be a program name with args.
6037 set dummy objdump; ac_word=$2
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6039 $as_echo_n "checking for $ac_word... " >&6; }
6040 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6041   $as_echo_n "(cached) " >&6
6042 else
6043   if test -n "$ac_ct_OBJDUMP"; then
6044   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6045 else
6046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 for as_dir in $PATH
6048 do
6049   IFS=$as_save_IFS
6050   test -z "$as_dir" && as_dir=.
6051     for ac_exec_ext in '' $ac_executable_extensions; do
6052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6053     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6055     break 2
6056   fi
6057 done
6058   done
6059 IFS=$as_save_IFS
6060
6061 fi
6062 fi
6063 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6064 if test -n "$ac_ct_OBJDUMP"; then
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6066 $as_echo "$ac_ct_OBJDUMP" >&6; }
6067 else
6068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6069 $as_echo "no" >&6; }
6070 fi
6071
6072   if test "x$ac_ct_OBJDUMP" = x; then
6073     OBJDUMP="false"
6074   else
6075     case $cross_compiling:$ac_tool_warned in
6076 yes:)
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6079 ac_tool_warned=yes ;;
6080 esac
6081     OBJDUMP=$ac_ct_OBJDUMP
6082   fi
6083 else
6084   OBJDUMP="$ac_cv_prog_OBJDUMP"
6085 fi
6086
6087 test -z "$OBJDUMP" && OBJDUMP=objdump
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6098 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6099 if ${lt_cv_deplibs_check_method+:} false; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102   lt_cv_file_magic_cmd='$MAGIC_CMD'
6103 lt_cv_file_magic_test_file=
6104 lt_cv_deplibs_check_method='unknown'
6105 # Need to set the preceding variable on all platforms that support
6106 # interlibrary dependencies.
6107 # 'none' -- dependencies not supported.
6108 # 'unknown' -- same as none, but documents that we really don't know.
6109 # 'pass_all' -- all dependencies passed with no checks.
6110 # 'test_compile' -- check by making test program.
6111 # 'file_magic [[regex]]' -- check by looking for files in library path
6112 # that responds to the $file_magic_cmd with a given extended regex.
6113 # If you have 'file' or equivalent on your system and you're not sure
6114 # whether 'pass_all' will *always* work, you probably want this one.
6115
6116 case $host_os in
6117 aix[4-9]*)
6118   lt_cv_deplibs_check_method=pass_all
6119   ;;
6120
6121 beos*)
6122   lt_cv_deplibs_check_method=pass_all
6123   ;;
6124
6125 bsdi[45]*)
6126   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6127   lt_cv_file_magic_cmd='/usr/bin/file -L'
6128   lt_cv_file_magic_test_file=/shlib/libc.so
6129   ;;
6130
6131 cygwin*)
6132   # func_win32_libid is a shell function defined in ltmain.sh
6133   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6134   lt_cv_file_magic_cmd='func_win32_libid'
6135   ;;
6136
6137 mingw* | pw32*)
6138   # Base MSYS/MinGW do not provide the 'file' command needed by
6139   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6140   # unless we find 'file', for example because we are cross-compiling.
6141   if ( file / ) >/dev/null 2>&1; then
6142     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6143     lt_cv_file_magic_cmd='func_win32_libid'
6144   else
6145     # Keep this pattern in sync with the one in func_win32_libid.
6146     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6147     lt_cv_file_magic_cmd='$OBJDUMP -f'
6148   fi
6149   ;;
6150
6151 cegcc*)
6152   # use the weaker test based on 'objdump'. See mingw*.
6153   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6154   lt_cv_file_magic_cmd='$OBJDUMP -f'
6155   ;;
6156
6157 darwin* | rhapsody*)
6158   lt_cv_deplibs_check_method=pass_all
6159   ;;
6160
6161 freebsd* | dragonfly*)
6162   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6163     case $host_cpu in
6164     i*86 )
6165       # Not sure whether the presence of OpenBSD here was a mistake.
6166       # Let's accept both of them until this is cleared up.
6167       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6168       lt_cv_file_magic_cmd=/usr/bin/file
6169       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6170       ;;
6171     esac
6172   else
6173     lt_cv_deplibs_check_method=pass_all
6174   fi
6175   ;;
6176
6177 haiku*)
6178   lt_cv_deplibs_check_method=pass_all
6179   ;;
6180
6181 hpux10.20* | hpux11*)
6182   lt_cv_file_magic_cmd=/usr/bin/file
6183   case $host_cpu in
6184   ia64*)
6185     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6186     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6187     ;;
6188   hppa*64*)
6189     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]'
6190     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6191     ;;
6192   *)
6193     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6194     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6195     ;;
6196   esac
6197   ;;
6198
6199 interix[3-9]*)
6200   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6201   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6202   ;;
6203
6204 irix5* | irix6* | nonstopux*)
6205   case $LD in
6206   *-32|*"-32 ") libmagic=32-bit;;
6207   *-n32|*"-n32 ") libmagic=N32;;
6208   *-64|*"-64 ") libmagic=64-bit;;
6209   *) libmagic=never-match;;
6210   esac
6211   lt_cv_deplibs_check_method=pass_all
6212   ;;
6213
6214 # This must be glibc/ELF.
6215 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6216   lt_cv_deplibs_check_method=pass_all
6217   ;;
6218
6219 netbsd*)
6220   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6221     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6222   else
6223     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6224   fi
6225   ;;
6226
6227 newos6*)
6228   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6229   lt_cv_file_magic_cmd=/usr/bin/file
6230   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6231   ;;
6232
6233 *nto* | *qnx*)
6234   lt_cv_deplibs_check_method=pass_all
6235   ;;
6236
6237 openbsd* | bitrig*)
6238   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6239     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6240   else
6241     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6242   fi
6243   ;;
6244
6245 osf3* | osf4* | osf5*)
6246   lt_cv_deplibs_check_method=pass_all
6247   ;;
6248
6249 rdos*)
6250   lt_cv_deplibs_check_method=pass_all
6251   ;;
6252
6253 solaris*)
6254   lt_cv_deplibs_check_method=pass_all
6255   ;;
6256
6257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6258   lt_cv_deplibs_check_method=pass_all
6259   ;;
6260
6261 sysv4 | sysv4.3*)
6262   case $host_vendor in
6263   motorola)
6264     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]'
6265     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6266     ;;
6267   ncr)
6268     lt_cv_deplibs_check_method=pass_all
6269     ;;
6270   sequent)
6271     lt_cv_file_magic_cmd='/bin/file'
6272     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6273     ;;
6274   sni)
6275     lt_cv_file_magic_cmd='/bin/file'
6276     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6277     lt_cv_file_magic_test_file=/lib/libc.so
6278     ;;
6279   siemens)
6280     lt_cv_deplibs_check_method=pass_all
6281     ;;
6282   pc)
6283     lt_cv_deplibs_check_method=pass_all
6284     ;;
6285   esac
6286   ;;
6287
6288 tpf*)
6289   lt_cv_deplibs_check_method=pass_all
6290   ;;
6291 os2*)
6292   lt_cv_deplibs_check_method=pass_all
6293   ;;
6294 esac
6295
6296 fi
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6298 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6299
6300 file_magic_glob=
6301 want_nocaseglob=no
6302 if test "$build" = "$host"; then
6303   case $host_os in
6304   mingw* | pw32*)
6305     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6306       want_nocaseglob=yes
6307     else
6308       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6309     fi
6310     ;;
6311   esac
6312 fi
6313
6314 file_magic_cmd=$lt_cv_file_magic_cmd
6315 deplibs_check_method=$lt_cv_deplibs_check_method
6316 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339 if test -n "$ac_tool_prefix"; then
6340   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_DLLTOOL+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   if test -n "$DLLTOOL"; then
6348   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355     for ac_exec_ext in '' $ac_executable_extensions; do
6356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362   done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 DLLTOOL=$ac_cv_prog_DLLTOOL
6368 if test -n "$DLLTOOL"; then
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6370 $as_echo "$DLLTOOL" >&6; }
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376
6377 fi
6378 if test -z "$ac_cv_prog_DLLTOOL"; then
6379   ac_ct_DLLTOOL=$DLLTOOL
6380   # Extract the first word of "dlltool", so it can be a program name with args.
6381 set dummy dlltool; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6385   $as_echo_n "(cached) " >&6
6386 else
6387   if test -n "$ac_ct_DLLTOOL"; then
6388   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395     for ac_exec_ext in '' $ac_executable_extensions; do
6396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402   done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6408 if test -n "$ac_ct_DLLTOOL"; then
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6410 $as_echo "$ac_ct_DLLTOOL" >&6; }
6411 else
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416   if test "x$ac_ct_DLLTOOL" = x; then
6417     DLLTOOL="false"
6418   else
6419     case $cross_compiling:$ac_tool_warned in
6420 yes:)
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423 ac_tool_warned=yes ;;
6424 esac
6425     DLLTOOL=$ac_ct_DLLTOOL
6426   fi
6427 else
6428   DLLTOOL="$ac_cv_prog_DLLTOOL"
6429 fi
6430
6431 test -z "$DLLTOOL" && DLLTOOL=dlltool
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6443 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6444 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   lt_cv_sharedlib_from_linklib_cmd='unknown'
6448
6449 case $host_os in
6450 cygwin* | mingw* | pw32* | cegcc*)
6451   # two different shell functions defined in ltmain.sh;
6452   # decide which one to use based on capabilities of $DLLTOOL
6453   case `$DLLTOOL --help 2>&1` in
6454   *--identify-strict*)
6455     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6456     ;;
6457   *)
6458     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6459     ;;
6460   esac
6461   ;;
6462 *)
6463   # fallback: assume linklib IS sharedlib
6464   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6465   ;;
6466 esac
6467
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6470 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6471 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6472 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6473
6474
6475
6476
6477
6478
6479
6480 if test -n "$ac_tool_prefix"; then
6481   for ac_prog in ar
6482   do
6483     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_AR+:} false; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   if test -n "$AR"; then
6491   ac_cv_prog_AR="$AR" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496   IFS=$as_save_IFS
6497   test -z "$as_dir" && as_dir=.
6498     for ac_exec_ext in '' $ac_executable_extensions; do
6499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502     break 2
6503   fi
6504 done
6505   done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 AR=$ac_cv_prog_AR
6511 if test -n "$AR"; then
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6513 $as_echo "$AR" >&6; }
6514 else
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 fi
6518
6519
6520     test -n "$AR" && break
6521   done
6522 fi
6523 if test -z "$AR"; then
6524   ac_ct_AR=$AR
6525   for ac_prog in ar
6526 do
6527   # Extract the first word of "$ac_prog", so it can be a program name with args.
6528 set dummy $ac_prog; ac_word=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534   if test -n "$ac_ct_AR"; then
6535   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542     for ac_exec_ext in '' $ac_executable_extensions; do
6543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6544     ac_cv_prog_ac_ct_AR="$ac_prog"
6545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549   done
6550 IFS=$as_save_IFS
6551
6552 fi
6553 fi
6554 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6555 if test -n "$ac_ct_AR"; then
6556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6557 $as_echo "$ac_ct_AR" >&6; }
6558 else
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6560 $as_echo "no" >&6; }
6561 fi
6562
6563
6564   test -n "$ac_ct_AR" && break
6565 done
6566
6567   if test "x$ac_ct_AR" = x; then
6568     AR="false"
6569   else
6570     case $cross_compiling:$ac_tool_warned in
6571 yes:)
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6575 esac
6576     AR=$ac_ct_AR
6577   fi
6578 fi
6579
6580 : ${AR=ar}
6581 : ${AR_FLAGS=cru}
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6594 $as_echo_n "checking for archiver @FILE support... " >&6; }
6595 if ${lt_cv_ar_at_file+:} false; then :
6596   $as_echo_n "(cached) " >&6
6597 else
6598   lt_cv_ar_at_file=no
6599    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h.  */
6601
6602 int
6603 main ()
6604 {
6605
6606   ;
6607   return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_compile "$LINENO"; then :
6611   echo conftest.$ac_objext > conftest.lst
6612       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6613       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6614   (eval $lt_ar_try) 2>&5
6615   ac_status=$?
6616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6617   test $ac_status = 0; }
6618       if test 0 -eq "$ac_status"; then
6619         # Ensure the archiver fails upon bogus file names.
6620         rm -f conftest.$ac_objext libconftest.a
6621         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6622   (eval $lt_ar_try) 2>&5
6623   ac_status=$?
6624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6625   test $ac_status = 0; }
6626         if test 0 -ne "$ac_status"; then
6627           lt_cv_ar_at_file=@
6628         fi
6629       fi
6630       rm -f conftest.* libconftest.a
6631
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6637 $as_echo "$lt_cv_ar_at_file" >&6; }
6638
6639 if test no = "$lt_cv_ar_at_file"; then
6640   archiver_list_spec=
6641 else
6642   archiver_list_spec=$lt_cv_ar_at_file
6643 fi
6644
6645
6646
6647
6648
6649
6650
6651 if test -n "$ac_tool_prefix"; then
6652   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}strip; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_STRIP+:} false; then :
6657   $as_echo_n "(cached) " >&6
6658 else
6659   if test -n "$STRIP"; then
6660   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665   IFS=$as_save_IFS
6666   test -z "$as_dir" && as_dir=.
6667     for ac_exec_ext in '' $ac_executable_extensions; do
6668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671     break 2
6672   fi
6673 done
6674   done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 STRIP=$ac_cv_prog_STRIP
6680 if test -n "$STRIP"; then
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6682 $as_echo "$STRIP" >&6; }
6683 else
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 fi
6690 if test -z "$ac_cv_prog_STRIP"; then
6691   ac_ct_STRIP=$STRIP
6692   # Extract the first word of "strip", so it can be a program name with args.
6693 set dummy strip; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6697   $as_echo_n "(cached) " >&6
6698 else
6699   if test -n "$ac_ct_STRIP"; then
6700   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705   IFS=$as_save_IFS
6706   test -z "$as_dir" && as_dir=.
6707     for ac_exec_ext in '' $ac_executable_extensions; do
6708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709     ac_cv_prog_ac_ct_STRIP="strip"
6710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711     break 2
6712   fi
6713 done
6714   done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6720 if test -n "$ac_ct_STRIP"; then
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6722 $as_echo "$ac_ct_STRIP" >&6; }
6723 else
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728   if test "x$ac_ct_STRIP" = x; then
6729     STRIP=":"
6730   else
6731     case $cross_compiling:$ac_tool_warned in
6732 yes:)
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6736 esac
6737     STRIP=$ac_ct_STRIP
6738   fi
6739 else
6740   STRIP="$ac_cv_prog_STRIP"
6741 fi
6742
6743 test -z "$STRIP" && STRIP=:
6744
6745
6746
6747
6748
6749
6750 if test -n "$ac_tool_prefix"; then
6751   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6752 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_RANLIB+:} false; then :
6756   $as_echo_n "(cached) " >&6
6757 else
6758   if test -n "$RANLIB"; then
6759   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764   IFS=$as_save_IFS
6765   test -z "$as_dir" && as_dir=.
6766     for ac_exec_ext in '' $ac_executable_extensions; do
6767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771   fi
6772 done
6773   done
6774 IFS=$as_save_IFS
6775
6776 fi
6777 fi
6778 RANLIB=$ac_cv_prog_RANLIB
6779 if test -n "$RANLIB"; then
6780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6781 $as_echo "$RANLIB" >&6; }
6782 else
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6785 fi
6786
6787
6788 fi
6789 if test -z "$ac_cv_prog_RANLIB"; then
6790   ac_ct_RANLIB=$RANLIB
6791   # Extract the first word of "ranlib", so it can be a program name with args.
6792 set dummy ranlib; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798   if test -n "$ac_ct_RANLIB"; then
6799   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806     for ac_exec_ext in '' $ac_executable_extensions; do
6807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808     ac_cv_prog_ac_ct_RANLIB="ranlib"
6809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813   done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6819 if test -n "$ac_ct_RANLIB"; then
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6821 $as_echo "$ac_ct_RANLIB" >&6; }
6822 else
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827   if test "x$ac_ct_RANLIB" = x; then
6828     RANLIB=":"
6829   else
6830     case $cross_compiling:$ac_tool_warned in
6831 yes:)
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834 ac_tool_warned=yes ;;
6835 esac
6836     RANLIB=$ac_ct_RANLIB
6837   fi
6838 else
6839   RANLIB="$ac_cv_prog_RANLIB"
6840 fi
6841
6842 test -z "$RANLIB" && RANLIB=:
6843
6844
6845
6846
6847
6848
6849 # Determine commands to create old-style static archives.
6850 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6851 old_postinstall_cmds='chmod 644 $oldlib'
6852 old_postuninstall_cmds=
6853
6854 if test -n "$RANLIB"; then
6855   case $host_os in
6856   bitrig* | openbsd*)
6857     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6858     ;;
6859   *)
6860     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6861     ;;
6862   esac
6863   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6864 fi
6865
6866 case $host_os in
6867   darwin*)
6868     lock_old_archive_extraction=yes ;;
6869   *)
6870     lock_old_archive_extraction=no ;;
6871 esac
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911 # If no C compiler was specified, use CC.
6912 LTCC=${LTCC-"$CC"}
6913
6914 # If no C compiler flags were specified, use CFLAGS.
6915 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6916
6917 # Allow CC to be a program name with arguments.
6918 compiler=$CC
6919
6920
6921 # Check for command to grab the raw symbol name followed by C symbol from nm.
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6923 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6924 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927
6928 # These are sane defaults that work on at least a few old systems.
6929 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6930
6931 # Character class describing NM global symbol codes.
6932 symcode='[BCDEGRST]'
6933
6934 # Regexp to match symbols that can be accessed directly from C.
6935 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6936
6937 # Define system-specific variables.
6938 case $host_os in
6939 aix*)
6940   symcode='[BCDT]'
6941   ;;
6942 cygwin* | mingw* | pw32* | cegcc*)
6943   symcode='[ABCDGISTW]'
6944   ;;
6945 hpux*)
6946   if test ia64 = "$host_cpu"; then
6947     symcode='[ABCDEGRST]'
6948   fi
6949   ;;
6950 irix* | nonstopux*)
6951   symcode='[BCDEGRST]'
6952   ;;
6953 osf*)
6954   symcode='[BCDEGQRST]'
6955   ;;
6956 solaris*)
6957   symcode='[BDRT]'
6958   ;;
6959 sco3.2v5*)
6960   symcode='[DT]'
6961   ;;
6962 sysv4.2uw2*)
6963   symcode='[DT]'
6964   ;;
6965 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6966   symcode='[ABDT]'
6967   ;;
6968 sysv4)
6969   symcode='[DFNSTU]'
6970   ;;
6971 esac
6972
6973 # If we're using GNU nm, then use its standard symbol codes.
6974 case `$NM -V 2>&1` in
6975 *GNU* | *'with BFD'*)
6976   symcode='[ABCDGIRSTW]' ;;
6977 esac
6978
6979 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6980   # Gets list of data symbols to import.
6981   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6982   # Adjust the below global symbol transforms to fixup imported variables.
6983   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6984   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6985   lt_c_name_lib_hook="\
6986   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6987   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6988 else
6989   # Disable hooks by default.
6990   lt_cv_sys_global_symbol_to_import=
6991   lt_cdecl_hook=
6992   lt_c_name_hook=
6993   lt_c_name_lib_hook=
6994 fi
6995
6996 # Transform an extracted symbol line into a proper C declaration.
6997 # Some systems (esp. on ia64) link data and code symbols differently,
6998 # so use this general approach.
6999 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7000 $lt_cdecl_hook\
7001 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7002 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7003
7004 # Transform an extracted symbol line into symbol name and symbol address
7005 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7006 $lt_c_name_hook\
7007 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7008 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7009
7010 # Transform an extracted symbol line into symbol name with lib prefix and
7011 # symbol address.
7012 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7013 $lt_c_name_lib_hook\
7014 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7015 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7016 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7017
7018 # Handle CRLF in mingw tool chain
7019 opt_cr=
7020 case $build_os in
7021 mingw*)
7022   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7023   ;;
7024 esac
7025
7026 # Try without a prefix underscore, then with it.
7027 for ac_symprfx in "" "_"; do
7028
7029   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7030   symxfrm="\\1 $ac_symprfx\\2 \\2"
7031
7032   # Write the raw and C identifiers.
7033   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7034     # Fake it for dumpbin and say T for any non-static function,
7035     # D for any global variable and I for any imported variable.
7036     # Also find C++ and __fastcall symbols from MSVC++,
7037     # which start with @ or ?.
7038     lt_cv_sys_global_symbol_pipe="$AWK '"\
7039 "     {last_section=section; section=\$ 3};"\
7040 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7041 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7042 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7043 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7044 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7045 "     \$ 0!~/External *\|/{next};"\
7046 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7047 "     {if(hide[section]) next};"\
7048 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7049 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7050 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7051 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7052 "     ' prfx=^$ac_symprfx"
7053   else
7054     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7055   fi
7056   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7057
7058   # Check to see that the pipe works correctly.
7059   pipe_works=no
7060
7061   rm -f conftest*
7062   cat > conftest.$ac_ext <<_LT_EOF
7063 #ifdef __cplusplus
7064 extern "C" {
7065 #endif
7066 char nm_test_var;
7067 void nm_test_func(void);
7068 void nm_test_func(void){}
7069 #ifdef __cplusplus
7070 }
7071 #endif
7072 int main(){nm_test_var='a';nm_test_func();return(0);}
7073 _LT_EOF
7074
7075   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7076   (eval $ac_compile) 2>&5
7077   ac_status=$?
7078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7079   test $ac_status = 0; }; then
7080     # Now try to grab the symbols.
7081     nlist=conftest.nm
7082     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7083   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7084   ac_status=$?
7085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7086   test $ac_status = 0; } && test -s "$nlist"; then
7087       # Try sorting and uniquifying the output.
7088       if sort "$nlist" | uniq > "$nlist"T; then
7089         mv -f "$nlist"T "$nlist"
7090       else
7091         rm -f "$nlist"T
7092       fi
7093
7094       # Make sure that we snagged all the symbols we need.
7095       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7096         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7097           cat <<_LT_EOF > conftest.$ac_ext
7098 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7099 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7100 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7101    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7102 # define LT_DLSYM_CONST
7103 #elif defined __osf__
7104 /* This system does not cope well with relocations in const data.  */
7105 # define LT_DLSYM_CONST
7106 #else
7107 # define LT_DLSYM_CONST const
7108 #endif
7109
7110 #ifdef __cplusplus
7111 extern "C" {
7112 #endif
7113
7114 _LT_EOF
7115           # Now generate the symbol file.
7116           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7117
7118           cat <<_LT_EOF >> conftest.$ac_ext
7119
7120 /* The mapping between symbol names and symbols.  */
7121 LT_DLSYM_CONST struct {
7122   const char *name;
7123   void       *address;
7124 }
7125 lt__PROGRAM__LTX_preloaded_symbols[] =
7126 {
7127   { "@PROGRAM@", (void *) 0 },
7128 _LT_EOF
7129           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7130           cat <<\_LT_EOF >> conftest.$ac_ext
7131   {0, (void *) 0}
7132 };
7133
7134 /* This works around a problem in FreeBSD linker */
7135 #ifdef FREEBSD_WORKAROUND
7136 static const void *lt_preloaded_setup() {
7137   return lt__PROGRAM__LTX_preloaded_symbols;
7138 }
7139 #endif
7140
7141 #ifdef __cplusplus
7142 }
7143 #endif
7144 _LT_EOF
7145           # Now try linking the two files.
7146           mv conftest.$ac_objext conftstm.$ac_objext
7147           lt_globsym_save_LIBS=$LIBS
7148           lt_globsym_save_CFLAGS=$CFLAGS
7149           LIBS=conftstm.$ac_objext
7150           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7151           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7152   (eval $ac_link) 2>&5
7153   ac_status=$?
7154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7156             pipe_works=yes
7157           fi
7158           LIBS=$lt_globsym_save_LIBS
7159           CFLAGS=$lt_globsym_save_CFLAGS
7160         else
7161           echo "cannot find nm_test_func in $nlist" >&5
7162         fi
7163       else
7164         echo "cannot find nm_test_var in $nlist" >&5
7165       fi
7166     else
7167       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7168     fi
7169   else
7170     echo "$progname: failed program was:" >&5
7171     cat conftest.$ac_ext >&5
7172   fi
7173   rm -rf conftest* conftst*
7174
7175   # Do not use the global_symbol_pipe unless it works.
7176   if test yes = "$pipe_works"; then
7177     break
7178   else
7179     lt_cv_sys_global_symbol_pipe=
7180   fi
7181 done
7182
7183 fi
7184
7185 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7186   lt_cv_sys_global_symbol_to_cdecl=
7187 fi
7188 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7190 $as_echo "failed" >&6; }
7191 else
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7193 $as_echo "ok" >&6; }
7194 fi
7195
7196 # Response file support.
7197 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7198   nm_file_list_spec='@'
7199 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7200   nm_file_list_spec='@'
7201 fi
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7240 $as_echo_n "checking for sysroot... " >&6; }
7241
7242 # Check whether --with-sysroot was given.
7243 if test "${with_sysroot+set}" = set; then :
7244   withval=$with_sysroot;
7245 else
7246   with_sysroot=no
7247 fi
7248
7249
7250 lt_sysroot=
7251 case $with_sysroot in #(
7252  yes)
7253    if test yes = "$GCC"; then
7254      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7255    fi
7256    ;; #(
7257  /*)
7258    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7259    ;; #(
7260  no|'')
7261    ;; #(
7262  *)
7263    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7264 $as_echo "$with_sysroot" >&6; }
7265    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7266    ;;
7267 esac
7268
7269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7270 $as_echo "${lt_sysroot:-no}" >&6; }
7271
7272
7273
7274
7275
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7277 $as_echo_n "checking for a working dd... " >&6; }
7278 if ${ac_cv_path_lt_DD+:} false; then :
7279   $as_echo_n "(cached) " >&6
7280 else
7281   printf 0123456789abcdef0123456789abcdef >conftest.i
7282 cat conftest.i conftest.i >conftest2.i
7283 : ${lt_DD:=$DD}
7284 if test -z "$lt_DD"; then
7285   ac_path_lt_DD_found=false
7286   # Loop through the user's path and test for each of PROGNAME-LIST
7287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290   IFS=$as_save_IFS
7291   test -z "$as_dir" && as_dir=.
7292     for ac_prog in dd; do
7293     for ac_exec_ext in '' $ac_executable_extensions; do
7294       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7295       as_fn_executable_p "$ac_path_lt_DD" || continue
7296 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7297   cmp -s conftest.i conftest.out \
7298   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7299 fi
7300       $ac_path_lt_DD_found && break 3
7301     done
7302   done
7303   done
7304 IFS=$as_save_IFS
7305   if test -z "$ac_cv_path_lt_DD"; then
7306     :
7307   fi
7308 else
7309   ac_cv_path_lt_DD=$lt_DD
7310 fi
7311
7312 rm -f conftest.i conftest2.i conftest.out
7313 fi
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7315 $as_echo "$ac_cv_path_lt_DD" >&6; }
7316
7317
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7319 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7320 if ${lt_cv_truncate_bin+:} false; then :
7321   $as_echo_n "(cached) " >&6
7322 else
7323   printf 0123456789abcdef0123456789abcdef >conftest.i
7324 cat conftest.i conftest.i >conftest2.i
7325 lt_cv_truncate_bin=
7326 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7327   cmp -s conftest.i conftest.out \
7328   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7329 fi
7330 rm -f conftest.i conftest2.i conftest.out
7331 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7332 fi
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7334 $as_echo "$lt_cv_truncate_bin" >&6; }
7335
7336
7337
7338
7339
7340
7341
7342 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7343 func_cc_basename ()
7344 {
7345     for cc_temp in $*""; do
7346       case $cc_temp in
7347         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7348         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7349         \-*) ;;
7350         *) break;;
7351       esac
7352     done
7353     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7354 }
7355
7356 # Check whether --enable-libtool-lock was given.
7357 if test "${enable_libtool_lock+set}" = set; then :
7358   enableval=$enable_libtool_lock;
7359 fi
7360
7361 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7362
7363 # Some flags need to be propagated to the compiler or linker for good
7364 # libtool support.
7365 case $host in
7366 ia64-*-hpux*)
7367   # Find out what ABI is being produced by ac_compile, and set mode
7368   # options accordingly.
7369   echo 'int i;' > conftest.$ac_ext
7370   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7371   (eval $ac_compile) 2>&5
7372   ac_status=$?
7373   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7374   test $ac_status = 0; }; then
7375     case `/usr/bin/file conftest.$ac_objext` in
7376       *ELF-32*)
7377         HPUX_IA64_MODE=32
7378         ;;
7379       *ELF-64*)
7380         HPUX_IA64_MODE=64
7381         ;;
7382     esac
7383   fi
7384   rm -rf conftest*
7385   ;;
7386 *-*-irix6*)
7387   # Find out what ABI is being produced by ac_compile, and set linker
7388   # options accordingly.
7389   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7390   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7391   (eval $ac_compile) 2>&5
7392   ac_status=$?
7393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394   test $ac_status = 0; }; then
7395     if test yes = "$lt_cv_prog_gnu_ld"; then
7396       case `/usr/bin/file conftest.$ac_objext` in
7397         *32-bit*)
7398           LD="${LD-ld} -melf32bsmip"
7399           ;;
7400         *N32*)
7401           LD="${LD-ld} -melf32bmipn32"
7402           ;;
7403         *64-bit*)
7404           LD="${LD-ld} -melf64bmip"
7405         ;;
7406       esac
7407     else
7408       case `/usr/bin/file conftest.$ac_objext` in
7409         *32-bit*)
7410           LD="${LD-ld} -32"
7411           ;;
7412         *N32*)
7413           LD="${LD-ld} -n32"
7414           ;;
7415         *64-bit*)
7416           LD="${LD-ld} -64"
7417           ;;
7418       esac
7419     fi
7420   fi
7421   rm -rf conftest*
7422   ;;
7423
7424 mips64*-*linux*)
7425   # Find out what ABI is being produced by ac_compile, and set linker
7426   # options accordingly.
7427   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7428   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7429   (eval $ac_compile) 2>&5
7430   ac_status=$?
7431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7432   test $ac_status = 0; }; then
7433     emul=elf
7434     case `/usr/bin/file conftest.$ac_objext` in
7435       *32-bit*)
7436         emul="${emul}32"
7437         ;;
7438       *64-bit*)
7439         emul="${emul}64"
7440         ;;
7441     esac
7442     case `/usr/bin/file conftest.$ac_objext` in
7443       *MSB*)
7444         emul="${emul}btsmip"
7445         ;;
7446       *LSB*)
7447         emul="${emul}ltsmip"
7448         ;;
7449     esac
7450     case `/usr/bin/file conftest.$ac_objext` in
7451       *N32*)
7452         emul="${emul}n32"
7453         ;;
7454     esac
7455     LD="${LD-ld} -m $emul"
7456   fi
7457   rm -rf conftest*
7458   ;;
7459
7460 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7461 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7462   # Find out what ABI is being produced by ac_compile, and set linker
7463   # options accordingly.  Note that the listed cases only cover the
7464   # situations where additional linker options are needed (such as when
7465   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7466   # vice versa); the common cases where no linker options are needed do
7467   # not appear in the list.
7468   echo 'int i;' > conftest.$ac_ext
7469   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7470   (eval $ac_compile) 2>&5
7471   ac_status=$?
7472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473   test $ac_status = 0; }; then
7474     case `/usr/bin/file conftest.o` in
7475       *32-bit*)
7476         case $host in
7477           x86_64-*kfreebsd*-gnu)
7478             LD="${LD-ld} -m elf_i386_fbsd"
7479             ;;
7480           x86_64-*linux*)
7481             case `/usr/bin/file conftest.o` in
7482               *x86-64*)
7483                 LD="${LD-ld} -m elf32_x86_64"
7484                 ;;
7485               *)
7486                 LD="${LD-ld} -m elf_i386"
7487                 ;;
7488             esac
7489             ;;
7490           powerpc64le-*linux*)
7491             LD="${LD-ld} -m elf32lppclinux"
7492             ;;
7493           powerpc64-*linux*)
7494             LD="${LD-ld} -m elf32ppclinux"
7495             ;;
7496           s390x-*linux*)
7497             LD="${LD-ld} -m elf_s390"
7498             ;;
7499           sparc64-*linux*)
7500             LD="${LD-ld} -m elf32_sparc"
7501             ;;
7502         esac
7503         ;;
7504       *64-bit*)
7505         case $host in
7506           x86_64-*kfreebsd*-gnu)
7507             LD="${LD-ld} -m elf_x86_64_fbsd"
7508             ;;
7509           x86_64-*linux*)
7510             LD="${LD-ld} -m elf_x86_64"
7511             ;;
7512           powerpcle-*linux*)
7513             LD="${LD-ld} -m elf64lppc"
7514             ;;
7515           powerpc-*linux*)
7516             LD="${LD-ld} -m elf64ppc"
7517             ;;
7518           s390*-*linux*|s390*-*tpf*)
7519             LD="${LD-ld} -m elf64_s390"
7520             ;;
7521           sparc*-*linux*)
7522             LD="${LD-ld} -m elf64_sparc"
7523             ;;
7524         esac
7525         ;;
7526     esac
7527   fi
7528   rm -rf conftest*
7529   ;;
7530
7531 *-*-sco3.2v5*)
7532   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7533   SAVE_CFLAGS=$CFLAGS
7534   CFLAGS="$CFLAGS -belf"
7535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7536 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7537 if ${lt_cv_cc_needs_belf+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   ac_ext=c
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545
7546      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* end confdefs.h.  */
7548
7549 int
7550 main ()
7551 {
7552
7553   ;
7554   return 0;
7555 }
7556 _ACEOF
7557 if ac_fn_c_try_link "$LINENO"; then :
7558   lt_cv_cc_needs_belf=yes
7559 else
7560   lt_cv_cc_needs_belf=no
7561 fi
7562 rm -f core conftest.err conftest.$ac_objext \
7563     conftest$ac_exeext conftest.$ac_ext
7564      ac_ext=c
7565 ac_cpp='$CPP $CPPFLAGS'
7566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7569
7570 fi
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7572 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7573   if test yes != "$lt_cv_cc_needs_belf"; then
7574     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7575     CFLAGS=$SAVE_CFLAGS
7576   fi
7577   ;;
7578 *-*solaris*)
7579   # Find out what ABI is being produced by ac_compile, and set linker
7580   # options accordingly.
7581   echo 'int i;' > conftest.$ac_ext
7582   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7583   (eval $ac_compile) 2>&5
7584   ac_status=$?
7585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7586   test $ac_status = 0; }; then
7587     case `/usr/bin/file conftest.o` in
7588     *64-bit*)
7589       case $lt_cv_prog_gnu_ld in
7590       yes*)
7591         case $host in
7592         i?86-*-solaris*|x86_64-*-solaris*)
7593           LD="${LD-ld} -m elf_x86_64"
7594           ;;
7595         sparc*-*-solaris*)
7596           LD="${LD-ld} -m elf64_sparc"
7597           ;;
7598         esac
7599         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7600         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7601           LD=${LD-ld}_sol2
7602         fi
7603         ;;
7604       *)
7605         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7606           LD="${LD-ld} -64"
7607         fi
7608         ;;
7609       esac
7610       ;;
7611     esac
7612   fi
7613   rm -rf conftest*
7614   ;;
7615 esac
7616
7617 need_locks=$enable_libtool_lock
7618
7619 if test -n "$ac_tool_prefix"; then
7620   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7621 set dummy ${ac_tool_prefix}mt; ac_word=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   if test -n "$MANIFEST_TOOL"; then
7628   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7629 else
7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7631 for as_dir in $PATH
7632 do
7633   IFS=$as_save_IFS
7634   test -z "$as_dir" && as_dir=.
7635     for ac_exec_ext in '' $ac_executable_extensions; do
7636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7637     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7639     break 2
7640   fi
7641 done
7642   done
7643 IFS=$as_save_IFS
7644
7645 fi
7646 fi
7647 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7648 if test -n "$MANIFEST_TOOL"; then
7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7650 $as_echo "$MANIFEST_TOOL" >&6; }
7651 else
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7654 fi
7655
7656
7657 fi
7658 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7659   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7660   # Extract the first word of "mt", so it can be a program name with args.
7661 set dummy mt; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   if test -n "$ac_ct_MANIFEST_TOOL"; then
7668   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7669 else
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 for as_dir in $PATH
7672 do
7673   IFS=$as_save_IFS
7674   test -z "$as_dir" && as_dir=.
7675     for ac_exec_ext in '' $ac_executable_extensions; do
7676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679     break 2
7680   fi
7681 done
7682   done
7683 IFS=$as_save_IFS
7684
7685 fi
7686 fi
7687 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7688 if test -n "$ac_ct_MANIFEST_TOOL"; then
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7690 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7691 else
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7694 fi
7695
7696   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7697     MANIFEST_TOOL=":"
7698   else
7699     case $cross_compiling:$ac_tool_warned in
7700 yes:)
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7703 ac_tool_warned=yes ;;
7704 esac
7705     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7706   fi
7707 else
7708   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7709 fi
7710
7711 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7713 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7714 if ${lt_cv_path_mainfest_tool+:} false; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   lt_cv_path_mainfest_tool=no
7718   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7719   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7720   cat conftest.err >&5
7721   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7722     lt_cv_path_mainfest_tool=yes
7723   fi
7724   rm -f conftest*
7725 fi
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7727 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7728 if test yes != "$lt_cv_path_mainfest_tool"; then
7729   MANIFEST_TOOL=:
7730 fi
7731
7732
7733
7734
7735
7736
7737   case $host_os in
7738     rhapsody* | darwin*)
7739     if test -n "$ac_tool_prefix"; then
7740   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7741 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7745   $as_echo_n "(cached) " >&6
7746 else
7747   if test -n "$DSYMUTIL"; then
7748   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753   IFS=$as_save_IFS
7754   test -z "$as_dir" && as_dir=.
7755     for ac_exec_ext in '' $ac_executable_extensions; do
7756   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7758     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759     break 2
7760   fi
7761 done
7762   done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7768 if test -n "$DSYMUTIL"; then
7769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7770 $as_echo "$DSYMUTIL" >&6; }
7771 else
7772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7774 fi
7775
7776
7777 fi
7778 if test -z "$ac_cv_prog_DSYMUTIL"; then
7779   ac_ct_DSYMUTIL=$DSYMUTIL
7780   # Extract the first word of "dsymutil", so it can be a program name with args.
7781 set dummy dsymutil; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7785   $as_echo_n "(cached) " >&6
7786 else
7787   if test -n "$ac_ct_DSYMUTIL"; then
7788   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793   IFS=$as_save_IFS
7794   test -z "$as_dir" && as_dir=.
7795     for ac_exec_ext in '' $ac_executable_extensions; do
7796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799     break 2
7800   fi
7801 done
7802   done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7808 if test -n "$ac_ct_DSYMUTIL"; then
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7810 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7811 else
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816   if test "x$ac_ct_DSYMUTIL" = x; then
7817     DSYMUTIL=":"
7818   else
7819     case $cross_compiling:$ac_tool_warned in
7820 yes:)
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7823 ac_tool_warned=yes ;;
7824 esac
7825     DSYMUTIL=$ac_ct_DSYMUTIL
7826   fi
7827 else
7828   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7829 fi
7830
7831     if test -n "$ac_tool_prefix"; then
7832   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7833 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7835 $as_echo_n "checking for $ac_word... " >&6; }
7836 if ${ac_cv_prog_NMEDIT+:} false; then :
7837   $as_echo_n "(cached) " >&6
7838 else
7839   if test -n "$NMEDIT"; then
7840   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845   IFS=$as_save_IFS
7846   test -z "$as_dir" && as_dir=.
7847     for ac_exec_ext in '' $ac_executable_extensions; do
7848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7851     break 2
7852   fi
7853 done
7854   done
7855 IFS=$as_save_IFS
7856
7857 fi
7858 fi
7859 NMEDIT=$ac_cv_prog_NMEDIT
7860 if test -n "$NMEDIT"; then
7861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7862 $as_echo "$NMEDIT" >&6; }
7863 else
7864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7865 $as_echo "no" >&6; }
7866 fi
7867
7868
7869 fi
7870 if test -z "$ac_cv_prog_NMEDIT"; then
7871   ac_ct_NMEDIT=$NMEDIT
7872   # Extract the first word of "nmedit", so it can be a program name with args.
7873 set dummy nmedit; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7877   $as_echo_n "(cached) " >&6
7878 else
7879   if test -n "$ac_ct_NMEDIT"; then
7880   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885   IFS=$as_save_IFS
7886   test -z "$as_dir" && as_dir=.
7887     for ac_exec_ext in '' $ac_executable_extensions; do
7888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891     break 2
7892   fi
7893 done
7894   done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7900 if test -n "$ac_ct_NMEDIT"; then
7901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7902 $as_echo "$ac_ct_NMEDIT" >&6; }
7903 else
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908   if test "x$ac_ct_NMEDIT" = x; then
7909     NMEDIT=":"
7910   else
7911     case $cross_compiling:$ac_tool_warned in
7912 yes:)
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7915 ac_tool_warned=yes ;;
7916 esac
7917     NMEDIT=$ac_ct_NMEDIT
7918   fi
7919 else
7920   NMEDIT="$ac_cv_prog_NMEDIT"
7921 fi
7922
7923     if test -n "$ac_tool_prefix"; then
7924   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7925 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927 $as_echo_n "checking for $ac_word... " >&6; }
7928 if ${ac_cv_prog_LIPO+:} false; then :
7929   $as_echo_n "(cached) " >&6
7930 else
7931   if test -n "$LIPO"; then
7932   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937   IFS=$as_save_IFS
7938   test -z "$as_dir" && as_dir=.
7939     for ac_exec_ext in '' $ac_executable_extensions; do
7940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7943     break 2
7944   fi
7945 done
7946   done
7947 IFS=$as_save_IFS
7948
7949 fi
7950 fi
7951 LIPO=$ac_cv_prog_LIPO
7952 if test -n "$LIPO"; then
7953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7954 $as_echo "$LIPO" >&6; }
7955 else
7956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7958 fi
7959
7960
7961 fi
7962 if test -z "$ac_cv_prog_LIPO"; then
7963   ac_ct_LIPO=$LIPO
7964   # Extract the first word of "lipo", so it can be a program name with args.
7965 set dummy lipo; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7969   $as_echo_n "(cached) " >&6
7970 else
7971   if test -n "$ac_ct_LIPO"; then
7972   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977   IFS=$as_save_IFS
7978   test -z "$as_dir" && as_dir=.
7979     for ac_exec_ext in '' $ac_executable_extensions; do
7980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981     ac_cv_prog_ac_ct_LIPO="lipo"
7982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983     break 2
7984   fi
7985 done
7986   done
7987 IFS=$as_save_IFS
7988
7989 fi
7990 fi
7991 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7992 if test -n "$ac_ct_LIPO"; then
7993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7994 $as_echo "$ac_ct_LIPO" >&6; }
7995 else
7996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999
8000   if test "x$ac_ct_LIPO" = x; then
8001     LIPO=":"
8002   else
8003     case $cross_compiling:$ac_tool_warned in
8004 yes:)
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8007 ac_tool_warned=yes ;;
8008 esac
8009     LIPO=$ac_ct_LIPO
8010   fi
8011 else
8012   LIPO="$ac_cv_prog_LIPO"
8013 fi
8014
8015     if test -n "$ac_tool_prefix"; then
8016   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8017 set dummy ${ac_tool_prefix}otool; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if ${ac_cv_prog_OTOOL+:} false; then :
8021   $as_echo_n "(cached) " >&6
8022 else
8023   if test -n "$OTOOL"; then
8024   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8025 else
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 for as_dir in $PATH
8028 do
8029   IFS=$as_save_IFS
8030   test -z "$as_dir" && as_dir=.
8031     for ac_exec_ext in '' $ac_executable_extensions; do
8032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035     break 2
8036   fi
8037 done
8038   done
8039 IFS=$as_save_IFS
8040
8041 fi
8042 fi
8043 OTOOL=$ac_cv_prog_OTOOL
8044 if test -n "$OTOOL"; then
8045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8046 $as_echo "$OTOOL" >&6; }
8047 else
8048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049 $as_echo "no" >&6; }
8050 fi
8051
8052
8053 fi
8054 if test -z "$ac_cv_prog_OTOOL"; then
8055   ac_ct_OTOOL=$OTOOL
8056   # Extract the first word of "otool", so it can be a program name with args.
8057 set dummy otool; ac_word=$2
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059 $as_echo_n "checking for $ac_word... " >&6; }
8060 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8061   $as_echo_n "(cached) " >&6
8062 else
8063   if test -n "$ac_ct_OTOOL"; then
8064   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8065 else
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067 for as_dir in $PATH
8068 do
8069   IFS=$as_save_IFS
8070   test -z "$as_dir" && as_dir=.
8071     for ac_exec_ext in '' $ac_executable_extensions; do
8072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8073     ac_cv_prog_ac_ct_OTOOL="otool"
8074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8075     break 2
8076   fi
8077 done
8078   done
8079 IFS=$as_save_IFS
8080
8081 fi
8082 fi
8083 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8084 if test -n "$ac_ct_OTOOL"; then
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8086 $as_echo "$ac_ct_OTOOL" >&6; }
8087 else
8088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8090 fi
8091
8092   if test "x$ac_ct_OTOOL" = x; then
8093     OTOOL=":"
8094   else
8095     case $cross_compiling:$ac_tool_warned in
8096 yes:)
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8099 ac_tool_warned=yes ;;
8100 esac
8101     OTOOL=$ac_ct_OTOOL
8102   fi
8103 else
8104   OTOOL="$ac_cv_prog_OTOOL"
8105 fi
8106
8107     if test -n "$ac_tool_prefix"; then
8108   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8109 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111 $as_echo_n "checking for $ac_word... " >&6; }
8112 if ${ac_cv_prog_OTOOL64+:} false; then :
8113   $as_echo_n "(cached) " >&6
8114 else
8115   if test -n "$OTOOL64"; then
8116   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8117 else
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8120 do
8121   IFS=$as_save_IFS
8122   test -z "$as_dir" && as_dir=.
8123     for ac_exec_ext in '' $ac_executable_extensions; do
8124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127     break 2
8128   fi
8129 done
8130   done
8131 IFS=$as_save_IFS
8132
8133 fi
8134 fi
8135 OTOOL64=$ac_cv_prog_OTOOL64
8136 if test -n "$OTOOL64"; then
8137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8138 $as_echo "$OTOOL64" >&6; }
8139 else
8140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 $as_echo "no" >&6; }
8142 fi
8143
8144
8145 fi
8146 if test -z "$ac_cv_prog_OTOOL64"; then
8147   ac_ct_OTOOL64=$OTOOL64
8148   # Extract the first word of "otool64", so it can be a program name with args.
8149 set dummy otool64; ac_word=$2
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151 $as_echo_n "checking for $ac_word... " >&6; }
8152 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8153   $as_echo_n "(cached) " >&6
8154 else
8155   if test -n "$ac_ct_OTOOL64"; then
8156   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8157 else
8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159 for as_dir in $PATH
8160 do
8161   IFS=$as_save_IFS
8162   test -z "$as_dir" && as_dir=.
8163     for ac_exec_ext in '' $ac_executable_extensions; do
8164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8165     ac_cv_prog_ac_ct_OTOOL64="otool64"
8166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8167     break 2
8168   fi
8169 done
8170   done
8171 IFS=$as_save_IFS
8172
8173 fi
8174 fi
8175 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8176 if test -n "$ac_ct_OTOOL64"; then
8177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8178 $as_echo "$ac_ct_OTOOL64" >&6; }
8179 else
8180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181 $as_echo "no" >&6; }
8182 fi
8183
8184   if test "x$ac_ct_OTOOL64" = x; then
8185     OTOOL64=":"
8186   else
8187     case $cross_compiling:$ac_tool_warned in
8188 yes:)
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8191 ac_tool_warned=yes ;;
8192 esac
8193     OTOOL64=$ac_ct_OTOOL64
8194   fi
8195 else
8196   OTOOL64="$ac_cv_prog_OTOOL64"
8197 fi
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8226 $as_echo_n "checking for -single_module linker flag... " >&6; }
8227 if ${lt_cv_apple_cc_single_mod+:} false; then :
8228   $as_echo_n "(cached) " >&6
8229 else
8230   lt_cv_apple_cc_single_mod=no
8231       if test -z "$LT_MULTI_MODULE"; then
8232         # By default we will add the -single_module flag. You can override
8233         # by either setting the environment variable LT_MULTI_MODULE
8234         # non-empty at configure time, or by adding -multi_module to the
8235         # link flags.
8236         rm -rf libconftest.dylib*
8237         echo "int foo(void){return 1;}" > conftest.c
8238         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8239 -dynamiclib -Wl,-single_module conftest.c" >&5
8240         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8241           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8242         _lt_result=$?
8243         # If there is a non-empty error log, and "single_module"
8244         # appears in it, assume the flag caused a linker warning
8245         if test -s conftest.err && $GREP single_module conftest.err; then
8246           cat conftest.err >&5
8247         # Otherwise, if the output was created with a 0 exit code from
8248         # the compiler, it worked.
8249         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8250           lt_cv_apple_cc_single_mod=yes
8251         else
8252           cat conftest.err >&5
8253         fi
8254         rm -rf libconftest.dylib*
8255         rm -f conftest.*
8256       fi
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8259 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8260
8261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8262 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8263 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8264   $as_echo_n "(cached) " >&6
8265 else
8266   lt_cv_ld_exported_symbols_list=no
8267       save_LDFLAGS=$LDFLAGS
8268       echo "_main" > conftest.sym
8269       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8270       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h.  */
8272
8273 int
8274 main ()
8275 {
8276
8277   ;
8278   return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_link "$LINENO"; then :
8282   lt_cv_ld_exported_symbols_list=yes
8283 else
8284   lt_cv_ld_exported_symbols_list=no
8285 fi
8286 rm -f core conftest.err conftest.$ac_objext \
8287     conftest$ac_exeext conftest.$ac_ext
8288         LDFLAGS=$save_LDFLAGS
8289
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8292 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8293
8294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8295 $as_echo_n "checking for -force_load linker flag... " >&6; }
8296 if ${lt_cv_ld_force_load+:} false; then :
8297   $as_echo_n "(cached) " >&6
8298 else
8299   lt_cv_ld_force_load=no
8300       cat > conftest.c << _LT_EOF
8301 int forced_loaded() { return 2;}
8302 _LT_EOF
8303       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8304       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8305       echo "$AR cru libconftest.a conftest.o" >&5
8306       $AR cru libconftest.a conftest.o 2>&5
8307       echo "$RANLIB libconftest.a" >&5
8308       $RANLIB libconftest.a 2>&5
8309       cat > conftest.c << _LT_EOF
8310 int main() { return 0;}
8311 _LT_EOF
8312       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8313       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8314       _lt_result=$?
8315       if test -s conftest.err && $GREP force_load conftest.err; then
8316         cat conftest.err >&5
8317       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8318         lt_cv_ld_force_load=yes
8319       else
8320         cat conftest.err >&5
8321       fi
8322         rm -f conftest.err libconftest.a conftest conftest.c
8323         rm -rf conftest.dSYM
8324
8325 fi
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8327 $as_echo "$lt_cv_ld_force_load" >&6; }
8328     case $host_os in
8329     rhapsody* | darwin1.[012])
8330       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8331     darwin1.*)
8332       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8333     darwin*) # darwin 5.x on
8334       # if running on 10.5 or later, the deployment target defaults
8335       # to the OS version, if on x86, and 10.4, the deployment
8336       # target defaults to 10.4. Don't you love it?
8337       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8338         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8339           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8340         10.[012][,.]*)
8341           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8342         10.*)
8343           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8344       esac
8345     ;;
8346   esac
8347     if test yes = "$lt_cv_apple_cc_single_mod"; then
8348       _lt_dar_single_mod='$single_module'
8349     fi
8350     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8351       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8352     else
8353       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8354     fi
8355     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8356       _lt_dsymutil='~$DSYMUTIL $lib || :'
8357     else
8358       _lt_dsymutil=
8359     fi
8360     ;;
8361   esac
8362
8363 # func_munge_path_list VARIABLE PATH
8364 # -----------------------------------
8365 # VARIABLE is name of variable containing _space_ separated list of
8366 # directories to be munged by the contents of PATH, which is string
8367 # having a format:
8368 # "DIR[:DIR]:"
8369 #       string "DIR[ DIR]" will be prepended to VARIABLE
8370 # ":DIR[:DIR]"
8371 #       string "DIR[ DIR]" will be appended to VARIABLE
8372 # "DIRP[:DIRP]::[DIRA:]DIRA"
8373 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8374 #       "DIRA[ DIRA]" will be appended to VARIABLE
8375 # "DIR[:DIR]"
8376 #       VARIABLE will be replaced by "DIR[ DIR]"
8377 func_munge_path_list ()
8378 {
8379     case x$2 in
8380     x)
8381         ;;
8382     *:)
8383         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8384         ;;
8385     x:*)
8386         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8387         ;;
8388     *::*)
8389         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8390         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8391         ;;
8392     *)
8393         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8394         ;;
8395     esac
8396 }
8397
8398 for ac_header in dlfcn.h
8399 do :
8400   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8401 "
8402 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8403   cat >>confdefs.h <<_ACEOF
8404 #define HAVE_DLFCN_H 1
8405 _ACEOF
8406
8407 fi
8408
8409 done
8410
8411
8412
8413
8414
8415 # Set options
8416
8417
8418
8419         enable_dlopen=no
8420
8421
8422   enable_win32_dll=no
8423
8424
8425             # Check whether --enable-shared was given.
8426 if test "${enable_shared+set}" = set; then :
8427   enableval=$enable_shared; p=${PACKAGE-default}
8428     case $enableval in
8429     yes) enable_shared=yes ;;
8430     no) enable_shared=no ;;
8431     *)
8432       enable_shared=no
8433       # Look at the argument we got.  We use all the common list separators.
8434       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8435       for pkg in $enableval; do
8436         IFS=$lt_save_ifs
8437         if test "X$pkg" = "X$p"; then
8438           enable_shared=yes
8439         fi
8440       done
8441       IFS=$lt_save_ifs
8442       ;;
8443     esac
8444 else
8445   enable_shared=yes
8446 fi
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456   # Check whether --enable-static was given.
8457 if test "${enable_static+set}" = set; then :
8458   enableval=$enable_static; p=${PACKAGE-default}
8459     case $enableval in
8460     yes) enable_static=yes ;;
8461     no) enable_static=no ;;
8462     *)
8463      enable_static=no
8464       # Look at the argument we got.  We use all the common list separators.
8465       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8466       for pkg in $enableval; do
8467         IFS=$lt_save_ifs
8468         if test "X$pkg" = "X$p"; then
8469           enable_static=yes
8470         fi
8471       done
8472       IFS=$lt_save_ifs
8473       ;;
8474     esac
8475 else
8476   enable_static=yes
8477 fi
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488 # Check whether --with-pic was given.
8489 if test "${with_pic+set}" = set; then :
8490   withval=$with_pic; lt_p=${PACKAGE-default}
8491     case $withval in
8492     yes|no) pic_mode=$withval ;;
8493     *)
8494       pic_mode=default
8495       # Look at the argument we got.  We use all the common list separators.
8496       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8497       for lt_pkg in $withval; do
8498         IFS=$lt_save_ifs
8499         if test "X$lt_pkg" = "X$lt_p"; then
8500           pic_mode=yes
8501         fi
8502       done
8503       IFS=$lt_save_ifs
8504       ;;
8505     esac
8506 else
8507   pic_mode=default
8508 fi
8509
8510
8511
8512
8513
8514
8515
8516
8517   # Check whether --enable-fast-install was given.
8518 if test "${enable_fast_install+set}" = set; then :
8519   enableval=$enable_fast_install; p=${PACKAGE-default}
8520     case $enableval in
8521     yes) enable_fast_install=yes ;;
8522     no) enable_fast_install=no ;;
8523     *)
8524       enable_fast_install=no
8525       # Look at the argument we got.  We use all the common list separators.
8526       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8527       for pkg in $enableval; do
8528         IFS=$lt_save_ifs
8529         if test "X$pkg" = "X$p"; then
8530           enable_fast_install=yes
8531         fi
8532       done
8533       IFS=$lt_save_ifs
8534       ;;
8535     esac
8536 else
8537   enable_fast_install=yes
8538 fi
8539
8540
8541
8542
8543
8544
8545
8546
8547   shared_archive_member_spec=
8548 case $host,$enable_shared in
8549 power*-*-aix[5-9]*,yes)
8550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8551 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8552
8553 # Check whether --with-aix-soname was given.
8554 if test "${with_aix_soname+set}" = set; then :
8555   withval=$with_aix_soname; case $withval in
8556     aix|svr4|both)
8557       ;;
8558     *)
8559       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8560       ;;
8561     esac
8562     lt_cv_with_aix_soname=$with_aix_soname
8563 else
8564   if ${lt_cv_with_aix_soname+:} false; then :
8565   $as_echo_n "(cached) " >&6
8566 else
8567   lt_cv_with_aix_soname=aix
8568 fi
8569
8570     with_aix_soname=$lt_cv_with_aix_soname
8571 fi
8572
8573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8574 $as_echo "$with_aix_soname" >&6; }
8575   if test aix != "$with_aix_soname"; then
8576     # For the AIX way of multilib, we name the shared archive member
8577     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8578     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8579     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8580     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8581     if test 64 = "${OBJECT_MODE-32}"; then
8582       shared_archive_member_spec=shr_64
8583     else
8584       shared_archive_member_spec=shr
8585     fi
8586   fi
8587   ;;
8588 *)
8589   with_aix_soname=aix
8590   ;;
8591 esac
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 # This can be used to rebuild libtool when needed
8603 LIBTOOL_DEPS=$ltmain
8604
8605 # Always use our own libtool.
8606 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637 test -z "$LN_S" && LN_S="ln -s"
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652 if test -n "${ZSH_VERSION+set}"; then
8653    setopt NO_GLOB_SUBST
8654 fi
8655
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8657 $as_echo_n "checking for objdir... " >&6; }
8658 if ${lt_cv_objdir+:} false; then :
8659   $as_echo_n "(cached) " >&6
8660 else
8661   rm -f .libs 2>/dev/null
8662 mkdir .libs 2>/dev/null
8663 if test -d .libs; then
8664   lt_cv_objdir=.libs
8665 else
8666   # MS-DOS does not allow filenames that begin with a dot.
8667   lt_cv_objdir=_libs
8668 fi
8669 rmdir .libs 2>/dev/null
8670 fi
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8672 $as_echo "$lt_cv_objdir" >&6; }
8673 objdir=$lt_cv_objdir
8674
8675
8676
8677
8678
8679 cat >>confdefs.h <<_ACEOF
8680 #define LT_OBJDIR "$lt_cv_objdir/"
8681 _ACEOF
8682
8683
8684
8685
8686 case $host_os in
8687 aix3*)
8688   # AIX sometimes has problems with the GCC collect2 program.  For some
8689   # reason, if we set the COLLECT_NAMES environment variable, the problems
8690   # vanish in a puff of smoke.
8691   if test set != "${COLLECT_NAMES+set}"; then
8692     COLLECT_NAMES=
8693     export COLLECT_NAMES
8694   fi
8695   ;;
8696 esac
8697
8698 # Global variables:
8699 ofile=libtool
8700 can_build_shared=yes
8701
8702 # All known linkers require a '.a' archive for static linking (except MSVC,
8703 # which needs '.lib').
8704 libext=a
8705
8706 with_gnu_ld=$lt_cv_prog_gnu_ld
8707
8708 old_CC=$CC
8709 old_CFLAGS=$CFLAGS
8710
8711 # Set sane defaults for various variables
8712 test -z "$CC" && CC=cc
8713 test -z "$LTCC" && LTCC=$CC
8714 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8715 test -z "$LD" && LD=ld
8716 test -z "$ac_objext" && ac_objext=o
8717
8718 func_cc_basename $compiler
8719 cc_basename=$func_cc_basename_result
8720
8721
8722 # Only perform the check for file, if the check method requires it
8723 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8724 case $deplibs_check_method in
8725 file_magic*)
8726   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8728 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8729 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8730   $as_echo_n "(cached) " >&6
8731 else
8732   case $MAGIC_CMD in
8733 [\\/*] |  ?:[\\/]*)
8734   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8735   ;;
8736 *)
8737   lt_save_MAGIC_CMD=$MAGIC_CMD
8738   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8739   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8740   for ac_dir in $ac_dummy; do
8741     IFS=$lt_save_ifs
8742     test -z "$ac_dir" && ac_dir=.
8743     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8744       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8745       if test -n "$file_magic_test_file"; then
8746         case $deplibs_check_method in
8747         "file_magic "*)
8748           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8749           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8750           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8751             $EGREP "$file_magic_regex" > /dev/null; then
8752             :
8753           else
8754             cat <<_LT_EOF 1>&2
8755
8756 *** Warning: the command libtool uses to detect shared libraries,
8757 *** $file_magic_cmd, produces output that libtool cannot recognize.
8758 *** The result is that libtool may fail to recognize shared libraries
8759 *** as such.  This will affect the creation of libtool libraries that
8760 *** depend on shared libraries, but programs linked with such libtool
8761 *** libraries will work regardless of this problem.  Nevertheless, you
8762 *** may want to report the problem to your system manager and/or to
8763 *** bug-libtool@gnu.org
8764
8765 _LT_EOF
8766           fi ;;
8767         esac
8768       fi
8769       break
8770     fi
8771   done
8772   IFS=$lt_save_ifs
8773   MAGIC_CMD=$lt_save_MAGIC_CMD
8774   ;;
8775 esac
8776 fi
8777
8778 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8779 if test -n "$MAGIC_CMD"; then
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8781 $as_echo "$MAGIC_CMD" >&6; }
8782 else
8783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 $as_echo "no" >&6; }
8785 fi
8786
8787
8788
8789
8790
8791 if test -z "$lt_cv_path_MAGIC_CMD"; then
8792   if test -n "$ac_tool_prefix"; then
8793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8794 $as_echo_n "checking for file... " >&6; }
8795 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8796   $as_echo_n "(cached) " >&6
8797 else
8798   case $MAGIC_CMD in
8799 [\\/*] |  ?:[\\/]*)
8800   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8801   ;;
8802 *)
8803   lt_save_MAGIC_CMD=$MAGIC_CMD
8804   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8805   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8806   for ac_dir in $ac_dummy; do
8807     IFS=$lt_save_ifs
8808     test -z "$ac_dir" && ac_dir=.
8809     if test -f "$ac_dir/file"; then
8810       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8811       if test -n "$file_magic_test_file"; then
8812         case $deplibs_check_method in
8813         "file_magic "*)
8814           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8815           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8816           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8817             $EGREP "$file_magic_regex" > /dev/null; then
8818             :
8819           else
8820             cat <<_LT_EOF 1>&2
8821
8822 *** Warning: the command libtool uses to detect shared libraries,
8823 *** $file_magic_cmd, produces output that libtool cannot recognize.
8824 *** The result is that libtool may fail to recognize shared libraries
8825 *** as such.  This will affect the creation of libtool libraries that
8826 *** depend on shared libraries, but programs linked with such libtool
8827 *** libraries will work regardless of this problem.  Nevertheless, you
8828 *** may want to report the problem to your system manager and/or to
8829 *** bug-libtool@gnu.org
8830
8831 _LT_EOF
8832           fi ;;
8833         esac
8834       fi
8835       break
8836     fi
8837   done
8838   IFS=$lt_save_ifs
8839   MAGIC_CMD=$lt_save_MAGIC_CMD
8840   ;;
8841 esac
8842 fi
8843
8844 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8845 if test -n "$MAGIC_CMD"; then
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8847 $as_echo "$MAGIC_CMD" >&6; }
8848 else
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8850 $as_echo "no" >&6; }
8851 fi
8852
8853
8854   else
8855     MAGIC_CMD=:
8856   fi
8857 fi
8858
8859   fi
8860   ;;
8861 esac
8862
8863 # Use C for the default configuration in the libtool script
8864
8865 lt_save_CC=$CC
8866 ac_ext=c
8867 ac_cpp='$CPP $CPPFLAGS'
8868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8871
8872
8873 # Source file extension for C test sources.
8874 ac_ext=c
8875
8876 # Object file extension for compiled C test sources.
8877 objext=o
8878 objext=$objext
8879
8880 # Code to be used in simple compile tests
8881 lt_simple_compile_test_code="int some_variable = 0;"
8882
8883 # Code to be used in simple link tests
8884 lt_simple_link_test_code='int main(){return(0);}'
8885
8886
8887
8888
8889
8890
8891
8892 # If no C compiler was specified, use CC.
8893 LTCC=${LTCC-"$CC"}
8894
8895 # If no C compiler flags were specified, use CFLAGS.
8896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8897
8898 # Allow CC to be a program name with arguments.
8899 compiler=$CC
8900
8901 # Save the default compiler, since it gets overwritten when the other
8902 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8903 compiler_DEFAULT=$CC
8904
8905 # save warnings/boilerplate of simple test code
8906 ac_outfile=conftest.$ac_objext
8907 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8908 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8909 _lt_compiler_boilerplate=`cat conftest.err`
8910 $RM conftest*
8911
8912 ac_outfile=conftest.$ac_objext
8913 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8915 _lt_linker_boilerplate=`cat conftest.err`
8916 $RM -r conftest*
8917
8918
8919 ## CAVEAT EMPTOR:
8920 ## There is no encapsulation within the following macros, do not change
8921 ## the running order or otherwise move them around unless you know exactly
8922 ## what you are doing...
8923 if test -n "$compiler"; then
8924
8925 lt_prog_compiler_no_builtin_flag=
8926
8927 if test yes = "$GCC"; then
8928   case $cc_basename in
8929   nvcc*)
8930     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8931   *)
8932     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8933   esac
8934
8935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8936 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8937 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8938   $as_echo_n "(cached) " >&6
8939 else
8940   lt_cv_prog_compiler_rtti_exceptions=no
8941    ac_outfile=conftest.$ac_objext
8942    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8943    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8944    # Insert the option either (1) after the last *FLAGS variable, or
8945    # (2) before a word containing "conftest.", or (3) at the end.
8946    # Note that $ac_compile itself does not contain backslashes and begins
8947    # with a dollar sign (not a hyphen), so the echo should work correctly.
8948    # The option is referenced via a variable to avoid confusing sed.
8949    lt_compile=`echo "$ac_compile" | $SED \
8950    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8952    -e 's:$: $lt_compiler_flag:'`
8953    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8954    (eval "$lt_compile" 2>conftest.err)
8955    ac_status=$?
8956    cat conftest.err >&5
8957    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958    if (exit $ac_status) && test -s "$ac_outfile"; then
8959      # The compiler can only warn and ignore the option if not recognized
8960      # So say no if there are warnings other than the usual output.
8961      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8962      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8963      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8964        lt_cv_prog_compiler_rtti_exceptions=yes
8965      fi
8966    fi
8967    $RM conftest*
8968
8969 fi
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8971 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8972
8973 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8974     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8975 else
8976     :
8977 fi
8978
8979 fi
8980
8981
8982
8983
8984
8985
8986   lt_prog_compiler_wl=
8987 lt_prog_compiler_pic=
8988 lt_prog_compiler_static=
8989
8990
8991   if test yes = "$GCC"; then
8992     lt_prog_compiler_wl='-Wl,'
8993     lt_prog_compiler_static='-static'
8994
8995     case $host_os in
8996       aix*)
8997       # All AIX code is PIC.
8998       if test ia64 = "$host_cpu"; then
8999         # AIX 5 now supports IA64 processor
9000         lt_prog_compiler_static='-Bstatic'
9001       fi
9002       lt_prog_compiler_pic='-fPIC'
9003       ;;
9004
9005     amigaos*)
9006       case $host_cpu in
9007       powerpc)
9008             # see comment about AmigaOS4 .so support
9009             lt_prog_compiler_pic='-fPIC'
9010         ;;
9011       m68k)
9012             # FIXME: we need at least 68020 code to build shared libraries, but
9013             # adding the '-m68020' flag to GCC prevents building anything better,
9014             # like '-m68040'.
9015             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9016         ;;
9017       esac
9018       ;;
9019
9020     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9021       # PIC is the default for these OSes.
9022       ;;
9023
9024     mingw* | cygwin* | pw32* | os2* | cegcc*)
9025       # This hack is so that the source file can tell whether it is being
9026       # built for inclusion in a dll (and should export symbols for example).
9027       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9028       # (--disable-auto-import) libraries
9029       lt_prog_compiler_pic='-DDLL_EXPORT'
9030       case $host_os in
9031       os2*)
9032         lt_prog_compiler_static='$wl-static'
9033         ;;
9034       esac
9035       ;;
9036
9037     darwin* | rhapsody*)
9038       # PIC is the default on this platform
9039       # Common symbols not allowed in MH_DYLIB files
9040       lt_prog_compiler_pic='-fno-common'
9041       ;;
9042
9043     haiku*)
9044       # PIC is the default for Haiku.
9045       # The "-static" flag exists, but is broken.
9046       lt_prog_compiler_static=
9047       ;;
9048
9049     hpux*)
9050       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9051       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9052       # sets the default TLS model and affects inlining.
9053       case $host_cpu in
9054       hppa*64*)
9055         # +Z the default
9056         ;;
9057       *)
9058         lt_prog_compiler_pic='-fPIC'
9059         ;;
9060       esac
9061       ;;
9062
9063     interix[3-9]*)
9064       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9065       # Instead, we relocate shared libraries at runtime.
9066       ;;
9067
9068     msdosdjgpp*)
9069       # Just because we use GCC doesn't mean we suddenly get shared libraries
9070       # on systems that don't support them.
9071       lt_prog_compiler_can_build_shared=no
9072       enable_shared=no
9073       ;;
9074
9075     *nto* | *qnx*)
9076       # QNX uses GNU C++, but need to define -shared option too, otherwise
9077       # it will coredump.
9078       lt_prog_compiler_pic='-fPIC -shared'
9079       ;;
9080
9081     sysv4*MP*)
9082       if test -d /usr/nec; then
9083         lt_prog_compiler_pic=-Kconform_pic
9084       fi
9085       ;;
9086
9087     *)
9088       lt_prog_compiler_pic='-fPIC'
9089       ;;
9090     esac
9091
9092     case $cc_basename in
9093     nvcc*) # Cuda Compiler Driver 2.2
9094       lt_prog_compiler_wl='-Xlinker '
9095       if test -n "$lt_prog_compiler_pic"; then
9096         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9097       fi
9098       ;;
9099     esac
9100   else
9101     # PORTME Check for flag to pass linker flags through the system compiler.
9102     case $host_os in
9103     aix*)
9104       lt_prog_compiler_wl='-Wl,'
9105       if test ia64 = "$host_cpu"; then
9106         # AIX 5 now supports IA64 processor
9107         lt_prog_compiler_static='-Bstatic'
9108       else
9109         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9110       fi
9111       ;;
9112
9113     darwin* | rhapsody*)
9114       # PIC is the default on this platform
9115       # Common symbols not allowed in MH_DYLIB files
9116       lt_prog_compiler_pic='-fno-common'
9117       case $cc_basename in
9118       nagfor*)
9119         # NAG Fortran compiler
9120         lt_prog_compiler_wl='-Wl,-Wl,,'
9121         lt_prog_compiler_pic='-PIC'
9122         lt_prog_compiler_static='-Bstatic'
9123         ;;
9124       esac
9125       ;;
9126
9127     mingw* | cygwin* | pw32* | os2* | cegcc*)
9128       # This hack is so that the source file can tell whether it is being
9129       # built for inclusion in a dll (and should export symbols for example).
9130       lt_prog_compiler_pic='-DDLL_EXPORT'
9131       case $host_os in
9132       os2*)
9133         lt_prog_compiler_static='$wl-static'
9134         ;;
9135       esac
9136       ;;
9137
9138     hpux9* | hpux10* | hpux11*)
9139       lt_prog_compiler_wl='-Wl,'
9140       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9141       # not for PA HP-UX.
9142       case $host_cpu in
9143       hppa*64*|ia64*)
9144         # +Z the default
9145         ;;
9146       *)
9147         lt_prog_compiler_pic='+Z'
9148         ;;
9149       esac
9150       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9151       lt_prog_compiler_static='$wl-a ${wl}archive'
9152       ;;
9153
9154     irix5* | irix6* | nonstopux*)
9155       lt_prog_compiler_wl='-Wl,'
9156       # PIC (with -KPIC) is the default.
9157       lt_prog_compiler_static='-non_shared'
9158       ;;
9159
9160     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9161       case $cc_basename in
9162       # old Intel for x86_64, which still supported -KPIC.
9163       ecc*)
9164         lt_prog_compiler_wl='-Wl,'
9165         lt_prog_compiler_pic='-KPIC'
9166         lt_prog_compiler_static='-static'
9167         ;;
9168       # icc used to be incompatible with GCC.
9169       # ICC 10 doesn't accept -KPIC any more.
9170       icc* | ifort*)
9171         lt_prog_compiler_wl='-Wl,'
9172         lt_prog_compiler_pic='-fPIC'
9173         lt_prog_compiler_static='-static'
9174         ;;
9175       # Lahey Fortran 8.1.
9176       lf95*)
9177         lt_prog_compiler_wl='-Wl,'
9178         lt_prog_compiler_pic='--shared'
9179         lt_prog_compiler_static='--static'
9180         ;;
9181       nagfor*)
9182         # NAG Fortran compiler
9183         lt_prog_compiler_wl='-Wl,-Wl,,'
9184         lt_prog_compiler_pic='-PIC'
9185         lt_prog_compiler_static='-Bstatic'
9186         ;;
9187       tcc*)
9188         # Fabrice Bellard et al's Tiny C Compiler
9189         lt_prog_compiler_wl='-Wl,'
9190         lt_prog_compiler_pic='-fPIC'
9191         lt_prog_compiler_static='-static'
9192         ;;
9193       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9194         # Portland Group compilers (*not* the Pentium gcc compiler,
9195         # which looks to be a dead project)
9196         lt_prog_compiler_wl='-Wl,'
9197         lt_prog_compiler_pic='-fpic'
9198         lt_prog_compiler_static='-Bstatic'
9199         ;;
9200       ccc*)
9201         lt_prog_compiler_wl='-Wl,'
9202         # All Alpha code is PIC.
9203         lt_prog_compiler_static='-non_shared'
9204         ;;
9205       xl* | bgxl* | bgf* | mpixl*)
9206         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9207         lt_prog_compiler_wl='-Wl,'
9208         lt_prog_compiler_pic='-qpic'
9209         lt_prog_compiler_static='-qstaticlink'
9210         ;;
9211       *)
9212         case `$CC -V 2>&1 | sed 5q` in
9213         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9214           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9215           lt_prog_compiler_pic='-KPIC'
9216           lt_prog_compiler_static='-Bstatic'
9217           lt_prog_compiler_wl=''
9218           ;;
9219         *Sun\ F* | *Sun*Fortran*)
9220           lt_prog_compiler_pic='-KPIC'
9221           lt_prog_compiler_static='-Bstatic'
9222           lt_prog_compiler_wl='-Qoption ld '
9223           ;;
9224         *Sun\ C*)
9225           # Sun C 5.9
9226           lt_prog_compiler_pic='-KPIC'
9227           lt_prog_compiler_static='-Bstatic'
9228           lt_prog_compiler_wl='-Wl,'
9229           ;;
9230         *Intel*\ [CF]*Compiler*)
9231           lt_prog_compiler_wl='-Wl,'
9232           lt_prog_compiler_pic='-fPIC'
9233           lt_prog_compiler_static='-static'
9234           ;;
9235         *Portland\ Group*)
9236           lt_prog_compiler_wl='-Wl,'
9237           lt_prog_compiler_pic='-fpic'
9238           lt_prog_compiler_static='-Bstatic'
9239           ;;
9240         esac
9241         ;;
9242       esac
9243       ;;
9244
9245     newsos6)
9246       lt_prog_compiler_pic='-KPIC'
9247       lt_prog_compiler_static='-Bstatic'
9248       ;;
9249
9250     *nto* | *qnx*)
9251       # QNX uses GNU C++, but need to define -shared option too, otherwise
9252       # it will coredump.
9253       lt_prog_compiler_pic='-fPIC -shared'
9254       ;;
9255
9256     osf3* | osf4* | osf5*)
9257       lt_prog_compiler_wl='-Wl,'
9258       # All OSF/1 code is PIC.
9259       lt_prog_compiler_static='-non_shared'
9260       ;;
9261
9262     rdos*)
9263       lt_prog_compiler_static='-non_shared'
9264       ;;
9265
9266     solaris*)
9267       lt_prog_compiler_pic='-KPIC'
9268       lt_prog_compiler_static='-Bstatic'
9269       case $cc_basename in
9270       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9271         lt_prog_compiler_wl='-Qoption ld ';;
9272       *)
9273         lt_prog_compiler_wl='-Wl,';;
9274       esac
9275       ;;
9276
9277     sunos4*)
9278       lt_prog_compiler_wl='-Qoption ld '
9279       lt_prog_compiler_pic='-PIC'
9280       lt_prog_compiler_static='-Bstatic'
9281       ;;
9282
9283     sysv4 | sysv4.2uw2* | sysv4.3*)
9284       lt_prog_compiler_wl='-Wl,'
9285       lt_prog_compiler_pic='-KPIC'
9286       lt_prog_compiler_static='-Bstatic'
9287       ;;
9288
9289     sysv4*MP*)
9290       if test -d /usr/nec; then
9291         lt_prog_compiler_pic='-Kconform_pic'
9292         lt_prog_compiler_static='-Bstatic'
9293       fi
9294       ;;
9295
9296     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9297       lt_prog_compiler_wl='-Wl,'
9298       lt_prog_compiler_pic='-KPIC'
9299       lt_prog_compiler_static='-Bstatic'
9300       ;;
9301
9302     unicos*)
9303       lt_prog_compiler_wl='-Wl,'
9304       lt_prog_compiler_can_build_shared=no
9305       ;;
9306
9307     uts4*)
9308       lt_prog_compiler_pic='-pic'
9309       lt_prog_compiler_static='-Bstatic'
9310       ;;
9311
9312     *)
9313       lt_prog_compiler_can_build_shared=no
9314       ;;
9315     esac
9316   fi
9317
9318 case $host_os in
9319   # For platforms that do not support PIC, -DPIC is meaningless:
9320   *djgpp*)
9321     lt_prog_compiler_pic=
9322     ;;
9323   *)
9324     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9325     ;;
9326 esac
9327
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9329 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9330 if ${lt_cv_prog_compiler_pic+:} false; then :
9331   $as_echo_n "(cached) " >&6
9332 else
9333   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9334 fi
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9336 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9337 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9338
9339 #
9340 # Check to make sure the PIC flag actually works.
9341 #
9342 if test -n "$lt_prog_compiler_pic"; then
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9344 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9345 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9346   $as_echo_n "(cached) " >&6
9347 else
9348   lt_cv_prog_compiler_pic_works=no
9349    ac_outfile=conftest.$ac_objext
9350    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9351    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9352    # Insert the option either (1) after the last *FLAGS variable, or
9353    # (2) before a word containing "conftest.", or (3) at the end.
9354    # Note that $ac_compile itself does not contain backslashes and begins
9355    # with a dollar sign (not a hyphen), so the echo should work correctly.
9356    # The option is referenced via a variable to avoid confusing sed.
9357    lt_compile=`echo "$ac_compile" | $SED \
9358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9360    -e 's:$: $lt_compiler_flag:'`
9361    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9362    (eval "$lt_compile" 2>conftest.err)
9363    ac_status=$?
9364    cat conftest.err >&5
9365    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366    if (exit $ac_status) && test -s "$ac_outfile"; then
9367      # The compiler can only warn and ignore the option if not recognized
9368      # So say no if there are warnings other than the usual output.
9369      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9370      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9371      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9372        lt_cv_prog_compiler_pic_works=yes
9373      fi
9374    fi
9375    $RM conftest*
9376
9377 fi
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9379 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9380
9381 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9382     case $lt_prog_compiler_pic in
9383      "" | " "*) ;;
9384      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9385      esac
9386 else
9387     lt_prog_compiler_pic=
9388      lt_prog_compiler_can_build_shared=no
9389 fi
9390
9391 fi
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403 #
9404 # Check to make sure the static flag actually works.
9405 #
9406 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9408 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9409 if ${lt_cv_prog_compiler_static_works+:} false; then :
9410   $as_echo_n "(cached) " >&6
9411 else
9412   lt_cv_prog_compiler_static_works=no
9413    save_LDFLAGS=$LDFLAGS
9414    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9415    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9416    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9417      # The linker can only warn and ignore the option if not recognized
9418      # So say no if there are warnings
9419      if test -s conftest.err; then
9420        # Append any errors to the config.log.
9421        cat conftest.err 1>&5
9422        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9423        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9424        if diff conftest.exp conftest.er2 >/dev/null; then
9425          lt_cv_prog_compiler_static_works=yes
9426        fi
9427      else
9428        lt_cv_prog_compiler_static_works=yes
9429      fi
9430    fi
9431    $RM -r conftest*
9432    LDFLAGS=$save_LDFLAGS
9433
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9436 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9437
9438 if test yes = "$lt_cv_prog_compiler_static_works"; then
9439     :
9440 else
9441     lt_prog_compiler_static=
9442 fi
9443
9444
9445
9446
9447
9448
9449
9450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9451 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9452 if ${lt_cv_prog_compiler_c_o+:} false; then :
9453   $as_echo_n "(cached) " >&6
9454 else
9455   lt_cv_prog_compiler_c_o=no
9456    $RM -r conftest 2>/dev/null
9457    mkdir conftest
9458    cd conftest
9459    mkdir out
9460    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9461
9462    lt_compiler_flag="-o out/conftest2.$ac_objext"
9463    # Insert the option either (1) after the last *FLAGS variable, or
9464    # (2) before a word containing "conftest.", or (3) at the end.
9465    # Note that $ac_compile itself does not contain backslashes and begins
9466    # with a dollar sign (not a hyphen), so the echo should work correctly.
9467    lt_compile=`echo "$ac_compile" | $SED \
9468    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9469    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9470    -e 's:$: $lt_compiler_flag:'`
9471    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9472    (eval "$lt_compile" 2>out/conftest.err)
9473    ac_status=$?
9474    cat out/conftest.err >&5
9475    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9477    then
9478      # The compiler can only warn and ignore the option if not recognized
9479      # So say no if there are warnings
9480      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9481      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9482      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9483        lt_cv_prog_compiler_c_o=yes
9484      fi
9485    fi
9486    chmod u+w . 2>&5
9487    $RM conftest*
9488    # SGI C++ compiler will create directory out/ii_files/ for
9489    # template instantiation
9490    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9491    $RM out/* && rmdir out
9492    cd ..
9493    $RM -r conftest
9494    $RM conftest*
9495
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9498 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9499
9500
9501
9502
9503
9504
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9506 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9507 if ${lt_cv_prog_compiler_c_o+:} false; then :
9508   $as_echo_n "(cached) " >&6
9509 else
9510   lt_cv_prog_compiler_c_o=no
9511    $RM -r conftest 2>/dev/null
9512    mkdir conftest
9513    cd conftest
9514    mkdir out
9515    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9516
9517    lt_compiler_flag="-o out/conftest2.$ac_objext"
9518    # Insert the option either (1) after the last *FLAGS variable, or
9519    # (2) before a word containing "conftest.", or (3) at the end.
9520    # Note that $ac_compile itself does not contain backslashes and begins
9521    # with a dollar sign (not a hyphen), so the echo should work correctly.
9522    lt_compile=`echo "$ac_compile" | $SED \
9523    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9524    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9525    -e 's:$: $lt_compiler_flag:'`
9526    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9527    (eval "$lt_compile" 2>out/conftest.err)
9528    ac_status=$?
9529    cat out/conftest.err >&5
9530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9532    then
9533      # The compiler can only warn and ignore the option if not recognized
9534      # So say no if there are warnings
9535      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9536      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9537      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9538        lt_cv_prog_compiler_c_o=yes
9539      fi
9540    fi
9541    chmod u+w . 2>&5
9542    $RM conftest*
9543    # SGI C++ compiler will create directory out/ii_files/ for
9544    # template instantiation
9545    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9546    $RM out/* && rmdir out
9547    cd ..
9548    $RM -r conftest
9549    $RM conftest*
9550
9551 fi
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9553 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9554
9555
9556
9557
9558 hard_links=nottested
9559 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9560   # do not overwrite the value of need_locks provided by the user
9561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9562 $as_echo_n "checking if we can lock with hard links... " >&6; }
9563   hard_links=yes
9564   $RM conftest*
9565   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9566   touch conftest.a
9567   ln conftest.a conftest.b 2>&5 || hard_links=no
9568   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9570 $as_echo "$hard_links" >&6; }
9571   if test no = "$hard_links"; then
9572     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9573 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9574     need_locks=warn
9575   fi
9576 else
9577   need_locks=no
9578 fi
9579
9580
9581
9582
9583
9584
9585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9586 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9587
9588   runpath_var=
9589   allow_undefined_flag=
9590   always_export_symbols=no
9591   archive_cmds=
9592   archive_expsym_cmds=
9593   compiler_needs_object=no
9594   enable_shared_with_static_runtimes=no
9595   export_dynamic_flag_spec=
9596   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9597   hardcode_automatic=no
9598   hardcode_direct=no
9599   hardcode_direct_absolute=no
9600   hardcode_libdir_flag_spec=
9601   hardcode_libdir_separator=
9602   hardcode_minus_L=no
9603   hardcode_shlibpath_var=unsupported
9604   inherit_rpath=no
9605   link_all_deplibs=unknown
9606   module_cmds=
9607   module_expsym_cmds=
9608   old_archive_from_new_cmds=
9609   old_archive_from_expsyms_cmds=
9610   thread_safe_flag_spec=
9611   whole_archive_flag_spec=
9612   # include_expsyms should be a list of space-separated symbols to be *always*
9613   # included in the symbol list
9614   include_expsyms=
9615   # exclude_expsyms can be an extended regexp of symbols to exclude
9616   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9617   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9618   # as well as any symbol that contains 'd'.
9619   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9620   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9621   # platforms (ab)use it in PIC code, but their linkers get confused if
9622   # the symbol is explicitly referenced.  Since portable code cannot
9623   # rely on this symbol name, it's probably fine to never include it in
9624   # preloaded symbol tables.
9625   # Exclude shared library initialization/finalization symbols.
9626   extract_expsyms_cmds=
9627
9628   case $host_os in
9629   cygwin* | mingw* | pw32* | cegcc*)
9630     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9631     # When not using gcc, we currently assume that we are using
9632     # Microsoft Visual C++.
9633     if test yes != "$GCC"; then
9634       with_gnu_ld=no
9635     fi
9636     ;;
9637   interix*)
9638     # we just hope/assume this is gcc and not c89 (= MSVC++)
9639     with_gnu_ld=yes
9640     ;;
9641   openbsd* | bitrig*)
9642     with_gnu_ld=no
9643     ;;
9644   esac
9645
9646   ld_shlibs=yes
9647
9648   # On some targets, GNU ld is compatible enough with the native linker
9649   # that we're better off using the native interface for both.
9650   lt_use_gnu_ld_interface=no
9651   if test yes = "$with_gnu_ld"; then
9652     case $host_os in
9653       aix*)
9654         # The AIX port of GNU ld has always aspired to compatibility
9655         # with the native linker.  However, as the warning in the GNU ld
9656         # block says, versions before 2.19.5* couldn't really create working
9657         # shared libraries, regardless of the interface used.
9658         case `$LD -v 2>&1` in
9659           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9660           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9661           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9662           *)
9663             lt_use_gnu_ld_interface=yes
9664             ;;
9665         esac
9666         ;;
9667       *)
9668         lt_use_gnu_ld_interface=yes
9669         ;;
9670     esac
9671   fi
9672
9673   if test yes = "$lt_use_gnu_ld_interface"; then
9674     # If archive_cmds runs LD, not CC, wlarc should be empty
9675     wlarc='$wl'
9676
9677     # Set some defaults for GNU ld with shared library support. These
9678     # are reset later if shared libraries are not supported. Putting them
9679     # here allows them to be overridden if necessary.
9680     runpath_var=LD_RUN_PATH
9681     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9682     export_dynamic_flag_spec='$wl--export-dynamic'
9683     # ancient GNU ld didn't support --whole-archive et. al.
9684     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9685       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9686     else
9687       whole_archive_flag_spec=
9688     fi
9689     supports_anon_versioning=no
9690     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9691       *GNU\ gold*) supports_anon_versioning=yes ;;
9692       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9693       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9694       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9695       *\ 2.11.*) ;; # other 2.11 versions
9696       *) supports_anon_versioning=yes ;;
9697     esac
9698
9699     # See if GNU ld supports shared libraries.
9700     case $host_os in
9701     aix[3-9]*)
9702       # On AIX/PPC, the GNU linker is very broken
9703       if test ia64 != "$host_cpu"; then
9704         ld_shlibs=no
9705         cat <<_LT_EOF 1>&2
9706
9707 *** Warning: the GNU linker, at least up to release 2.19, is reported
9708 *** to be unable to reliably create shared libraries on AIX.
9709 *** Therefore, libtool is disabling shared libraries support.  If you
9710 *** really care for shared libraries, you may want to install binutils
9711 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9712 *** You will then need to restart the configuration process.
9713
9714 _LT_EOF
9715       fi
9716       ;;
9717
9718     amigaos*)
9719       case $host_cpu in
9720       powerpc)
9721             # see comment about AmigaOS4 .so support
9722             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9723             archive_expsym_cmds=''
9724         ;;
9725       m68k)
9726             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)'
9727             hardcode_libdir_flag_spec='-L$libdir'
9728             hardcode_minus_L=yes
9729         ;;
9730       esac
9731       ;;
9732
9733     beos*)
9734       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9735         allow_undefined_flag=unsupported
9736         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9737         # support --undefined.  This deserves some investigation.  FIXME
9738         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9739       else
9740         ld_shlibs=no
9741       fi
9742       ;;
9743
9744     cygwin* | mingw* | pw32* | cegcc*)
9745       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9746       # as there is no search path for DLLs.
9747       hardcode_libdir_flag_spec='-L$libdir'
9748       export_dynamic_flag_spec='$wl--export-all-symbols'
9749       allow_undefined_flag=unsupported
9750       always_export_symbols=no
9751       enable_shared_with_static_runtimes=yes
9752       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'
9753       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9754
9755       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9756         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9757         # If the export-symbols file already is a .def file, use it as
9758         # is; otherwise, prepend EXPORTS...
9759         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9760           cp $export_symbols $output_objdir/$soname.def;
9761         else
9762           echo EXPORTS > $output_objdir/$soname.def;
9763           cat $export_symbols >> $output_objdir/$soname.def;
9764         fi~
9765         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9766       else
9767         ld_shlibs=no
9768       fi
9769       ;;
9770
9771     haiku*)
9772       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9773       link_all_deplibs=yes
9774       ;;
9775
9776     os2*)
9777       hardcode_libdir_flag_spec='-L$libdir'
9778       hardcode_minus_L=yes
9779       allow_undefined_flag=unsupported
9780       shrext_cmds=.dll
9781       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9782         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9783         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9784         $ECHO EXPORTS >> $output_objdir/$libname.def~
9785         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9786         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9787         emximp -o $lib $output_objdir/$libname.def'
9788       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9789         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9790         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9791         $ECHO EXPORTS >> $output_objdir/$libname.def~
9792         prefix_cmds="$SED"~
9793         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9794           prefix_cmds="$prefix_cmds -e 1d";
9795         fi~
9796         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9797         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9798         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9799         emximp -o $lib $output_objdir/$libname.def'
9800       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9801       enable_shared_with_static_runtimes=yes
9802       ;;
9803
9804     interix[3-9]*)
9805       hardcode_direct=no
9806       hardcode_shlibpath_var=no
9807       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9808       export_dynamic_flag_spec='$wl-E'
9809       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9810       # Instead, shared libraries are loaded at an image base (0x10000000 by
9811       # default) and relocated if they conflict, which is a slow very memory
9812       # consuming and fragmenting process.  To avoid this, we pick a random,
9813       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9814       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9815       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9816       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'
9817       ;;
9818
9819     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9820       tmp_diet=no
9821       if test linux-dietlibc = "$host_os"; then
9822         case $cc_basename in
9823           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9824         esac
9825       fi
9826       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9827          && test no = "$tmp_diet"
9828       then
9829         tmp_addflag=' $pic_flag'
9830         tmp_sharedflag='-shared'
9831         case $cc_basename,$host_cpu in
9832         pgcc*)                          # Portland Group C compiler
9833           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'
9834           tmp_addflag=' $pic_flag'
9835           ;;
9836         pgf77* | pgf90* | pgf95* | pgfortran*)
9837                                         # Portland Group f77 and f90 compilers
9838           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'
9839           tmp_addflag=' $pic_flag -Mnomain' ;;
9840         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9841           tmp_addflag=' -i_dynamic' ;;
9842         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9843           tmp_addflag=' -i_dynamic -nofor_main' ;;
9844         ifc* | ifort*)                  # Intel Fortran compiler
9845           tmp_addflag=' -nofor_main' ;;
9846         lf95*)                          # Lahey Fortran 8.1
9847           whole_archive_flag_spec=
9848           tmp_sharedflag='--shared' ;;
9849         nagfor*)                        # NAGFOR 5.3
9850           tmp_sharedflag='-Wl,-shared' ;;
9851         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9852           tmp_sharedflag='-qmkshrobj'
9853           tmp_addflag= ;;
9854         nvcc*)  # Cuda Compiler Driver 2.2
9855           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'
9856           compiler_needs_object=yes
9857           ;;
9858         esac
9859         case `$CC -V 2>&1 | sed 5q` in
9860         *Sun\ C*)                       # Sun C 5.9
9861           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'
9862           compiler_needs_object=yes
9863           tmp_sharedflag='-G' ;;
9864         *Sun\ F*)                       # Sun Fortran 8.3
9865           tmp_sharedflag='-G' ;;
9866         esac
9867         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9868
9869         if test yes = "$supports_anon_versioning"; then
9870           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9871             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9872             echo "local: *; };" >> $output_objdir/$libname.ver~
9873             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9874         fi
9875
9876         case $cc_basename in
9877         tcc*)
9878           export_dynamic_flag_spec='-rdynamic'
9879           ;;
9880         xlf* | bgf* | bgxlf* | mpixlf*)
9881           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9882           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9883           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9884           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9885           if test yes = "$supports_anon_versioning"; then
9886             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9887               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9888               echo "local: *; };" >> $output_objdir/$libname.ver~
9889               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9890           fi
9891           ;;
9892         esac
9893       else
9894         ld_shlibs=no
9895       fi
9896       ;;
9897
9898     netbsd*)
9899       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9900         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9901         wlarc=
9902       else
9903         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9904         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9905       fi
9906       ;;
9907
9908     solaris*)
9909       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9910         ld_shlibs=no
9911         cat <<_LT_EOF 1>&2
9912
9913 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9914 *** create shared libraries on Solaris systems.  Therefore, libtool
9915 *** is disabling shared libraries support.  We urge you to upgrade GNU
9916 *** binutils to release 2.9.1 or newer.  Another option is to modify
9917 *** your PATH or compiler configuration so that the native linker is
9918 *** used, and then restart.
9919
9920 _LT_EOF
9921       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9922         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9923         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9924       else
9925         ld_shlibs=no
9926       fi
9927       ;;
9928
9929     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9930       case `$LD -v 2>&1` in
9931         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9932         ld_shlibs=no
9933         cat <<_LT_EOF 1>&2
9934
9935 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9936 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9937 *** is disabling shared libraries support.  We urge you to upgrade GNU
9938 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9939 *** your PATH or compiler configuration so that the native linker is
9940 *** used, and then restart.
9941
9942 _LT_EOF
9943         ;;
9944         *)
9945           # For security reasons, it is highly recommended that you always
9946           # use absolute paths for naming shared libraries, and exclude the
9947           # DT_RUNPATH tag from executables and libraries.  But doing so
9948           # requires that you compile everything twice, which is a pain.
9949           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9950             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9951             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9952             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9953           else
9954             ld_shlibs=no
9955           fi
9956         ;;
9957       esac
9958       ;;
9959
9960     sunos4*)
9961       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9962       wlarc=
9963       hardcode_direct=yes
9964       hardcode_shlibpath_var=no
9965       ;;
9966
9967     *)
9968       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9969         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9970         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9971       else
9972         ld_shlibs=no
9973       fi
9974       ;;
9975     esac
9976
9977     if test no = "$ld_shlibs"; then
9978       runpath_var=
9979       hardcode_libdir_flag_spec=
9980       export_dynamic_flag_spec=
9981       whole_archive_flag_spec=
9982     fi
9983   else
9984     # PORTME fill in a description of your system's linker (not GNU ld)
9985     case $host_os in
9986     aix3*)
9987       allow_undefined_flag=unsupported
9988       always_export_symbols=yes
9989       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'
9990       # Note: this linker hardcodes the directories in LIBPATH if there
9991       # are no directories specified by -L.
9992       hardcode_minus_L=yes
9993       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9994         # Neither direct hardcoding nor static linking is supported with a
9995         # broken collect2.
9996         hardcode_direct=unsupported
9997       fi
9998       ;;
9999
10000     aix[4-9]*)
10001       if test ia64 = "$host_cpu"; then
10002         # On IA64, the linker does run time linking by default, so we don't
10003         # have to do anything special.
10004         aix_use_runtimelinking=no
10005         exp_sym_flag='-Bexport'
10006         no_entry_flag=
10007       else
10008         # If we're using GNU nm, then we don't want the "-C" option.
10009         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10010         # Without the "-l" option, or with the "-B" option, AIX nm treats
10011         # weak defined symbols like other global defined symbols, whereas
10012         # GNU nm marks them as "W".
10013         # While the 'weak' keyword is ignored in the Export File, we need
10014         # it in the Import File for the 'aix-soname' feature, so we have
10015         # to replace the "-B" option with "-P" for AIX nm.
10016         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10017           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10018         else
10019           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10020         fi
10021         aix_use_runtimelinking=no
10022
10023         # Test if we are trying to use run time linking or normal
10024         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10025         # have runtime linking enabled, and use it for executables.
10026         # For shared libraries, we enable/disable runtime linking
10027         # depending on the kind of the shared library created -
10028         # when "with_aix_soname,aix_use_runtimelinking" is:
10029         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10030         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10031         #            lib.a           static archive
10032         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10033         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10034         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10035         #            lib.a(lib.so.V) shared, rtl:no
10036         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10037         #            lib.a           static archive
10038         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10039           for ld_flag in $LDFLAGS; do
10040           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10041             aix_use_runtimelinking=yes
10042             break
10043           fi
10044           done
10045           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10046             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10047             # so we don't have lib.a shared libs to link our executables.
10048             # We have to force runtime linking in this case.
10049             aix_use_runtimelinking=yes
10050             LDFLAGS="$LDFLAGS -Wl,-brtl"
10051           fi
10052           ;;
10053         esac
10054
10055         exp_sym_flag='-bexport'
10056         no_entry_flag='-bnoentry'
10057       fi
10058
10059       # When large executables or shared objects are built, AIX ld can
10060       # have problems creating the table of contents.  If linking a library
10061       # or program results in "error TOC overflow" add -mminimal-toc to
10062       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10063       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10064
10065       archive_cmds=''
10066       hardcode_direct=yes
10067       hardcode_direct_absolute=yes
10068       hardcode_libdir_separator=':'
10069       link_all_deplibs=yes
10070       file_list_spec='$wl-f,'
10071       case $with_aix_soname,$aix_use_runtimelinking in
10072       aix,*) ;; # traditional, no import file
10073       svr4,* | *,yes) # use import file
10074         # The Import File defines what to hardcode.
10075         hardcode_direct=no
10076         hardcode_direct_absolute=no
10077         ;;
10078       esac
10079
10080       if test yes = "$GCC"; then
10081         case $host_os in aix4.[012]|aix4.[012].*)
10082         # We only want to do this on AIX 4.2 and lower, the check
10083         # below for broken collect2 doesn't work under 4.3+
10084           collect2name=`$CC -print-prog-name=collect2`
10085           if test -f "$collect2name" &&
10086            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10087           then
10088           # We have reworked collect2
10089           :
10090           else
10091           # We have old collect2
10092           hardcode_direct=unsupported
10093           # It fails to find uninstalled libraries when the uninstalled
10094           # path is not listed in the libpath.  Setting hardcode_minus_L
10095           # to unsupported forces relinking
10096           hardcode_minus_L=yes
10097           hardcode_libdir_flag_spec='-L$libdir'
10098           hardcode_libdir_separator=
10099           fi
10100           ;;
10101         esac
10102         shared_flag='-shared'
10103         if test yes = "$aix_use_runtimelinking"; then
10104           shared_flag="$shared_flag "'$wl-G'
10105         fi
10106         # Need to ensure runtime linking is disabled for the traditional
10107         # shared library, or the linker may eventually find shared libraries
10108         # /with/ Import File - we do not want to mix them.
10109         shared_flag_aix='-shared'
10110         shared_flag_svr4='-shared $wl-G'
10111       else
10112         # not using gcc
10113         if test ia64 = "$host_cpu"; then
10114         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10115         # chokes on -Wl,-G. The following line is correct:
10116           shared_flag='-G'
10117         else
10118           if test yes = "$aix_use_runtimelinking"; then
10119             shared_flag='$wl-G'
10120           else
10121             shared_flag='$wl-bM:SRE'
10122           fi
10123           shared_flag_aix='$wl-bM:SRE'
10124           shared_flag_svr4='$wl-G'
10125         fi
10126       fi
10127
10128       export_dynamic_flag_spec='$wl-bexpall'
10129       # It seems that -bexpall does not export symbols beginning with
10130       # underscore (_), so it is better to generate a list of symbols to export.
10131       always_export_symbols=yes
10132       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10133         # Warning - without using the other runtime loading flags (-brtl),
10134         # -berok will link without error, but may produce a broken library.
10135         allow_undefined_flag='-berok'
10136         # Determine the default libpath from the value encoded in an
10137         # empty executable.
10138         if test set = "${lt_cv_aix_libpath+set}"; then
10139   aix_libpath=$lt_cv_aix_libpath
10140 else
10141   if ${lt_cv_aix_libpath_+:} false; then :
10142   $as_echo_n "(cached) " >&6
10143 else
10144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h.  */
10146
10147 int
10148 main ()
10149 {
10150
10151   ;
10152   return 0;
10153 }
10154 _ACEOF
10155 if ac_fn_c_try_link "$LINENO"; then :
10156
10157   lt_aix_libpath_sed='
10158       /Import File Strings/,/^$/ {
10159           /^0/ {
10160               s/^0  *\([^ ]*\) *$/\1/
10161               p
10162           }
10163       }'
10164   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10165   # Check for a 64-bit object if we didn't find anything.
10166   if test -z "$lt_cv_aix_libpath_"; then
10167     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10168   fi
10169 fi
10170 rm -f core conftest.err conftest.$ac_objext \
10171     conftest$ac_exeext conftest.$ac_ext
10172   if test -z "$lt_cv_aix_libpath_"; then
10173     lt_cv_aix_libpath_=/usr/lib:/lib
10174   fi
10175
10176 fi
10177
10178   aix_libpath=$lt_cv_aix_libpath_
10179 fi
10180
10181         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10182         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10183       else
10184         if test ia64 = "$host_cpu"; then
10185           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10186           allow_undefined_flag="-z nodefs"
10187           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"
10188         else
10189          # Determine the default libpath from the value encoded in an
10190          # empty executable.
10191          if test set = "${lt_cv_aix_libpath+set}"; then
10192   aix_libpath=$lt_cv_aix_libpath
10193 else
10194   if ${lt_cv_aix_libpath_+:} false; then :
10195   $as_echo_n "(cached) " >&6
10196 else
10197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h.  */
10199
10200 int
10201 main ()
10202 {
10203
10204   ;
10205   return 0;
10206 }
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"; then :
10209
10210   lt_aix_libpath_sed='
10211       /Import File Strings/,/^$/ {
10212           /^0/ {
10213               s/^0  *\([^ ]*\) *$/\1/
10214               p
10215           }
10216       }'
10217   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10218   # Check for a 64-bit object if we didn't find anything.
10219   if test -z "$lt_cv_aix_libpath_"; then
10220     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10221   fi
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext \
10224     conftest$ac_exeext conftest.$ac_ext
10225   if test -z "$lt_cv_aix_libpath_"; then
10226     lt_cv_aix_libpath_=/usr/lib:/lib
10227   fi
10228
10229 fi
10230
10231   aix_libpath=$lt_cv_aix_libpath_
10232 fi
10233
10234          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10235           # Warning - without using the other run time loading flags,
10236           # -berok will link without error, but may produce a broken library.
10237           no_undefined_flag=' $wl-bernotok'
10238           allow_undefined_flag=' $wl-berok'
10239           if test yes = "$with_gnu_ld"; then
10240             # We only use this code for GNU lds that support --whole-archive.
10241             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10242           else
10243             # Exported symbols can be pulled into shared objects from archives
10244             whole_archive_flag_spec='$convenience'
10245           fi
10246           archive_cmds_need_lc=yes
10247           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10248           # -brtl affects multiple linker settings, -berok does not and is overridden later
10249           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10250           if test svr4 != "$with_aix_soname"; then
10251             # This is similar to how AIX traditionally builds its shared libraries.
10252             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10253           fi
10254           if test aix != "$with_aix_soname"; then
10255             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10256           else
10257             # used by -dlpreopen to get the symbols
10258             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10259           fi
10260           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10261         fi
10262       fi
10263       ;;
10264
10265     amigaos*)
10266       case $host_cpu in
10267       powerpc)
10268             # see comment about AmigaOS4 .so support
10269             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10270             archive_expsym_cmds=''
10271         ;;
10272       m68k)
10273             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)'
10274             hardcode_libdir_flag_spec='-L$libdir'
10275             hardcode_minus_L=yes
10276         ;;
10277       esac
10278       ;;
10279
10280     bsdi[45]*)
10281       export_dynamic_flag_spec=-rdynamic
10282       ;;
10283
10284     cygwin* | mingw* | pw32* | cegcc*)
10285       # When not using gcc, we currently assume that we are using
10286       # Microsoft Visual C++.
10287       # hardcode_libdir_flag_spec is actually meaningless, as there is
10288       # no search path for DLLs.
10289       case $cc_basename in
10290       cl*)
10291         # Native MSVC
10292         hardcode_libdir_flag_spec=' '
10293         allow_undefined_flag=unsupported
10294         always_export_symbols=yes
10295         file_list_spec='@'
10296         # Tell ltmain to make .lib files, not .a files.
10297         libext=lib
10298         # Tell ltmain to make .dll files, not .so files.
10299         shrext_cmds=.dll
10300         # FIXME: Setting linknames here is a bad hack.
10301         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10302         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10303             cp "$export_symbols" "$output_objdir/$soname.def";
10304             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10305           else
10306             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10307           fi~
10308           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10309           linknames='
10310         # The linker will not automatically build a static lib if we build a DLL.
10311         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10312         enable_shared_with_static_runtimes=yes
10313         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10314         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10315         # Don't use ranlib
10316         old_postinstall_cmds='chmod 644 $oldlib'
10317         postlink_cmds='lt_outputfile="@OUTPUT@"~
10318           lt_tool_outputfile="@TOOL_OUTPUT@"~
10319           case $lt_outputfile in
10320             *.exe|*.EXE) ;;
10321             *)
10322               lt_outputfile=$lt_outputfile.exe
10323               lt_tool_outputfile=$lt_tool_outputfile.exe
10324               ;;
10325           esac~
10326           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10327             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10328             $RM "$lt_outputfile.manifest";
10329           fi'
10330         ;;
10331       *)
10332         # Assume MSVC wrapper
10333         hardcode_libdir_flag_spec=' '
10334         allow_undefined_flag=unsupported
10335         # Tell ltmain to make .lib files, not .a files.
10336         libext=lib
10337         # Tell ltmain to make .dll files, not .so files.
10338         shrext_cmds=.dll
10339         # FIXME: Setting linknames here is a bad hack.
10340         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10341         # The linker will automatically build a .lib file if we build a DLL.
10342         old_archive_from_new_cmds='true'
10343         # FIXME: Should let the user specify the lib program.
10344         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10345         enable_shared_with_static_runtimes=yes
10346         ;;
10347       esac
10348       ;;
10349
10350     darwin* | rhapsody*)
10351
10352
10353   archive_cmds_need_lc=no
10354   hardcode_direct=no
10355   hardcode_automatic=yes
10356   hardcode_shlibpath_var=unsupported
10357   if test yes = "$lt_cv_ld_force_load"; then
10358     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\"`'
10359
10360   else
10361     whole_archive_flag_spec=''
10362   fi
10363   link_all_deplibs=yes
10364   allow_undefined_flag=$_lt_dar_allow_undefined
10365   case $cc_basename in
10366      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10367      *) _lt_dar_can_shared=$GCC ;;
10368   esac
10369   if test yes = "$_lt_dar_can_shared"; then
10370     output_verbose_link_cmd=func_echo_all
10371     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10372     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10373     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"
10374     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"
10375
10376   else
10377   ld_shlibs=no
10378   fi
10379
10380       ;;
10381
10382     dgux*)
10383       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10384       hardcode_libdir_flag_spec='-L$libdir'
10385       hardcode_shlibpath_var=no
10386       ;;
10387
10388     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10389     # support.  Future versions do this automatically, but an explicit c++rt0.o
10390     # does not break anything, and helps significantly (at the cost of a little
10391     # extra space).
10392     freebsd2.2*)
10393       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10394       hardcode_libdir_flag_spec='-R$libdir'
10395       hardcode_direct=yes
10396       hardcode_shlibpath_var=no
10397       ;;
10398
10399     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10400     freebsd2.*)
10401       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10402       hardcode_direct=yes
10403       hardcode_minus_L=yes
10404       hardcode_shlibpath_var=no
10405       ;;
10406
10407     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10408     freebsd* | dragonfly*)
10409       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10410       hardcode_libdir_flag_spec='-R$libdir'
10411       hardcode_direct=yes
10412       hardcode_shlibpath_var=no
10413       ;;
10414
10415     hpux9*)
10416       if test yes = "$GCC"; then
10417         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10418       else
10419         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10420       fi
10421       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10422       hardcode_libdir_separator=:
10423       hardcode_direct=yes
10424
10425       # hardcode_minus_L: Not really in the search PATH,
10426       # but as the default location of the library.
10427       hardcode_minus_L=yes
10428       export_dynamic_flag_spec='$wl-E'
10429       ;;
10430
10431     hpux10*)
10432       if test yes,no = "$GCC,$with_gnu_ld"; then
10433         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10434       else
10435         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10436       fi
10437       if test no = "$with_gnu_ld"; then
10438         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10439         hardcode_libdir_separator=:
10440         hardcode_direct=yes
10441         hardcode_direct_absolute=yes
10442         export_dynamic_flag_spec='$wl-E'
10443         # hardcode_minus_L: Not really in the search PATH,
10444         # but as the default location of the library.
10445         hardcode_minus_L=yes
10446       fi
10447       ;;
10448
10449     hpux11*)
10450       if test yes,no = "$GCC,$with_gnu_ld"; then
10451         case $host_cpu in
10452         hppa*64*)
10453           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10454           ;;
10455         ia64*)
10456           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10457           ;;
10458         *)
10459           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10460           ;;
10461         esac
10462       else
10463         case $host_cpu in
10464         hppa*64*)
10465           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10466           ;;
10467         ia64*)
10468           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10469           ;;
10470         *)
10471
10472           # Older versions of the 11.00 compiler do not understand -b yet
10473           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10474           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10475 $as_echo_n "checking if $CC understands -b... " >&6; }
10476 if ${lt_cv_prog_compiler__b+:} false; then :
10477   $as_echo_n "(cached) " >&6
10478 else
10479   lt_cv_prog_compiler__b=no
10480    save_LDFLAGS=$LDFLAGS
10481    LDFLAGS="$LDFLAGS -b"
10482    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10483    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10484      # The linker can only warn and ignore the option if not recognized
10485      # So say no if there are warnings
10486      if test -s conftest.err; then
10487        # Append any errors to the config.log.
10488        cat conftest.err 1>&5
10489        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10490        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10491        if diff conftest.exp conftest.er2 >/dev/null; then
10492          lt_cv_prog_compiler__b=yes
10493        fi
10494      else
10495        lt_cv_prog_compiler__b=yes
10496      fi
10497    fi
10498    $RM -r conftest*
10499    LDFLAGS=$save_LDFLAGS
10500
10501 fi
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10503 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10504
10505 if test yes = "$lt_cv_prog_compiler__b"; then
10506     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10507 else
10508     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10509 fi
10510
10511           ;;
10512         esac
10513       fi
10514       if test no = "$with_gnu_ld"; then
10515         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10516         hardcode_libdir_separator=:
10517
10518         case $host_cpu in
10519         hppa*64*|ia64*)
10520           hardcode_direct=no
10521           hardcode_shlibpath_var=no
10522           ;;
10523         *)
10524           hardcode_direct=yes
10525           hardcode_direct_absolute=yes
10526           export_dynamic_flag_spec='$wl-E'
10527
10528           # hardcode_minus_L: Not really in the search PATH,
10529           # but as the default location of the library.
10530           hardcode_minus_L=yes
10531           ;;
10532         esac
10533       fi
10534       ;;
10535
10536     irix5* | irix6* | nonstopux*)
10537       if test yes = "$GCC"; then
10538         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'
10539         # Try to use the -exported_symbol ld option, if it does not
10540         # work, assume that -exports_file does not work either and
10541         # implicitly export all symbols.
10542         # This should be the same for all languages, so no per-tag cache variable.
10543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10544 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10545 if ${lt_cv_irix_exported_symbol+:} false; then :
10546   $as_echo_n "(cached) " >&6
10547 else
10548   save_LDFLAGS=$LDFLAGS
10549            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10550            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551 /* end confdefs.h.  */
10552 int foo (void) { return 0; }
10553 _ACEOF
10554 if ac_fn_c_try_link "$LINENO"; then :
10555   lt_cv_irix_exported_symbol=yes
10556 else
10557   lt_cv_irix_exported_symbol=no
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext \
10560     conftest$ac_exeext conftest.$ac_ext
10561            LDFLAGS=$save_LDFLAGS
10562 fi
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10564 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10565         if test yes = "$lt_cv_irix_exported_symbol"; then
10566           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'
10567         fi
10568       else
10569         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'
10570         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'
10571       fi
10572       archive_cmds_need_lc='no'
10573       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10574       hardcode_libdir_separator=:
10575       inherit_rpath=yes
10576       link_all_deplibs=yes
10577       ;;
10578
10579     linux*)
10580       case $cc_basename in
10581       tcc*)
10582         # Fabrice Bellard et al's Tiny C Compiler
10583         ld_shlibs=yes
10584         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10585         ;;
10586       esac
10587       ;;
10588
10589     netbsd*)
10590       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10591         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10592       else
10593         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10594       fi
10595       hardcode_libdir_flag_spec='-R$libdir'
10596       hardcode_direct=yes
10597       hardcode_shlibpath_var=no
10598       ;;
10599
10600     newsos6)
10601       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10602       hardcode_direct=yes
10603       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10604       hardcode_libdir_separator=:
10605       hardcode_shlibpath_var=no
10606       ;;
10607
10608     *nto* | *qnx*)
10609       ;;
10610
10611     openbsd* | bitrig*)
10612       if test -f /usr/libexec/ld.so; then
10613         hardcode_direct=yes
10614         hardcode_shlibpath_var=no
10615         hardcode_direct_absolute=yes
10616         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10617           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10618           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10619           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10620           export_dynamic_flag_spec='$wl-E'
10621         else
10622           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10623           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10624         fi
10625       else
10626         ld_shlibs=no
10627       fi
10628       ;;
10629
10630     os2*)
10631       hardcode_libdir_flag_spec='-L$libdir'
10632       hardcode_minus_L=yes
10633       allow_undefined_flag=unsupported
10634       shrext_cmds=.dll
10635       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10636         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10637         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10638         $ECHO EXPORTS >> $output_objdir/$libname.def~
10639         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10640         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10641         emximp -o $lib $output_objdir/$libname.def'
10642       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10643         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10644         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10645         $ECHO EXPORTS >> $output_objdir/$libname.def~
10646         prefix_cmds="$SED"~
10647         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10648           prefix_cmds="$prefix_cmds -e 1d";
10649         fi~
10650         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10651         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10652         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10653         emximp -o $lib $output_objdir/$libname.def'
10654       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10655       enable_shared_with_static_runtimes=yes
10656       ;;
10657
10658     osf3*)
10659       if test yes = "$GCC"; then
10660         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10661         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'
10662       else
10663         allow_undefined_flag=' -expect_unresolved \*'
10664         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'
10665       fi
10666       archive_cmds_need_lc='no'
10667       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10668       hardcode_libdir_separator=:
10669       ;;
10670
10671     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10672       if test yes = "$GCC"; then
10673         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10674         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'
10675         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10676       else
10677         allow_undefined_flag=' -expect_unresolved \*'
10678         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'
10679         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~
10680           $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'
10681
10682         # Both c and cxx compiler support -rpath directly
10683         hardcode_libdir_flag_spec='-rpath $libdir'
10684       fi
10685       archive_cmds_need_lc='no'
10686       hardcode_libdir_separator=:
10687       ;;
10688
10689     solaris*)
10690       no_undefined_flag=' -z defs'
10691       if test yes = "$GCC"; then
10692         wlarc='$wl'
10693         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10694         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10695           $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'
10696       else
10697         case `$CC -V 2>&1` in
10698         *"Compilers 5.0"*)
10699           wlarc=''
10700           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10702             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10703           ;;
10704         *)
10705           wlarc='$wl'
10706           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10707           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10708             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10709           ;;
10710         esac
10711       fi
10712       hardcode_libdir_flag_spec='-R$libdir'
10713       hardcode_shlibpath_var=no
10714       case $host_os in
10715       solaris2.[0-5] | solaris2.[0-5].*) ;;
10716       *)
10717         # The compiler driver will combine and reorder linker options,
10718         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10719         # but is careful enough not to reorder.
10720         # Supported since Solaris 2.6 (maybe 2.5.1?)
10721         if test yes = "$GCC"; then
10722           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10723         else
10724           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10725         fi
10726         ;;
10727       esac
10728       link_all_deplibs=yes
10729       ;;
10730
10731     sunos4*)
10732       if test sequent = "$host_vendor"; then
10733         # Use $CC to link under sequent, because it throws in some extra .o
10734         # files that make .init and .fini sections work.
10735         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10736       else
10737         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10738       fi
10739       hardcode_libdir_flag_spec='-L$libdir'
10740       hardcode_direct=yes
10741       hardcode_minus_L=yes
10742       hardcode_shlibpath_var=no
10743       ;;
10744
10745     sysv4)
10746       case $host_vendor in
10747         sni)
10748           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10749           hardcode_direct=yes # is this really true???
10750         ;;
10751         siemens)
10752           ## LD is ld it makes a PLAMLIB
10753           ## CC just makes a GrossModule.
10754           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10755           reload_cmds='$CC -r -o $output$reload_objs'
10756           hardcode_direct=no
10757         ;;
10758         motorola)
10759           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10760           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10761         ;;
10762       esac
10763       runpath_var='LD_RUN_PATH'
10764       hardcode_shlibpath_var=no
10765       ;;
10766
10767     sysv4.3*)
10768       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10769       hardcode_shlibpath_var=no
10770       export_dynamic_flag_spec='-Bexport'
10771       ;;
10772
10773     sysv4*MP*)
10774       if test -d /usr/nec; then
10775         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10776         hardcode_shlibpath_var=no
10777         runpath_var=LD_RUN_PATH
10778         hardcode_runpath_var=yes
10779         ld_shlibs=yes
10780       fi
10781       ;;
10782
10783     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10784       no_undefined_flag='$wl-z,text'
10785       archive_cmds_need_lc=no
10786       hardcode_shlibpath_var=no
10787       runpath_var='LD_RUN_PATH'
10788
10789       if test yes = "$GCC"; then
10790         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10791         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10792       else
10793         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795       fi
10796       ;;
10797
10798     sysv5* | sco3.2v5* | sco5v6*)
10799       # Note: We CANNOT use -z defs as we might desire, because we do not
10800       # link with -lc, and that would cause any symbols used from libc to
10801       # always be unresolved, which means just about no library would
10802       # ever link correctly.  If we're not using GNU ld we use -z text
10803       # though, which does catch some bad symbols but isn't as heavy-handed
10804       # as -z defs.
10805       no_undefined_flag='$wl-z,text'
10806       allow_undefined_flag='$wl-z,nodefs'
10807       archive_cmds_need_lc=no
10808       hardcode_shlibpath_var=no
10809       hardcode_libdir_flag_spec='$wl-R,$libdir'
10810       hardcode_libdir_separator=':'
10811       link_all_deplibs=yes
10812       export_dynamic_flag_spec='$wl-Bexport'
10813       runpath_var='LD_RUN_PATH'
10814
10815       if test yes = "$GCC"; then
10816         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10818       else
10819         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10820         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10821       fi
10822       ;;
10823
10824     uts4*)
10825       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826       hardcode_libdir_flag_spec='-L$libdir'
10827       hardcode_shlibpath_var=no
10828       ;;
10829
10830     *)
10831       ld_shlibs=no
10832       ;;
10833     esac
10834
10835     if test sni = "$host_vendor"; then
10836       case $host in
10837       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10838         export_dynamic_flag_spec='$wl-Blargedynsym'
10839         ;;
10840       esac
10841     fi
10842   fi
10843
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10845 $as_echo "$ld_shlibs" >&6; }
10846 test no = "$ld_shlibs" && can_build_shared=no
10847
10848 with_gnu_ld=$with_gnu_ld
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864 #
10865 # Do we need to explicitly link libc?
10866 #
10867 case "x$archive_cmds_need_lc" in
10868 x|xyes)
10869   # Assume -lc should be added
10870   archive_cmds_need_lc=yes
10871
10872   if test yes,yes = "$GCC,$enable_shared"; then
10873     case $archive_cmds in
10874     *'~'*)
10875       # FIXME: we may have to deal with multi-command sequences.
10876       ;;
10877     '$CC '*)
10878       # Test whether the compiler implicitly links with -lc since on some
10879       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10880       # to ld, don't add -lc before -lgcc.
10881       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10882 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10883 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10884   $as_echo_n "(cached) " >&6
10885 else
10886   $RM conftest*
10887         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10888
10889         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10890   (eval $ac_compile) 2>&5
10891   ac_status=$?
10892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10893   test $ac_status = 0; } 2>conftest.err; then
10894           soname=conftest
10895           lib=conftest
10896           libobjs=conftest.$ac_objext
10897           deplibs=
10898           wl=$lt_prog_compiler_wl
10899           pic_flag=$lt_prog_compiler_pic
10900           compiler_flags=-v
10901           linker_flags=-v
10902           verstring=
10903           output_objdir=.
10904           libname=conftest
10905           lt_save_allow_undefined_flag=$allow_undefined_flag
10906           allow_undefined_flag=
10907           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10908   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10909   ac_status=$?
10910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10911   test $ac_status = 0; }
10912           then
10913             lt_cv_archive_cmds_need_lc=no
10914           else
10915             lt_cv_archive_cmds_need_lc=yes
10916           fi
10917           allow_undefined_flag=$lt_save_allow_undefined_flag
10918         else
10919           cat conftest.err 1>&5
10920         fi
10921         $RM conftest*
10922
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10925 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10926       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10927       ;;
10928     esac
10929   fi
10930   ;;
10931 esac
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11085 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11086
11087 if test yes = "$GCC"; then
11088   case $host_os in
11089     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11090     *) lt_awk_arg='/^libraries:/' ;;
11091   esac
11092   case $host_os in
11093     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11094     *) lt_sed_strip_eq='s|=/|/|g' ;;
11095   esac
11096   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11097   case $lt_search_path_spec in
11098   *\;*)
11099     # if the path contains ";" then we assume it to be the separator
11100     # otherwise default to the standard path separator (i.e. ":") - it is
11101     # assumed that no part of a normal pathname contains ";" but that should
11102     # okay in the real world where ";" in dirpaths is itself problematic.
11103     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11104     ;;
11105   *)
11106     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11107     ;;
11108   esac
11109   # Ok, now we have the path, separated by spaces, we can step through it
11110   # and add multilib dir if necessary...
11111   lt_tmp_lt_search_path_spec=
11112   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11113   # ...but if some path component already ends with the multilib dir we assume
11114   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11115   case "$lt_multi_os_dir; $lt_search_path_spec " in
11116   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11117     lt_multi_os_dir=
11118     ;;
11119   esac
11120   for lt_sys_path in $lt_search_path_spec; do
11121     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11122       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11123     elif test -n "$lt_multi_os_dir"; then
11124       test -d "$lt_sys_path" && \
11125         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11126     fi
11127   done
11128   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11129 BEGIN {RS = " "; FS = "/|\n";} {
11130   lt_foo = "";
11131   lt_count = 0;
11132   for (lt_i = NF; lt_i > 0; lt_i--) {
11133     if ($lt_i != "" && $lt_i != ".") {
11134       if ($lt_i == "..") {
11135         lt_count++;
11136       } else {
11137         if (lt_count == 0) {
11138           lt_foo = "/" $lt_i lt_foo;
11139         } else {
11140           lt_count--;
11141         }
11142       }
11143     }
11144   }
11145   if (lt_foo != "") { lt_freq[lt_foo]++; }
11146   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11147 }'`
11148   # AWK program above erroneously prepends '/' to C:/dos/paths
11149   # for these hosts.
11150   case $host_os in
11151     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11152       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11153   esac
11154   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11155 else
11156   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11157 fi
11158 library_names_spec=
11159 libname_spec='lib$name'
11160 soname_spec=
11161 shrext_cmds=.so
11162 postinstall_cmds=
11163 postuninstall_cmds=
11164 finish_cmds=
11165 finish_eval=
11166 shlibpath_var=
11167 shlibpath_overrides_runpath=unknown
11168 version_type=none
11169 dynamic_linker="$host_os ld.so"
11170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11171 need_lib_prefix=unknown
11172 hardcode_into_libs=no
11173
11174 # when you set need_version to no, make sure it does not cause -set_version
11175 # flags to be left without arguments
11176 need_version=unknown
11177
11178
11179
11180 case $host_os in
11181 aix3*)
11182   version_type=linux # correct to gnu/linux during the next big refactor
11183   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11184   shlibpath_var=LIBPATH
11185
11186   # AIX 3 has no versioning support, so we append a major version to the name.
11187   soname_spec='$libname$release$shared_ext$major'
11188   ;;
11189
11190 aix[4-9]*)
11191   version_type=linux # correct to gnu/linux during the next big refactor
11192   need_lib_prefix=no
11193   need_version=no
11194   hardcode_into_libs=yes
11195   if test ia64 = "$host_cpu"; then
11196     # AIX 5 supports IA64
11197     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11198     shlibpath_var=LD_LIBRARY_PATH
11199   else
11200     # With GCC up to 2.95.x, collect2 would create an import file
11201     # for dependence libraries.  The import file would start with
11202     # the line '#! .'.  This would cause the generated library to
11203     # depend on '.', always an invalid library.  This was fixed in
11204     # development snapshots of GCC prior to 3.0.
11205     case $host_os in
11206       aix4 | aix4.[01] | aix4.[01].*)
11207       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11208            echo ' yes '
11209            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11210         :
11211       else
11212         can_build_shared=no
11213       fi
11214       ;;
11215     esac
11216     # Using Import Files as archive members, it is possible to support
11217     # filename-based versioning of shared library archives on AIX. While
11218     # this would work for both with and without runtime linking, it will
11219     # prevent static linking of such archives. So we do filename-based
11220     # shared library versioning with .so extension only, which is used
11221     # when both runtime linking and shared linking is enabled.
11222     # Unfortunately, runtime linking may impact performance, so we do
11223     # not want this to be the default eventually. Also, we use the
11224     # versioned .so libs for executables only if there is the -brtl
11225     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11226     # To allow for filename-based versioning support, we need to create
11227     # libNAME.so.V as an archive file, containing:
11228     # *) an Import File, referring to the versioned filename of the
11229     #    archive as well as the shared archive member, telling the
11230     #    bitwidth (32 or 64) of that shared object, and providing the
11231     #    list of exported symbols of that shared object, eventually
11232     #    decorated with the 'weak' keyword
11233     # *) the shared object with the F_LOADONLY flag set, to really avoid
11234     #    it being seen by the linker.
11235     # At run time we better use the real file rather than another symlink,
11236     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11237
11238     case $with_aix_soname,$aix_use_runtimelinking in
11239     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11240     # soname into executable. Probably we can add versioning support to
11241     # collect2, so additional links can be useful in future.
11242     aix,yes) # traditional libtool
11243       dynamic_linker='AIX unversionable lib.so'
11244       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11245       # instead of lib<name>.a to let people know that these are not
11246       # typical AIX shared libraries.
11247       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11248       ;;
11249     aix,no) # traditional AIX only
11250       dynamic_linker='AIX lib.a(lib.so.V)'
11251       # We preserve .a as extension for shared libraries through AIX4.2
11252       # and later when we are not doing run time linking.
11253       library_names_spec='$libname$release.a $libname.a'
11254       soname_spec='$libname$release$shared_ext$major'
11255       ;;
11256     svr4,*) # full svr4 only
11257       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11258       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11259       # We do not specify a path in Import Files, so LIBPATH fires.
11260       shlibpath_overrides_runpath=yes
11261       ;;
11262     *,yes) # both, prefer svr4
11263       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11264       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11265       # unpreferred sharedlib libNAME.a needs extra handling
11266       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11267       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11268       # We do not specify a path in Import Files, so LIBPATH fires.
11269       shlibpath_overrides_runpath=yes
11270       ;;
11271     *,no) # both, prefer aix
11272       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11273       library_names_spec='$libname$release.a $libname.a'
11274       soname_spec='$libname$release$shared_ext$major'
11275       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11276       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11277       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11278       ;;
11279     esac
11280     shlibpath_var=LIBPATH
11281   fi
11282   ;;
11283
11284 amigaos*)
11285   case $host_cpu in
11286   powerpc)
11287     # Since July 2007 AmigaOS4 officially supports .so libraries.
11288     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11289     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11290     ;;
11291   m68k)
11292     library_names_spec='$libname.ixlibrary $libname.a'
11293     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11294     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11295     ;;
11296   esac
11297   ;;
11298
11299 beos*)
11300   library_names_spec='$libname$shared_ext'
11301   dynamic_linker="$host_os ld.so"
11302   shlibpath_var=LIBRARY_PATH
11303   ;;
11304
11305 bsdi[45]*)
11306   version_type=linux # correct to gnu/linux during the next big refactor
11307   need_version=no
11308   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11309   soname_spec='$libname$release$shared_ext$major'
11310   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11311   shlibpath_var=LD_LIBRARY_PATH
11312   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11313   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11314   # the default ld.so.conf also contains /usr/contrib/lib and
11315   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11316   # libtool to hard-code these into programs
11317   ;;
11318
11319 cygwin* | mingw* | pw32* | cegcc*)
11320   version_type=windows
11321   shrext_cmds=.dll
11322   need_version=no
11323   need_lib_prefix=no
11324
11325   case $GCC,$cc_basename in
11326   yes,*)
11327     # gcc
11328     library_names_spec='$libname.dll.a'
11329     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11330     postinstall_cmds='base_file=`basename \$file`~
11331       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11332       dldir=$destdir/`dirname \$dlpath`~
11333       test -d \$dldir || mkdir -p \$dldir~
11334       $install_prog $dir/$dlname \$dldir/$dlname~
11335       chmod a+x \$dldir/$dlname~
11336       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11337         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11338       fi'
11339     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11340       dlpath=$dir/\$dldll~
11341        $RM \$dlpath'
11342     shlibpath_overrides_runpath=yes
11343
11344     case $host_os in
11345     cygwin*)
11346       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11347       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11348
11349       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11350       ;;
11351     mingw* | cegcc*)
11352       # MinGW DLLs use traditional 'lib' prefix
11353       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11354       ;;
11355     pw32*)
11356       # pw32 DLLs use 'pw' prefix rather than 'lib'
11357       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11358       ;;
11359     esac
11360     dynamic_linker='Win32 ld.exe'
11361     ;;
11362
11363   *,cl*)
11364     # Native MSVC
11365     libname_spec='$name'
11366     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11367     library_names_spec='$libname.dll.lib'
11368
11369     case $build_os in
11370     mingw*)
11371       sys_lib_search_path_spec=
11372       lt_save_ifs=$IFS
11373       IFS=';'
11374       for lt_path in $LIB
11375       do
11376         IFS=$lt_save_ifs
11377         # Let DOS variable expansion print the short 8.3 style file name.
11378         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11379         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11380       done
11381       IFS=$lt_save_ifs
11382       # Convert to MSYS style.
11383       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11384       ;;
11385     cygwin*)
11386       # Convert to unix form, then to dos form, then back to unix form
11387       # but this time dos style (no spaces!) so that the unix form looks
11388       # like /cygdrive/c/PROGRA~1:/cygdr...
11389       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11390       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11391       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11392       ;;
11393     *)
11394       sys_lib_search_path_spec=$LIB
11395       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11396         # It is most probably a Windows format PATH.
11397         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11398       else
11399         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11400       fi
11401       # FIXME: find the short name or the path components, as spaces are
11402       # common. (e.g. "Program Files" -> "PROGRA~1")
11403       ;;
11404     esac
11405
11406     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11407     postinstall_cmds='base_file=`basename \$file`~
11408       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11409       dldir=$destdir/`dirname \$dlpath`~
11410       test -d \$dldir || mkdir -p \$dldir~
11411       $install_prog $dir/$dlname \$dldir/$dlname'
11412     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11413       dlpath=$dir/\$dldll~
11414        $RM \$dlpath'
11415     shlibpath_overrides_runpath=yes
11416     dynamic_linker='Win32 link.exe'
11417     ;;
11418
11419   *)
11420     # Assume MSVC wrapper
11421     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11422     dynamic_linker='Win32 ld.exe'
11423     ;;
11424   esac
11425   # FIXME: first we should search . and the directory the executable is in
11426   shlibpath_var=PATH
11427   ;;
11428
11429 darwin* | rhapsody*)
11430   dynamic_linker="$host_os dyld"
11431   version_type=darwin
11432   need_lib_prefix=no
11433   need_version=no
11434   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11435   soname_spec='$libname$release$major$shared_ext'
11436   shlibpath_overrides_runpath=yes
11437   shlibpath_var=DYLD_LIBRARY_PATH
11438   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11439
11440   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11441   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11442   ;;
11443
11444 dgux*)
11445   version_type=linux # correct to gnu/linux during the next big refactor
11446   need_lib_prefix=no
11447   need_version=no
11448   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11449   soname_spec='$libname$release$shared_ext$major'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   ;;
11452
11453 freebsd* | dragonfly*)
11454   # DragonFly does not have aout.  When/if they implement a new
11455   # versioning mechanism, adjust this.
11456   if test -x /usr/bin/objformat; then
11457     objformat=`/usr/bin/objformat`
11458   else
11459     case $host_os in
11460     freebsd[23].*) objformat=aout ;;
11461     *) objformat=elf ;;
11462     esac
11463   fi
11464   version_type=freebsd-$objformat
11465   case $version_type in
11466     freebsd-elf*)
11467       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11468       soname_spec='$libname$release$shared_ext$major'
11469       need_version=no
11470       need_lib_prefix=no
11471       ;;
11472     freebsd-*)
11473       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11474       need_version=yes
11475       ;;
11476   esac
11477   shlibpath_var=LD_LIBRARY_PATH
11478   case $host_os in
11479   freebsd2.*)
11480     shlibpath_overrides_runpath=yes
11481     ;;
11482   freebsd3.[01]* | freebsdelf3.[01]*)
11483     shlibpath_overrides_runpath=yes
11484     hardcode_into_libs=yes
11485     ;;
11486   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11487   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11488     shlibpath_overrides_runpath=no
11489     hardcode_into_libs=yes
11490     ;;
11491   *) # from 4.6 on, and DragonFly
11492     shlibpath_overrides_runpath=yes
11493     hardcode_into_libs=yes
11494     ;;
11495   esac
11496   ;;
11497
11498 haiku*)
11499   version_type=linux # correct to gnu/linux during the next big refactor
11500   need_lib_prefix=no
11501   need_version=no
11502   dynamic_linker="$host_os runtime_loader"
11503   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11504   soname_spec='$libname$release$shared_ext$major'
11505   shlibpath_var=LIBRARY_PATH
11506   shlibpath_overrides_runpath=no
11507   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11508   hardcode_into_libs=yes
11509   ;;
11510
11511 hpux9* | hpux10* | hpux11*)
11512   # Give a soname corresponding to the major version so that dld.sl refuses to
11513   # link against other versions.
11514   version_type=sunos
11515   need_lib_prefix=no
11516   need_version=no
11517   case $host_cpu in
11518   ia64*)
11519     shrext_cmds='.so'
11520     hardcode_into_libs=yes
11521     dynamic_linker="$host_os dld.so"
11522     shlibpath_var=LD_LIBRARY_PATH
11523     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11524     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525     soname_spec='$libname$release$shared_ext$major'
11526     if test 32 = "$HPUX_IA64_MODE"; then
11527       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11528       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11529     else
11530       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11531       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11532     fi
11533     ;;
11534   hppa*64*)
11535     shrext_cmds='.sl'
11536     hardcode_into_libs=yes
11537     dynamic_linker="$host_os dld.sl"
11538     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11539     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11540     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11541     soname_spec='$libname$release$shared_ext$major'
11542     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11543     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11544     ;;
11545   *)
11546     shrext_cmds='.sl'
11547     dynamic_linker="$host_os dld.sl"
11548     shlibpath_var=SHLIB_PATH
11549     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11550     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11551     soname_spec='$libname$release$shared_ext$major'
11552     ;;
11553   esac
11554   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11555   postinstall_cmds='chmod 555 $lib'
11556   # or fails outright, so override atomically:
11557   install_override_mode=555
11558   ;;
11559
11560 interix[3-9]*)
11561   version_type=linux # correct to gnu/linux during the next big refactor
11562   need_lib_prefix=no
11563   need_version=no
11564   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11565   soname_spec='$libname$release$shared_ext$major'
11566   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11567   shlibpath_var=LD_LIBRARY_PATH
11568   shlibpath_overrides_runpath=no
11569   hardcode_into_libs=yes
11570   ;;
11571
11572 irix5* | irix6* | nonstopux*)
11573   case $host_os in
11574     nonstopux*) version_type=nonstopux ;;
11575     *)
11576         if test yes = "$lt_cv_prog_gnu_ld"; then
11577                 version_type=linux # correct to gnu/linux during the next big refactor
11578         else
11579                 version_type=irix
11580         fi ;;
11581   esac
11582   need_lib_prefix=no
11583   need_version=no
11584   soname_spec='$libname$release$shared_ext$major'
11585   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11586   case $host_os in
11587   irix5* | nonstopux*)
11588     libsuff= shlibsuff=
11589     ;;
11590   *)
11591     case $LD in # libtool.m4 will add one of these switches to LD
11592     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11593       libsuff= shlibsuff= libmagic=32-bit;;
11594     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11595       libsuff=32 shlibsuff=N32 libmagic=N32;;
11596     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11597       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11598     *) libsuff= shlibsuff= libmagic=never-match;;
11599     esac
11600     ;;
11601   esac
11602   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11603   shlibpath_overrides_runpath=no
11604   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11605   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11606   hardcode_into_libs=yes
11607   ;;
11608
11609 # No shared lib support for Linux oldld, aout, or coff.
11610 linux*oldld* | linux*aout* | linux*coff*)
11611   dynamic_linker=no
11612   ;;
11613
11614 linux*android*)
11615   version_type=none # Android doesn't support versioned libraries.
11616   need_lib_prefix=no
11617   need_version=no
11618   library_names_spec='$libname$release$shared_ext'
11619   soname_spec='$libname$release$shared_ext'
11620   finish_cmds=
11621   shlibpath_var=LD_LIBRARY_PATH
11622   shlibpath_overrides_runpath=yes
11623
11624   # This implies no fast_install, which is unacceptable.
11625   # Some rework will be needed to allow for fast_install
11626   # before this can be enabled.
11627   hardcode_into_libs=yes
11628
11629   dynamic_linker='Android linker'
11630   # Don't embed -rpath directories since the linker doesn't support them.
11631   hardcode_libdir_flag_spec='-L$libdir'
11632   ;;
11633
11634 # This must be glibc/ELF.
11635 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11636   version_type=linux # correct to gnu/linux during the next big refactor
11637   need_lib_prefix=no
11638   need_version=no
11639   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11640   soname_spec='$libname$release$shared_ext$major'
11641   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11642   shlibpath_var=LD_LIBRARY_PATH
11643   shlibpath_overrides_runpath=no
11644
11645   # Some binutils ld are patched to set DT_RUNPATH
11646   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11647   $as_echo_n "(cached) " >&6
11648 else
11649   lt_cv_shlibpath_overrides_runpath=no
11650     save_LDFLAGS=$LDFLAGS
11651     save_libdir=$libdir
11652     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11653          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11654     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h.  */
11656
11657 int
11658 main ()
11659 {
11660
11661   ;
11662   return 0;
11663 }
11664 _ACEOF
11665 if ac_fn_c_try_link "$LINENO"; then :
11666   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11667   lt_cv_shlibpath_overrides_runpath=yes
11668 fi
11669 fi
11670 rm -f core conftest.err conftest.$ac_objext \
11671     conftest$ac_exeext conftest.$ac_ext
11672     LDFLAGS=$save_LDFLAGS
11673     libdir=$save_libdir
11674
11675 fi
11676
11677   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11678
11679   # This implies no fast_install, which is unacceptable.
11680   # Some rework will be needed to allow for fast_install
11681   # before this can be enabled.
11682   hardcode_into_libs=yes
11683
11684   # Ideally, we could use ldconfig to report *all* directores which are
11685   # searched for libraries, however this is still not possible.  Aside from not
11686   # being certain /sbin/ldconfig is available, command
11687   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11688   # even though it is searched at run-time.  Try to do the best guess by
11689   # appending ld.so.conf contents (and includes) to the search path.
11690   if test -f /etc/ld.so.conf; then
11691     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' ' '`
11692     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11693   fi
11694
11695   # We used to test for /lib/ld.so.1 and disable shared libraries on
11696   # powerpc, because MkLinux only supported shared libraries with the
11697   # GNU dynamic linker.  Since this was broken with cross compilers,
11698   # most powerpc-linux boxes support dynamic linking these days and
11699   # people can always --disable-shared, the test was removed, and we
11700   # assume the GNU/Linux dynamic linker is in use.
11701   dynamic_linker='GNU/Linux ld.so'
11702   ;;
11703
11704 netbsd*)
11705   version_type=sunos
11706   need_lib_prefix=no
11707   need_version=no
11708   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11709     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11710     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11711     dynamic_linker='NetBSD (a.out) ld.so'
11712   else
11713     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11714     soname_spec='$libname$release$shared_ext$major'
11715     dynamic_linker='NetBSD ld.elf_so'
11716   fi
11717   shlibpath_var=LD_LIBRARY_PATH
11718   shlibpath_overrides_runpath=yes
11719   hardcode_into_libs=yes
11720   ;;
11721
11722 newsos6)
11723   version_type=linux # correct to gnu/linux during the next big refactor
11724   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11725   shlibpath_var=LD_LIBRARY_PATH
11726   shlibpath_overrides_runpath=yes
11727   ;;
11728
11729 *nto* | *qnx*)
11730   version_type=qnx
11731   need_lib_prefix=no
11732   need_version=no
11733   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11734   soname_spec='$libname$release$shared_ext$major'
11735   shlibpath_var=LD_LIBRARY_PATH
11736   shlibpath_overrides_runpath=no
11737   hardcode_into_libs=yes
11738   dynamic_linker='ldqnx.so'
11739   ;;
11740
11741 openbsd* | bitrig*)
11742   version_type=sunos
11743   sys_lib_dlsearch_path_spec=/usr/lib
11744   need_lib_prefix=no
11745   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11746     need_version=no
11747   else
11748     need_version=yes
11749   fi
11750   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11751   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11752   shlibpath_var=LD_LIBRARY_PATH
11753   shlibpath_overrides_runpath=yes
11754   ;;
11755
11756 os2*)
11757   libname_spec='$name'
11758   version_type=windows
11759   shrext_cmds=.dll
11760   need_version=no
11761   need_lib_prefix=no
11762   # OS/2 can only load a DLL with a base name of 8 characters or less.
11763   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11764     v=$($ECHO $release$versuffix | tr -d .-);
11765     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11766     $ECHO $n$v`$shared_ext'
11767   library_names_spec='${libname}_dll.$libext'
11768   dynamic_linker='OS/2 ld.exe'
11769   shlibpath_var=BEGINLIBPATH
11770   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11771   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11772   postinstall_cmds='base_file=`basename \$file`~
11773     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11774     dldir=$destdir/`dirname \$dlpath`~
11775     test -d \$dldir || mkdir -p \$dldir~
11776     $install_prog $dir/$dlname \$dldir/$dlname~
11777     chmod a+x \$dldir/$dlname~
11778     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11779       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11780     fi'
11781   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11782     dlpath=$dir/\$dldll~
11783     $RM \$dlpath'
11784   ;;
11785
11786 osf3* | osf4* | osf5*)
11787   version_type=osf
11788   need_lib_prefix=no
11789   need_version=no
11790   soname_spec='$libname$release$shared_ext$major'
11791   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11792   shlibpath_var=LD_LIBRARY_PATH
11793   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11794   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11795   ;;
11796
11797 rdos*)
11798   dynamic_linker=no
11799   ;;
11800
11801 solaris*)
11802   version_type=linux # correct to gnu/linux during the next big refactor
11803   need_lib_prefix=no
11804   need_version=no
11805   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11806   soname_spec='$libname$release$shared_ext$major'
11807   shlibpath_var=LD_LIBRARY_PATH
11808   shlibpath_overrides_runpath=yes
11809   hardcode_into_libs=yes
11810   # ldd complains unless libraries are executable
11811   postinstall_cmds='chmod +x $lib'
11812   ;;
11813
11814 sunos4*)
11815   version_type=sunos
11816   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11817   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   shlibpath_overrides_runpath=yes
11820   if test yes = "$with_gnu_ld"; then
11821     need_lib_prefix=no
11822   fi
11823   need_version=yes
11824   ;;
11825
11826 sysv4 | sysv4.3*)
11827   version_type=linux # correct to gnu/linux during the next big refactor
11828   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11829   soname_spec='$libname$release$shared_ext$major'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   case $host_vendor in
11832     sni)
11833       shlibpath_overrides_runpath=no
11834       need_lib_prefix=no
11835       runpath_var=LD_RUN_PATH
11836       ;;
11837     siemens)
11838       need_lib_prefix=no
11839       ;;
11840     motorola)
11841       need_lib_prefix=no
11842       need_version=no
11843       shlibpath_overrides_runpath=no
11844       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11845       ;;
11846   esac
11847   ;;
11848
11849 sysv4*MP*)
11850   if test -d /usr/nec; then
11851     version_type=linux # correct to gnu/linux during the next big refactor
11852     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11853     soname_spec='$libname$shared_ext.$major'
11854     shlibpath_var=LD_LIBRARY_PATH
11855   fi
11856   ;;
11857
11858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11859   version_type=sco
11860   need_lib_prefix=no
11861   need_version=no
11862   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11863   soname_spec='$libname$release$shared_ext$major'
11864   shlibpath_var=LD_LIBRARY_PATH
11865   shlibpath_overrides_runpath=yes
11866   hardcode_into_libs=yes
11867   if test yes = "$with_gnu_ld"; then
11868     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11869   else
11870     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11871     case $host_os in
11872       sco3.2v5*)
11873         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11874         ;;
11875     esac
11876   fi
11877   sys_lib_dlsearch_path_spec='/usr/lib'
11878   ;;
11879
11880 tpf*)
11881   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11882   version_type=linux # correct to gnu/linux during the next big refactor
11883   need_lib_prefix=no
11884   need_version=no
11885   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886   shlibpath_var=LD_LIBRARY_PATH
11887   shlibpath_overrides_runpath=no
11888   hardcode_into_libs=yes
11889   ;;
11890
11891 uts4*)
11892   version_type=linux # correct to gnu/linux during the next big refactor
11893   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11894   soname_spec='$libname$release$shared_ext$major'
11895   shlibpath_var=LD_LIBRARY_PATH
11896   ;;
11897
11898 *)
11899   dynamic_linker=no
11900   ;;
11901 esac
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11903 $as_echo "$dynamic_linker" >&6; }
11904 test no = "$dynamic_linker" && can_build_shared=no
11905
11906 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11907 if test yes = "$GCC"; then
11908   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11909 fi
11910
11911 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11912   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11913 fi
11914
11915 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11916   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11917 fi
11918
11919 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11920 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11921
11922 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11923 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11924
11925 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11926 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12025 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12026 hardcode_action=
12027 if test -n "$hardcode_libdir_flag_spec" ||
12028    test -n "$runpath_var" ||
12029    test yes = "$hardcode_automatic"; then
12030
12031   # We can hardcode non-existent directories.
12032   if test no != "$hardcode_direct" &&
12033      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12034      # have to relink, otherwise we might link with an installed library
12035      # when we should be linking with a yet-to-be-installed one
12036      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12037      test no != "$hardcode_minus_L"; then
12038     # Linking always hardcodes the temporary library directory.
12039     hardcode_action=relink
12040   else
12041     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12042     hardcode_action=immediate
12043   fi
12044 else
12045   # We cannot hardcode anything, or else we can only hardcode existing
12046   # directories.
12047   hardcode_action=unsupported
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12050 $as_echo "$hardcode_action" >&6; }
12051
12052 if test relink = "$hardcode_action" ||
12053    test yes = "$inherit_rpath"; then
12054   # Fast installation is not supported
12055   enable_fast_install=no
12056 elif test yes = "$shlibpath_overrides_runpath" ||
12057      test no = "$enable_shared"; then
12058   # Fast installation is not necessary
12059   enable_fast_install=needless
12060 fi
12061
12062
12063
12064
12065
12066
12067   if test yes != "$enable_dlopen"; then
12068   enable_dlopen=unknown
12069   enable_dlopen_self=unknown
12070   enable_dlopen_self_static=unknown
12071 else
12072   lt_cv_dlopen=no
12073   lt_cv_dlopen_libs=
12074
12075   case $host_os in
12076   beos*)
12077     lt_cv_dlopen=load_add_on
12078     lt_cv_dlopen_libs=
12079     lt_cv_dlopen_self=yes
12080     ;;
12081
12082   mingw* | pw32* | cegcc*)
12083     lt_cv_dlopen=LoadLibrary
12084     lt_cv_dlopen_libs=
12085     ;;
12086
12087   cygwin*)
12088     lt_cv_dlopen=dlopen
12089     lt_cv_dlopen_libs=
12090     ;;
12091
12092   darwin*)
12093     # if libdl is installed we need to link against it
12094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12095 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12096 if ${ac_cv_lib_dl_dlopen+:} false; then :
12097   $as_echo_n "(cached) " >&6
12098 else
12099   ac_check_lib_save_LIBS=$LIBS
12100 LIBS="-ldl  $LIBS"
12101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12102 /* end confdefs.h.  */
12103
12104 /* Override any GCC internal prototype to avoid an error.
12105    Use char because int might match the return type of a GCC
12106    builtin and then its argument prototype would still apply.  */
12107 #ifdef __cplusplus
12108 extern "C"
12109 #endif
12110 char dlopen ();
12111 int
12112 main ()
12113 {
12114 return dlopen ();
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 if ac_fn_c_try_link "$LINENO"; then :
12120   ac_cv_lib_dl_dlopen=yes
12121 else
12122   ac_cv_lib_dl_dlopen=no
12123 fi
12124 rm -f core conftest.err conftest.$ac_objext \
12125     conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12129 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12130 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12131   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12132 else
12133
12134     lt_cv_dlopen=dyld
12135     lt_cv_dlopen_libs=
12136     lt_cv_dlopen_self=yes
12137
12138 fi
12139
12140     ;;
12141
12142   tpf*)
12143     # Don't try to run any link tests for TPF.  We know it's impossible
12144     # because TPF is a cross-compiler, and we know how we open DSOs.
12145     lt_cv_dlopen=dlopen
12146     lt_cv_dlopen_libs=
12147     lt_cv_dlopen_self=no
12148     ;;
12149
12150   *)
12151     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12152 if test "x$ac_cv_func_shl_load" = xyes; then :
12153   lt_cv_dlopen=shl_load
12154 else
12155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12156 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12157 if ${ac_cv_lib_dld_shl_load+:} false; then :
12158   $as_echo_n "(cached) " >&6
12159 else
12160   ac_check_lib_save_LIBS=$LIBS
12161 LIBS="-ldld  $LIBS"
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h.  */
12164
12165 /* Override any GCC internal prototype to avoid an error.
12166    Use char because int might match the return type of a GCC
12167    builtin and then its argument prototype would still apply.  */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char shl_load ();
12172 int
12173 main ()
12174 {
12175 return shl_load ();
12176   ;
12177   return 0;
12178 }
12179 _ACEOF
12180 if ac_fn_c_try_link "$LINENO"; then :
12181   ac_cv_lib_dld_shl_load=yes
12182 else
12183   ac_cv_lib_dld_shl_load=no
12184 fi
12185 rm -f core conftest.err conftest.$ac_objext \
12186     conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12188 fi
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12190 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12191 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12192   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12193 else
12194   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12195 if test "x$ac_cv_func_dlopen" = xyes; then :
12196   lt_cv_dlopen=dlopen
12197 else
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12199 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12200 if ${ac_cv_lib_dl_dlopen+:} false; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203   ac_check_lib_save_LIBS=$LIBS
12204 LIBS="-ldl  $LIBS"
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h.  */
12207
12208 /* Override any GCC internal prototype to avoid an error.
12209    Use char because int might match the return type of a GCC
12210    builtin and then its argument prototype would still apply.  */
12211 #ifdef __cplusplus
12212 extern "C"
12213 #endif
12214 char dlopen ();
12215 int
12216 main ()
12217 {
12218 return dlopen ();
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223 if ac_fn_c_try_link "$LINENO"; then :
12224   ac_cv_lib_dl_dlopen=yes
12225 else
12226   ac_cv_lib_dl_dlopen=no
12227 fi
12228 rm -f core conftest.err conftest.$ac_objext \
12229     conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12231 fi
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12233 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12234 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12235   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12236 else
12237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12238 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12239 if ${ac_cv_lib_svld_dlopen+:} false; then :
12240   $as_echo_n "(cached) " >&6
12241 else
12242   ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-lsvld  $LIBS"
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h.  */
12246
12247 /* Override any GCC internal prototype to avoid an error.
12248    Use char because int might match the return type of a GCC
12249    builtin and then its argument prototype would still apply.  */
12250 #ifdef __cplusplus
12251 extern "C"
12252 #endif
12253 char dlopen ();
12254 int
12255 main ()
12256 {
12257 return dlopen ();
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 if ac_fn_c_try_link "$LINENO"; then :
12263   ac_cv_lib_svld_dlopen=yes
12264 else
12265   ac_cv_lib_svld_dlopen=no
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext \
12268     conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12272 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12273 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12274   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12275 else
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12277 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12278 if ${ac_cv_lib_dld_dld_link+:} false; then :
12279   $as_echo_n "(cached) " >&6
12280 else
12281   ac_check_lib_save_LIBS=$LIBS
12282 LIBS="-ldld  $LIBS"
12283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12284 /* end confdefs.h.  */
12285
12286 /* Override any GCC internal prototype to avoid an error.
12287    Use char because int might match the return type of a GCC
12288    builtin and then its argument prototype would still apply.  */
12289 #ifdef __cplusplus
12290 extern "C"
12291 #endif
12292 char dld_link ();
12293 int
12294 main ()
12295 {
12296 return dld_link ();
12297   ;
12298   return 0;
12299 }
12300 _ACEOF
12301 if ac_fn_c_try_link "$LINENO"; then :
12302   ac_cv_lib_dld_dld_link=yes
12303 else
12304   ac_cv_lib_dld_dld_link=no
12305 fi
12306 rm -f core conftest.err conftest.$ac_objext \
12307     conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12309 fi
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12311 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12312 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12313   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12314 fi
12315
12316
12317 fi
12318
12319
12320 fi
12321
12322
12323 fi
12324
12325
12326 fi
12327
12328
12329 fi
12330
12331     ;;
12332   esac
12333
12334   if test no = "$lt_cv_dlopen"; then
12335     enable_dlopen=no
12336   else
12337     enable_dlopen=yes
12338   fi
12339
12340   case $lt_cv_dlopen in
12341   dlopen)
12342     save_CPPFLAGS=$CPPFLAGS
12343     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12344
12345     save_LDFLAGS=$LDFLAGS
12346     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12347
12348     save_LIBS=$LIBS
12349     LIBS="$lt_cv_dlopen_libs $LIBS"
12350
12351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12352 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12353 if ${lt_cv_dlopen_self+:} false; then :
12354   $as_echo_n "(cached) " >&6
12355 else
12356           if test yes = "$cross_compiling"; then :
12357   lt_cv_dlopen_self=cross
12358 else
12359   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12360   lt_status=$lt_dlunknown
12361   cat > conftest.$ac_ext <<_LT_EOF
12362 #line $LINENO "configure"
12363 #include "confdefs.h"
12364
12365 #if HAVE_DLFCN_H
12366 #include <dlfcn.h>
12367 #endif
12368
12369 #include <stdio.h>
12370
12371 #ifdef RTLD_GLOBAL
12372 #  define LT_DLGLOBAL           RTLD_GLOBAL
12373 #else
12374 #  ifdef DL_GLOBAL
12375 #    define LT_DLGLOBAL         DL_GLOBAL
12376 #  else
12377 #    define LT_DLGLOBAL         0
12378 #  endif
12379 #endif
12380
12381 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12382    find out it does not work in some platform. */
12383 #ifndef LT_DLLAZY_OR_NOW
12384 #  ifdef RTLD_LAZY
12385 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12386 #  else
12387 #    ifdef DL_LAZY
12388 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12389 #    else
12390 #      ifdef RTLD_NOW
12391 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12392 #      else
12393 #        ifdef DL_NOW
12394 #          define LT_DLLAZY_OR_NOW      DL_NOW
12395 #        else
12396 #          define LT_DLLAZY_OR_NOW      0
12397 #        endif
12398 #      endif
12399 #    endif
12400 #  endif
12401 #endif
12402
12403 /* When -fvisibility=hidden is used, assume the code has been annotated
12404    correspondingly for the symbols needed.  */
12405 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12406 int fnord () __attribute__((visibility("default")));
12407 #endif
12408
12409 int fnord () { return 42; }
12410 int main ()
12411 {
12412   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12413   int status = $lt_dlunknown;
12414
12415   if (self)
12416     {
12417       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12418       else
12419         {
12420           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12421           else puts (dlerror ());
12422         }
12423       /* dlclose (self); */
12424     }
12425   else
12426     puts (dlerror ());
12427
12428   return status;
12429 }
12430 _LT_EOF
12431   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12432   (eval $ac_link) 2>&5
12433   ac_status=$?
12434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12435   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12436     (./conftest; exit; ) >&5 2>/dev/null
12437     lt_status=$?
12438     case x$lt_status in
12439       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12440       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12441       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12442     esac
12443   else :
12444     # compilation failed
12445     lt_cv_dlopen_self=no
12446   fi
12447 fi
12448 rm -fr conftest*
12449
12450
12451 fi
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12453 $as_echo "$lt_cv_dlopen_self" >&6; }
12454
12455     if test yes = "$lt_cv_dlopen_self"; then
12456       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12457       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12458 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12459 if ${lt_cv_dlopen_self_static+:} false; then :
12460   $as_echo_n "(cached) " >&6
12461 else
12462           if test yes = "$cross_compiling"; then :
12463   lt_cv_dlopen_self_static=cross
12464 else
12465   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12466   lt_status=$lt_dlunknown
12467   cat > conftest.$ac_ext <<_LT_EOF
12468 #line $LINENO "configure"
12469 #include "confdefs.h"
12470
12471 #if HAVE_DLFCN_H
12472 #include <dlfcn.h>
12473 #endif
12474
12475 #include <stdio.h>
12476
12477 #ifdef RTLD_GLOBAL
12478 #  define LT_DLGLOBAL           RTLD_GLOBAL
12479 #else
12480 #  ifdef DL_GLOBAL
12481 #    define LT_DLGLOBAL         DL_GLOBAL
12482 #  else
12483 #    define LT_DLGLOBAL         0
12484 #  endif
12485 #endif
12486
12487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12488    find out it does not work in some platform. */
12489 #ifndef LT_DLLAZY_OR_NOW
12490 #  ifdef RTLD_LAZY
12491 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12492 #  else
12493 #    ifdef DL_LAZY
12494 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12495 #    else
12496 #      ifdef RTLD_NOW
12497 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12498 #      else
12499 #        ifdef DL_NOW
12500 #          define LT_DLLAZY_OR_NOW      DL_NOW
12501 #        else
12502 #          define LT_DLLAZY_OR_NOW      0
12503 #        endif
12504 #      endif
12505 #    endif
12506 #  endif
12507 #endif
12508
12509 /* When -fvisibility=hidden is used, assume the code has been annotated
12510    correspondingly for the symbols needed.  */
12511 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12512 int fnord () __attribute__((visibility("default")));
12513 #endif
12514
12515 int fnord () { return 42; }
12516 int main ()
12517 {
12518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12519   int status = $lt_dlunknown;
12520
12521   if (self)
12522     {
12523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12524       else
12525         {
12526           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12527           else puts (dlerror ());
12528         }
12529       /* dlclose (self); */
12530     }
12531   else
12532     puts (dlerror ());
12533
12534   return status;
12535 }
12536 _LT_EOF
12537   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12538   (eval $ac_link) 2>&5
12539   ac_status=$?
12540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12541   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12542     (./conftest; exit; ) >&5 2>/dev/null
12543     lt_status=$?
12544     case x$lt_status in
12545       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12546       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12547       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12548     esac
12549   else :
12550     # compilation failed
12551     lt_cv_dlopen_self_static=no
12552   fi
12553 fi
12554 rm -fr conftest*
12555
12556
12557 fi
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12559 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12560     fi
12561
12562     CPPFLAGS=$save_CPPFLAGS
12563     LDFLAGS=$save_LDFLAGS
12564     LIBS=$save_LIBS
12565     ;;
12566   esac
12567
12568   case $lt_cv_dlopen_self in
12569   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12570   *) enable_dlopen_self=unknown ;;
12571   esac
12572
12573   case $lt_cv_dlopen_self_static in
12574   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12575   *) enable_dlopen_self_static=unknown ;;
12576   esac
12577 fi
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595 striplib=
12596 old_striplib=
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12598 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12599 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12600   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12601   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12603 $as_echo "yes" >&6; }
12604 else
12605 # FIXME - insert some real tests, host_os isn't really good enough
12606   case $host_os in
12607   darwin*)
12608     if test -n "$STRIP"; then
12609       striplib="$STRIP -x"
12610       old_striplib="$STRIP -S"
12611       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12612 $as_echo "yes" >&6; }
12613     else
12614       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12616     fi
12617     ;;
12618   *)
12619     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12621     ;;
12622   esac
12623 fi
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636   # Report what library types will actually be built
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12638 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12640 $as_echo "$can_build_shared" >&6; }
12641
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12643 $as_echo_n "checking whether to build shared libraries... " >&6; }
12644   test no = "$can_build_shared" && enable_shared=no
12645
12646   # On AIX, shared libraries and static libraries use the same namespace, and
12647   # are all built from PIC.
12648   case $host_os in
12649   aix3*)
12650     test yes = "$enable_shared" && enable_static=no
12651     if test -n "$RANLIB"; then
12652       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12653       postinstall_cmds='$RANLIB $lib'
12654     fi
12655     ;;
12656
12657   aix[4-9]*)
12658     if test ia64 != "$host_cpu"; then
12659       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12660       yes,aix,yes) ;;                   # shared object as lib.so file only
12661       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12662       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12663       esac
12664     fi
12665     ;;
12666   esac
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12668 $as_echo "$enable_shared" >&6; }
12669
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12671 $as_echo_n "checking whether to build static libraries... " >&6; }
12672   # Make sure either enable_shared or enable_static is yes.
12673   test yes = "$enable_shared" || enable_static=yes
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12675 $as_echo "$enable_static" >&6; }
12676
12677
12678
12679
12680 fi
12681 ac_ext=c
12682 ac_cpp='$CPP $CPPFLAGS'
12683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12686
12687 CC=$lt_save_CC
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703         ac_config_commands="$ac_config_commands libtool"
12704
12705
12706
12707
12708 # Only expand once:
12709
12710
12711
12712
12713
12714  if test "$enable_samples" = "yes"; then
12715   BUILD_SAMPLES_TRUE=
12716   BUILD_SAMPLES_FALSE='#'
12717 else
12718   BUILD_SAMPLES_TRUE='#'
12719   BUILD_SAMPLES_FALSE=
12720 fi
12721
12722  if test "$enable_libevent_regress" = "yes"; then
12723   BUILD_REGRESS_TRUE=
12724   BUILD_REGRESS_FALSE='#'
12725 else
12726   BUILD_REGRESS_TRUE='#'
12727   BUILD_REGRESS_FALSE=
12728 fi
12729
12730
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12732 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12733 if ${ac_cv_search_inet_ntoa+:} false; then :
12734   $as_echo_n "(cached) " >&6
12735 else
12736   ac_func_search_save_LIBS=$LIBS
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h.  */
12739
12740 /* Override any GCC internal prototype to avoid an error.
12741    Use char because int might match the return type of a GCC
12742    builtin and then its argument prototype would still apply.  */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 char inet_ntoa ();
12747 int
12748 main ()
12749 {
12750 return inet_ntoa ();
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 for ac_lib in '' nsl; do
12756   if test -z "$ac_lib"; then
12757     ac_res="none required"
12758   else
12759     ac_res=-l$ac_lib
12760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12761   fi
12762   if ac_fn_c_try_link "$LINENO"; then :
12763   ac_cv_search_inet_ntoa=$ac_res
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext \
12766     conftest$ac_exeext
12767   if ${ac_cv_search_inet_ntoa+:} false; then :
12768   break
12769 fi
12770 done
12771 if ${ac_cv_search_inet_ntoa+:} false; then :
12772
12773 else
12774   ac_cv_search_inet_ntoa=no
12775 fi
12776 rm conftest.$ac_ext
12777 LIBS=$ac_func_search_save_LIBS
12778 fi
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12780 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12781 ac_res=$ac_cv_search_inet_ntoa
12782 if test "$ac_res" != no; then :
12783   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12784
12785 fi
12786
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12788 $as_echo_n "checking for library containing socket... " >&6; }
12789 if ${ac_cv_search_socket+:} false; then :
12790   $as_echo_n "(cached) " >&6
12791 else
12792   ac_func_search_save_LIBS=$LIBS
12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h.  */
12795
12796 /* Override any GCC internal prototype to avoid an error.
12797    Use char because int might match the return type of a GCC
12798    builtin and then its argument prototype would still apply.  */
12799 #ifdef __cplusplus
12800 extern "C"
12801 #endif
12802 char socket ();
12803 int
12804 main ()
12805 {
12806 return socket ();
12807   ;
12808   return 0;
12809 }
12810 _ACEOF
12811 for ac_lib in '' socket; do
12812   if test -z "$ac_lib"; then
12813     ac_res="none required"
12814   else
12815     ac_res=-l$ac_lib
12816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12817   fi
12818   if ac_fn_c_try_link "$LINENO"; then :
12819   ac_cv_search_socket=$ac_res
12820 fi
12821 rm -f core conftest.err conftest.$ac_objext \
12822     conftest$ac_exeext
12823   if ${ac_cv_search_socket+:} false; then :
12824   break
12825 fi
12826 done
12827 if ${ac_cv_search_socket+:} false; then :
12828
12829 else
12830   ac_cv_search_socket=no
12831 fi
12832 rm conftest.$ac_ext
12833 LIBS=$ac_func_search_save_LIBS
12834 fi
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12836 $as_echo "$ac_cv_search_socket" >&6; }
12837 ac_res=$ac_cv_search_socket
12838 if test "$ac_res" != no; then :
12839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12840
12841 fi
12842
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12844 $as_echo_n "checking for library containing inet_aton... " >&6; }
12845 if ${ac_cv_search_inet_aton+:} false; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   ac_func_search_save_LIBS=$LIBS
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h.  */
12851
12852 /* Override any GCC internal prototype to avoid an error.
12853    Use char because int might match the return type of a GCC
12854    builtin and then its argument prototype would still apply.  */
12855 #ifdef __cplusplus
12856 extern "C"
12857 #endif
12858 char inet_aton ();
12859 int
12860 main ()
12861 {
12862 return inet_aton ();
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 for ac_lib in '' resolv; do
12868   if test -z "$ac_lib"; then
12869     ac_res="none required"
12870   else
12871     ac_res=-l$ac_lib
12872     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12873   fi
12874   if ac_fn_c_try_link "$LINENO"; then :
12875   ac_cv_search_inet_aton=$ac_res
12876 fi
12877 rm -f core conftest.err conftest.$ac_objext \
12878     conftest$ac_exeext
12879   if ${ac_cv_search_inet_aton+:} false; then :
12880   break
12881 fi
12882 done
12883 if ${ac_cv_search_inet_aton+:} false; then :
12884
12885 else
12886   ac_cv_search_inet_aton=no
12887 fi
12888 rm conftest.$ac_ext
12889 LIBS=$ac_func_search_save_LIBS
12890 fi
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12892 $as_echo "$ac_cv_search_inet_aton" >&6; }
12893 ac_res=$ac_cv_search_inet_aton
12894 if test "$ac_res" != no; then :
12895   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12896
12897 fi
12898
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12900 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12901 if ${ac_cv_search_clock_gettime+:} false; then :
12902   $as_echo_n "(cached) " >&6
12903 else
12904   ac_func_search_save_LIBS=$LIBS
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h.  */
12907
12908 /* Override any GCC internal prototype to avoid an error.
12909    Use char because int might match the return type of a GCC
12910    builtin and then its argument prototype would still apply.  */
12911 #ifdef __cplusplus
12912 extern "C"
12913 #endif
12914 char clock_gettime ();
12915 int
12916 main ()
12917 {
12918 return clock_gettime ();
12919   ;
12920   return 0;
12921 }
12922 _ACEOF
12923 for ac_lib in '' rt; do
12924   if test -z "$ac_lib"; then
12925     ac_res="none required"
12926   else
12927     ac_res=-l$ac_lib
12928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12929   fi
12930   if ac_fn_c_try_link "$LINENO"; then :
12931   ac_cv_search_clock_gettime=$ac_res
12932 fi
12933 rm -f core conftest.err conftest.$ac_objext \
12934     conftest$ac_exeext
12935   if ${ac_cv_search_clock_gettime+:} false; then :
12936   break
12937 fi
12938 done
12939 if ${ac_cv_search_clock_gettime+:} false; then :
12940
12941 else
12942   ac_cv_search_clock_gettime=no
12943 fi
12944 rm conftest.$ac_ext
12945 LIBS=$ac_func_search_save_LIBS
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12948 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12949 ac_res=$ac_cv_search_clock_gettime
12950 if test "$ac_res" != no; then :
12951   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12952
12953 fi
12954
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12956 $as_echo_n "checking for library containing sendfile... " >&6; }
12957 if ${ac_cv_search_sendfile+:} false; then :
12958   $as_echo_n "(cached) " >&6
12959 else
12960   ac_func_search_save_LIBS=$LIBS
12961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962 /* end confdefs.h.  */
12963
12964 /* Override any GCC internal prototype to avoid an error.
12965    Use char because int might match the return type of a GCC
12966    builtin and then its argument prototype would still apply.  */
12967 #ifdef __cplusplus
12968 extern "C"
12969 #endif
12970 char sendfile ();
12971 int
12972 main ()
12973 {
12974 return sendfile ();
12975   ;
12976   return 0;
12977 }
12978 _ACEOF
12979 for ac_lib in '' sendfile; do
12980   if test -z "$ac_lib"; then
12981     ac_res="none required"
12982   else
12983     ac_res=-l$ac_lib
12984     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12985   fi
12986   if ac_fn_c_try_link "$LINENO"; then :
12987   ac_cv_search_sendfile=$ac_res
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext \
12990     conftest$ac_exeext
12991   if ${ac_cv_search_sendfile+:} false; then :
12992   break
12993 fi
12994 done
12995 if ${ac_cv_search_sendfile+:} false; then :
12996
12997 else
12998   ac_cv_search_sendfile=no
12999 fi
13000 rm conftest.$ac_ext
13001 LIBS=$ac_func_search_save_LIBS
13002 fi
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
13004 $as_echo "$ac_cv_search_sendfile" >&6; }
13005 ac_res=$ac_cv_search_sendfile
13006 if test "$ac_res" != no; then :
13007   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13008
13009 fi
13010
13011
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
13013 $as_echo_n "checking for WIN32... " >&6; }
13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h.  */
13016
13017 int
13018 main ()
13019 {
13020
13021 #ifndef _WIN32
13022 die horribly
13023 #endif
13024
13025   ;
13026   return 0;
13027 }
13028 _ACEOF
13029 if ac_fn_c_try_compile "$LINENO"; then :
13030   bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13032 else
13033   bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13034 $as_echo "no" >&6; }
13035 fi
13036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
13039 $as_echo_n "checking for CYGWIN... " >&6; }
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h.  */
13042
13043 int
13044 main ()
13045 {
13046
13047 #ifndef __CYGWIN__
13048 die horribly
13049 #endif
13050
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 if ac_fn_c_try_compile "$LINENO"; then :
13056   cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13057 $as_echo "yes" >&6; }
13058 else
13059   cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13060 $as_echo "no" >&6; }
13061 fi
13062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063
13064 for ac_header in zlib.h
13065 do :
13066   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13067 if test "x$ac_cv_header_zlib_h" = xyes; then :
13068   cat >>confdefs.h <<_ACEOF
13069 #define HAVE_ZLIB_H 1
13070 _ACEOF
13071
13072 fi
13073
13074 done
13075
13076
13077 if test "x$ac_cv_header_zlib_h" = "xyes"; then
13078 save_LIBS="$LIBS"
13079 LIBS=""
13080 ZLIB_LIBS=""
13081 have_zlib=no
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
13083 $as_echo_n "checking for library containing inflateEnd... " >&6; }
13084 if ${ac_cv_search_inflateEnd+:} false; then :
13085   $as_echo_n "(cached) " >&6
13086 else
13087   ac_func_search_save_LIBS=$LIBS
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h.  */
13090
13091 /* Override any GCC internal prototype to avoid an error.
13092    Use char because int might match the return type of a GCC
13093    builtin and then its argument prototype would still apply.  */
13094 #ifdef __cplusplus
13095 extern "C"
13096 #endif
13097 char inflateEnd ();
13098 int
13099 main ()
13100 {
13101 return inflateEnd ();
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 for ac_lib in '' z; do
13107   if test -z "$ac_lib"; then
13108     ac_res="none required"
13109   else
13110     ac_res=-l$ac_lib
13111     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13112   fi
13113   if ac_fn_c_try_link "$LINENO"; then :
13114   ac_cv_search_inflateEnd=$ac_res
13115 fi
13116 rm -f core conftest.err conftest.$ac_objext \
13117     conftest$ac_exeext
13118   if ${ac_cv_search_inflateEnd+:} false; then :
13119   break
13120 fi
13121 done
13122 if ${ac_cv_search_inflateEnd+:} false; then :
13123
13124 else
13125   ac_cv_search_inflateEnd=no
13126 fi
13127 rm conftest.$ac_ext
13128 LIBS=$ac_func_search_save_LIBS
13129 fi
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
13131 $as_echo "$ac_cv_search_inflateEnd" >&6; }
13132 ac_res=$ac_cv_search_inflateEnd
13133 if test "$ac_res" != no; then :
13134   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13135   have_zlib=yes
13136         ZLIB_LIBS="$LIBS"
13137
13138 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
13139
13140 fi
13141
13142 LIBS="$save_LIBS"
13143
13144 fi
13145  if test "$have_zlib" = "yes"; then
13146   ZLIB_REGRESS_TRUE=
13147   ZLIB_REGRESS_FALSE='#'
13148 else
13149   ZLIB_REGRESS_TRUE='#'
13150   ZLIB_REGRESS_FALSE=
13151 fi
13152
13153
13154 if test "$bwin32" = true; then
13155   EV_LIB_WS32=-lws2_32
13156   EV_LIB_GDI=-lgdi32
13157 else
13158   EV_LIB_WS32=
13159   EV_LIB_GDI=
13160 fi
13161
13162
13163
13164
13165 # Check whether --enable-largefile was given.
13166 if test "${enable_largefile+set}" = set; then :
13167   enableval=$enable_largefile;
13168 fi
13169
13170 if test "$enable_largefile" != no; then
13171
13172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13173 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13174 if ${ac_cv_sys_largefile_CC+:} false; then :
13175   $as_echo_n "(cached) " >&6
13176 else
13177   ac_cv_sys_largefile_CC=no
13178      if test "$GCC" != yes; then
13179        ac_save_CC=$CC
13180        while :; do
13181          # IRIX 6.2 and later do not support large files by default,
13182          # so use the C compiler's -n32 option if that helps.
13183          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h.  */
13185 #include <sys/types.h>
13186  /* Check that off_t can represent 2**63 - 1 correctly.
13187     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13188     since some C++ compilers masquerading as C compilers
13189     incorrectly reject 9223372036854775807.  */
13190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13191   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13192                        && LARGE_OFF_T % 2147483647 == 1)
13193                       ? 1 : -1];
13194 int
13195 main ()
13196 {
13197
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202          if ac_fn_c_try_compile "$LINENO"; then :
13203   break
13204 fi
13205 rm -f core conftest.err conftest.$ac_objext
13206          CC="$CC -n32"
13207          if ac_fn_c_try_compile "$LINENO"; then :
13208   ac_cv_sys_largefile_CC=' -n32'; break
13209 fi
13210 rm -f core conftest.err conftest.$ac_objext
13211          break
13212        done
13213        CC=$ac_save_CC
13214        rm -f conftest.$ac_ext
13215     fi
13216 fi
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13218 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13219   if test "$ac_cv_sys_largefile_CC" != no; then
13220     CC=$CC$ac_cv_sys_largefile_CC
13221   fi
13222
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13224 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13225 if ${ac_cv_sys_file_offset_bits+:} false; then :
13226   $as_echo_n "(cached) " >&6
13227 else
13228   while :; do
13229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h.  */
13231 #include <sys/types.h>
13232  /* Check that off_t can represent 2**63 - 1 correctly.
13233     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13234     since some C++ compilers masquerading as C compilers
13235     incorrectly reject 9223372036854775807.  */
13236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13237   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13238                        && LARGE_OFF_T % 2147483647 == 1)
13239                       ? 1 : -1];
13240 int
13241 main ()
13242 {
13243
13244   ;
13245   return 0;
13246 }
13247 _ACEOF
13248 if ac_fn_c_try_compile "$LINENO"; then :
13249   ac_cv_sys_file_offset_bits=no; break
13250 fi
13251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13253 /* end confdefs.h.  */
13254 #define _FILE_OFFSET_BITS 64
13255 #include <sys/types.h>
13256  /* Check that off_t can represent 2**63 - 1 correctly.
13257     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13258     since some C++ compilers masquerading as C compilers
13259     incorrectly reject 9223372036854775807.  */
13260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13261   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13262                        && LARGE_OFF_T % 2147483647 == 1)
13263                       ? 1 : -1];
13264 int
13265 main ()
13266 {
13267
13268   ;
13269   return 0;
13270 }
13271 _ACEOF
13272 if ac_fn_c_try_compile "$LINENO"; then :
13273   ac_cv_sys_file_offset_bits=64; break
13274 fi
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276   ac_cv_sys_file_offset_bits=unknown
13277   break
13278 done
13279 fi
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13281 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13282 case $ac_cv_sys_file_offset_bits in #(
13283   no | unknown) ;;
13284   *)
13285 cat >>confdefs.h <<_ACEOF
13286 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13287 _ACEOF
13288 ;;
13289 esac
13290 rm -rf conftest*
13291   if test $ac_cv_sys_file_offset_bits = unknown; then
13292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13293 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13294 if ${ac_cv_sys_large_files+:} false; then :
13295   $as_echo_n "(cached) " >&6
13296 else
13297   while :; do
13298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h.  */
13300 #include <sys/types.h>
13301  /* Check that off_t can represent 2**63 - 1 correctly.
13302     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13303     since some C++ compilers masquerading as C compilers
13304     incorrectly reject 9223372036854775807.  */
13305 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13306   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13307                        && LARGE_OFF_T % 2147483647 == 1)
13308                       ? 1 : -1];
13309 int
13310 main ()
13311 {
13312
13313   ;
13314   return 0;
13315 }
13316 _ACEOF
13317 if ac_fn_c_try_compile "$LINENO"; then :
13318   ac_cv_sys_large_files=no; break
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13322 /* end confdefs.h.  */
13323 #define _LARGE_FILES 1
13324 #include <sys/types.h>
13325  /* Check that off_t can represent 2**63 - 1 correctly.
13326     We can't simply define LARGE_OFF_T to be 9223372036854775807,
13327     since some C++ compilers masquerading as C compilers
13328     incorrectly reject 9223372036854775807.  */
13329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13330   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13331                        && LARGE_OFF_T % 2147483647 == 1)
13332                       ? 1 : -1];
13333 int
13334 main ()
13335 {
13336
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 if ac_fn_c_try_compile "$LINENO"; then :
13342   ac_cv_sys_large_files=1; break
13343 fi
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345   ac_cv_sys_large_files=unknown
13346   break
13347 done
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13350 $as_echo "$ac_cv_sys_large_files" >&6; }
13351 case $ac_cv_sys_large_files in #(
13352   no | unknown) ;;
13353   *)
13354 cat >>confdefs.h <<_ACEOF
13355 #define _LARGE_FILES $ac_cv_sys_large_files
13356 _ACEOF
13357 ;;
13358 esac
13359 rm -rf conftest*
13360   fi
13361
13362
13363 fi
13364
13365
13366
13367
13368 ntp_pkgconfig_min_version='0.15.0'
13369 if test -n "$ac_tool_prefix"; then
13370   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373 $as_echo_n "checking for $ac_word... " >&6; }
13374 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13375   $as_echo_n "(cached) " >&6
13376 else
13377   case $PKG_CONFIG in
13378   [\\/]* | ?:[\\/]*)
13379   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13380   ;;
13381   *)
13382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13384 do
13385   IFS=$as_save_IFS
13386   test -z "$as_dir" && as_dir=.
13387     for ac_exec_ext in '' $ac_executable_extensions; do
13388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13389     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13391     break 2
13392   fi
13393 done
13394   done
13395 IFS=$as_save_IFS
13396
13397   ;;
13398 esac
13399 fi
13400 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13401 if test -n "$PKG_CONFIG"; then
13402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13403 $as_echo "$PKG_CONFIG" >&6; }
13404 else
13405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13407 fi
13408
13409
13410 fi
13411 if test -z "$ac_cv_path_PKG_CONFIG"; then
13412   ac_pt_PKG_CONFIG=$PKG_CONFIG
13413   # Extract the first word of "pkg-config", so it can be a program name with args.
13414 set dummy pkg-config; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416 $as_echo_n "checking for $ac_word... " >&6; }
13417 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13418   $as_echo_n "(cached) " >&6
13419 else
13420   case $ac_pt_PKG_CONFIG in
13421   [\\/]* | ?:[\\/]*)
13422   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13423   ;;
13424   *)
13425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13427 do
13428   IFS=$as_save_IFS
13429   test -z "$as_dir" && as_dir=.
13430     for ac_exec_ext in '' $ac_executable_extensions; do
13431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13434     break 2
13435   fi
13436 done
13437   done
13438 IFS=$as_save_IFS
13439
13440   ;;
13441 esac
13442 fi
13443 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13444 if test -n "$ac_pt_PKG_CONFIG"; then
13445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13446 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13447 else
13448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13450 fi
13451
13452   if test "x$ac_pt_PKG_CONFIG" = x; then
13453     PKG_CONFIG=""
13454   else
13455     case $cross_compiling:$ac_tool_warned in
13456 yes:)
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13459 ac_tool_warned=yes ;;
13460 esac
13461     PKG_CONFIG=$ac_pt_PKG_CONFIG
13462   fi
13463 else
13464   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13465 fi
13466
13467 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
13468 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
13469
13470 case "$PKG_CONFIG" in
13471  /*)
13472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
13473 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
13474     if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
13475         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13476 $as_echo "yes" >&6; }
13477     else
13478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479 $as_echo "no" >&6; }
13480         PKG_CONFIG=""
13481     fi
13482     ;;
13483 esac
13484
13485
13486
13487
13488 case "$enable_openssl" in
13489  yes)
13490     have_openssl=no
13491     case "$PKG_CONFIG" in
13492      '')
13493         ;;
13494      *)
13495         OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
13496         case "$OPENSSL_LIBS" in
13497          '') ;;
13498          *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13499             have_openssl=yes
13500             ;;
13501         esac
13502         OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
13503         ;;
13504     esac
13505     case "$have_openssl" in
13506      yes) ;;
13507      *)
13508         save_LIBS="$LIBS"
13509         LIBS=""
13510         OPENSSL_LIBS=""
13511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
13512 $as_echo_n "checking for library containing SSL_new... " >&6; }
13513 if ${ac_cv_search_SSL_new+:} false; then :
13514   $as_echo_n "(cached) " >&6
13515 else
13516   ac_func_search_save_LIBS=$LIBS
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h.  */
13519
13520 /* Override any GCC internal prototype to avoid an error.
13521    Use char because int might match the return type of a GCC
13522    builtin and then its argument prototype would still apply.  */
13523 #ifdef __cplusplus
13524 extern "C"
13525 #endif
13526 char SSL_new ();
13527 int
13528 main ()
13529 {
13530 return SSL_new ();
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 for ac_lib in '' ssl; do
13536   if test -z "$ac_lib"; then
13537     ac_res="none required"
13538   else
13539     ac_res=-l$ac_lib
13540     LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
13541   fi
13542   if ac_fn_c_try_link "$LINENO"; then :
13543   ac_cv_search_SSL_new=$ac_res
13544 fi
13545 rm -f core conftest.err conftest.$ac_objext \
13546     conftest$ac_exeext
13547   if ${ac_cv_search_SSL_new+:} false; then :
13548   break
13549 fi
13550 done
13551 if ${ac_cv_search_SSL_new+:} false; then :
13552
13553 else
13554   ac_cv_search_SSL_new=no
13555 fi
13556 rm conftest.$ac_ext
13557 LIBS=$ac_func_search_save_LIBS
13558 fi
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
13560 $as_echo "$ac_cv_search_SSL_new" >&6; }
13561 ac_res=$ac_cv_search_SSL_new
13562 if test "$ac_res" != no; then :
13563   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13564   have_openssl=yes
13565             OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
13566 else
13567   have_openssl=no
13568 fi
13569
13570         LIBS="$save_LIBS"
13571         ;;
13572     esac
13573
13574
13575     case "$have_openssl" in
13576      yes)
13577 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
13578  ;;
13579     esac
13580     ;;
13581 esac
13582
13583 # check if we have and should use openssl
13584  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
13585   OPENSSL_TRUE=
13586   OPENSSL_FALSE='#'
13587 else
13588   OPENSSL_TRUE='#'
13589   OPENSSL_FALSE=
13590 fi
13591
13592
13593
13594 for ac_header in  \
13595   arpa/inet.h \
13596   fcntl.h \
13597   ifaddrs.h \
13598   mach/mach_time.h \
13599   netdb.h \
13600   netinet/in.h \
13601   netinet/in6.h \
13602   netinet/tcp.h \
13603   poll.h \
13604   port.h \
13605   stdarg.h \
13606   stddef.h \
13607   sys/devpoll.h \
13608   sys/epoll.h \
13609   sys/event.h \
13610   sys/eventfd.h \
13611   sys/ioctl.h \
13612   sys/mman.h \
13613   sys/param.h \
13614   sys/queue.h \
13615   sys/resource.h \
13616   sys/select.h \
13617   sys/sendfile.h \
13618   sys/socket.h \
13619   sys/stat.h \
13620   sys/time.h \
13621   sys/timerfd.h \
13622   sys/uio.h \
13623   sys/wait.h \
13624
13625 do :
13626   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13627 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13629   cat >>confdefs.h <<_ACEOF
13630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13631 _ACEOF
13632
13633 fi
13634
13635 done
13636
13637
13638 for ac_header in sys/sysctl.h
13639 do :
13640   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
13641 #ifdef HAVE_SYS_PARAM_H
13642 #include <sys/param.h>
13643 #endif
13644
13645 "
13646 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13647   cat >>confdefs.h <<_ACEOF
13648 #define HAVE_SYS_SYSCTL_H 1
13649 _ACEOF
13650
13651 fi
13652
13653 done
13654
13655 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
13656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13657 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13658         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13659 /* end confdefs.h.  */
13660
13661 #include <sys/queue.h>
13662 #ifdef TAILQ_FOREACH
13663  yes
13664 #endif
13665
13666 _ACEOF
13667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13668   $EGREP "yes" >/dev/null 2>&1; then :
13669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13670 $as_echo "yes" >&6; }
13671
13672 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13673
13674 else
13675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13676 $as_echo "no" >&6; }
13677
13678 fi
13679 rm -f conftest*
13680
13681 fi
13682
13683 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13684         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13685 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13686         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h.  */
13688
13689 #include <sys/time.h>
13690 #ifdef timeradd
13691  yes
13692 #endif
13693
13694 _ACEOF
13695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13696   $EGREP "yes" >/dev/null 2>&1; then :
13697
13698 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13699
13700           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13701 $as_echo "yes" >&6; }
13702 else
13703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13704 $as_echo "no" >&6; }
13705
13706 fi
13707 rm -f conftest*
13708
13709 fi
13710
13711 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13712         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13713 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13714         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h.  */
13716
13717 #include <sys/time.h>
13718 #ifdef timercmp
13719  yes
13720 #endif
13721
13722 _ACEOF
13723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13724   $EGREP "yes" >/dev/null 2>&1; then :
13725
13726 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13727
13728           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13729 $as_echo "yes" >&6; }
13730 else
13731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 $as_echo "no" >&6; }
13733
13734 fi
13735 rm -f conftest*
13736
13737 fi
13738
13739 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13741 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13742         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h.  */
13744
13745 #include <sys/time.h>
13746 #ifdef timerclear
13747  yes
13748 #endif
13749
13750 _ACEOF
13751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13752   $EGREP "yes" >/dev/null 2>&1; then :
13753
13754 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13755
13756           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13757 $as_echo "yes" >&6; }
13758 else
13759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760 $as_echo "no" >&6; }
13761
13762 fi
13763 rm -f conftest*
13764
13765 fi
13766
13767 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13768         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13769 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13770         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771 /* end confdefs.h.  */
13772
13773 #include <sys/time.h>
13774 #ifdef timerisset
13775  yes
13776 #endif
13777
13778 _ACEOF
13779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780   $EGREP "yes" >/dev/null 2>&1; then :
13781
13782 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13783
13784           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13785 $as_echo "yes" >&6; }
13786 else
13787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13789
13790 fi
13791 rm -f conftest*
13792
13793 fi
13794
13795 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13796         ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13797              #include <sys/sysctl.h>
13798
13799 "
13800 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13801   ac_have_decl=1
13802 else
13803   ac_have_decl=0
13804 fi
13805
13806 cat >>confdefs.h <<_ACEOF
13807 #define HAVE_DECL_CTL_KERN $ac_have_decl
13808 _ACEOF
13809 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
13810              #include <sys/sysctl.h>
13811
13812 "
13813 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
13814   ac_have_decl=1
13815 else
13816   ac_have_decl=0
13817 fi
13818
13819 cat >>confdefs.h <<_ACEOF
13820 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
13821 _ACEOF
13822 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
13823              #include <sys/sysctl.h>
13824
13825 "
13826 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
13827   ac_have_decl=1
13828 else
13829   ac_have_decl=0
13830 fi
13831
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
13834 _ACEOF
13835 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13836              #include <sys/sysctl.h>
13837
13838 "
13839 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
13840   ac_have_decl=1
13841 else
13842   ac_have_decl=0
13843 fi
13844
13845 cat >>confdefs.h <<_ACEOF
13846 #define HAVE_DECL_KERN_ARND $ac_have_decl
13847 _ACEOF
13848
13849 fi
13850
13851  if test x$bwin32 = xtrue; then
13852   BUILD_WIN32_TRUE=
13853   BUILD_WIN32_FALSE='#'
13854 else
13855   BUILD_WIN32_TRUE='#'
13856   BUILD_WIN32_FALSE=
13857 fi
13858
13859  if test x$cygwin = xtrue; then
13860   BUILD_CYGWIN_TRUE=
13861   BUILD_CYGWIN_FALSE='#'
13862 else
13863   BUILD_CYGWIN_TRUE='#'
13864   BUILD_CYGWIN_FALSE=
13865 fi
13866
13867  if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
13868   BUILD_WITH_NO_UNDEFINED_TRUE=
13869   BUILD_WITH_NO_UNDEFINED_FALSE='#'
13870 else
13871   BUILD_WITH_NO_UNDEFINED_TRUE='#'
13872   BUILD_WITH_NO_UNDEFINED_FALSE=
13873 fi
13874
13875
13876 if test x$bwin32 = xtrue; then
13877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
13878 $as_echo_n "checking for library containing getservbyname... " >&6; }
13879 if ${ac_cv_search_getservbyname+:} false; then :
13880   $as_echo_n "(cached) " >&6
13881 else
13882   ac_func_search_save_LIBS=$LIBS
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h.  */
13885
13886 /* Override any GCC internal prototype to avoid an error.
13887    Use char because int might match the return type of a GCC
13888    builtin and then its argument prototype would still apply.  */
13889 #ifdef __cplusplus
13890 extern "C"
13891 #endif
13892 char getservbyname ();
13893 int
13894 main ()
13895 {
13896 return getservbyname ();
13897   ;
13898   return 0;
13899 }
13900 _ACEOF
13901 for ac_lib in '' ws2_32; do
13902   if test -z "$ac_lib"; then
13903     ac_res="none required"
13904   else
13905     ac_res=-l$ac_lib
13906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13907   fi
13908   if ac_fn_c_try_link "$LINENO"; then :
13909   ac_cv_search_getservbyname=$ac_res
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext \
13912     conftest$ac_exeext
13913   if ${ac_cv_search_getservbyname+:} false; then :
13914   break
13915 fi
13916 done
13917 if ${ac_cv_search_getservbyname+:} false; then :
13918
13919 else
13920   ac_cv_search_getservbyname=no
13921 fi
13922 rm conftest.$ac_ext
13923 LIBS=$ac_func_search_save_LIBS
13924 fi
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13926 $as_echo "$ac_cv_search_getservbyname" >&6; }
13927 ac_res=$ac_cv_search_getservbyname
13928 if test "$ac_res" != no; then :
13929   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13930
13931 fi
13932
13933 fi
13934
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13936 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13937 if ${ac_cv_c_const+:} false; then :
13938   $as_echo_n "(cached) " >&6
13939 else
13940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h.  */
13942
13943 int
13944 main ()
13945 {
13946
13947 #ifndef __cplusplus
13948   /* Ultrix mips cc rejects this sort of thing.  */
13949   typedef int charset[2];
13950   const charset cs = { 0, 0 };
13951   /* SunOS 4.1.1 cc rejects this.  */
13952   char const *const *pcpcc;
13953   char **ppc;
13954   /* NEC SVR4.0.2 mips cc rejects this.  */
13955   struct point {int x, y;};
13956   static struct point const zero = {0,0};
13957   /* AIX XL C 1.02.0.0 rejects this.
13958      It does not let you subtract one const X* pointer from another in
13959      an arm of an if-expression whose if-part is not a constant
13960      expression */
13961   const char *g = "string";
13962   pcpcc = &g + (g ? g-g : 0);
13963   /* HPUX 7.0 cc rejects these. */
13964   ++pcpcc;
13965   ppc = (char**) pcpcc;
13966   pcpcc = (char const *const *) ppc;
13967   { /* SCO 3.2v4 cc rejects this sort of thing.  */
13968     char tx;
13969     char *t = &tx;
13970     char const *s = 0 ? (char *) 0 : (char const *) 0;
13971
13972     *t++ = 0;
13973     if (s) return 0;
13974   }
13975   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13976     int x[] = {25, 17};
13977     const int *foo = &x[0];
13978     ++foo;
13979   }
13980   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13981     typedef const int *iptr;
13982     iptr p = 0;
13983     ++p;
13984   }
13985   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13986        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13987     struct s { int j; const int *ap[3]; } bx;
13988     struct s *b = &bx; b->j = 5;
13989   }
13990   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13991     const int foo = 10;
13992     if (!foo) return 0;
13993   }
13994   return !cs[0] && !zero.x;
13995 #endif
13996
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002   ac_cv_c_const=yes
14003 else
14004   ac_cv_c_const=no
14005 fi
14006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14009 $as_echo "$ac_cv_c_const" >&6; }
14010 if test $ac_cv_c_const = no; then
14011
14012 $as_echo "#define const /**/" >>confdefs.h
14013
14014 fi
14015
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14017 $as_echo_n "checking for inline... " >&6; }
14018 if ${ac_cv_c_inline+:} false; then :
14019   $as_echo_n "(cached) " >&6
14020 else
14021   ac_cv_c_inline=no
14022 for ac_kw in inline __inline__ __inline; do
14023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h.  */
14025 #ifndef __cplusplus
14026 typedef int foo_t;
14027 static $ac_kw foo_t static_foo () {return 0; }
14028 $ac_kw foo_t foo () {return 0; }
14029 #endif
14030
14031 _ACEOF
14032 if ac_fn_c_try_compile "$LINENO"; then :
14033   ac_cv_c_inline=$ac_kw
14034 fi
14035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036   test "$ac_cv_c_inline" != no && break
14037 done
14038
14039 fi
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14041 $as_echo "$ac_cv_c_inline" >&6; }
14042
14043 case $ac_cv_c_inline in
14044   inline | yes) ;;
14045   *)
14046     case $ac_cv_c_inline in
14047       no) ac_val=;;
14048       *) ac_val=$ac_cv_c_inline;;
14049     esac
14050     cat >>confdefs.h <<_ACEOF
14051 #ifndef __cplusplus
14052 #define inline $ac_val
14053 #endif
14054 _ACEOF
14055     ;;
14056 esac
14057
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14059 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14060 if ${ac_cv_header_time+:} false; then :
14061   $as_echo_n "(cached) " >&6
14062 else
14063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064 /* end confdefs.h.  */
14065 #include <sys/types.h>
14066 #include <sys/time.h>
14067 #include <time.h>
14068
14069 int
14070 main ()
14071 {
14072 if ((struct tm *) 0)
14073 return 0;
14074   ;
14075   return 0;
14076 }
14077 _ACEOF
14078 if ac_fn_c_try_compile "$LINENO"; then :
14079   ac_cv_header_time=yes
14080 else
14081   ac_cv_header_time=no
14082 fi
14083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14084 fi
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14086 $as_echo "$ac_cv_header_time" >&6; }
14087 if test $ac_cv_header_time = yes; then
14088
14089 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14090
14091 fi
14092
14093
14094 for ac_func in  \
14095   accept4 \
14096   arc4random \
14097   arc4random_buf \
14098   clock_gettime \
14099   eventfd \
14100   epoll_create1 \
14101   fcntl \
14102   getegid \
14103   geteuid \
14104   getifaddrs \
14105   getnameinfo \
14106   getprotobynumber \
14107   gettimeofday \
14108   inet_ntop \
14109   inet_pton \
14110   issetugid \
14111   mach_absolute_time \
14112   mmap \
14113   nanosleep \
14114   pipe \
14115   pipe2 \
14116   putenv \
14117   sendfile \
14118   setenv \
14119   setrlimit \
14120   sigaction \
14121   signal \
14122   splice \
14123   strlcpy \
14124   strsep \
14125   strtok_r \
14126   strtoll \
14127   sysctl \
14128   timerfd_create \
14129   umask \
14130   unsetenv \
14131   usleep \
14132   vasprintf \
14133
14134 do :
14135   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14136 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14138   cat >>confdefs.h <<_ACEOF
14139 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14140 _ACEOF
14141
14142 fi
14143 done
14144
14145  if test x"$ac_cv_func_strlcpy" = xno; then
14146   STRLCPY_IMPL_TRUE=
14147   STRLCPY_IMPL_FALSE='#'
14148 else
14149   STRLCPY_IMPL_TRUE='#'
14150   STRLCPY_IMPL_FALSE=
14151 fi
14152
14153
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
14155 $as_echo_n "checking for getaddrinfo... " >&6; }
14156 if ${libevent_cv_getaddrinfo+:} false; then :
14157   $as_echo_n "(cached) " >&6
14158 else
14159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h.  */
14161
14162                 #ifdef HAVE_NETDB_H
14163                 #include <netdb.h>
14164                 #endif
14165
14166 int
14167 main ()
14168 {
14169
14170                 getaddrinfo;
14171
14172
14173   ;
14174   return 0;
14175 }
14176 _ACEOF
14177 if ac_fn_c_try_link "$LINENO"; then :
14178   libevent_cv_getaddrinfo=yes
14179 else
14180   libevent_cv_getaddrinfo=no
14181
14182 fi
14183 rm -f core conftest.err conftest.$ac_objext \
14184     conftest$ac_exeext conftest.$ac_ext
14185
14186 fi
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
14188 $as_echo "$libevent_cv_getaddrinfo" >&6; }
14189 if test "$libevent_cv_getaddrinfo" = "yes" ; then
14190
14191 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
14192
14193 else
14194
14195 for ac_func in getservbyname
14196 do :
14197   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
14198 if test "x$ac_cv_func_getservbyname" = xyes; then :
14199   cat >>confdefs.h <<_ACEOF
14200 #define HAVE_GETSERVBYNAME 1
14201 _ACEOF
14202
14203 fi
14204 done
14205
14206 # Check for gethostbyname_r in all its glorious incompatible versions.
14207 #   (This is cut-and-pasted from Tor, which based its logic on
14208 #   Python's configure.in.)
14209
14210
14211 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
14212 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
14213
14214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
14215 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
14216   OLD_CFLAGS=$CFLAGS
14217   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
14218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14219 /* end confdefs.h.  */
14220
14221 #include <netdb.h>
14222
14223 int
14224 main ()
14225 {
14226
14227     char *cp1, *cp2;
14228     struct hostent *h1, *h2;
14229     int i1, i2;
14230     (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
14231
14232   ;
14233   return 0;
14234 }
14235 _ACEOF
14236 if ac_fn_c_try_compile "$LINENO"; then :
14237
14238     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14239
14240
14241 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
14242
14243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
14244 $as_echo "6" >&6; }
14245
14246 else
14247
14248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h.  */
14250
14251 #include <netdb.h>
14252
14253 int
14254 main ()
14255 {
14256
14257       char *cp1, *cp2;
14258       struct hostent *h1;
14259       int i1, i2;
14260       (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
14261
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 if ac_fn_c_try_compile "$LINENO"; then :
14267
14268       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14269
14270
14271 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
14272
14273       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
14274 $as_echo "5" >&6; }
14275
14276 else
14277
14278       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14279 /* end confdefs.h.  */
14280
14281 #include <netdb.h>
14282
14283 int
14284 main ()
14285 {
14286
14287        char *cp1;
14288        struct hostent *h1;
14289        struct hostent_data hd;
14290        (void) gethostbyname_r(cp1,h1,&hd);
14291
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 if ac_fn_c_try_compile "$LINENO"; then :
14297
14298        $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
14299
14300
14301 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
14302
14303        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
14304 $as_echo "3" >&6; }
14305
14306 else
14307
14308        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
14309 $as_echo "0" >&6; }
14310
14311 fi
14312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313
14314 fi
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316
14317 fi
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319  CFLAGS=$OLD_CFLAGS
14320
14321 fi
14322
14323
14324 fi
14325
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
14327 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h.  */
14330
14331 #define _GNU_SOURCE
14332 #include <fcntl.h>
14333 #ifdef F_SETFD
14334 yes
14335 #endif
14336
14337 _ACEOF
14338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14339   $EGREP "yes" >/dev/null 2>&1; then :
14340
14341 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
14342
14343           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14344 $as_echo "yes" >&6; }
14345 else
14346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14347 $as_echo "no" >&6; }
14348 fi
14349 rm -f conftest*
14350
14351
14352 needsignal=no
14353 haveselect=no
14354 if test x$bwin32 != xtrue; then
14355     for ac_func in select
14356 do :
14357   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14358 if test "x$ac_cv_func_select" = xyes; then :
14359   cat >>confdefs.h <<_ACEOF
14360 #define HAVE_SELECT 1
14361 _ACEOF
14362  haveselect=yes
14363 fi
14364 done
14365
14366     if test "x$haveselect" = "xyes" ; then
14367         needsignal=yes
14368     fi
14369 fi
14370  if test "x$haveselect" = "xyes"; then
14371   SELECT_BACKEND_TRUE=
14372   SELECT_BACKEND_FALSE='#'
14373 else
14374   SELECT_BACKEND_TRUE='#'
14375   SELECT_BACKEND_FALSE=
14376 fi
14377
14378
14379 havepoll=no
14380 for ac_func in poll
14381 do :
14382   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14383 if test "x$ac_cv_func_poll" = xyes; then :
14384   cat >>confdefs.h <<_ACEOF
14385 #define HAVE_POLL 1
14386 _ACEOF
14387  havepoll=yes
14388 fi
14389 done
14390
14391 if test "x$havepoll" = "xyes" ; then
14392         needsignal=yes
14393 fi
14394  if test "x$havepoll" = "xyes"; then
14395   POLL_BACKEND_TRUE=
14396   POLL_BACKEND_FALSE='#'
14397 else
14398   POLL_BACKEND_TRUE='#'
14399   POLL_BACKEND_FALSE=
14400 fi
14401
14402
14403 havedevpoll=no
14404 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14405
14406 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14407
14408 fi
14409  if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
14410   DEVPOLL_BACKEND_TRUE=
14411   DEVPOLL_BACKEND_FALSE='#'
14412 else
14413   DEVPOLL_BACKEND_TRUE='#'
14414   DEVPOLL_BACKEND_FALSE=
14415 fi
14416
14417
14418 havekqueue=no
14419 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
14420         for ac_func in kqueue
14421 do :
14422   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
14423 if test "x$ac_cv_func_kqueue" = xyes; then :
14424   cat >>confdefs.h <<_ACEOF
14425 #define HAVE_KQUEUE 1
14426 _ACEOF
14427  havekqueue=yes
14428 fi
14429 done
14430
14431         if test "x$havekqueue" = "xyes" ; then
14432                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
14433 $as_echo_n "checking for working kqueue... " >&6; }
14434                 if test "$cross_compiling" = yes; then :
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14436 $as_echo "no" >&6; }
14437 else
14438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h.  */
14440 #include <sys/types.h>
14441 #include <sys/time.h>
14442 #include <sys/event.h>
14443 #include <stdio.h>
14444 #include <unistd.h>
14445 #include <fcntl.h>
14446
14447 int
14448 main(int argc, char **argv)
14449 {
14450         int kq;
14451         int n;
14452         int fd[2];
14453         struct kevent ev;
14454         struct timespec ts;
14455         char buf[8000];
14456
14457         if (pipe(fd) == -1)
14458                 exit(1);
14459         if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
14460                 exit(1);
14461
14462         while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
14463                 ;
14464
14465         if ((kq = kqueue()) == -1)
14466                 exit(1);
14467
14468         memset(&ev, 0, sizeof(ev));
14469         ev.ident = fd[1];
14470         ev.filter = EVFILT_WRITE;
14471         ev.flags = EV_ADD | EV_ENABLE;
14472         n = kevent(kq, &ev, 1, NULL, 0, NULL);
14473         if (n == -1)
14474                 exit(1);
14475
14476         read(fd[0], buf, sizeof(buf));
14477
14478         ts.tv_sec = 0;
14479         ts.tv_nsec = 0;
14480         n = kevent(kq, NULL, 0, &ev, 1, &ts);
14481         if (n == -1 || n == 0)
14482                 exit(1);
14483
14484         exit(0);
14485 }
14486 _ACEOF
14487 if ac_fn_c_try_run "$LINENO"; then :
14488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14489 $as_echo "yes" >&6; }
14490
14491 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
14492
14493     havekqueue=yes
14494
14495 else
14496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14498 fi
14499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14500   conftest.$ac_objext conftest.beam conftest.$ac_ext
14501 fi
14502
14503         fi
14504 fi
14505  if test "x$havekqueue" = "xyes"; then
14506   KQUEUE_BACKEND_TRUE=
14507   KQUEUE_BACKEND_FALSE='#'
14508 else
14509   KQUEUE_BACKEND_TRUE='#'
14510   KQUEUE_BACKEND_FALSE=
14511 fi
14512
14513
14514 haveepollsyscall=no
14515 haveepoll=no
14516 for ac_func in epoll_ctl
14517 do :
14518   ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
14519 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
14520   cat >>confdefs.h <<_ACEOF
14521 #define HAVE_EPOLL_CTL 1
14522 _ACEOF
14523  haveepoll=yes
14524 fi
14525 done
14526
14527 if test "x$haveepoll" = "xyes" ; then
14528
14529 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14530
14531         needsignal=yes
14532 fi
14533 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
14534         if test "x$haveepoll" = "xno" ; then
14535                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14536 $as_echo_n "checking for epoll system call... " >&6; }
14537                 if test "$cross_compiling" = yes; then :
14538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539 $as_echo "no" >&6; }
14540 else
14541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h.  */
14543 #include <stdint.h>
14544 #include <sys/param.h>
14545 #include <sys/types.h>
14546 #include <sys/syscall.h>
14547 #include <sys/epoll.h>
14548 #include <unistd.h>
14549
14550 int
14551 epoll_create(int size)
14552 {
14553         return (syscall(__NR_epoll_create, size));
14554 }
14555
14556 int
14557 main(int argc, char **argv)
14558 {
14559         int epfd;
14560
14561         epfd = epoll_create(256);
14562         exit (epfd == -1 ? 1 : 0);
14563 }
14564 _ACEOF
14565 if ac_fn_c_try_run "$LINENO"; then :
14566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14567 $as_echo "yes" >&6; }
14568
14569 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14570
14571     needsignal=yes
14572     have_epoll=yes
14573     case " $LIBOBJS " in
14574   *" epoll_sub.$ac_objext "* ) ;;
14575   *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
14576  ;;
14577 esac
14578
14579
14580 else
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14583 fi
14584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14585   conftest.$ac_objext conftest.beam conftest.$ac_ext
14586 fi
14587
14588         fi
14589 fi
14590  if test "x$haveepoll" = "xyes"; then
14591   EPOLL_BACKEND_TRUE=
14592   EPOLL_BACKEND_FALSE='#'
14593 else
14594   EPOLL_BACKEND_TRUE='#'
14595   EPOLL_BACKEND_FALSE=
14596 fi
14597
14598
14599 haveeventports=no
14600 for ac_func in port_create
14601 do :
14602   ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
14603 if test "x$ac_cv_func_port_create" = xyes; then :
14604   cat >>confdefs.h <<_ACEOF
14605 #define HAVE_PORT_CREATE 1
14606 _ACEOF
14607  haveeventports=yes
14608 fi
14609 done
14610
14611 if test "x$haveeventports" = "xyes" ; then
14612
14613 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
14614
14615         needsignal=yes
14616 fi
14617  if test "x$haveeventports" = "xyes"; then
14618   EVPORT_BACKEND_TRUE=
14619   EVPORT_BACKEND_FALSE='#'
14620 else
14621   EVPORT_BACKEND_TRUE='#'
14622   EVPORT_BACKEND_FALSE=
14623 fi
14624
14625
14626 if test "x$bwin32" = "xtrue"; then
14627         needsignal=yes
14628 fi
14629
14630  if test "x$needsignal" = "xyes"; then
14631   SIGNAL_SUPPORT_TRUE=
14632   SIGNAL_SUPPORT_FALSE='#'
14633 else
14634   SIGNAL_SUPPORT_TRUE='#'
14635   SIGNAL_SUPPORT_FALSE=
14636 fi
14637
14638
14639 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14640 if test "x$ac_cv_type_pid_t" = xyes; then :
14641
14642 else
14643
14644 cat >>confdefs.h <<_ACEOF
14645 #define pid_t int
14646 _ACEOF
14647
14648 fi
14649
14650 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14651 if test "x$ac_cv_type_size_t" = xyes; then :
14652
14653 else
14654
14655 cat >>confdefs.h <<_ACEOF
14656 #define size_t unsigned int
14657 _ACEOF
14658
14659 fi
14660
14661 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14662 if test "x$ac_cv_type_ssize_t" = xyes; then :
14663
14664 else
14665
14666 cat >>confdefs.h <<_ACEOF
14667 #define ssize_t int
14668 _ACEOF
14669
14670 fi
14671
14672
14673 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14674 #include <stdint.h>
14675 #elif defined(HAVE_INTTYPES_H)
14676 #include <inttypes.h>
14677 #endif
14678 #ifdef HAVE_SYS_TYPES_H
14679 #include <sys/types.h>
14680 #endif
14681 "
14682 if test "x$ac_cv_type_uint64_t" = xyes; then :
14683
14684 cat >>confdefs.h <<_ACEOF
14685 #define HAVE_UINT64_T 1
14686 _ACEOF
14687
14688
14689 fi
14690 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
14691 #include <stdint.h>
14692 #elif defined(HAVE_INTTYPES_H)
14693 #include <inttypes.h>
14694 #endif
14695 #ifdef HAVE_SYS_TYPES_H
14696 #include <sys/types.h>
14697 #endif
14698 "
14699 if test "x$ac_cv_type_uint32_t" = xyes; then :
14700
14701 cat >>confdefs.h <<_ACEOF
14702 #define HAVE_UINT32_T 1
14703 _ACEOF
14704
14705
14706 fi
14707 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
14708 #include <stdint.h>
14709 #elif defined(HAVE_INTTYPES_H)
14710 #include <inttypes.h>
14711 #endif
14712 #ifdef HAVE_SYS_TYPES_H
14713 #include <sys/types.h>
14714 #endif
14715 "
14716 if test "x$ac_cv_type_uint16_t" = xyes; then :
14717
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_UINT16_T 1
14720 _ACEOF
14721
14722
14723 fi
14724 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
14725 #include <stdint.h>
14726 #elif defined(HAVE_INTTYPES_H)
14727 #include <inttypes.h>
14728 #endif
14729 #ifdef HAVE_SYS_TYPES_H
14730 #include <sys/types.h>
14731 #endif
14732 "
14733 if test "x$ac_cv_type_uint8_t" = xyes; then :
14734
14735 cat >>confdefs.h <<_ACEOF
14736 #define HAVE_UINT8_T 1
14737 _ACEOF
14738
14739
14740 fi
14741 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
14742 #include <stdint.h>
14743 #elif defined(HAVE_INTTYPES_H)
14744 #include <inttypes.h>
14745 #endif
14746 #ifdef HAVE_SYS_TYPES_H
14747 #include <sys/types.h>
14748 #endif
14749 "
14750 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14751
14752 cat >>confdefs.h <<_ACEOF
14753 #define HAVE_UINTPTR_T 1
14754 _ACEOF
14755
14756
14757 fi
14758
14759
14760 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
14761 #include <sys/types.h>
14762 #endif
14763 #ifdef HAVE_SYS_SELECT_H
14764 #include <sys/select.h>
14765 #endif
14766 "
14767 if test "x$ac_cv_type_fd_mask" = xyes; then :
14768
14769 cat >>confdefs.h <<_ACEOF
14770 #define HAVE_FD_MASK 1
14771 _ACEOF
14772
14773
14774 fi
14775
14776
14777 # The cast to long int works around a bug in the HP C Compiler
14778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14780 # This bug is HP SR number 8606223364.
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14782 $as_echo_n "checking size of long long... " >&6; }
14783 if ${ac_cv_sizeof_long_long+:} false; then :
14784   $as_echo_n "(cached) " >&6
14785 else
14786   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
14787
14788 else
14789   if test "$ac_cv_type_long_long" = yes; then
14790      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14792 as_fn_error 77 "cannot compute sizeof (long long)
14793 See \`config.log' for more details" "$LINENO" 5; }
14794    else
14795      ac_cv_sizeof_long_long=0
14796    fi
14797 fi
14798
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14801 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14802
14803
14804
14805 cat >>confdefs.h <<_ACEOF
14806 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14807 _ACEOF
14808
14809
14810 # The cast to long int works around a bug in the HP C Compiler
14811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14813 # This bug is HP SR number 8606223364.
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14815 $as_echo_n "checking size of long... " >&6; }
14816 if ${ac_cv_sizeof_long+:} false; then :
14817   $as_echo_n "(cached) " >&6
14818 else
14819   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14820
14821 else
14822   if test "$ac_cv_type_long" = yes; then
14823      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14825 as_fn_error 77 "cannot compute sizeof (long)
14826 See \`config.log' for more details" "$LINENO" 5; }
14827    else
14828      ac_cv_sizeof_long=0
14829    fi
14830 fi
14831
14832 fi
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14834 $as_echo "$ac_cv_sizeof_long" >&6; }
14835
14836
14837
14838 cat >>confdefs.h <<_ACEOF
14839 #define SIZEOF_LONG $ac_cv_sizeof_long
14840 _ACEOF
14841
14842
14843 # The cast to long int works around a bug in the HP C Compiler
14844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14846 # This bug is HP SR number 8606223364.
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14848 $as_echo_n "checking size of int... " >&6; }
14849 if ${ac_cv_sizeof_int+:} false; then :
14850   $as_echo_n "(cached) " >&6
14851 else
14852   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14853
14854 else
14855   if test "$ac_cv_type_int" = yes; then
14856      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14858 as_fn_error 77 "cannot compute sizeof (int)
14859 See \`config.log' for more details" "$LINENO" 5; }
14860    else
14861      ac_cv_sizeof_int=0
14862    fi
14863 fi
14864
14865 fi
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14867 $as_echo "$ac_cv_sizeof_int" >&6; }
14868
14869
14870
14871 cat >>confdefs.h <<_ACEOF
14872 #define SIZEOF_INT $ac_cv_sizeof_int
14873 _ACEOF
14874
14875
14876 # The cast to long int works around a bug in the HP C Compiler
14877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14879 # This bug is HP SR number 8606223364.
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14881 $as_echo_n "checking size of short... " >&6; }
14882 if ${ac_cv_sizeof_short+:} false; then :
14883   $as_echo_n "(cached) " >&6
14884 else
14885   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14886
14887 else
14888   if test "$ac_cv_type_short" = yes; then
14889      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14891 as_fn_error 77 "cannot compute sizeof (short)
14892 See \`config.log' for more details" "$LINENO" 5; }
14893    else
14894      ac_cv_sizeof_short=0
14895    fi
14896 fi
14897
14898 fi
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14900 $as_echo "$ac_cv_sizeof_short" >&6; }
14901
14902
14903
14904 cat >>confdefs.h <<_ACEOF
14905 #define SIZEOF_SHORT $ac_cv_sizeof_short
14906 _ACEOF
14907
14908
14909 # The cast to long int works around a bug in the HP C Compiler
14910 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14911 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14912 # This bug is HP SR number 8606223364.
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14914 $as_echo_n "checking size of size_t... " >&6; }
14915 if ${ac_cv_sizeof_size_t+:} false; then :
14916   $as_echo_n "(cached) " >&6
14917 else
14918   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
14919
14920 else
14921   if test "$ac_cv_type_size_t" = yes; then
14922      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14924 as_fn_error 77 "cannot compute sizeof (size_t)
14925 See \`config.log' for more details" "$LINENO" 5; }
14926    else
14927      ac_cv_sizeof_size_t=0
14928    fi
14929 fi
14930
14931 fi
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14933 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14934
14935
14936
14937 cat >>confdefs.h <<_ACEOF
14938 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14939 _ACEOF
14940
14941
14942 # The cast to long int works around a bug in the HP C Compiler
14943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14945 # This bug is HP SR number 8606223364.
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14947 $as_echo_n "checking size of void *... " >&6; }
14948 if ${ac_cv_sizeof_void_p+:} false; then :
14949   $as_echo_n "(cached) " >&6
14950 else
14951   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
14952
14953 else
14954   if test "$ac_cv_type_void_p" = yes; then
14955      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14957 as_fn_error 77 "cannot compute sizeof (void *)
14958 See \`config.log' for more details" "$LINENO" 5; }
14959    else
14960      ac_cv_sizeof_void_p=0
14961    fi
14962 fi
14963
14964 fi
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14966 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14967
14968
14969
14970 cat >>confdefs.h <<_ACEOF
14971 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14972 _ACEOF
14973
14974
14975 # The cast to long int works around a bug in the HP C Compiler
14976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14978 # This bug is HP SR number 8606223364.
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14980 $as_echo_n "checking size of off_t... " >&6; }
14981 if ${ac_cv_sizeof_off_t+:} false; then :
14982   $as_echo_n "(cached) " >&6
14983 else
14984   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14985
14986 else
14987   if test "$ac_cv_type_off_t" = yes; then
14988      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14990 as_fn_error 77 "cannot compute sizeof (off_t)
14991 See \`config.log' for more details" "$LINENO" 5; }
14992    else
14993      ac_cv_sizeof_off_t=0
14994    fi
14995 fi
14996
14997 fi
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14999 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15000
15001
15002
15003 cat >>confdefs.h <<_ACEOF
15004 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15005 _ACEOF
15006
15007
15008
15009 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
15010 #include <sys/types.h>
15011 #ifdef HAVE_NETINET_IN_H
15012 #include <netinet/in.h>
15013 #endif
15014 #ifdef HAVE_NETINET_IN6_H
15015 #include <netinet/in6.h>
15016 #endif
15017 #ifdef HAVE_SYS_SOCKET_H
15018 #include <sys/socket.h>
15019 #endif
15020 #ifdef HAVE_NETDB_H
15021 #include <netdb.h>
15022 #endif
15023 #ifdef _WIN32
15024 #define WIN32_WINNT 0x400
15025 #define _WIN32_WINNT 0x400
15026 #define WIN32_LEAN_AND_MEAN
15027 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15028 #include <winsock.h>
15029 #else
15030 #include <winsock2.h>
15031 #include <ws2tcpip.h>
15032 #endif
15033 #endif
15034
15035 "
15036 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
15037
15038 cat >>confdefs.h <<_ACEOF
15039 #define HAVE_STRUCT_IN6_ADDR 1
15040 _ACEOF
15041
15042
15043 fi
15044 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
15045 #include <sys/types.h>
15046 #ifdef HAVE_NETINET_IN_H
15047 #include <netinet/in.h>
15048 #endif
15049 #ifdef HAVE_NETINET_IN6_H
15050 #include <netinet/in6.h>
15051 #endif
15052 #ifdef HAVE_SYS_SOCKET_H
15053 #include <sys/socket.h>
15054 #endif
15055 #ifdef HAVE_NETDB_H
15056 #include <netdb.h>
15057 #endif
15058 #ifdef _WIN32
15059 #define WIN32_WINNT 0x400
15060 #define _WIN32_WINNT 0x400
15061 #define WIN32_LEAN_AND_MEAN
15062 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15063 #include <winsock.h>
15064 #else
15065 #include <winsock2.h>
15066 #include <ws2tcpip.h>
15067 #endif
15068 #endif
15069
15070 "
15071 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
15072
15073 cat >>confdefs.h <<_ACEOF
15074 #define HAVE_STRUCT_SOCKADDR_IN6 1
15075 _ACEOF
15076
15077
15078 fi
15079 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
15080 #include <sys/types.h>
15081 #ifdef HAVE_NETINET_IN_H
15082 #include <netinet/in.h>
15083 #endif
15084 #ifdef HAVE_NETINET_IN6_H
15085 #include <netinet/in6.h>
15086 #endif
15087 #ifdef HAVE_SYS_SOCKET_H
15088 #include <sys/socket.h>
15089 #endif
15090 #ifdef HAVE_NETDB_H
15091 #include <netdb.h>
15092 #endif
15093 #ifdef _WIN32
15094 #define WIN32_WINNT 0x400
15095 #define _WIN32_WINNT 0x400
15096 #define WIN32_LEAN_AND_MEAN
15097 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15098 #include <winsock.h>
15099 #else
15100 #include <winsock2.h>
15101 #include <ws2tcpip.h>
15102 #endif
15103 #endif
15104
15105 "
15106 if test "x$ac_cv_type_sa_family_t" = xyes; then :
15107
15108 cat >>confdefs.h <<_ACEOF
15109 #define HAVE_SA_FAMILY_T 1
15110 _ACEOF
15111
15112
15113 fi
15114 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
15115 #include <sys/types.h>
15116 #ifdef HAVE_NETINET_IN_H
15117 #include <netinet/in.h>
15118 #endif
15119 #ifdef HAVE_NETINET_IN6_H
15120 #include <netinet/in6.h>
15121 #endif
15122 #ifdef HAVE_SYS_SOCKET_H
15123 #include <sys/socket.h>
15124 #endif
15125 #ifdef HAVE_NETDB_H
15126 #include <netdb.h>
15127 #endif
15128 #ifdef _WIN32
15129 #define WIN32_WINNT 0x400
15130 #define _WIN32_WINNT 0x400
15131 #define WIN32_LEAN_AND_MEAN
15132 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15133 #include <winsock.h>
15134 #else
15135 #include <winsock2.h>
15136 #include <ws2tcpip.h>
15137 #endif
15138 #endif
15139
15140 "
15141 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
15142
15143 cat >>confdefs.h <<_ACEOF
15144 #define HAVE_STRUCT_ADDRINFO 1
15145 _ACEOF
15146
15147
15148 fi
15149 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
15150 #include <sys/types.h>
15151 #ifdef HAVE_NETINET_IN_H
15152 #include <netinet/in.h>
15153 #endif
15154 #ifdef HAVE_NETINET_IN6_H
15155 #include <netinet/in6.h>
15156 #endif
15157 #ifdef HAVE_SYS_SOCKET_H
15158 #include <sys/socket.h>
15159 #endif
15160 #ifdef HAVE_NETDB_H
15161 #include <netdb.h>
15162 #endif
15163 #ifdef _WIN32
15164 #define WIN32_WINNT 0x400
15165 #define _WIN32_WINNT 0x400
15166 #define WIN32_LEAN_AND_MEAN
15167 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15168 #include <winsock.h>
15169 #else
15170 #include <winsock2.h>
15171 #include <ws2tcpip.h>
15172 #endif
15173 #endif
15174
15175 "
15176 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
15177
15178 cat >>confdefs.h <<_ACEOF
15179 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
15180 _ACEOF
15181
15182
15183 fi
15184
15185 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
15186 #ifdef HAVE_NETINET_IN_H
15187 #include <netinet/in.h>
15188 #endif
15189 #ifdef HAVE_NETINET_IN6_H
15190 #include <netinet/in6.h>
15191 #endif
15192 #ifdef HAVE_SYS_SOCKET_H
15193 #include <sys/socket.h>
15194 #endif
15195 #ifdef _WIN32
15196 #define WIN32_WINNT 0x400
15197 #define _WIN32_WINNT 0x400
15198 #define WIN32_LEAN_AND_MEAN
15199 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15200 #include <winsock.h>
15201 #else
15202 #include <winsock2.h>
15203 #include <ws2tcpip.h>
15204 #endif
15205 #endif
15206
15207 "
15208 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
15209
15210 cat >>confdefs.h <<_ACEOF
15211 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
15212 _ACEOF
15213
15214
15215 fi
15216 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
15217 #ifdef HAVE_NETINET_IN_H
15218 #include <netinet/in.h>
15219 #endif
15220 #ifdef HAVE_NETINET_IN6_H
15221 #include <netinet/in6.h>
15222 #endif
15223 #ifdef HAVE_SYS_SOCKET_H
15224 #include <sys/socket.h>
15225 #endif
15226 #ifdef _WIN32
15227 #define WIN32_WINNT 0x400
15228 #define _WIN32_WINNT 0x400
15229 #define WIN32_LEAN_AND_MEAN
15230 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15231 #include <winsock.h>
15232 #else
15233 #include <winsock2.h>
15234 #include <ws2tcpip.h>
15235 #endif
15236 #endif
15237
15238 "
15239 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
15240
15241 cat >>confdefs.h <<_ACEOF
15242 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
15243 _ACEOF
15244
15245
15246 fi
15247 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
15248 #ifdef HAVE_NETINET_IN_H
15249 #include <netinet/in.h>
15250 #endif
15251 #ifdef HAVE_NETINET_IN6_H
15252 #include <netinet/in6.h>
15253 #endif
15254 #ifdef HAVE_SYS_SOCKET_H
15255 #include <sys/socket.h>
15256 #endif
15257 #ifdef _WIN32
15258 #define WIN32_WINNT 0x400
15259 #define _WIN32_WINNT 0x400
15260 #define WIN32_LEAN_AND_MEAN
15261 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15262 #include <winsock.h>
15263 #else
15264 #include <winsock2.h>
15265 #include <ws2tcpip.h>
15266 #endif
15267 #endif
15268
15269 "
15270 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
15271
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
15274 _ACEOF
15275
15276
15277 fi
15278 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
15279 #ifdef HAVE_NETINET_IN_H
15280 #include <netinet/in.h>
15281 #endif
15282 #ifdef HAVE_NETINET_IN6_H
15283 #include <netinet/in6.h>
15284 #endif
15285 #ifdef HAVE_SYS_SOCKET_H
15286 #include <sys/socket.h>
15287 #endif
15288 #ifdef _WIN32
15289 #define WIN32_WINNT 0x400
15290 #define _WIN32_WINNT 0x400
15291 #define WIN32_LEAN_AND_MEAN
15292 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15293 #include <winsock.h>
15294 #else
15295 #include <winsock2.h>
15296 #include <ws2tcpip.h>
15297 #endif
15298 #endif
15299
15300 "
15301 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
15302
15303 cat >>confdefs.h <<_ACEOF
15304 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
15305 _ACEOF
15306
15307
15308 fi
15309 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
15310 #ifdef HAVE_NETINET_IN_H
15311 #include <netinet/in.h>
15312 #endif
15313 #ifdef HAVE_NETINET_IN6_H
15314 #include <netinet/in6.h>
15315 #endif
15316 #ifdef HAVE_SYS_SOCKET_H
15317 #include <sys/socket.h>
15318 #endif
15319 #ifdef _WIN32
15320 #define WIN32_WINNT 0x400
15321 #define _WIN32_WINNT 0x400
15322 #define WIN32_LEAN_AND_MEAN
15323 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15324 #include <winsock.h>
15325 #else
15326 #include <winsock2.h>
15327 #include <ws2tcpip.h>
15328 #endif
15329 #endif
15330
15331 "
15332 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
15333
15334 cat >>confdefs.h <<_ACEOF
15335 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15336 _ACEOF
15337
15338
15339 fi
15340 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
15341 #ifdef HAVE_NETINET_IN_H
15342 #include <netinet/in.h>
15343 #endif
15344 #ifdef HAVE_NETINET_IN6_H
15345 #include <netinet/in6.h>
15346 #endif
15347 #ifdef HAVE_SYS_SOCKET_H
15348 #include <sys/socket.h>
15349 #endif
15350 #ifdef _WIN32
15351 #define WIN32_WINNT 0x400
15352 #define _WIN32_WINNT 0x400
15353 #define WIN32_LEAN_AND_MEAN
15354 #if defined(_MSC_VER) && (_MSC_VER < 1300)
15355 #include <winsock.h>
15356 #else
15357 #include <winsock2.h>
15358 #include <ws2tcpip.h>
15359 #endif
15360 #endif
15361
15362 "
15363 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
15364
15365 cat >>confdefs.h <<_ACEOF
15366 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15367 _ACEOF
15368
15369
15370 fi
15371
15372
15373 ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" "
15374 #ifdef HAVE_SYS_SOCKET_H
15375 #include <sys/socket.h>
15376 #endif
15377
15378 "
15379 if test "x$ac_cv_type_struct_so_linger" = xyes; then :
15380
15381 cat >>confdefs.h <<_ACEOF
15382 #define HAVE_STRUCT_SO_LINGER 1
15383 _ACEOF
15384
15385 #define HAVE_SO_LINGER
15386 fi
15387
15388
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
15390 $as_echo_n "checking for socklen_t... " >&6; }
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h.  */
15393
15394  #include <sys/types.h>
15395  #include <sys/socket.h>
15396 int
15397 main ()
15398 {
15399 socklen_t x;
15400   ;
15401   return 0;
15402 }
15403 _ACEOF
15404 if ac_fn_c_try_compile "$LINENO"; then :
15405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15406 $as_echo "yes" >&6; }
15407 else
15408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15409 $as_echo "no" >&6; }
15410
15411 $as_echo "#define socklen_t unsigned int" >>confdefs.h
15412
15413
15414 fi
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
15418 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h.  */
15421
15422 int
15423 main ()
15424 {
15425  const char *cp = __func__;
15426   ;
15427   return 0;
15428 }
15429 _ACEOF
15430 if ac_fn_c_try_compile "$LINENO"; then :
15431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15432 $as_echo "yes" >&6; }
15433 else
15434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15435 $as_echo "no" >&6; }
15436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
15437 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
15438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h.  */
15440
15441 int
15442 main ()
15443 {
15444  const char *cp = __FUNCTION__;
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 if ac_fn_c_try_compile "$LINENO"; then :
15450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15451 $as_echo "yes" >&6; }
15452
15453 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
15454
15455 else
15456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15457 $as_echo "no" >&6; }
15458
15459 $as_echo "#define __func__ __FILE__" >>confdefs.h
15460
15461 fi
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15465
15466
15467 # check if we can compile with pthreads
15468 have_pthreads=no
15469 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
15470
15471
15472
15473 ac_ext=c
15474 ac_cpp='$CPP $CPPFLAGS'
15475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15478
15479 acx_pthread_ok=no
15480
15481 # We used to check for pthread.h first, but this fails if pthread.h
15482 # requires special compiler flags (e.g. on True64 or Sequent).
15483 # It gets checked for in the link test anyway.
15484
15485 # First of all, check if the user has set any of the PTHREAD_LIBS,
15486 # etcetera environment variables, and if threads linking works using
15487 # them:
15488 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15489         save_CFLAGS="$CFLAGS"
15490         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15491         save_LIBS="$LIBS"
15492         LIBS="$PTHREAD_LIBS $LIBS"
15493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15494 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15495         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h.  */
15497
15498 /* Override any GCC internal prototype to avoid an error.
15499    Use char because int might match the return type of a GCC
15500    builtin and then its argument prototype would still apply.  */
15501 #ifdef __cplusplus
15502 extern "C"
15503 #endif
15504 char pthread_join ();
15505 int
15506 main ()
15507 {
15508 return pthread_join ();
15509   ;
15510   return 0;
15511 }
15512 _ACEOF
15513 if ac_fn_c_try_link "$LINENO"; then :
15514   acx_pthread_ok=yes
15515 fi
15516 rm -f core conftest.err conftest.$ac_objext \
15517     conftest$ac_exeext conftest.$ac_ext
15518         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15519 $as_echo "$acx_pthread_ok" >&6; }
15520         if test x"$acx_pthread_ok" = xno; then
15521                 PTHREAD_LIBS=""
15522                 PTHREAD_CFLAGS=""
15523         fi
15524         LIBS="$save_LIBS"
15525         CFLAGS="$save_CFLAGS"
15526 fi
15527
15528 # We must check for the threads library under a number of different
15529 # names; the ordering is very important because some systems
15530 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15531 # libraries is broken (non-POSIX).
15532
15533 # Create a list of thread flags to try.  Items starting with a "-" are
15534 # C compiler flags, and other items are library names, except for "none"
15535 # which indicates that we try without any flags at all, and "pthread-config"
15536 # which is a program returning the flags for the Pth emulation library.
15537
15538 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15539
15540 # The ordering *is* (sometimes) important.  Some notes on the
15541 # individual items follow:
15542
15543 # pthreads: AIX (must check this before -lpthread)
15544 # none: in case threads are in libc; should be tried before -Kthread and
15545 #       other compiler flags to prevent continual compiler warnings
15546 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15547 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15548 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15549 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15550 # -pthreads: Solaris/gcc
15551 # -mthreads: Mingw32/gcc, Lynx/gcc
15552 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15553 #      doesn't hurt to check since this sometimes defines pthreads too;
15554 #      also defines -D_REENTRANT)
15555 #      ... -mt is also the pthreads flag for HP/aCC
15556 # pthread: Linux, etcetera
15557 # --thread-safe: KAI C++
15558 # pthread-config: use pthread-config program (for GNU Pth library)
15559
15560 case "${host_cpu}-${host_os}" in
15561         *solaris*)
15562
15563         # On Solaris (at least, for some versions), libc contains stubbed
15564         # (non-functional) versions of the pthreads routines, so link-based
15565         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
15566         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
15567         # a function called by this macro, so we could check for that, but
15568         # who knows whether they'll stub that too in a future libc.)  So,
15569         # we'll just look for -pthreads and -lpthread first:
15570
15571         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
15572         ;;
15573 esac
15574
15575 if test x"$acx_pthread_ok" = xno; then
15576 for flag in $acx_pthread_flags; do
15577
15578         case $flag in
15579                 none)
15580                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15581 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15582                 ;;
15583
15584                 -*)
15585                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15586 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15587                 PTHREAD_CFLAGS="$flag"
15588                 ;;
15589
15590                 pthread-config)
15591                 # Extract the first word of "pthread-config", so it can be a program name with args.
15592 set dummy pthread-config; ac_word=$2
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15594 $as_echo_n "checking for $ac_word... " >&6; }
15595 if ${ac_cv_prog_acx_pthread_config+:} false; then :
15596   $as_echo_n "(cached) " >&6
15597 else
15598   if test -n "$acx_pthread_config"; then
15599   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
15600 else
15601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15602 for as_dir in $PATH
15603 do
15604   IFS=$as_save_IFS
15605   test -z "$as_dir" && as_dir=.
15606     for ac_exec_ext in '' $ac_executable_extensions; do
15607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15608     ac_cv_prog_acx_pthread_config="yes"
15609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15610     break 2
15611   fi
15612 done
15613   done
15614 IFS=$as_save_IFS
15615
15616   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
15617 fi
15618 fi
15619 acx_pthread_config=$ac_cv_prog_acx_pthread_config
15620 if test -n "$acx_pthread_config"; then
15621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
15622 $as_echo "$acx_pthread_config" >&6; }
15623 else
15624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15625 $as_echo "no" >&6; }
15626 fi
15627
15628
15629                 if test x"$acx_pthread_config" = xno; then continue; fi
15630                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15631                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15632                 ;;
15633
15634                 *)
15635                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15636 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15637                 PTHREAD_LIBS="-l$flag"
15638                 ;;
15639         esac
15640
15641         save_LIBS="$LIBS"
15642         save_CFLAGS="$CFLAGS"
15643         LIBS="$PTHREAD_LIBS $LIBS"
15644         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15645
15646         # Check for various functions.  We must include pthread.h,
15647         # since some functions may be macros.  (On the Sequent, we
15648         # need a special flag -Kthread to make this header compile.)
15649         # We check for pthread_join because it is in -lpthread on IRIX
15650         # while pthread_create is in libc.  We check for pthread_attr_init
15651         # due to DEC craziness with -lpthreads.  We check for
15652         # pthread_cleanup_push because it is one of the few pthread
15653         # functions on Solaris that doesn't have a non-functional libc stub.
15654         # We try pthread_create on general principles.
15655         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15656 /* end confdefs.h.  */
15657 #include <pthread.h>
15658 int
15659 main ()
15660 {
15661 pthread_t th; pthread_join(th, 0);
15662                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15663                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15664   ;
15665   return 0;
15666 }
15667 _ACEOF
15668 if ac_fn_c_try_link "$LINENO"; then :
15669   acx_pthread_ok=yes
15670 fi
15671 rm -f core conftest.err conftest.$ac_objext \
15672     conftest$ac_exeext conftest.$ac_ext
15673
15674         LIBS="$save_LIBS"
15675         CFLAGS="$save_CFLAGS"
15676
15677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
15678 $as_echo "$acx_pthread_ok" >&6; }
15679         if test "x$acx_pthread_ok" = xyes; then
15680                 break;
15681         fi
15682
15683         PTHREAD_LIBS=""
15684         PTHREAD_CFLAGS=""
15685 done
15686 fi
15687
15688 # Various other checks:
15689 if test "x$acx_pthread_ok" = xyes; then
15690         save_LIBS="$LIBS"
15691         LIBS="$PTHREAD_LIBS $LIBS"
15692         save_CFLAGS="$CFLAGS"
15693         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15694
15695         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15696         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15697 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15698         attr_name=unknown
15699         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15700             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h.  */
15702 #include <pthread.h>
15703 int
15704 main ()
15705 {
15706 int attr=$attr; return attr;
15707   ;
15708   return 0;
15709 }
15710 _ACEOF
15711 if ac_fn_c_try_link "$LINENO"; then :
15712   attr_name=$attr; break
15713 fi
15714 rm -f core conftest.err conftest.$ac_objext \
15715     conftest$ac_exeext conftest.$ac_ext
15716         done
15717         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15718 $as_echo "$attr_name" >&6; }
15719         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15720
15721 cat >>confdefs.h <<_ACEOF
15722 #define PTHREAD_CREATE_JOINABLE $attr_name
15723 _ACEOF
15724
15725         fi
15726
15727         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15728 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15729         flag=no
15730         case "${host_cpu}-${host_os}" in
15731             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15732             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15733         esac
15734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15735 $as_echo "${flag}" >&6; }
15736         if test "x$flag" != xno; then
15737             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15738         fi
15739
15740         LIBS="$save_LIBS"
15741         CFLAGS="$save_CFLAGS"
15742
15743         # More AIX lossage: must compile with xlc_r or cc_r
15744         if test x"$GCC" != xyes; then
15745           for ac_prog in xlc_r cc_r
15746 do
15747   # Extract the first word of "$ac_prog", so it can be a program name with args.
15748 set dummy $ac_prog; ac_word=$2
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15750 $as_echo_n "checking for $ac_word... " >&6; }
15751 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15752   $as_echo_n "(cached) " >&6
15753 else
15754   if test -n "$PTHREAD_CC"; then
15755   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15756 else
15757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15759 do
15760   IFS=$as_save_IFS
15761   test -z "$as_dir" && as_dir=.
15762     for ac_exec_ext in '' $ac_executable_extensions; do
15763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15764     ac_cv_prog_PTHREAD_CC="$ac_prog"
15765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15766     break 2
15767   fi
15768 done
15769   done
15770 IFS=$as_save_IFS
15771
15772 fi
15773 fi
15774 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15775 if test -n "$PTHREAD_CC"; then
15776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15777 $as_echo "$PTHREAD_CC" >&6; }
15778 else
15779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15780 $as_echo "no" >&6; }
15781 fi
15782
15783
15784   test -n "$PTHREAD_CC" && break
15785 done
15786 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15787
15788         else
15789           PTHREAD_CC=$CC
15790         fi
15791 else
15792         PTHREAD_CC="$CC"
15793 fi
15794
15795
15796
15797
15798
15799 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15800 if test x"$acx_pthread_ok" = xyes; then
15801
15802
15803 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
15804
15805         have_pthreads=yes
15806         :
15807 else
15808         acx_pthread_ok=no
15809
15810 fi
15811 ac_ext=c
15812 ac_cpp='$CPP $CPPFLAGS'
15813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15816
15817
15818   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15819   # The cast to long int works around a bug in the HP C Compiler
15820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15822 # This bug is HP SR number 8606223364.
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
15824 $as_echo_n "checking size of pthread_t... " >&6; }
15825 if ${ac_cv_sizeof_pthread_t+:} false; then :
15826   $as_echo_n "(cached) " >&6
15827 else
15828   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
15829       #include <pthread.h>
15830
15831 "; then :
15832
15833 else
15834   if test "$ac_cv_type_pthread_t" = yes; then
15835      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15837 as_fn_error 77 "cannot compute sizeof (pthread_t)
15838 See \`config.log' for more details" "$LINENO" 5; }
15839    else
15840      ac_cv_sizeof_pthread_t=0
15841    fi
15842 fi
15843
15844 fi
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
15846 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
15847
15848
15849
15850 cat >>confdefs.h <<_ACEOF
15851 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
15852 _ACEOF
15853
15854
15855 fi
15856  if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
15857   PTHREADS_TRUE=
15858   PTHREADS_FALSE='#'
15859 else
15860   PTHREADS_TRUE='#'
15861   PTHREADS_FALSE=
15862 fi
15863
15864
15865 # check if we should compile locking into the library
15866 if test x$enable_thread_support = xno; then
15867
15868 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
15869
15870 fi
15871
15872 # check if we should hard-code the mm functions.
15873 if test x$enable_malloc_replacement = xno; then
15874
15875 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
15876
15877 fi
15878
15879 # check if we should hard-code debugging out
15880 if test x$enable_debug_mode = xno; then
15881
15882 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
15883
15884 fi
15885
15886 # check if we should enable verbose debugging
15887 if test x$enable_verbose_debug = xyes; then
15888         CFLAGS="$CFLAGS -DUSE_DEBUG"
15889 fi
15890
15891 # check if we have and should use openssl
15892  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
15893   OPENSSL_TRUE=
15894   OPENSSL_FALSE='#'
15895 else
15896   OPENSSL_TRUE='#'
15897   OPENSSL_FALSE=
15898 fi
15899
15900
15901 # Add some more warnings which we use in development but not in the
15902 # released versions.  (Some relevant gcc versions can't handle these.)
15903 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
15904
15905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h.  */
15907
15908 int
15909 main ()
15910 {
15911
15912 #if !defined(__GNUC__) || (__GNUC__ < 4)
15913 #error
15914 #endif
15915   ;
15916   return 0;
15917 }
15918 _ACEOF
15919 if ac_fn_c_try_compile "$LINENO"; then :
15920   have_gcc4=yes
15921 else
15922   have_gcc4=no
15923 fi
15924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15925
15926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15927 /* end confdefs.h.  */
15928
15929 int
15930 main ()
15931 {
15932
15933 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
15934 #error
15935 #endif
15936   ;
15937   return 0;
15938 }
15939 _ACEOF
15940 if ac_fn_c_try_compile "$LINENO"; then :
15941   have_gcc42=yes
15942 else
15943   have_gcc42=no
15944 fi
15945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15946
15947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15948 /* end confdefs.h.  */
15949
15950 int
15951 main ()
15952 {
15953
15954 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
15955 #error
15956 #endif
15957   ;
15958   return 0;
15959 }
15960 _ACEOF
15961 if ac_fn_c_try_compile "$LINENO"; then :
15962   have_gcc45=yes
15963 else
15964   have_gcc45=no
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15967
15968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h.  */
15970
15971 int
15972 main ()
15973 {
15974
15975 #if !defined(__clang__)
15976 #error
15977 #endif
15978   ;
15979   return 0;
15980 }
15981 _ACEOF
15982 if ac_fn_c_try_compile "$LINENO"; then :
15983   have_clang=yes
15984 else
15985   have_clang=no
15986 fi
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988
15989   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"
15990   if test x$enable_gcc_warnings = xyes; then
15991     CFLAGS="$CFLAGS -Werror"
15992   fi
15993
15994   CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
15995
15996   if test x$have_gcc4 = xyes ; then
15997     # These warnings break gcc 3.3.5 and work on gcc 4.0.2
15998     CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
15999     #CFLAGS="$CFLAGS -Wold-style-definition"
16000   fi
16001
16002   if test x$have_gcc42 = xyes ; then
16003     # These warnings break gcc 4.0.2 and work on gcc 4.2
16004     CFLAGS="$CFLAGS -Waddress"
16005   fi
16006
16007   if test x$have_gcc42 = xyes && test x$have_clang = xno; then
16008     # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
16009     CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
16010   fi
16011
16012   if test x$have_gcc45 = xyes ; then
16013     # These warnings work on gcc 4.5
16014     CFLAGS="$CFLAGS -Wlogical-op"
16015   fi
16016
16017   if test x$have_clang = xyes; then
16018     # Disable the unused-function warnings, because these trigger
16019     # for minheap-internal.h related code.
16020     CFLAGS="$CFLAGS -Wno-unused-function"
16021
16022     # clang on macosx emits warnigns for each directory specified which
16023     # isn't "used" generating a lot of build noise (typically 3 warnings
16024     # per file
16025     case "$host_os" in
16026         darwin*)
16027             CFLAGS="$CFLAGS -Qunused-arguments"
16028         ;;
16029     esac
16030   fi
16031
16032 ##This will break the world on some 64-bit architectures
16033 # CFLAGS="$CFLAGS -Winline"
16034
16035 fi
16036
16037 LIBEVENT_GC_SECTIONS=
16038 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
16039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
16040 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
16041 if ${libevent_cv_gc_sections_runs+:} false; then :
16042   $as_echo_n "(cached) " >&6
16043 else
16044
16045                                                                                             origCFLAGS="$CFLAGS"
16046             CFLAGS="$CFLAGS -Wl,--gc-sections"
16047             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h.  */
16049
16050                         #include <stdlib.h>
16051                         #include <stdio.h>
16052
16053 int
16054 main ()
16055 {
16056
16057                         FILE *  fpC;
16058                         char    buf[32];
16059                         size_t  cch;
16060                         int     read_success_once;
16061
16062                         fpC = fopen("conftest.c", "r");
16063                         if (NULL == fpC)
16064                                 exit(1);
16065                         do {
16066                                 cch = fread(buf, sizeof(buf), 1, fpC);
16067                                 read_success_once |= (0 != cch);
16068                         } while (0 != cch);
16069                         if (!read_success_once)
16070                                 exit(2);
16071                         if (!feof(fpC))
16072                                 exit(3);
16073                         if (0 != fclose(fpC))
16074                                 exit(4);
16075
16076                         exit(EXIT_SUCCESS);
16077
16078
16079   ;
16080   return 0;
16081 }
16082 _ACEOF
16083 if ac_fn_c_try_link "$LINENO"; then :
16084
16085                                                                             if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
16086                         libevent_cv_gc_sections_runs=no
16087                     else
16088                         libevent_cv_gc_sections_runs=no
16089                         ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
16090                     fi
16091
16092 else
16093   libevent_cv_gc_sections_runs=no
16094
16095 fi
16096 rm -f core conftest.err conftest.$ac_objext \
16097     conftest$ac_exeext conftest.$ac_ext
16098             CFLAGS="$origCFLAGS"
16099             { origCFLAGS=; unset origCFLAGS;}
16100
16101
16102 fi
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
16104 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
16105     case "$libevent_cv_gc_sections_runs" in
16106      yes)
16107         CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
16108         LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
16109         ;;
16110     esac
16111 fi
16112
16113
16114  if test "$enable_libevent_install" = "yes"; then
16115   INSTALL_LIBEVENT_TRUE=
16116   INSTALL_LIBEVENT_FALSE='#'
16117 else
16118   INSTALL_LIBEVENT_TRUE='#'
16119   INSTALL_LIBEVENT_FALSE=
16120 fi
16121
16122
16123
16124
16125
16126
16127 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
16128
16129 ac_config_files="$ac_config_files Makefile"
16130
16131 cat >confcache <<\_ACEOF
16132 # This file is a shell script that caches the results of configure
16133 # tests run on this system so they can be shared between configure
16134 # scripts and configure runs, see configure's option --config-cache.
16135 # It is not useful on other systems.  If it contains results you don't
16136 # want to keep, you may remove or edit it.
16137 #
16138 # config.status only pays attention to the cache file if you give it
16139 # the --recheck option to rerun configure.
16140 #
16141 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16142 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16143 # following values.
16144
16145 _ACEOF
16146
16147 # The following way of writing the cache mishandles newlines in values,
16148 # but we know of no workaround that is simple, portable, and efficient.
16149 # So, we kill variables containing newlines.
16150 # Ultrix sh set writes to stderr and can't be redirected directly,
16151 # and sets the high bit in the cache file unless we assign to the vars.
16152 (
16153   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16154     eval ac_val=\$$ac_var
16155     case $ac_val in #(
16156     *${as_nl}*)
16157       case $ac_var in #(
16158       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16160       esac
16161       case $ac_var in #(
16162       _ | IFS | as_nl) ;; #(
16163       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16164       *) { eval $ac_var=; unset $ac_var;} ;;
16165       esac ;;
16166     esac
16167   done
16168
16169   (set) 2>&1 |
16170     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16171     *${as_nl}ac_space=\ *)
16172       # `set' does not quote correctly, so add quotes: double-quote
16173       # substitution turns \\\\ into \\, and sed turns \\ into \.
16174       sed -n \
16175         "s/'/'\\\\''/g;
16176           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16177       ;; #(
16178     *)
16179       # `set' quotes correctly as required by POSIX, so do not add quotes.
16180       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16181       ;;
16182     esac |
16183     sort
16184 ) |
16185   sed '
16186      /^ac_cv_env_/b end
16187      t clear
16188      :clear
16189      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16190      t end
16191      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16192      :end' >>confcache
16193 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16194   if test -w "$cache_file"; then
16195     if test "x$cache_file" != "x/dev/null"; then
16196       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16197 $as_echo "$as_me: updating cache $cache_file" >&6;}
16198       if test ! -f "$cache_file" || test -h "$cache_file"; then
16199         cat confcache >"$cache_file"
16200       else
16201         case $cache_file in #(
16202         */* | ?:*)
16203           mv -f confcache "$cache_file"$$ &&
16204           mv -f "$cache_file"$$ "$cache_file" ;; #(
16205         *)
16206           mv -f confcache "$cache_file" ;;
16207         esac
16208       fi
16209     fi
16210   else
16211     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16212 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16213   fi
16214 fi
16215 rm -f confcache
16216
16217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16218 # Let make expand exec_prefix.
16219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16220
16221 DEFS=-DHAVE_CONFIG_H
16222
16223 ac_libobjs=
16224 ac_ltlibobjs=
16225 U=
16226 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16227   # 1. Remove the extension, and $U if already installed.
16228   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16229   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16230   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16231   #    will be set to the directory where LIBOBJS objects are built.
16232   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16233   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16234 done
16235 LIBOBJS=$ac_libobjs
16236
16237 LTLIBOBJS=$ac_ltlibobjs
16238
16239
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16241 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16242    if test -n "$am_sleep_pid"; then
16243      # Hide warnings about reused PIDs.
16244      wait $am_sleep_pid 2>/dev/null
16245    fi
16246    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16247 $as_echo "done" >&6; }
16248  if test -n "$EXEEXT"; then
16249   am__EXEEXT_TRUE=
16250   am__EXEEXT_FALSE='#'
16251 else
16252   am__EXEEXT_TRUE='#'
16253   am__EXEEXT_FALSE=
16254 fi
16255
16256 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16257   as_fn_error $? "conditional \"AMDEP\" was never defined.
16258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16259 fi
16260 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16261   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16263 fi
16264 if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
16265   as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
16266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16267 fi
16268 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
16269   as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
16270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16271 fi
16272 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
16273   as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
16274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16275 fi
16276 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
16277   as_fn_error $? "conditional \"OPENSSL\" was never defined.
16278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16279 fi
16280 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
16281   as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
16282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16283 fi
16284 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
16285   as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
16286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16287 fi
16288 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
16289   as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
16290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16291 fi
16292 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
16293   as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
16294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16295 fi
16296 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
16297   as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
16298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16299 fi
16300 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
16301   as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
16302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16303 fi
16304 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
16305   as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
16306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16307 fi
16308 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
16309   as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
16310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16311 fi
16312 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
16313   as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
16314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16315 fi
16316 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
16317   as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
16318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16319 fi
16320 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
16321   as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
16322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16323 fi
16324 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
16325   as_fn_error $? "conditional \"PTHREADS\" was never defined.
16326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16327 fi
16328 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
16329   as_fn_error $? "conditional \"OPENSSL\" was never defined.
16330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16331 fi
16332 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
16333   as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
16334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16335 fi
16336
16337 : "${CONFIG_STATUS=./config.status}"
16338 ac_write_fail=0
16339 ac_clean_files_save=$ac_clean_files
16340 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16342 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16343 as_write_fail=0
16344 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16345 #! $SHELL
16346 # Generated by $as_me.
16347 # Run this file to recreate the current configuration.
16348 # Compiler output produced by configure, useful for debugging
16349 # configure, is in config.log if it exists.
16350
16351 debug=false
16352 ac_cs_recheck=false
16353 ac_cs_silent=false
16354
16355 SHELL=\${CONFIG_SHELL-$SHELL}
16356 export SHELL
16357 _ASEOF
16358 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16359 ## -------------------- ##
16360 ## M4sh Initialization. ##
16361 ## -------------------- ##
16362
16363 # Be more Bourne compatible
16364 DUALCASE=1; export DUALCASE # for MKS sh
16365 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16366   emulate sh
16367   NULLCMD=:
16368   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16369   # is contrary to our usage.  Disable this feature.
16370   alias -g '${1+"$@"}'='"$@"'
16371   setopt NO_GLOB_SUBST
16372 else
16373   case `(set -o) 2>/dev/null` in #(
16374   *posix*) :
16375     set -o posix ;; #(
16376   *) :
16377      ;;
16378 esac
16379 fi
16380
16381
16382 as_nl='
16383 '
16384 export as_nl
16385 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16386 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16387 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16388 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16389 # Prefer a ksh shell builtin over an external printf program on Solaris,
16390 # but without wasting forks for bash or zsh.
16391 if test -z "$BASH_VERSION$ZSH_VERSION" \
16392     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16393   as_echo='print -r --'
16394   as_echo_n='print -rn --'
16395 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16396   as_echo='printf %s\n'
16397   as_echo_n='printf %s'
16398 else
16399   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16400     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16401     as_echo_n='/usr/ucb/echo -n'
16402   else
16403     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16404     as_echo_n_body='eval
16405       arg=$1;
16406       case $arg in #(
16407       *"$as_nl"*)
16408         expr "X$arg" : "X\\(.*\\)$as_nl";
16409         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16410       esac;
16411       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16412     '
16413     export as_echo_n_body
16414     as_echo_n='sh -c $as_echo_n_body as_echo'
16415   fi
16416   export as_echo_body
16417   as_echo='sh -c $as_echo_body as_echo'
16418 fi
16419
16420 # The user is always right.
16421 if test "${PATH_SEPARATOR+set}" != set; then
16422   PATH_SEPARATOR=:
16423   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16424     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16425       PATH_SEPARATOR=';'
16426   }
16427 fi
16428
16429
16430 # IFS
16431 # We need space, tab and new line, in precisely that order.  Quoting is
16432 # there to prevent editors from complaining about space-tab.
16433 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16434 # splitting by setting IFS to empty value.)
16435 IFS=" ""        $as_nl"
16436
16437 # Find who we are.  Look in the path if we contain no directory separator.
16438 as_myself=
16439 case $0 in #((
16440   *[\\/]* ) as_myself=$0 ;;
16441   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16442 for as_dir in $PATH
16443 do
16444   IFS=$as_save_IFS
16445   test -z "$as_dir" && as_dir=.
16446     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16447   done
16448 IFS=$as_save_IFS
16449
16450      ;;
16451 esac
16452 # We did not find ourselves, most probably we were run as `sh COMMAND'
16453 # in which case we are not to be found in the path.
16454 if test "x$as_myself" = x; then
16455   as_myself=$0
16456 fi
16457 if test ! -f "$as_myself"; then
16458   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16459   exit 1
16460 fi
16461
16462 # Unset variables that we do not need and which cause bugs (e.g. in
16463 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16464 # suppresses any "Segmentation fault" message there.  '((' could
16465 # trigger a bug in pdksh 5.2.14.
16466 for as_var in BASH_ENV ENV MAIL MAILPATH
16467 do eval test x\${$as_var+set} = xset \
16468   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16469 done
16470 PS1='$ '
16471 PS2='> '
16472 PS4='+ '
16473
16474 # NLS nuisances.
16475 LC_ALL=C
16476 export LC_ALL
16477 LANGUAGE=C
16478 export LANGUAGE
16479
16480 # CDPATH.
16481 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16482
16483
16484 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16485 # ----------------------------------------
16486 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16487 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16488 # script with STATUS, using 1 if that was 0.
16489 as_fn_error ()
16490 {
16491   as_status=$1; test $as_status -eq 0 && as_status=1
16492   if test "$4"; then
16493     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16494     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16495   fi
16496   $as_echo "$as_me: error: $2" >&2
16497   as_fn_exit $as_status
16498 } # as_fn_error
16499
16500
16501 # as_fn_set_status STATUS
16502 # -----------------------
16503 # Set $? to STATUS, without forking.
16504 as_fn_set_status ()
16505 {
16506   return $1
16507 } # as_fn_set_status
16508
16509 # as_fn_exit STATUS
16510 # -----------------
16511 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16512 as_fn_exit ()
16513 {
16514   set +e
16515   as_fn_set_status $1
16516   exit $1
16517 } # as_fn_exit
16518
16519 # as_fn_unset VAR
16520 # ---------------
16521 # Portably unset VAR.
16522 as_fn_unset ()
16523 {
16524   { eval $1=; unset $1;}
16525 }
16526 as_unset=as_fn_unset
16527 # as_fn_append VAR VALUE
16528 # ----------------------
16529 # Append the text in VALUE to the end of the definition contained in VAR. Take
16530 # advantage of any shell optimizations that allow amortized linear growth over
16531 # repeated appends, instead of the typical quadratic growth present in naive
16532 # implementations.
16533 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16534   eval 'as_fn_append ()
16535   {
16536     eval $1+=\$2
16537   }'
16538 else
16539   as_fn_append ()
16540   {
16541     eval $1=\$$1\$2
16542   }
16543 fi # as_fn_append
16544
16545 # as_fn_arith ARG...
16546 # ------------------
16547 # Perform arithmetic evaluation on the ARGs, and store the result in the
16548 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16549 # must be portable across $(()) and expr.
16550 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16551   eval 'as_fn_arith ()
16552   {
16553     as_val=$(( $* ))
16554   }'
16555 else
16556   as_fn_arith ()
16557   {
16558     as_val=`expr "$@" || test $? -eq 1`
16559   }
16560 fi # as_fn_arith
16561
16562
16563 if expr a : '\(a\)' >/dev/null 2>&1 &&
16564    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16565   as_expr=expr
16566 else
16567   as_expr=false
16568 fi
16569
16570 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16571   as_basename=basename
16572 else
16573   as_basename=false
16574 fi
16575
16576 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16577   as_dirname=dirname
16578 else
16579   as_dirname=false
16580 fi
16581
16582 as_me=`$as_basename -- "$0" ||
16583 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16584          X"$0" : 'X\(//\)$' \| \
16585          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16586 $as_echo X/"$0" |
16587     sed '/^.*\/\([^/][^/]*\)\/*$/{
16588             s//\1/
16589             q
16590           }
16591           /^X\/\(\/\/\)$/{
16592             s//\1/
16593             q
16594           }
16595           /^X\/\(\/\).*/{
16596             s//\1/
16597             q
16598           }
16599           s/.*/./; q'`
16600
16601 # Avoid depending upon Character Ranges.
16602 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16603 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16604 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16605 as_cr_digits='0123456789'
16606 as_cr_alnum=$as_cr_Letters$as_cr_digits
16607
16608 ECHO_C= ECHO_N= ECHO_T=
16609 case `echo -n x` in #(((((
16610 -n*)
16611   case `echo 'xy\c'` in
16612   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16613   xy)  ECHO_C='\c';;
16614   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16615        ECHO_T=' ';;
16616   esac;;
16617 *)
16618   ECHO_N='-n';;
16619 esac
16620
16621 rm -f conf$$ conf$$.exe conf$$.file
16622 if test -d conf$$.dir; then
16623   rm -f conf$$.dir/conf$$.file
16624 else
16625   rm -f conf$$.dir
16626   mkdir conf$$.dir 2>/dev/null
16627 fi
16628 if (echo >conf$$.file) 2>/dev/null; then
16629   if ln -s conf$$.file conf$$ 2>/dev/null; then
16630     as_ln_s='ln -s'
16631     # ... but there are two gotchas:
16632     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16633     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16634     # In both cases, we have to default to `cp -pR'.
16635     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16636       as_ln_s='cp -pR'
16637   elif ln conf$$.file conf$$ 2>/dev/null; then
16638     as_ln_s=ln
16639   else
16640     as_ln_s='cp -pR'
16641   fi
16642 else
16643   as_ln_s='cp -pR'
16644 fi
16645 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16646 rmdir conf$$.dir 2>/dev/null
16647
16648
16649 # as_fn_mkdir_p
16650 # -------------
16651 # Create "$as_dir" as a directory, including parents if necessary.
16652 as_fn_mkdir_p ()
16653 {
16654
16655   case $as_dir in #(
16656   -*) as_dir=./$as_dir;;
16657   esac
16658   test -d "$as_dir" || eval $as_mkdir_p || {
16659     as_dirs=
16660     while :; do
16661       case $as_dir in #(
16662       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16663       *) as_qdir=$as_dir;;
16664       esac
16665       as_dirs="'$as_qdir' $as_dirs"
16666       as_dir=`$as_dirname -- "$as_dir" ||
16667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16668          X"$as_dir" : 'X\(//\)[^/]' \| \
16669          X"$as_dir" : 'X\(//\)$' \| \
16670          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16671 $as_echo X"$as_dir" |
16672     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16673             s//\1/
16674             q
16675           }
16676           /^X\(\/\/\)[^/].*/{
16677             s//\1/
16678             q
16679           }
16680           /^X\(\/\/\)$/{
16681             s//\1/
16682             q
16683           }
16684           /^X\(\/\).*/{
16685             s//\1/
16686             q
16687           }
16688           s/.*/./; q'`
16689       test -d "$as_dir" && break
16690     done
16691     test -z "$as_dirs" || eval "mkdir $as_dirs"
16692   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16693
16694
16695 } # as_fn_mkdir_p
16696 if mkdir -p . 2>/dev/null; then
16697   as_mkdir_p='mkdir -p "$as_dir"'
16698 else
16699   test -d ./-p && rmdir ./-p
16700   as_mkdir_p=false
16701 fi
16702
16703
16704 # as_fn_executable_p FILE
16705 # -----------------------
16706 # Test if FILE is an executable regular file.
16707 as_fn_executable_p ()
16708 {
16709   test -f "$1" && test -x "$1"
16710 } # as_fn_executable_p
16711 as_test_x='test -x'
16712 as_executable_p=as_fn_executable_p
16713
16714 # Sed expression to map a string onto a valid CPP name.
16715 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16716
16717 # Sed expression to map a string onto a valid variable name.
16718 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16719
16720
16721 exec 6>&1
16722 ## ----------------------------------- ##
16723 ## Main body of $CONFIG_STATUS script. ##
16724 ## ----------------------------------- ##
16725 _ASEOF
16726 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16727
16728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16729 # Save the log message, to keep $0 and so on meaningful, and to
16730 # report actual input values of CONFIG_FILES etc. instead of their
16731 # values after options handling.
16732 ac_log="
16733 This file was extended by libevent $as_me 2.1.5-beta, which was
16734 generated by GNU Autoconf 2.69.  Invocation command line was
16735
16736   CONFIG_FILES    = $CONFIG_FILES
16737   CONFIG_HEADERS  = $CONFIG_HEADERS
16738   CONFIG_LINKS    = $CONFIG_LINKS
16739   CONFIG_COMMANDS = $CONFIG_COMMANDS
16740   $ $0 $@
16741
16742 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16743 "
16744
16745 _ACEOF
16746
16747 case $ac_config_files in *"
16748 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16749 esac
16750
16751 case $ac_config_headers in *"
16752 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16753 esac
16754
16755
16756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16757 # Files that config.status was made for.
16758 config_files="$ac_config_files"
16759 config_headers="$ac_config_headers"
16760 config_commands="$ac_config_commands"
16761
16762 _ACEOF
16763
16764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16765 ac_cs_usage="\
16766 \`$as_me' instantiates files and other configuration actions
16767 from templates according to the current configuration.  Unless the files
16768 and actions are specified as TAGs, all are instantiated by default.
16769
16770 Usage: $0 [OPTION]... [TAG]...
16771
16772   -h, --help       print this help, then exit
16773   -V, --version    print version number and configuration settings, then exit
16774       --config     print configuration, then exit
16775   -q, --quiet, --silent
16776                    do not print progress messages
16777   -d, --debug      don't remove temporary files
16778       --recheck    update $as_me by reconfiguring in the same conditions
16779       --file=FILE[:TEMPLATE]
16780                    instantiate the configuration file FILE
16781       --header=FILE[:TEMPLATE]
16782                    instantiate the configuration header FILE
16783
16784 Configuration files:
16785 $config_files
16786
16787 Configuration headers:
16788 $config_headers
16789
16790 Configuration commands:
16791 $config_commands
16792
16793 Report bugs to the package provider."
16794
16795 _ACEOF
16796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16797 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16798 ac_cs_version="\\
16799 libevent config.status 2.1.5-beta
16800 configured by $0, generated by GNU Autoconf 2.69,
16801   with options \\"\$ac_cs_config\\"
16802
16803 Copyright (C) 2012 Free Software Foundation, Inc.
16804 This config.status script is free software; the Free Software Foundation
16805 gives unlimited permission to copy, distribute and modify it."
16806
16807 ac_pwd='$ac_pwd'
16808 srcdir='$srcdir'
16809 INSTALL='$INSTALL'
16810 MKDIR_P='$MKDIR_P'
16811 AWK='$AWK'
16812 test -n "\$AWK" || AWK=awk
16813 _ACEOF
16814
16815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16816 # The default lists apply if the user does not specify any file.
16817 ac_need_defaults=:
16818 while test $# != 0
16819 do
16820   case $1 in
16821   --*=?*)
16822     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16823     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16824     ac_shift=:
16825     ;;
16826   --*=)
16827     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16828     ac_optarg=
16829     ac_shift=:
16830     ;;
16831   *)
16832     ac_option=$1
16833     ac_optarg=$2
16834     ac_shift=shift
16835     ;;
16836   esac
16837
16838   case $ac_option in
16839   # Handling of the options.
16840   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16841     ac_cs_recheck=: ;;
16842   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16843     $as_echo "$ac_cs_version"; exit ;;
16844   --config | --confi | --conf | --con | --co | --c )
16845     $as_echo "$ac_cs_config"; exit ;;
16846   --debug | --debu | --deb | --de | --d | -d )
16847     debug=: ;;
16848   --file | --fil | --fi | --f )
16849     $ac_shift
16850     case $ac_optarg in
16851     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16852     '') as_fn_error $? "missing file argument" ;;
16853     esac
16854     as_fn_append CONFIG_FILES " '$ac_optarg'"
16855     ac_need_defaults=false;;
16856   --header | --heade | --head | --hea )
16857     $ac_shift
16858     case $ac_optarg in
16859     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16860     esac
16861     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16862     ac_need_defaults=false;;
16863   --he | --h)
16864     # Conflict between --help and --header
16865     as_fn_error $? "ambiguous option: \`$1'
16866 Try \`$0 --help' for more information.";;
16867   --help | --hel | -h )
16868     $as_echo "$ac_cs_usage"; exit ;;
16869   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16870   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16871     ac_cs_silent=: ;;
16872
16873   # This is an error.
16874   -*) as_fn_error $? "unrecognized option: \`$1'
16875 Try \`$0 --help' for more information." ;;
16876
16877   *) as_fn_append ac_config_targets " $1"
16878      ac_need_defaults=false ;;
16879
16880   esac
16881   shift
16882 done
16883
16884 ac_configure_extra_args=
16885
16886 if $ac_cs_silent; then
16887   exec 6>/dev/null
16888   ac_configure_extra_args="$ac_configure_extra_args --silent"
16889 fi
16890
16891 _ACEOF
16892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16893 if \$ac_cs_recheck; then
16894   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16895   shift
16896   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16897   CONFIG_SHELL='$SHELL'
16898   export CONFIG_SHELL
16899   exec "\$@"
16900 fi
16901
16902 _ACEOF
16903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16904 exec 5>>config.log
16905 {
16906   echo
16907   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16908 ## Running $as_me. ##
16909 _ASBOX
16910   $as_echo "$ac_log"
16911 } >&5
16912
16913 _ACEOF
16914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16915 #
16916 # INIT-COMMANDS
16917 #
16918 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16919
16920
16921 # The HP-UX ksh and POSIX shell print the target directory to stdout
16922 # if CDPATH is set.
16923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16924
16925 sed_quote_subst='$sed_quote_subst'
16926 double_quote_subst='$double_quote_subst'
16927 delay_variable_subst='$delay_variable_subst'
16928 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16929 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16930 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16931 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16932 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16933 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16934 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16935 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16936 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16937 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16938 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16939 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16940 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16941 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16942 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16943 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16944 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16945 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16946 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16947 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16948 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16949 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16950 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16951 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16952 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16953 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16954 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16955 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16956 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16957 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16958 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16959 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16960 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16961 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16962 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16963 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16964 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16965 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16966 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16967 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16968 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16969 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16970 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16971 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16972 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16973 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16974 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16975 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16976 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16977 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16978 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16979 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16980 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16981 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16982 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16983 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16984 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16985 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16986 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"`'
16987 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16988 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16989 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16990 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16991 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16992 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16993 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16994 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16995 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16996 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16997 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16998 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16999 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17000 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17001 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17002 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17003 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17004 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17005 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17006 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17007 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17008 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17009 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17010 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17011 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17012 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17013 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17014 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17015 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17016 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17017 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17018 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17019 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17020 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17021 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17022 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17023 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17024 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17025 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17026 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17027 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17028 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17029 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17030 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17031 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17032 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17033 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17034 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17035 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17036 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17037 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17038 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17039 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17040 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17041 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17042 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17043 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17044 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17045 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17046 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17047 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17048 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17049 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17050 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17051 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17052 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17053 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17054 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17055 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17056 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17057 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17058 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17059 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17060 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17061 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17062 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17063
17064 LTCC='$LTCC'
17065 LTCFLAGS='$LTCFLAGS'
17066 compiler='$compiler_DEFAULT'
17067
17068 # A function that is used when there is no print builtin or printf.
17069 func_fallback_echo ()
17070 {
17071   eval 'cat <<_LTECHO_EOF
17072 \$1
17073 _LTECHO_EOF'
17074 }
17075
17076 # Quote evaled strings.
17077 for var in SHELL \
17078 ECHO \
17079 PATH_SEPARATOR \
17080 SED \
17081 GREP \
17082 EGREP \
17083 FGREP \
17084 LD \
17085 NM \
17086 LN_S \
17087 lt_SP2NL \
17088 lt_NL2SP \
17089 reload_flag \
17090 OBJDUMP \
17091 deplibs_check_method \
17092 file_magic_cmd \
17093 file_magic_glob \
17094 want_nocaseglob \
17095 DLLTOOL \
17096 sharedlib_from_linklib_cmd \
17097 AR \
17098 AR_FLAGS \
17099 archiver_list_spec \
17100 STRIP \
17101 RANLIB \
17102 CC \
17103 CFLAGS \
17104 compiler \
17105 lt_cv_sys_global_symbol_pipe \
17106 lt_cv_sys_global_symbol_to_cdecl \
17107 lt_cv_sys_global_symbol_to_import \
17108 lt_cv_sys_global_symbol_to_c_name_address \
17109 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17110 lt_cv_nm_interface \
17111 nm_file_list_spec \
17112 lt_cv_truncate_bin \
17113 lt_prog_compiler_no_builtin_flag \
17114 lt_prog_compiler_pic \
17115 lt_prog_compiler_wl \
17116 lt_prog_compiler_static \
17117 lt_cv_prog_compiler_c_o \
17118 need_locks \
17119 MANIFEST_TOOL \
17120 DSYMUTIL \
17121 NMEDIT \
17122 LIPO \
17123 OTOOL \
17124 OTOOL64 \
17125 shrext_cmds \
17126 export_dynamic_flag_spec \
17127 whole_archive_flag_spec \
17128 compiler_needs_object \
17129 with_gnu_ld \
17130 allow_undefined_flag \
17131 no_undefined_flag \
17132 hardcode_libdir_flag_spec \
17133 hardcode_libdir_separator \
17134 exclude_expsyms \
17135 include_expsyms \
17136 file_list_spec \
17137 variables_saved_for_relink \
17138 libname_spec \
17139 library_names_spec \
17140 soname_spec \
17141 install_override_mode \
17142 finish_eval \
17143 old_striplib \
17144 striplib; do
17145     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17146     *[\\\\\\\`\\"\\\$]*)
17147       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17148       ;;
17149     *)
17150       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17151       ;;
17152     esac
17153 done
17154
17155 # Double-quote double-evaled strings.
17156 for var in reload_cmds \
17157 old_postinstall_cmds \
17158 old_postuninstall_cmds \
17159 old_archive_cmds \
17160 extract_expsyms_cmds \
17161 old_archive_from_new_cmds \
17162 old_archive_from_expsyms_cmds \
17163 archive_cmds \
17164 archive_expsym_cmds \
17165 module_cmds \
17166 module_expsym_cmds \
17167 export_symbols_cmds \
17168 prelink_cmds \
17169 postlink_cmds \
17170 postinstall_cmds \
17171 postuninstall_cmds \
17172 finish_cmds \
17173 sys_lib_search_path_spec \
17174 configure_time_dlsearch_path \
17175 configure_time_lt_sys_library_path; do
17176     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17177     *[\\\\\\\`\\"\\\$]*)
17178       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17179       ;;
17180     *)
17181       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17182       ;;
17183     esac
17184 done
17185
17186 ac_aux_dir='$ac_aux_dir'
17187
17188 # See if we are running on zsh, and set the options that allow our
17189 # commands through without removal of \ escapes INIT.
17190 if test -n "\${ZSH_VERSION+set}"; then
17191    setopt NO_GLOB_SUBST
17192 fi
17193
17194
17195     PACKAGE='$PACKAGE'
17196     VERSION='$VERSION'
17197     RM='$RM'
17198     ofile='$ofile'
17199
17200
17201
17202
17203 _ACEOF
17204
17205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17206
17207 # Handling of arguments.
17208 for ac_config_target in $ac_config_targets
17209 do
17210   case $ac_config_target in
17211     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17212     "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
17213     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17214     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17215     "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
17216     "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
17217     "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
17218     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17219
17220   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17221   esac
17222 done
17223
17224
17225 # If the user did not use the arguments to specify the items to instantiate,
17226 # then the envvar interface is used.  Set only those that are not.
17227 # We use the long form for the default assignment because of an extremely
17228 # bizarre bug on SunOS 4.1.3.
17229 if $ac_need_defaults; then
17230   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17231   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17232   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17233 fi
17234
17235 # Have a temporary directory for convenience.  Make it in the build tree
17236 # simply because there is no reason against having it here, and in addition,
17237 # creating and moving files from /tmp can sometimes cause problems.
17238 # Hook for its removal unless debugging.
17239 # Note that there is a small window in which the directory will not be cleaned:
17240 # after its creation but before its name has been assigned to `$tmp'.
17241 $debug ||
17242 {
17243   tmp= ac_tmp=
17244   trap 'exit_status=$?
17245   : "${ac_tmp:=$tmp}"
17246   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17247 ' 0
17248   trap 'as_fn_exit 1' 1 2 13 15
17249 }
17250 # Create a (secure) tmp directory for tmp files.
17251
17252 {
17253   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17254   test -d "$tmp"
17255 }  ||
17256 {
17257   tmp=./conf$$-$RANDOM
17258   (umask 077 && mkdir "$tmp")
17259 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17260 ac_tmp=$tmp
17261
17262 # Set up the scripts for CONFIG_FILES section.
17263 # No need to generate them if there are no CONFIG_FILES.
17264 # This happens for instance with `./config.status config.h'.
17265 if test -n "$CONFIG_FILES"; then
17266
17267
17268 ac_cr=`echo X | tr X '\015'`
17269 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17270 # But we know of no other shell where ac_cr would be empty at this
17271 # point, so we can use a bashism as a fallback.
17272 if test "x$ac_cr" = x; then
17273   eval ac_cr=\$\'\\r\'
17274 fi
17275 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17276 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17277   ac_cs_awk_cr='\\r'
17278 else
17279   ac_cs_awk_cr=$ac_cr
17280 fi
17281
17282 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17283 _ACEOF
17284
17285
17286 {
17287   echo "cat >conf$$subs.awk <<_ACEOF" &&
17288   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17289   echo "_ACEOF"
17290 } >conf$$subs.sh ||
17291   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17292 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17293 ac_delim='%!_!# '
17294 for ac_last_try in false false false false false :; do
17295   . ./conf$$subs.sh ||
17296     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17297
17298   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17299   if test $ac_delim_n = $ac_delim_num; then
17300     break
17301   elif $ac_last_try; then
17302     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17303   else
17304     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17305   fi
17306 done
17307 rm -f conf$$subs.sh
17308
17309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17310 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17311 _ACEOF
17312 sed -n '
17313 h
17314 s/^/S["/; s/!.*/"]=/
17315 p
17316 g
17317 s/^[^!]*!//
17318 :repl
17319 t repl
17320 s/'"$ac_delim"'$//
17321 t delim
17322 :nl
17323 h
17324 s/\(.\{148\}\)..*/\1/
17325 t more1
17326 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17327 p
17328 n
17329 b repl
17330 :more1
17331 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17332 p
17333 g
17334 s/.\{148\}//
17335 t nl
17336 :delim
17337 h
17338 s/\(.\{148\}\)..*/\1/
17339 t more2
17340 s/["\\]/\\&/g; s/^/"/; s/$/"/
17341 p
17342 b
17343 :more2
17344 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17345 p
17346 g
17347 s/.\{148\}//
17348 t delim
17349 ' <conf$$subs.awk | sed '
17350 /^[^""]/{
17351   N
17352   s/\n//
17353 }
17354 ' >>$CONFIG_STATUS || ac_write_fail=1
17355 rm -f conf$$subs.awk
17356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17357 _ACAWK
17358 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17359   for (key in S) S_is_set[key] = 1
17360   FS = "\a"
17361
17362 }
17363 {
17364   line = $ 0
17365   nfields = split(line, field, "@")
17366   substed = 0
17367   len = length(field[1])
17368   for (i = 2; i < nfields; i++) {
17369     key = field[i]
17370     keylen = length(key)
17371     if (S_is_set[key]) {
17372       value = S[key]
17373       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17374       len += length(value) + length(field[++i])
17375       substed = 1
17376     } else
17377       len += 1 + keylen
17378   }
17379
17380   print line
17381 }
17382
17383 _ACAWK
17384 _ACEOF
17385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17386 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17387   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17388 else
17389   cat
17390 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17391   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17392 _ACEOF
17393
17394 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17395 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17396 # trailing colons and then remove the whole line if VPATH becomes empty
17397 # (actually we leave an empty line to preserve line numbers).
17398 if test "x$srcdir" = x.; then
17399   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17400 h
17401 s///
17402 s/^/:/
17403 s/[      ]*$/:/
17404 s/:\$(srcdir):/:/g
17405 s/:\${srcdir}:/:/g
17406 s/:@srcdir@:/:/g
17407 s/^:*//
17408 s/:*$//
17409 x
17410 s/\(=[   ]*\).*/\1/
17411 G
17412 s/\n//
17413 s/^[^=]*=[       ]*$//
17414 }'
17415 fi
17416
17417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17418 fi # test -n "$CONFIG_FILES"
17419
17420 # Set up the scripts for CONFIG_HEADERS section.
17421 # No need to generate them if there are no CONFIG_HEADERS.
17422 # This happens for instance with `./config.status Makefile'.
17423 if test -n "$CONFIG_HEADERS"; then
17424 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17425 BEGIN {
17426 _ACEOF
17427
17428 # Transform confdefs.h into an awk script `defines.awk', embedded as
17429 # here-document in config.status, that substitutes the proper values into
17430 # config.h.in to produce config.h.
17431
17432 # Create a delimiter string that does not exist in confdefs.h, to ease
17433 # handling of long lines.
17434 ac_delim='%!_!# '
17435 for ac_last_try in false false :; do
17436   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17437   if test -z "$ac_tt"; then
17438     break
17439   elif $ac_last_try; then
17440     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17441   else
17442     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17443   fi
17444 done
17445
17446 # For the awk script, D is an array of macro values keyed by name,
17447 # likewise P contains macro parameters if any.  Preserve backslash
17448 # newline sequences.
17449
17450 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17451 sed -n '
17452 s/.\{148\}/&'"$ac_delim"'/g
17453 t rset
17454 :rset
17455 s/^[     ]*#[    ]*define[       ][      ]*/ /
17456 t def
17457 d
17458 :def
17459 s/\\$//
17460 t bsnl
17461 s/["\\]/\\&/g
17462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17463 D["\1"]=" \3"/p
17464 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17465 d
17466 :bsnl
17467 s/["\\]/\\&/g
17468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17469 D["\1"]=" \3\\\\\\n"\\/p
17470 t cont
17471 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17472 t cont
17473 d
17474 :cont
17475 n
17476 s/.\{148\}/&'"$ac_delim"'/g
17477 t clear
17478 :clear
17479 s/\\$//
17480 t bsnlc
17481 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17482 d
17483 :bsnlc
17484 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17485 b cont
17486 ' <confdefs.h | sed '
17487 s/'"$ac_delim"'/"\\\
17488 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17489
17490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17491   for (key in D) D_is_set[key] = 1
17492   FS = "\a"
17493 }
17494 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17495   line = \$ 0
17496   split(line, arg, " ")
17497   if (arg[1] == "#") {
17498     defundef = arg[2]
17499     mac1 = arg[3]
17500   } else {
17501     defundef = substr(arg[1], 2)
17502     mac1 = arg[2]
17503   }
17504   split(mac1, mac2, "(") #)
17505   macro = mac2[1]
17506   prefix = substr(line, 1, index(line, defundef) - 1)
17507   if (D_is_set[macro]) {
17508     # Preserve the white space surrounding the "#".
17509     print prefix "define", macro P[macro] D[macro]
17510     next
17511   } else {
17512     # Replace #undef with comments.  This is necessary, for example,
17513     # in the case of _POSIX_SOURCE, which is predefined and required
17514     # on some systems where configure will not decide to define it.
17515     if (defundef == "undef") {
17516       print "/*", prefix defundef, macro, "*/"
17517       next
17518     }
17519   }
17520 }
17521 { print }
17522 _ACAWK
17523 _ACEOF
17524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17525   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17526 fi # test -n "$CONFIG_HEADERS"
17527
17528
17529 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17530 shift
17531 for ac_tag
17532 do
17533   case $ac_tag in
17534   :[FHLC]) ac_mode=$ac_tag; continue;;
17535   esac
17536   case $ac_mode$ac_tag in
17537   :[FHL]*:*);;
17538   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17539   :[FH]-) ac_tag=-:-;;
17540   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17541   esac
17542   ac_save_IFS=$IFS
17543   IFS=:
17544   set x $ac_tag
17545   IFS=$ac_save_IFS
17546   shift
17547   ac_file=$1
17548   shift
17549
17550   case $ac_mode in
17551   :L) ac_source=$1;;
17552   :[FH])
17553     ac_file_inputs=
17554     for ac_f
17555     do
17556       case $ac_f in
17557       -) ac_f="$ac_tmp/stdin";;
17558       *) # Look for the file first in the build tree, then in the source tree
17559          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17560          # because $ac_f cannot contain `:'.
17561          test -f "$ac_f" ||
17562            case $ac_f in
17563            [\\/$]*) false;;
17564            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17565            esac ||
17566            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17567       esac
17568       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17569       as_fn_append ac_file_inputs " '$ac_f'"
17570     done
17571
17572     # Let's still pretend it is `configure' which instantiates (i.e., don't
17573     # use $as_me), people would be surprised to read:
17574     #    /* config.h.  Generated by config.status.  */
17575     configure_input='Generated from '`
17576           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17577         `' by configure.'
17578     if test x"$ac_file" != x-; then
17579       configure_input="$ac_file.  $configure_input"
17580       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17581 $as_echo "$as_me: creating $ac_file" >&6;}
17582     fi
17583     # Neutralize special characters interpreted by sed in replacement strings.
17584     case $configure_input in #(
17585     *\&* | *\|* | *\\* )
17586        ac_sed_conf_input=`$as_echo "$configure_input" |
17587        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17588     *) ac_sed_conf_input=$configure_input;;
17589     esac
17590
17591     case $ac_tag in
17592     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17593       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17594     esac
17595     ;;
17596   esac
17597
17598   ac_dir=`$as_dirname -- "$ac_file" ||
17599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17600          X"$ac_file" : 'X\(//\)[^/]' \| \
17601          X"$ac_file" : 'X\(//\)$' \| \
17602          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17603 $as_echo X"$ac_file" |
17604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17605             s//\1/
17606             q
17607           }
17608           /^X\(\/\/\)[^/].*/{
17609             s//\1/
17610             q
17611           }
17612           /^X\(\/\/\)$/{
17613             s//\1/
17614             q
17615           }
17616           /^X\(\/\).*/{
17617             s//\1/
17618             q
17619           }
17620           s/.*/./; q'`
17621   as_dir="$ac_dir"; as_fn_mkdir_p
17622   ac_builddir=.
17623
17624 case "$ac_dir" in
17625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17626 *)
17627   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17628   # A ".." for each directory in $ac_dir_suffix.
17629   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17630   case $ac_top_builddir_sub in
17631   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17632   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17633   esac ;;
17634 esac
17635 ac_abs_top_builddir=$ac_pwd
17636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17637 # for backward compatibility:
17638 ac_top_builddir=$ac_top_build_prefix
17639
17640 case $srcdir in
17641   .)  # We are building in place.
17642     ac_srcdir=.
17643     ac_top_srcdir=$ac_top_builddir_sub
17644     ac_abs_top_srcdir=$ac_pwd ;;
17645   [\\/]* | ?:[\\/]* )  # Absolute name.
17646     ac_srcdir=$srcdir$ac_dir_suffix;
17647     ac_top_srcdir=$srcdir
17648     ac_abs_top_srcdir=$srcdir ;;
17649   *) # Relative name.
17650     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17651     ac_top_srcdir=$ac_top_build_prefix$srcdir
17652     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17653 esac
17654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17655
17656
17657   case $ac_mode in
17658   :F)
17659   #
17660   # CONFIG_FILE
17661   #
17662
17663   case $INSTALL in
17664   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17665   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17666   esac
17667   ac_MKDIR_P=$MKDIR_P
17668   case $MKDIR_P in
17669   [\\/$]* | ?:[\\/]* ) ;;
17670   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17671   esac
17672 _ACEOF
17673
17674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17675 # If the template does not know about datarootdir, expand it.
17676 # FIXME: This hack should be removed a few years after 2.60.
17677 ac_datarootdir_hack=; ac_datarootdir_seen=
17678 ac_sed_dataroot='
17679 /datarootdir/ {
17680   p
17681   q
17682 }
17683 /@datadir@/p
17684 /@docdir@/p
17685 /@infodir@/p
17686 /@localedir@/p
17687 /@mandir@/p'
17688 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17689 *datarootdir*) ac_datarootdir_seen=yes;;
17690 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17691   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17692 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17693 _ACEOF
17694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17695   ac_datarootdir_hack='
17696   s&@datadir@&$datadir&g
17697   s&@docdir@&$docdir&g
17698   s&@infodir@&$infodir&g
17699   s&@localedir@&$localedir&g
17700   s&@mandir@&$mandir&g
17701   s&\\\${datarootdir}&$datarootdir&g' ;;
17702 esac
17703 _ACEOF
17704
17705 # Neutralize VPATH when `$srcdir' = `.'.
17706 # Shell code in configure.ac might set extrasub.
17707 # FIXME: do we really want to maintain this feature?
17708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17709 ac_sed_extra="$ac_vpsub
17710 $extrasub
17711 _ACEOF
17712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17713 :t
17714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17715 s|@configure_input@|$ac_sed_conf_input|;t t
17716 s&@top_builddir@&$ac_top_builddir_sub&;t t
17717 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17718 s&@srcdir@&$ac_srcdir&;t t
17719 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17720 s&@top_srcdir@&$ac_top_srcdir&;t t
17721 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17722 s&@builddir@&$ac_builddir&;t t
17723 s&@abs_builddir@&$ac_abs_builddir&;t t
17724 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17725 s&@INSTALL@&$ac_INSTALL&;t t
17726 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17727 $ac_datarootdir_hack
17728 "
17729 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17730   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17731
17732 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17733   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17734   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17735       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17736   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17737 which seems to be undefined.  Please make sure it is defined" >&5
17738 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17739 which seems to be undefined.  Please make sure it is defined" >&2;}
17740
17741   rm -f "$ac_tmp/stdin"
17742   case $ac_file in
17743   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17744   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17745   esac \
17746   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17747  ;;
17748   :H)
17749   #
17750   # CONFIG_HEADER
17751   #
17752   if test x"$ac_file" != x-; then
17753     {
17754       $as_echo "/* $configure_input  */" \
17755       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17756     } >"$ac_tmp/config.h" \
17757       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17758     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17759       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17760 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17761     else
17762       rm -f "$ac_file"
17763       mv "$ac_tmp/config.h" "$ac_file" \
17764         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17765     fi
17766   else
17767     $as_echo "/* $configure_input  */" \
17768       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17769       || as_fn_error $? "could not create -" "$LINENO" 5
17770   fi
17771 # Compute "$ac_file"'s index in $config_headers.
17772 _am_arg="$ac_file"
17773 _am_stamp_count=1
17774 for _am_header in $config_headers :; do
17775   case $_am_header in
17776     $_am_arg | $_am_arg:* )
17777       break ;;
17778     * )
17779       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17780   esac
17781 done
17782 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17783 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17784          X"$_am_arg" : 'X\(//\)[^/]' \| \
17785          X"$_am_arg" : 'X\(//\)$' \| \
17786          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17787 $as_echo X"$_am_arg" |
17788     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17789             s//\1/
17790             q
17791           }
17792           /^X\(\/\/\)[^/].*/{
17793             s//\1/
17794             q
17795           }
17796           /^X\(\/\/\)$/{
17797             s//\1/
17798             q
17799           }
17800           /^X\(\/\).*/{
17801             s//\1/
17802             q
17803           }
17804           s/.*/./; q'`/stamp-h$_am_stamp_count
17805  ;;
17806
17807   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17808 $as_echo "$as_me: executing $ac_file commands" >&6;}
17809  ;;
17810   esac
17811
17812
17813   case $ac_file$ac_mode in
17814     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17815   # Older Autoconf quotes --file arguments for eval, but not when files
17816   # are listed without --file.  Let's play safe and only enable the eval
17817   # if we detect the quoting.
17818   case $CONFIG_FILES in
17819   *\'*) eval set x "$CONFIG_FILES" ;;
17820   *)   set x $CONFIG_FILES ;;
17821   esac
17822   shift
17823   for mf
17824   do
17825     # Strip MF so we end up with the name of the file.
17826     mf=`echo "$mf" | sed -e 's/:.*$//'`
17827     # Check whether this is an Automake generated Makefile or not.
17828     # We used to match only the files named 'Makefile.in', but
17829     # some people rename them; so instead we look at the file content.
17830     # Grep'ing the first line is not enough: some people post-process
17831     # each Makefile.in and add a new line on top of each file to say so.
17832     # Grep'ing the whole file is not good either: AIX grep has a line
17833     # limit of 2048, but all sed's we know have understand at least 4000.
17834     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17835       dirpart=`$as_dirname -- "$mf" ||
17836 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17837          X"$mf" : 'X\(//\)[^/]' \| \
17838          X"$mf" : 'X\(//\)$' \| \
17839          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17840 $as_echo X"$mf" |
17841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17842             s//\1/
17843             q
17844           }
17845           /^X\(\/\/\)[^/].*/{
17846             s//\1/
17847             q
17848           }
17849           /^X\(\/\/\)$/{
17850             s//\1/
17851             q
17852           }
17853           /^X\(\/\).*/{
17854             s//\1/
17855             q
17856           }
17857           s/.*/./; q'`
17858     else
17859       continue
17860     fi
17861     # Extract the definition of DEPDIR, am__include, and am__quote
17862     # from the Makefile without running 'make'.
17863     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17864     test -z "$DEPDIR" && continue
17865     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17866     test -z "$am__include" && continue
17867     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17868     # Find all dependency output files, they are included files with
17869     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17870     # simplest approach to changing $(DEPDIR) to its actual value in the
17871     # expansion.
17872     for file in `sed -n "
17873       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17874          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17875       # Make sure the directory exists.
17876       test -f "$dirpart/$file" && continue
17877       fdir=`$as_dirname -- "$file" ||
17878 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17879          X"$file" : 'X\(//\)[^/]' \| \
17880          X"$file" : 'X\(//\)$' \| \
17881          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17882 $as_echo X"$file" |
17883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17884             s//\1/
17885             q
17886           }
17887           /^X\(\/\/\)[^/].*/{
17888             s//\1/
17889             q
17890           }
17891           /^X\(\/\/\)$/{
17892             s//\1/
17893             q
17894           }
17895           /^X\(\/\).*/{
17896             s//\1/
17897             q
17898           }
17899           s/.*/./; q'`
17900       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17901       # echo "creating $dirpart/$file"
17902       echo '# dummy' > "$dirpart/$file"
17903     done
17904   done
17905 }
17906  ;;
17907     "libtool":C)
17908
17909     # See if we are running on zsh, and set the options that allow our
17910     # commands through without removal of \ escapes.
17911     if test -n "${ZSH_VERSION+set}"; then
17912       setopt NO_GLOB_SUBST
17913     fi
17914
17915     cfgfile=${ofile}T
17916     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17917     $RM "$cfgfile"
17918
17919     cat <<_LT_EOF >> "$cfgfile"
17920 #! $SHELL
17921 # Generated automatically by $as_me ($PACKAGE) $VERSION
17922 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17923 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17924
17925 # Provide generalized library-building support services.
17926 # Written by Gordon Matzigkeit, 1996
17927
17928 # Copyright (C) 2014 Free Software Foundation, Inc.
17929 # This is free software; see the source for copying conditions.  There is NO
17930 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17931
17932 # GNU Libtool is free software; you can redistribute it and/or modify
17933 # it under the terms of the GNU General Public License as published by
17934 # the Free Software Foundation; either version 2 of of the License, or
17935 # (at your option) any later version.
17936 #
17937 # As a special exception to the GNU General Public License, if you
17938 # distribute this file as part of a program or library that is built
17939 # using GNU Libtool, you may include this file under the  same
17940 # distribution terms that you use for the rest of that program.
17941 #
17942 # GNU Libtool is distributed in the hope that it will be useful, but
17943 # WITHOUT ANY WARRANTY; without even the implied warranty of
17944 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17945 # GNU General Public License for more details.
17946 #
17947 # You should have received a copy of the GNU General Public License
17948 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17949
17950
17951 # The names of the tagged configurations supported by this script.
17952 available_tags=''
17953
17954 # Configured defaults for sys_lib_dlsearch_path munging.
17955 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17956
17957 # ### BEGIN LIBTOOL CONFIG
17958
17959 # Which release of libtool.m4 was used?
17960 macro_version=$macro_version
17961 macro_revision=$macro_revision
17962
17963 # Whether or not to build shared libraries.
17964 build_libtool_libs=$enable_shared
17965
17966 # Whether or not to build static libraries.
17967 build_old_libs=$enable_static
17968
17969 # What type of objects to build.
17970 pic_mode=$pic_mode
17971
17972 # Whether or not to optimize for fast installation.
17973 fast_install=$enable_fast_install
17974
17975 # Shared archive member basename,for filename based shared library versioning on AIX.
17976 shared_archive_member_spec=$shared_archive_member_spec
17977
17978 # Shell to use when invoking shell scripts.
17979 SHELL=$lt_SHELL
17980
17981 # An echo program that protects backslashes.
17982 ECHO=$lt_ECHO
17983
17984 # The PATH separator for the build system.
17985 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17986
17987 # The host system.
17988 host_alias=$host_alias
17989 host=$host
17990 host_os=$host_os
17991
17992 # The build system.
17993 build_alias=$build_alias
17994 build=$build
17995 build_os=$build_os
17996
17997 # A sed program that does not truncate output.
17998 SED=$lt_SED
17999
18000 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18001 Xsed="\$SED -e 1s/^X//"
18002
18003 # A grep program that handles long lines.
18004 GREP=$lt_GREP
18005
18006 # An ERE matcher.
18007 EGREP=$lt_EGREP
18008
18009 # A literal string matcher.
18010 FGREP=$lt_FGREP
18011
18012 # A BSD- or MS-compatible name lister.
18013 NM=$lt_NM
18014
18015 # Whether we need soft or hard links.
18016 LN_S=$lt_LN_S
18017
18018 # What is the maximum length of a command?
18019 max_cmd_len=$max_cmd_len
18020
18021 # Object file suffix (normally "o").
18022 objext=$ac_objext
18023
18024 # Executable file suffix (normally "").
18025 exeext=$exeext
18026
18027 # whether the shell understands "unset".
18028 lt_unset=$lt_unset
18029
18030 # turn spaces into newlines.
18031 SP2NL=$lt_lt_SP2NL
18032
18033 # turn newlines into spaces.
18034 NL2SP=$lt_lt_NL2SP
18035
18036 # convert \$build file names to \$host format.
18037 to_host_file_cmd=$lt_cv_to_host_file_cmd
18038
18039 # convert \$build files to toolchain format.
18040 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18041
18042 # An object symbol dumper.
18043 OBJDUMP=$lt_OBJDUMP
18044
18045 # Method to check whether dependent libraries are shared objects.
18046 deplibs_check_method=$lt_deplibs_check_method
18047
18048 # Command to use when deplibs_check_method = "file_magic".
18049 file_magic_cmd=$lt_file_magic_cmd
18050
18051 # How to find potential files when deplibs_check_method = "file_magic".
18052 file_magic_glob=$lt_file_magic_glob
18053
18054 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18055 want_nocaseglob=$lt_want_nocaseglob
18056
18057 # DLL creation program.
18058 DLLTOOL=$lt_DLLTOOL
18059
18060 # Command to associate shared and link libraries.
18061 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18062
18063 # The archiver.
18064 AR=$lt_AR
18065
18066 # Flags to create an archive.
18067 AR_FLAGS=$lt_AR_FLAGS
18068
18069 # How to feed a file listing to the archiver.
18070 archiver_list_spec=$lt_archiver_list_spec
18071
18072 # A symbol stripping program.
18073 STRIP=$lt_STRIP
18074
18075 # Commands used to install an old-style archive.
18076 RANLIB=$lt_RANLIB
18077 old_postinstall_cmds=$lt_old_postinstall_cmds
18078 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18079
18080 # Whether to use a lock for old archive extraction.
18081 lock_old_archive_extraction=$lock_old_archive_extraction
18082
18083 # A C compiler.
18084 LTCC=$lt_CC
18085
18086 # LTCC compiler flags.
18087 LTCFLAGS=$lt_CFLAGS
18088
18089 # Take the output of nm and produce a listing of raw symbols and C names.
18090 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18091
18092 # Transform the output of nm in a proper C declaration.
18093 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18094
18095 # Transform the output of nm into a list of symbols to manually relocate.
18096 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18097
18098 # Transform the output of nm in a C name address pair.
18099 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18100
18101 # Transform the output of nm in a C name address pair when lib prefix is needed.
18102 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18103
18104 # The name lister interface.
18105 nm_interface=$lt_lt_cv_nm_interface
18106
18107 # Specify filename containing input files for \$NM.
18108 nm_file_list_spec=$lt_nm_file_list_spec
18109
18110 # The root where to search for dependent libraries,and where our libraries should be installed.
18111 lt_sysroot=$lt_sysroot
18112
18113 # Command to truncate a binary pipe.
18114 lt_truncate_bin=$lt_lt_cv_truncate_bin
18115
18116 # The name of the directory that contains temporary libtool files.
18117 objdir=$objdir
18118
18119 # Used to examine libraries when file_magic_cmd begins with "file".
18120 MAGIC_CMD=$MAGIC_CMD
18121
18122 # Must we lock files when doing compilation?
18123 need_locks=$lt_need_locks
18124
18125 # Manifest tool.
18126 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18127
18128 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18129 DSYMUTIL=$lt_DSYMUTIL
18130
18131 # Tool to change global to local symbols on Mac OS X.
18132 NMEDIT=$lt_NMEDIT
18133
18134 # Tool to manipulate fat objects and archives on Mac OS X.
18135 LIPO=$lt_LIPO
18136
18137 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18138 OTOOL=$lt_OTOOL
18139
18140 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18141 OTOOL64=$lt_OTOOL64
18142
18143 # Old archive suffix (normally "a").
18144 libext=$libext
18145
18146 # Shared library suffix (normally ".so").
18147 shrext_cmds=$lt_shrext_cmds
18148
18149 # The commands to extract the exported symbol list from a shared archive.
18150 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18151
18152 # Variables whose values should be saved in libtool wrapper scripts and
18153 # restored at link time.
18154 variables_saved_for_relink=$lt_variables_saved_for_relink
18155
18156 # Do we need the "lib" prefix for modules?
18157 need_lib_prefix=$need_lib_prefix
18158
18159 # Do we need a version for libraries?
18160 need_version=$need_version
18161
18162 # Library versioning type.
18163 version_type=$version_type
18164
18165 # Shared library runtime path variable.
18166 runpath_var=$runpath_var
18167
18168 # Shared library path variable.
18169 shlibpath_var=$shlibpath_var
18170
18171 # Is shlibpath searched before the hard-coded library search path?
18172 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18173
18174 # Format of library name prefix.
18175 libname_spec=$lt_libname_spec
18176
18177 # List of archive names.  First name is the real one, the rest are links.
18178 # The last name is the one that the linker finds with -lNAME
18179 library_names_spec=$lt_library_names_spec
18180
18181 # The coded name of the library, if different from the real name.
18182 soname_spec=$lt_soname_spec
18183
18184 # Permission mode override for installation of shared libraries.
18185 install_override_mode=$lt_install_override_mode
18186
18187 # Command to use after installation of a shared archive.
18188 postinstall_cmds=$lt_postinstall_cmds
18189
18190 # Command to use after uninstallation of a shared archive.
18191 postuninstall_cmds=$lt_postuninstall_cmds
18192
18193 # Commands used to finish a libtool library installation in a directory.
18194 finish_cmds=$lt_finish_cmds
18195
18196 # As "finish_cmds", except a single script fragment to be evaled but
18197 # not shown.
18198 finish_eval=$lt_finish_eval
18199
18200 # Whether we should hardcode library paths into libraries.
18201 hardcode_into_libs=$hardcode_into_libs
18202
18203 # Compile-time system search path for libraries.
18204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18205
18206 # Detected run-time system search path for libraries.
18207 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18208
18209 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18210 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18211
18212 # Whether dlopen is supported.
18213 dlopen_support=$enable_dlopen
18214
18215 # Whether dlopen of programs is supported.
18216 dlopen_self=$enable_dlopen_self
18217
18218 # Whether dlopen of statically linked programs is supported.
18219 dlopen_self_static=$enable_dlopen_self_static
18220
18221 # Commands to strip libraries.
18222 old_striplib=$lt_old_striplib
18223 striplib=$lt_striplib
18224
18225
18226 # The linker used to build libraries.
18227 LD=$lt_LD
18228
18229 # How to create reloadable object files.
18230 reload_flag=$lt_reload_flag
18231 reload_cmds=$lt_reload_cmds
18232
18233 # Commands used to build an old-style archive.
18234 old_archive_cmds=$lt_old_archive_cmds
18235
18236 # A language specific compiler.
18237 CC=$lt_compiler
18238
18239 # Is the compiler the GNU compiler?
18240 with_gcc=$GCC
18241
18242 # Compiler flag to turn off builtin functions.
18243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18244
18245 # Additional compiler flags for building library objects.
18246 pic_flag=$lt_lt_prog_compiler_pic
18247
18248 # How to pass a linker flag through the compiler.
18249 wl=$lt_lt_prog_compiler_wl
18250
18251 # Compiler flag to prevent dynamic linking.
18252 link_static_flag=$lt_lt_prog_compiler_static
18253
18254 # Does compiler simultaneously support -c and -o options?
18255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18256
18257 # Whether or not to add -lc for building shared libraries.
18258 build_libtool_need_lc=$archive_cmds_need_lc
18259
18260 # Whether or not to disallow shared libs when runtime libs are static.
18261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18262
18263 # Compiler flag to allow reflexive dlopens.
18264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18265
18266 # Compiler flag to generate shared objects directly from archives.
18267 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18268
18269 # Whether the compiler copes with passing no objects directly.
18270 compiler_needs_object=$lt_compiler_needs_object
18271
18272 # Create an old-style archive from a shared archive.
18273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18274
18275 # Create a temporary old-style archive to link instead of a shared archive.
18276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18277
18278 # Commands used to build a shared archive.
18279 archive_cmds=$lt_archive_cmds
18280 archive_expsym_cmds=$lt_archive_expsym_cmds
18281
18282 # Commands used to build a loadable module if different from building
18283 # a shared archive.
18284 module_cmds=$lt_module_cmds
18285 module_expsym_cmds=$lt_module_expsym_cmds
18286
18287 # Whether we are building with GNU ld or not.
18288 with_gnu_ld=$lt_with_gnu_ld
18289
18290 # Flag that allows shared libraries with undefined symbols to be built.
18291 allow_undefined_flag=$lt_allow_undefined_flag
18292
18293 # Flag that enforces no undefined symbols.
18294 no_undefined_flag=$lt_no_undefined_flag
18295
18296 # Flag to hardcode \$libdir into a binary during linking.
18297 # This must work even if \$libdir does not exist
18298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18299
18300 # Whether we need a single "-rpath" flag with a separated argument.
18301 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18302
18303 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18304 # DIR into the resulting binary.
18305 hardcode_direct=$hardcode_direct
18306
18307 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18308 # DIR into the resulting binary and the resulting library dependency is
18309 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18310 # library is relocated.
18311 hardcode_direct_absolute=$hardcode_direct_absolute
18312
18313 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18314 # into the resulting binary.
18315 hardcode_minus_L=$hardcode_minus_L
18316
18317 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18318 # into the resulting binary.
18319 hardcode_shlibpath_var=$hardcode_shlibpath_var
18320
18321 # Set to "yes" if building a shared library automatically hardcodes DIR
18322 # into the library and all subsequent libraries and executables linked
18323 # against it.
18324 hardcode_automatic=$hardcode_automatic
18325
18326 # Set to yes if linker adds runtime paths of dependent libraries
18327 # to runtime path list.
18328 inherit_rpath=$inherit_rpath
18329
18330 # Whether libtool must link a program against all its dependency libraries.
18331 link_all_deplibs=$link_all_deplibs
18332
18333 # Set to "yes" if exported symbols are required.
18334 always_export_symbols=$always_export_symbols
18335
18336 # The commands to list exported symbols.
18337 export_symbols_cmds=$lt_export_symbols_cmds
18338
18339 # Symbols that should not be listed in the preloaded symbols.
18340 exclude_expsyms=$lt_exclude_expsyms
18341
18342 # Symbols that must always be exported.
18343 include_expsyms=$lt_include_expsyms
18344
18345 # Commands necessary for linking programs (against libraries) with templates.
18346 prelink_cmds=$lt_prelink_cmds
18347
18348 # Commands necessary for finishing linking programs.
18349 postlink_cmds=$lt_postlink_cmds
18350
18351 # Specify filename containing input files.
18352 file_list_spec=$lt_file_list_spec
18353
18354 # How to hardcode a shared library path into an executable.
18355 hardcode_action=$hardcode_action
18356
18357 # ### END LIBTOOL CONFIG
18358
18359 _LT_EOF
18360
18361     cat <<'_LT_EOF' >> "$cfgfile"
18362
18363 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18364
18365 # func_munge_path_list VARIABLE PATH
18366 # -----------------------------------
18367 # VARIABLE is name of variable containing _space_ separated list of
18368 # directories to be munged by the contents of PATH, which is string
18369 # having a format:
18370 # "DIR[:DIR]:"
18371 #       string "DIR[ DIR]" will be prepended to VARIABLE
18372 # ":DIR[:DIR]"
18373 #       string "DIR[ DIR]" will be appended to VARIABLE
18374 # "DIRP[:DIRP]::[DIRA:]DIRA"
18375 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18376 #       "DIRA[ DIRA]" will be appended to VARIABLE
18377 # "DIR[:DIR]"
18378 #       VARIABLE will be replaced by "DIR[ DIR]"
18379 func_munge_path_list ()
18380 {
18381     case x$2 in
18382     x)
18383         ;;
18384     *:)
18385         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18386         ;;
18387     x:*)
18388         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18389         ;;
18390     *::*)
18391         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18392         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18393         ;;
18394     *)
18395         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18396         ;;
18397     esac
18398 }
18399
18400
18401 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18402 func_cc_basename ()
18403 {
18404     for cc_temp in $*""; do
18405       case $cc_temp in
18406         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18407         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18408         \-*) ;;
18409         *) break;;
18410       esac
18411     done
18412     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18413 }
18414
18415
18416 # ### END FUNCTIONS SHARED WITH CONFIGURE
18417
18418 _LT_EOF
18419
18420   case $host_os in
18421   aix3*)
18422     cat <<\_LT_EOF >> "$cfgfile"
18423 # AIX sometimes has problems with the GCC collect2 program.  For some
18424 # reason, if we set the COLLECT_NAMES environment variable, the problems
18425 # vanish in a puff of smoke.
18426 if test set != "${COLLECT_NAMES+set}"; then
18427   COLLECT_NAMES=
18428   export COLLECT_NAMES
18429 fi
18430 _LT_EOF
18431     ;;
18432   esac
18433
18434
18435 ltmain=$ac_aux_dir/ltmain.sh
18436
18437
18438   # We use sed instead of cat because bash on DJGPP gets confused if
18439   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18440   # text mode, it properly converts lines to CR/LF.  This bash problem
18441   # is reportedly fixed, but why not run on old versions too?
18442   sed '$q' "$ltmain" >> "$cfgfile" \
18443      || (rm -f "$cfgfile"; exit 1)
18444
18445    mv -f "$cfgfile" "$ofile" ||
18446     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18447   chmod +x "$ofile"
18448
18449  ;;
18450
18451   esac
18452 done # for ac_tag
18453
18454
18455 as_fn_exit 0
18456 _ACEOF
18457 ac_clean_files=$ac_clean_files_save
18458
18459 test $ac_write_fail = 0 ||
18460   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18461
18462
18463 # configure is writing to config.log, and then calls config.status.
18464 # config.status does its own redirection, appending to config.log.
18465 # Unfortunately, on DOS this fails, as config.log is still kept open
18466 # by configure, so config.status won't be able to write to it; its
18467 # output is simply discarded.  So we exec the FD to /dev/null,
18468 # effectively closing config.log, so it can be properly (re)opened and
18469 # appended to by config.status.  When coming back to configure, we
18470 # need to make the FD available again.
18471 if test "$no_create" != yes; then
18472   ac_cs_success=:
18473   ac_config_status_args=
18474   test "$silent" = yes &&
18475     ac_config_status_args="$ac_config_status_args --quiet"
18476   exec 5>/dev/null
18477   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18478   exec 5>>config.log
18479   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18480   # would make configure fail if this is the last instruction.
18481   $ac_cs_success || as_fn_exit 1
18482 fi
18483 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18484   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18485 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18486 fi
18487