]> arthur.barton.de Git - netatalk.git/blob - libevent/configure
Import manpages from XML
[netatalk.git] / libevent / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     PATH=/empty FPATH=/empty; export PATH FPATH
182     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
574
575 ac_unique_file="event.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 INSTALL_LIBEVENT_FALSE
616 INSTALL_LIBEVENT_TRUE
617 LIBEVENT_GC_SECTIONS
618 OPENSSL_FALSE
619 OPENSSL_TRUE
620 PTHREADS_FALSE
621 PTHREADS_TRUE
622 PTHREAD_CFLAGS
623 PTHREAD_LIBS
624 PTHREAD_CC
625 acx_pthread_config
626 SIGNAL_SUPPORT_FALSE
627 SIGNAL_SUPPORT_TRUE
628 EVPORT_BACKEND_FALSE
629 EVPORT_BACKEND_TRUE
630 EPOLL_BACKEND_FALSE
631 EPOLL_BACKEND_TRUE
632 LIBOBJS
633 KQUEUE_BACKEND_FALSE
634 KQUEUE_BACKEND_TRUE
635 DEVPOLL_BACKEND_FALSE
636 DEVPOLL_BACKEND_TRUE
637 POLL_BACKEND_FALSE
638 POLL_BACKEND_TRUE
639 SELECT_BACKEND_FALSE
640 SELECT_BACKEND_TRUE
641 BUILD_WITH_NO_UNDEFINED_FALSE
642 BUILD_WITH_NO_UNDEFINED_TRUE
643 BUILD_CYGWIN_FALSE
644 BUILD_CYGWIN_TRUE
645 BUILD_WIN32_FALSE
646 BUILD_WIN32_TRUE
647 OPENSSL_LIBS
648 EV_LIB_GDI
649 EV_LIB_WS32
650 ZLIB_REGRESS_FALSE
651 ZLIB_REGRESS_TRUE
652 ZLIB_LIBS
653 BUILD_REGRESS_FALSE
654 BUILD_REGRESS_TRUE
655 LIBTOOL_DEPS
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 ac_ct_AR
664 AR
665 DLLTOOL
666 OBJDUMP
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 SED
673 LIBTOOL
674 EGREP
675 GREP
676 CPP
677 LN_S
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 am__untar
703 am__tar
704 AMTAR
705 am__leading_dot
706 SET_MAKE
707 AWK
708 mkdir_p
709 MKDIR_P
710 INSTALL_STRIP_PROGRAM
711 STRIP
712 install_sh
713 MAKEINFO
714 AUTOHEADER
715 AUTOMAKE
716 AUTOCONF
717 ACLOCAL
718 VERSION
719 PACKAGE
720 CYGPATH_W
721 am__isrc
722 INSTALL_DATA
723 INSTALL_SCRIPT
724 INSTALL_PROGRAM
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_dependency_tracking
767 enable_gcc_warnings
768 enable_thread_support
769 enable_malloc_replacement
770 enable_openssl
771 enable_debug_mode
772 enable_libevent_install
773 enable_libevent_regress
774 enable_function_sections
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 with_sysroot
781 enable_libtool_lock
782 '
783       ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 includedir='${prefix}/include'
831 oldincludedir='/usr/include'
832 docdir='${datarootdir}/doc/${PACKAGE}'
833 infodir='${datarootdir}/info'
834 htmldir='${docdir}'
835 dvidir='${docdir}'
836 pdfdir='${docdir}'
837 psdir='${docdir}'
838 libdir='${exec_prefix}/lib'
839 localedir='${datarootdir}/locale'
840 mandir='${datarootdir}/man'
841
842 ac_prev=
843 ac_dashdash=
844 for ac_option
845 do
846   # If the previous option needs an argument, assign it.
847   if test -n "$ac_prev"; then
848     eval $ac_prev=\$ac_option
849     ac_prev=
850     continue
851   fi
852
853   case $ac_option in
854   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
855   *=)   ac_optarg= ;;
856   *)    ac_optarg=yes ;;
857   esac
858
859   # Accept the important Cygnus configure options, so we can diagnose typos.
860
861   case $ac_dashdash$ac_option in
862   --)
863     ac_dashdash=yes ;;
864
865   -bindir | --bindir | --bindi | --bind | --bin | --bi)
866     ac_prev=bindir ;;
867   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868     bindir=$ac_optarg ;;
869
870   -build | --build | --buil | --bui | --bu)
871     ac_prev=build_alias ;;
872   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873     build_alias=$ac_optarg ;;
874
875   -cache-file | --cache-file | --cache-fil | --cache-fi \
876   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877     ac_prev=cache_file ;;
878   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880     cache_file=$ac_optarg ;;
881
882   --config-cache | -C)
883     cache_file=config.cache ;;
884
885   -datadir | --datadir | --datadi | --datad)
886     ac_prev=datadir ;;
887   -datadir=* | --datadir=* | --datadi=* | --datad=*)
888     datadir=$ac_optarg ;;
889
890   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891   | --dataroo | --dataro | --datar)
892     ac_prev=datarootdir ;;
893   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895     datarootdir=$ac_optarg ;;
896
897   -disable-* | --disable-*)
898     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899     # Reject names that are not valid shell variable names.
900     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901       as_fn_error $? "invalid feature name: $ac_useropt"
902     ac_useropt_orig=$ac_useropt
903     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904     case $ac_user_opts in
905       *"
906 "enable_$ac_useropt"
907 "*) ;;
908       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909          ac_unrecognized_sep=', ';;
910     esac
911     eval enable_$ac_useropt=no ;;
912
913   -docdir | --docdir | --docdi | --doc | --do)
914     ac_prev=docdir ;;
915   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916     docdir=$ac_optarg ;;
917
918   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919     ac_prev=dvidir ;;
920   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921     dvidir=$ac_optarg ;;
922
923   -enable-* | --enable-*)
924     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927       as_fn_error $? "invalid feature name: $ac_useropt"
928     ac_useropt_orig=$ac_useropt
929     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930     case $ac_user_opts in
931       *"
932 "enable_$ac_useropt"
933 "*) ;;
934       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935          ac_unrecognized_sep=', ';;
936     esac
937     eval enable_$ac_useropt=\$ac_optarg ;;
938
939   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941   | --exec | --exe | --ex)
942     ac_prev=exec_prefix ;;
943   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945   | --exec=* | --exe=* | --ex=*)
946     exec_prefix=$ac_optarg ;;
947
948   -gas | --gas | --ga | --g)
949     # Obsolete; use --with-gas.
950     with_gas=yes ;;
951
952   -help | --help | --hel | --he | -h)
953     ac_init_help=long ;;
954   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955     ac_init_help=recursive ;;
956   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957     ac_init_help=short ;;
958
959   -host | --host | --hos | --ho)
960     ac_prev=host_alias ;;
961   -host=* | --host=* | --hos=* | --ho=*)
962     host_alias=$ac_optarg ;;
963
964   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965     ac_prev=htmldir ;;
966   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967   | --ht=*)
968     htmldir=$ac_optarg ;;
969
970   -includedir | --includedir | --includedi | --included | --include \
971   | --includ | --inclu | --incl | --inc)
972     ac_prev=includedir ;;
973   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974   | --includ=* | --inclu=* | --incl=* | --inc=*)
975     includedir=$ac_optarg ;;
976
977   -infodir | --infodir | --infodi | --infod | --info | --inf)
978     ac_prev=infodir ;;
979   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980     infodir=$ac_optarg ;;
981
982   -libdir | --libdir | --libdi | --libd)
983     ac_prev=libdir ;;
984   -libdir=* | --libdir=* | --libdi=* | --libd=*)
985     libdir=$ac_optarg ;;
986
987   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988   | --libexe | --libex | --libe)
989     ac_prev=libexecdir ;;
990   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991   | --libexe=* | --libex=* | --libe=*)
992     libexecdir=$ac_optarg ;;
993
994   -localedir | --localedir | --localedi | --localed | --locale)
995     ac_prev=localedir ;;
996   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997     localedir=$ac_optarg ;;
998
999   -localstatedir | --localstatedir | --localstatedi | --localstated \
1000   | --localstate | --localstat | --localsta | --localst | --locals)
1001     ac_prev=localstatedir ;;
1002   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004     localstatedir=$ac_optarg ;;
1005
1006   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007     ac_prev=mandir ;;
1008   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009     mandir=$ac_optarg ;;
1010
1011   -nfp | --nfp | --nf)
1012     # Obsolete; use --without-fp.
1013     with_fp=no ;;
1014
1015   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016   | --no-cr | --no-c | -n)
1017     no_create=yes ;;
1018
1019   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021     no_recursion=yes ;;
1022
1023   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025   | --oldin | --oldi | --old | --ol | --o)
1026     ac_prev=oldincludedir ;;
1027   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030     oldincludedir=$ac_optarg ;;
1031
1032   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033     ac_prev=prefix ;;
1034   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035     prefix=$ac_optarg ;;
1036
1037   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038   | --program-pre | --program-pr | --program-p)
1039     ac_prev=program_prefix ;;
1040   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042     program_prefix=$ac_optarg ;;
1043
1044   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045   | --program-suf | --program-su | --program-s)
1046     ac_prev=program_suffix ;;
1047   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049     program_suffix=$ac_optarg ;;
1050
1051   -program-transform-name | --program-transform-name \
1052   | --program-transform-nam | --program-transform-na \
1053   | --program-transform-n | --program-transform- \
1054   | --program-transform | --program-transfor \
1055   | --program-transfo | --program-transf \
1056   | --program-trans | --program-tran \
1057   | --progr-tra | --program-tr | --program-t)
1058     ac_prev=program_transform_name ;;
1059   -program-transform-name=* | --program-transform-name=* \
1060   | --program-transform-nam=* | --program-transform-na=* \
1061   | --program-transform-n=* | --program-transform-=* \
1062   | --program-transform=* | --program-transfor=* \
1063   | --program-transfo=* | --program-transf=* \
1064   | --program-trans=* | --program-tran=* \
1065   | --progr-tra=* | --program-tr=* | --program-t=*)
1066     program_transform_name=$ac_optarg ;;
1067
1068   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069     ac_prev=pdfdir ;;
1070   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071     pdfdir=$ac_optarg ;;
1072
1073   -psdir | --psdir | --psdi | --psd | --ps)
1074     ac_prev=psdir ;;
1075   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076     psdir=$ac_optarg ;;
1077
1078   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079   | -silent | --silent | --silen | --sile | --sil)
1080     silent=yes ;;
1081
1082   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083     ac_prev=sbindir ;;
1084   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085   | --sbi=* | --sb=*)
1086     sbindir=$ac_optarg ;;
1087
1088   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090   | --sharedst | --shareds | --shared | --share | --shar \
1091   | --sha | --sh)
1092     ac_prev=sharedstatedir ;;
1093   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096   | --sha=* | --sh=*)
1097     sharedstatedir=$ac_optarg ;;
1098
1099   -site | --site | --sit)
1100     ac_prev=site ;;
1101   -site=* | --site=* | --sit=*)
1102     site=$ac_optarg ;;
1103
1104   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105     ac_prev=srcdir ;;
1106   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107     srcdir=$ac_optarg ;;
1108
1109   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110   | --syscon | --sysco | --sysc | --sys | --sy)
1111     ac_prev=sysconfdir ;;
1112   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114     sysconfdir=$ac_optarg ;;
1115
1116   -target | --target | --targe | --targ | --tar | --ta | --t)
1117     ac_prev=target_alias ;;
1118   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119     target_alias=$ac_optarg ;;
1120
1121   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122     verbose=yes ;;
1123
1124   -version | --version | --versio | --versi | --vers | -V)
1125     ac_init_version=: ;;
1126
1127   -with-* | --with-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       as_fn_error $? "invalid package name: $ac_useropt"
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval with_$ac_useropt=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=no ;;
1158
1159   --x)
1160     # Obsolete; use --with-x.
1161     with_x=yes ;;
1162
1163   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164   | --x-incl | --x-inc | --x-in | --x-i)
1165     ac_prev=x_includes ;;
1166   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168     x_includes=$ac_optarg ;;
1169
1170   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172     ac_prev=x_libraries ;;
1173   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175     x_libraries=$ac_optarg ;;
1176
1177   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1179     ;;
1180
1181   *=*)
1182     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183     # Reject names that are not valid shell variable names.
1184     case $ac_envvar in #(
1185       '' | [0-9]* | *[!_$as_cr_alnum]* )
1186       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187     esac
1188     eval $ac_envvar=\$ac_optarg
1189     export $ac_envvar ;;
1190
1191   *)
1192     # FIXME: should be removed in autoconf 3.0.
1193     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197     ;;
1198
1199   esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204   as_fn_error $? "missing argument to $ac_option"
1205 fi
1206
1207 if test -n "$ac_unrecognized_opts"; then
1208   case $enable_option_checking in
1209     no) ;;
1210     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212   esac
1213 fi
1214
1215 # Check all directory arguments for consistency.
1216 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217                 datadir sysconfdir sharedstatedir localstatedir includedir \
1218                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219                 libdir localedir mandir
1220 do
1221   eval ac_val=\$$ac_var
1222   # Remove trailing slashes.
1223   case $ac_val in
1224     */ )
1225       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226       eval $ac_var=\$ac_val;;
1227   esac
1228   # Be sure to have absolute directory names.
1229   case $ac_val in
1230     [\\/$]* | ?:[\\/]* )  continue;;
1231     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232   esac
1233   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1235
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1242
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245   if test "x$build_alias" = x; then
1246     cross_compiling=maybe
1247     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1248     If a cross compiler is detected then cross compile mode will be used" >&2
1249   elif test "x$build_alias" != "x$host_alias"; then
1250     cross_compiling=yes
1251   fi
1252 fi
1253
1254 ac_tool_prefix=
1255 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257 test "$silent" = yes && exec 6>/dev/null
1258
1259
1260 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261 ac_ls_di=`ls -di .` &&
1262 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263   as_fn_error $? "working directory cannot be determined"
1264 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265   as_fn_error $? "pwd does not report name of working directory"
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270   ac_srcdir_defaulted=yes
1271   # Try the directory containing this script, then the parent directory.
1272   ac_confdir=`$as_dirname -- "$as_myself" ||
1273 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274          X"$as_myself" : 'X\(//\)[^/]' \| \
1275          X"$as_myself" : 'X\(//\)$' \| \
1276          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277 $as_echo X"$as_myself" |
1278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)[^/].*/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\/\)$/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\).*/{
1291             s//\1/
1292             q
1293           }
1294           s/.*/./; q'`
1295   srcdir=$ac_confdir
1296   if test ! -r "$srcdir/$ac_unique_file"; then
1297     srcdir=..
1298   fi
1299 else
1300   ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1305 fi
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1309         pwd)`
1310 # When building in place, set srcdir=.
1311 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312   srcdir=.
1313 fi
1314 # Remove unnecessary trailing slashes from srcdir.
1315 # Double slashes in file names in object file debugging info
1316 # mess up M-x gdb in Emacs.
1317 case $srcdir in
1318 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 esac
1320 for ac_var in $ac_precious_vars; do
1321   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322   eval ac_env_${ac_var}_value=\$${ac_var}
1323   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 done
1326
1327 #
1328 # Report the --help message.
1329 #
1330 if test "$ac_init_help" = "long"; then
1331   # Omit some internal or obsolete options to make the list less imposing.
1332   # This message is too long to be a string in the A/UX 3.1 sh.
1333   cat <<_ACEOF
1334 \`configure' configures this package to adapt to many kinds of systems.
1335
1336 Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339 VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341 Defaults for the options are specified in brackets.
1342
1343 Configuration:
1344   -h, --help              display this help and exit
1345       --help=short        display options specific to this package
1346       --help=recursive    display the short help of all the included packages
1347   -V, --version           display version information and exit
1348   -q, --quiet, --silent   do not print \`checking ...' messages
1349       --cache-file=FILE   cache test results in FILE [disabled]
1350   -C, --config-cache      alias for \`--cache-file=config.cache'
1351   -n, --no-create         do not create output files
1352       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354 Installation directories:
1355   --prefix=PREFIX         install architecture-independent files in PREFIX
1356                           [$ac_default_prefix]
1357   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                           [PREFIX]
1359
1360 By default, \`make install' will install all the files in
1361 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363 for instance \`--prefix=\$HOME'.
1364
1365 For better control, use the options below.
1366
1367 Fine tuning of the installation directories:
1368   --bindir=DIR            user executables [EPREFIX/bin]
1369   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1370   --libexecdir=DIR        program executables [EPREFIX/libexec]
1371   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1372   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1373   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1374   --libdir=DIR            object code libraries [EPREFIX/lib]
1375   --includedir=DIR        C header files [PREFIX/include]
1376   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1377   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1378   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1379   --infodir=DIR           info documentation [DATAROOTDIR/info]
1380   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1381   --mandir=DIR            man documentation [DATAROOTDIR/man]
1382   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1383   --htmldir=DIR           html documentation [DOCDIR]
1384   --dvidir=DIR            dvi documentation [DOCDIR]
1385   --pdfdir=DIR            pdf documentation [DOCDIR]
1386   --psdir=DIR             ps documentation [DOCDIR]
1387 _ACEOF
1388
1389   cat <<\_ACEOF
1390
1391 Program names:
1392   --program-prefix=PREFIX            prepend PREFIX to installed program names
1393   --program-suffix=SUFFIX            append SUFFIX to installed program names
1394   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1395
1396 System types:
1397   --build=BUILD     configure for building on BUILD [guessed]
1398   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1399 _ACEOF
1400 fi
1401
1402 if test -n "$ac_init_help"; then
1403
1404   cat <<\_ACEOF
1405
1406 Optional Features:
1407   --disable-option-checking  ignore unrecognized --enable/--with options
1408   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1409   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1410   --disable-dependency-tracking  speeds up one-time build
1411   --enable-dependency-tracking   do not reject slow dependency extractors
1412   --enable-gcc-warnings   enable verbose warnings with GCC
1413   --disable-thread-support
1414                           disable support for threading
1415   --disable-malloc-replacement
1416                           disable support for replacing the memory mgt
1417                           functions
1418   --disable-openssl       disable support for openssl encryption
1419   --disable-debug-mode    disable support for running in debug mode
1420   --disable-libevent-install, disable installation of libevent
1421
1422   --disable-libevent-regress, skip regress in make check
1423
1424   --enable-function-sections, make static library allow smaller binaries with --gc-sections
1425
1426   --enable-shared[=PKGS]  build shared libraries [default=yes]
1427   --enable-static[=PKGS]  build static libraries [default=yes]
1428   --enable-fast-install[=PKGS]
1429                           optimize for fast installation [default=yes]
1430   --disable-libtool-lock  avoid locking (might break parallel builds)
1431
1432 Optional Packages:
1433   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435   --with-pic              try to use only PIC/non-PIC objects [default=use
1436                           both]
1437   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1438   --with-sysroot=DIR Search for dependent libraries within DIR
1439                         (or the compiler's sysroot if not specified).
1440
1441 Some influential environment variables:
1442   CC          C compiler command
1443   CFLAGS      C compiler flags
1444   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1445               nonstandard directory <lib dir>
1446   LIBS        libraries to pass to the linker, e.g. -l<library>
1447   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448               you have headers in a nonstandard directory <include dir>
1449   CPP         C preprocessor
1450
1451 Use these variables to override the choices made by `configure' or to help
1452 it to find libraries and programs with nonstandard names/locations.
1453
1454 Report bugs to the package provider.
1455 _ACEOF
1456 ac_status=$?
1457 fi
1458
1459 if test "$ac_init_help" = "recursive"; then
1460   # If there are subdirs, report their specific --help.
1461   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1462     test -d "$ac_dir" ||
1463       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464       continue
1465     ac_builddir=.
1466
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 *)
1470   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1471   # A ".." for each directory in $ac_dir_suffix.
1472   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1473   case $ac_top_builddir_sub in
1474   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476   esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1482
1483 case $srcdir in
1484   .)  # We are building in place.
1485     ac_srcdir=.
1486     ac_top_srcdir=$ac_top_builddir_sub
1487     ac_abs_top_srcdir=$ac_pwd ;;
1488   [\\/]* | ?:[\\/]* )  # Absolute name.
1489     ac_srcdir=$srcdir$ac_dir_suffix;
1490     ac_top_srcdir=$srcdir
1491     ac_abs_top_srcdir=$srcdir ;;
1492   *) # Relative name.
1493     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494     ac_top_srcdir=$ac_top_build_prefix$srcdir
1495     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498
1499     cd "$ac_dir" || { ac_status=$?; continue; }
1500     # Check for guested configure.
1501     if test -f "$ac_srcdir/configure.gnu"; then
1502       echo &&
1503       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504     elif test -f "$ac_srcdir/configure"; then
1505       echo &&
1506       $SHELL "$ac_srcdir/configure" --help=recursive
1507     else
1508       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509     fi || ac_status=$?
1510     cd "$ac_pwd" || { ac_status=$?; break; }
1511   done
1512 fi
1513
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516   cat <<\_ACEOF
1517 configure
1518 generated by GNU Autoconf 2.68
1519
1520 Copyright (C) 2010 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524   exit
1525 fi
1526
1527 ## ------------------------ ##
1528 ## Autoconf initialization. ##
1529 ## ------------------------ ##
1530
1531 # ac_fn_c_try_compile LINENO
1532 # --------------------------
1533 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1534 ac_fn_c_try_compile ()
1535 {
1536   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1537   rm -f conftest.$ac_objext
1538   if { { ac_try="$ac_compile"
1539 case "(($ac_try" in
1540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541   *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545   (eval "$ac_compile") 2>conftest.err
1546   ac_status=$?
1547   if test -s conftest.err; then
1548     grep -v '^ *+' conftest.err >conftest.er1
1549     cat conftest.er1 >&5
1550     mv -f conftest.er1 conftest.err
1551   fi
1552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553   test $ac_status = 0; } && {
1554          test -z "$ac_c_werror_flag" ||
1555          test ! -s conftest.err
1556        } && test -s conftest.$ac_objext; then :
1557   ac_retval=0
1558 else
1559   $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562         ac_retval=1
1563 fi
1564   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1565   as_fn_set_status $ac_retval
1566
1567 } # ac_fn_c_try_compile
1568
1569 # ac_fn_c_try_cpp LINENO
1570 # ----------------------
1571 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_cpp ()
1573 {
1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575   if { { ac_try="$ac_cpp conftest.$ac_ext"
1576 case "(($ac_try" in
1577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578   *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1583   ac_status=$?
1584   if test -s conftest.err; then
1585     grep -v '^ *+' conftest.err >conftest.er1
1586     cat conftest.er1 >&5
1587     mv -f conftest.er1 conftest.err
1588   fi
1589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590   test $ac_status = 0; } > conftest.i && {
1591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592          test ! -s conftest.err
1593        }; then :
1594   ac_retval=0
1595 else
1596   $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1598
1599     ac_retval=1
1600 fi
1601   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602   as_fn_set_status $ac_retval
1603
1604 } # ac_fn_c_try_cpp
1605
1606 # ac_fn_c_try_link LINENO
1607 # -----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded.
1609 ac_fn_c_try_link ()
1610 {
1611   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612   rm -f conftest.$ac_objext conftest$ac_exeext
1613   if { { ac_try="$ac_link"
1614 case "(($ac_try" in
1615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616   *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620   (eval "$ac_link") 2>conftest.err
1621   ac_status=$?
1622   if test -s conftest.err; then
1623     grep -v '^ *+' conftest.err >conftest.er1
1624     cat conftest.er1 >&5
1625     mv -f conftest.er1 conftest.err
1626   fi
1627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628   test $ac_status = 0; } && {
1629          test -z "$ac_c_werror_flag" ||
1630          test ! -s conftest.err
1631        } && test -s conftest$ac_exeext && {
1632          test "$cross_compiling" = yes ||
1633          $as_test_x conftest$ac_exeext
1634        }; then :
1635   ac_retval=0
1636 else
1637   $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640         ac_retval=1
1641 fi
1642   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1643   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1644   # interfere with the next link command; also delete a directory that is
1645   # left behind by Apple's compiler.  We do this before executing the actions.
1646   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648   as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_link
1651
1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists and can be compiled using the include files in
1655 # INCLUDES, setting the cache variable VAR accordingly.
1656 ac_fn_c_check_header_compile ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if eval \${$3+:} false; then :
1662   $as_echo_n "(cached) " >&6
1663 else
1664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h.  */
1666 $4
1667 #include <$2>
1668 _ACEOF
1669 if ac_fn_c_try_compile "$LINENO"; then :
1670   eval "$3=yes"
1671 else
1672   eval "$3=no"
1673 fi
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1675 fi
1676 eval ac_res=\$$3
1677                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680
1681 } # ac_fn_c_check_header_compile
1682
1683 # ac_fn_c_try_run LINENO
1684 # ----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1686 # that executables *can* be run.
1687 ac_fn_c_try_run ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693   *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697   (eval "$ac_link") 2>&5
1698   ac_status=$?
1699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1701   { { case "(($ac_try" in
1702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703   *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707   (eval "$ac_try") 2>&5
1708   ac_status=$?
1709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710   test $ac_status = 0; }; }; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: program exited with status $ac_status" >&5
1714        $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717        ac_retval=$ac_status
1718 fi
1719   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_run
1724
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734   $as_echo_n "(cached) " >&6
1735 else
1736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h.  */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1740 #define $2 innocuous_$2
1741
1742 /* System header to define __stub macros and hopefully few prototypes,
1743     which can conflict with char $2 (); below.
1744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745     <limits.h> exists even on freestanding compilers.  */
1746
1747 #ifdef __STDC__
1748 # include <limits.h>
1749 #else
1750 # include <assert.h>
1751 #endif
1752
1753 #undef $2
1754
1755 /* Override any GCC internal prototype to avoid an error.
1756    Use char because int might match the return type of a GCC
1757    builtin and then its argument prototype would still apply.  */
1758 #ifdef __cplusplus
1759 extern "C"
1760 #endif
1761 char $2 ();
1762 /* The GNU C library defines this for functions which it implements
1763     to always fail with ENOSYS.  Some functions are actually named
1764     something starting with __ and the normal name is an alias.  */
1765 #if defined __stub_$2 || defined __stub___$2
1766 choke me
1767 #endif
1768
1769 int
1770 main ()
1771 {
1772 return $2 ();
1773   ;
1774   return 0;
1775 }
1776 _ACEOF
1777 if ac_fn_c_try_link "$LINENO"; then :
1778   eval "$3=yes"
1779 else
1780   eval "$3=no"
1781 fi
1782 rm -f core conftest.err conftest.$ac_objext \
1783     conftest$ac_exeext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_func
1791
1792 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1793 # -------------------------------------------------------
1794 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1795 # the include files in INCLUDES and setting the cache variable VAR
1796 # accordingly.
1797 ac_fn_c_check_header_mongrel ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   if eval \${$3+:} false; then :
1801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804   $as_echo_n "(cached) " >&6
1805 fi
1806 eval ac_res=\$$3
1807                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 else
1810   # Is the header compilable?
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1812 $as_echo_n "checking $2 usability... " >&6; }
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h.  */
1815 $4
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819   ac_header_compiler=yes
1820 else
1821   ac_header_compiler=no
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1825 $as_echo "$ac_header_compiler" >&6; }
1826
1827 # Is the header present?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1829 $as_echo_n "checking $2 presence... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h.  */
1832 #include <$2>
1833 _ACEOF
1834 if ac_fn_c_try_cpp "$LINENO"; then :
1835   ac_header_preproc=yes
1836 else
1837   ac_header_preproc=no
1838 fi
1839 rm -f conftest.err conftest.i conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1841 $as_echo "$ac_header_preproc" >&6; }
1842
1843 # So?  What about this header?
1844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1845   yes:no: )
1846     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1847 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1849 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1850     ;;
1851   no:yes:* )
1852     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1853 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1855 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1857 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1859 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862     ;;
1863 esac
1864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867   $as_echo_n "(cached) " >&6
1868 else
1869   eval "$3=\$ac_header_compiler"
1870 fi
1871 eval ac_res=\$$3
1872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 fi
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_header_mongrel
1878
1879 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1880 # ---------------------------------------------
1881 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1882 # accordingly.
1883 ac_fn_c_check_decl ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   as_decl_name=`echo $2|sed 's/ *(.*//'`
1887   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1889 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1890 if eval \${$3+:} false; then :
1891   $as_echo_n "(cached) " >&6
1892 else
1893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h.  */
1895 $4
1896 int
1897 main ()
1898 {
1899 #ifndef $as_decl_name
1900 #ifdef __cplusplus
1901   (void) $as_decl_use;
1902 #else
1903   (void) $as_decl_name;
1904 #endif
1905 #endif
1906
1907   ;
1908   return 0;
1909 }
1910 _ACEOF
1911 if ac_fn_c_try_compile "$LINENO"; then :
1912   eval "$3=yes"
1913 else
1914   eval "$3=no"
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 fi
1918 eval ac_res=\$$3
1919                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923 } # ac_fn_c_check_decl
1924
1925 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1926 # --------------------------------------------
1927 # Tries to find the compile-time value of EXPR in a program that includes
1928 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1929 # computed
1930 ac_fn_c_compute_int ()
1931 {
1932   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933   if test "$cross_compiling" = yes; then
1934     # Depending upon the size, compute the lo and hi bounds.
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 $4
1938 int
1939 main ()
1940 {
1941 static int test_array [1 - 2 * !(($2) >= 0)];
1942 test_array [0] = 0
1943
1944   ;
1945   return 0;
1946 }
1947 _ACEOF
1948 if ac_fn_c_try_compile "$LINENO"; then :
1949   ac_lo=0 ac_mid=0
1950   while :; do
1951     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h.  */
1953 $4
1954 int
1955 main ()
1956 {
1957 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1958 test_array [0] = 0
1959
1960   ;
1961   return 0;
1962 }
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965   ac_hi=$ac_mid; break
1966 else
1967   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1968                         if test $ac_lo -le $ac_mid; then
1969                           ac_lo= ac_hi=
1970                           break
1971                         fi
1972                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975   done
1976 else
1977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h.  */
1979 $4
1980 int
1981 main ()
1982 {
1983 static int test_array [1 - 2 * !(($2) < 0)];
1984 test_array [0] = 0
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991   ac_hi=-1 ac_mid=-1
1992   while :; do
1993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h.  */
1995 $4
1996 int
1997 main ()
1998 {
1999 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2000 test_array [0] = 0
2001
2002   ;
2003   return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007   ac_lo=$ac_mid; break
2008 else
2009   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2010                         if test $ac_mid -le $ac_hi; then
2011                           ac_lo= ac_hi=
2012                           break
2013                         fi
2014                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017   done
2018 else
2019   ac_lo= ac_hi=
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 # Binary search between lo and hi bounds.
2025 while test "x$ac_lo" != "x$ac_hi"; do
2026   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h.  */
2029 $4
2030 int
2031 main ()
2032 {
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2034 test_array [0] = 0
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041   ac_hi=$ac_mid
2042 else
2043   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 done
2047 case $ac_lo in #((
2048 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2049 '') ac_retval=1 ;;
2050 esac
2051   else
2052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 $4
2055 static long int longval () { return $2; }
2056 static unsigned long int ulongval () { return $2; }
2057 #include <stdio.h>
2058 #include <stdlib.h>
2059 int
2060 main ()
2061 {
2062
2063   FILE *f = fopen ("conftest.val", "w");
2064   if (! f)
2065     return 1;
2066   if (($2) < 0)
2067     {
2068       long int i = longval ();
2069       if (i != ($2))
2070         return 1;
2071       fprintf (f, "%ld", i);
2072     }
2073   else
2074     {
2075       unsigned long int i = ulongval ();
2076       if (i != ($2))
2077         return 1;
2078       fprintf (f, "%lu", i);
2079     }
2080   /* Do not output a trailing newline, as this causes \r\n confusion
2081      on some platforms.  */
2082   return ferror (f) || fclose (f) != 0;
2083
2084   ;
2085   return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_run "$LINENO"; then :
2089   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2090 else
2091   ac_retval=1
2092 fi
2093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2094   conftest.$ac_objext conftest.beam conftest.$ac_ext
2095 rm -f conftest.val
2096
2097   fi
2098   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099   as_fn_set_status $ac_retval
2100
2101 } # ac_fn_c_compute_int
2102
2103 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2104 # -------------------------------------------
2105 # Tests whether TYPE exists after having included INCLUDES, setting cache
2106 # variable VAR accordingly.
2107 ac_fn_c_check_type ()
2108 {
2109   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113   $as_echo_n "(cached) " >&6
2114 else
2115   eval "$3=no"
2116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h.  */
2118 $4
2119 int
2120 main ()
2121 {
2122 if (sizeof ($2))
2123          return 0;
2124   ;
2125   return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h.  */
2131 $4
2132 int
2133 main ()
2134 {
2135 if (sizeof (($2)))
2136             return 0;
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142
2143 else
2144   eval "$3=yes"
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 eval ac_res=\$$3
2151                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155 } # ac_fn_c_check_type
2156
2157 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2158 # ----------------------------------------------------
2159 # Tries to find if the field MEMBER exists in type AGGR, after including
2160 # INCLUDES, setting cache variable VAR accordingly.
2161 ac_fn_c_check_member ()
2162 {
2163   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2165 $as_echo_n "checking for $2.$3... " >&6; }
2166 if eval \${$4+:} false; then :
2167   $as_echo_n "(cached) " >&6
2168 else
2169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h.  */
2171 $5
2172 int
2173 main ()
2174 {
2175 static $2 ac_aggr;
2176 if (ac_aggr.$3)
2177 return 0;
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183   eval "$4=yes"
2184 else
2185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h.  */
2187 $5
2188 int
2189 main ()
2190 {
2191 static $2 ac_aggr;
2192 if (sizeof ac_aggr.$3)
2193 return 0;
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199   eval "$4=yes"
2200 else
2201   eval "$4=no"
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 fi
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 fi
2207 eval ac_res=\$$4
2208                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211
2212 } # ac_fn_c_check_member
2213 cat >config.log <<_ACEOF
2214 This file contains any messages produced by compilers while
2215 running configure, to aid debugging if configure makes a mistake.
2216
2217 It was created by $as_me, which was
2218 generated by GNU Autoconf 2.68.  Invocation command line was
2219
2220   $ $0 $@
2221
2222 _ACEOF
2223 exec 5>>config.log
2224 {
2225 cat <<_ASUNAME
2226 ## --------- ##
2227 ## Platform. ##
2228 ## --------- ##
2229
2230 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2231 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2232 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2233 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2234 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2235
2236 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2237 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2238
2239 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2240 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2241 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2242 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2243 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2244 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2245 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2246
2247 _ASUNAME
2248
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252   IFS=$as_save_IFS
2253   test -z "$as_dir" && as_dir=.
2254     $as_echo "PATH: $as_dir"
2255   done
2256 IFS=$as_save_IFS
2257
2258 } >&5
2259
2260 cat >&5 <<_ACEOF
2261
2262
2263 ## ----------- ##
2264 ## Core tests. ##
2265 ## ----------- ##
2266
2267 _ACEOF
2268
2269
2270 # Keep a trace of the command line.
2271 # Strip out --no-create and --no-recursion so they do not pile up.
2272 # Strip out --silent because we don't want to record it for future runs.
2273 # Also quote any args containing shell meta-characters.
2274 # Make two passes to allow for proper duplicate-argument suppression.
2275 ac_configure_args=
2276 ac_configure_args0=
2277 ac_configure_args1=
2278 ac_must_keep_next=false
2279 for ac_pass in 1 2
2280 do
2281   for ac_arg
2282   do
2283     case $ac_arg in
2284     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2285     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2286     | -silent | --silent | --silen | --sile | --sil)
2287       continue ;;
2288     *\'*)
2289       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2290     esac
2291     case $ac_pass in
2292     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2293     2)
2294       as_fn_append ac_configure_args1 " '$ac_arg'"
2295       if test $ac_must_keep_next = true; then
2296         ac_must_keep_next=false # Got value, back to normal.
2297       else
2298         case $ac_arg in
2299           *=* | --config-cache | -C | -disable-* | --disable-* \
2300           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2301           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2302           | -with-* | --with-* | -without-* | --without-* | --x)
2303             case "$ac_configure_args0 " in
2304               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2305             esac
2306             ;;
2307           -* ) ac_must_keep_next=true ;;
2308         esac
2309       fi
2310       as_fn_append ac_configure_args " '$ac_arg'"
2311       ;;
2312     esac
2313   done
2314 done
2315 { ac_configure_args0=; unset ac_configure_args0;}
2316 { ac_configure_args1=; unset ac_configure_args1;}
2317
2318 # When interrupted or exit'd, cleanup temporary files, and complete
2319 # config.log.  We remove comments because anyway the quotes in there
2320 # would cause problems or look ugly.
2321 # WARNING: Use '\'' to represent an apostrophe within the trap.
2322 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2323 trap 'exit_status=$?
2324   # Save into config.log some information that might help in debugging.
2325   {
2326     echo
2327
2328     $as_echo "## ---------------- ##
2329 ## Cache variables. ##
2330 ## ---------------- ##"
2331     echo
2332     # The following way of writing the cache mishandles newlines in values,
2333 (
2334   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2335     eval ac_val=\$$ac_var
2336     case $ac_val in #(
2337     *${as_nl}*)
2338       case $ac_var in #(
2339       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2340 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2341       esac
2342       case $ac_var in #(
2343       _ | IFS | as_nl) ;; #(
2344       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2345       *) { eval $ac_var=; unset $ac_var;} ;;
2346       esac ;;
2347     esac
2348   done
2349   (set) 2>&1 |
2350     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2351     *${as_nl}ac_space=\ *)
2352       sed -n \
2353         "s/'\''/'\''\\\\'\'''\''/g;
2354           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2355       ;; #(
2356     *)
2357       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2358       ;;
2359     esac |
2360     sort
2361 )
2362     echo
2363
2364     $as_echo "## ----------------- ##
2365 ## Output variables. ##
2366 ## ----------------- ##"
2367     echo
2368     for ac_var in $ac_subst_vars
2369     do
2370       eval ac_val=\$$ac_var
2371       case $ac_val in
2372       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373       esac
2374       $as_echo "$ac_var='\''$ac_val'\''"
2375     done | sort
2376     echo
2377
2378     if test -n "$ac_subst_files"; then
2379       $as_echo "## ------------------- ##
2380 ## File substitutions. ##
2381 ## ------------------- ##"
2382       echo
2383       for ac_var in $ac_subst_files
2384       do
2385         eval ac_val=\$$ac_var
2386         case $ac_val in
2387         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2388         esac
2389         $as_echo "$ac_var='\''$ac_val'\''"
2390       done | sort
2391       echo
2392     fi
2393
2394     if test -s confdefs.h; then
2395       $as_echo "## ----------- ##
2396 ## confdefs.h. ##
2397 ## ----------- ##"
2398       echo
2399       cat confdefs.h
2400       echo
2401     fi
2402     test "$ac_signal" != 0 &&
2403       $as_echo "$as_me: caught signal $ac_signal"
2404     $as_echo "$as_me: exit $exit_status"
2405   } >&5
2406   rm -f core *.core core.conftest.* &&
2407     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2408     exit $exit_status
2409 ' 0
2410 for ac_signal in 1 2 13 15; do
2411   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2412 done
2413 ac_signal=0
2414
2415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2416 rm -f -r conftest* confdefs.h
2417
2418 $as_echo "/* confdefs.h */" > confdefs.h
2419
2420 # Predefined preprocessor variables.
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_NAME "$PACKAGE_NAME"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_STRING "$PACKAGE_STRING"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_URL "$PACKAGE_URL"
2444 _ACEOF
2445
2446
2447 # Let the site file select an alternate cache file if it wants to.
2448 # Prefer an explicitly selected file to automatically selected ones.
2449 ac_site_file1=NONE
2450 ac_site_file2=NONE
2451 if test -n "$CONFIG_SITE"; then
2452   # We do not want a PATH search for config.site.
2453   case $CONFIG_SITE in #((
2454     -*)  ac_site_file1=./$CONFIG_SITE;;
2455     */*) ac_site_file1=$CONFIG_SITE;;
2456     *)   ac_site_file1=./$CONFIG_SITE;;
2457   esac
2458 elif test "x$prefix" != xNONE; then
2459   ac_site_file1=$prefix/share/config.site
2460   ac_site_file2=$prefix/etc/config.site
2461 else
2462   ac_site_file1=$ac_default_prefix/share/config.site
2463   ac_site_file2=$ac_default_prefix/etc/config.site
2464 fi
2465 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2466 do
2467   test "x$ac_site_file" = xNONE && continue
2468   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2470 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2471     sed 's/^/| /' "$ac_site_file" >&5
2472     . "$ac_site_file" \
2473       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 as_fn_error $? "failed to load site script $ac_site_file
2476 See \`config.log' for more details" "$LINENO" 5; }
2477   fi
2478 done
2479
2480 if test -r "$cache_file"; then
2481   # Some versions of bash will fail to source /dev/null (special files
2482   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2483   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2485 $as_echo "$as_me: loading cache $cache_file" >&6;}
2486     case $cache_file in
2487       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2488       *)                      . "./$cache_file";;
2489     esac
2490   fi
2491 else
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2493 $as_echo "$as_me: creating cache $cache_file" >&6;}
2494   >$cache_file
2495 fi
2496
2497 # Check that the precious variables saved in the cache have kept the same
2498 # value.
2499 ac_cache_corrupted=false
2500 for ac_var in $ac_precious_vars; do
2501   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2502   eval ac_new_set=\$ac_env_${ac_var}_set
2503   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2504   eval ac_new_val=\$ac_env_${ac_var}_value
2505   case $ac_old_set,$ac_new_set in
2506     set,)
2507       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2508 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2509       ac_cache_corrupted=: ;;
2510     ,set)
2511       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2512 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2513       ac_cache_corrupted=: ;;
2514     ,);;
2515     *)
2516       if test "x$ac_old_val" != "x$ac_new_val"; then
2517         # differences in whitespace do not lead to failure.
2518         ac_old_val_w=`echo x $ac_old_val`
2519         ac_new_val_w=`echo x $ac_new_val`
2520         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2521           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2522 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2523           ac_cache_corrupted=:
2524         else
2525           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2526 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2527           eval $ac_var=\$ac_old_val
2528         fi
2529         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2530 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2531         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2532 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2533       fi;;
2534   esac
2535   # Pass precious variables to config.status.
2536   if test "$ac_new_set" = set; then
2537     case $ac_new_val in
2538     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2539     *) ac_arg=$ac_var=$ac_new_val ;;
2540     esac
2541     case " $ac_configure_args " in
2542       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2543       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2544     esac
2545   fi
2546 done
2547 if $ac_cache_corrupted; then
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2551 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2552   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2553 fi
2554 ## -------------------- ##
2555 ## Main body of script. ##
2556 ## -------------------- ##
2557
2558 ac_ext=c
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563
2564
2565
2566
2567
2568 am__api_version='1.11'
2569
2570 ac_aux_dir=
2571 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2572   if test -f "$ac_dir/install-sh"; then
2573     ac_aux_dir=$ac_dir
2574     ac_install_sh="$ac_aux_dir/install-sh -c"
2575     break
2576   elif test -f "$ac_dir/install.sh"; then
2577     ac_aux_dir=$ac_dir
2578     ac_install_sh="$ac_aux_dir/install.sh -c"
2579     break
2580   elif test -f "$ac_dir/shtool"; then
2581     ac_aux_dir=$ac_dir
2582     ac_install_sh="$ac_aux_dir/shtool install -c"
2583     break
2584   fi
2585 done
2586 if test -z "$ac_aux_dir"; then
2587   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2588 fi
2589
2590 # These three variables are undocumented and unsupported,
2591 # and are intended to be withdrawn in a future Autoconf release.
2592 # They can cause serious problems if a builder's source tree is in a directory
2593 # whose full name contains unusual characters.
2594 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2595 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2596 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2597
2598
2599 # Find a good install program.  We prefer a C program (faster),
2600 # so one script is as good as another.  But avoid the broken or
2601 # incompatible versions:
2602 # SysV /etc/install, /usr/sbin/install
2603 # SunOS /usr/etc/install
2604 # IRIX /sbin/install
2605 # AIX /bin/install
2606 # AmigaOS /C/install, which installs bootblocks on floppy discs
2607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2610 # OS/2's system install, which has a completely different semantic
2611 # ./install, which can be erroneously created by make from ./install.sh.
2612 # Reject install programs that cannot install multiple files.
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2614 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2615 if test -z "$INSTALL"; then
2616 if ${ac_cv_path_install+:} false; then :
2617   $as_echo_n "(cached) " >&6
2618 else
2619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 for as_dir in $PATH
2621 do
2622   IFS=$as_save_IFS
2623   test -z "$as_dir" && as_dir=.
2624     # Account for people who put trailing slashes in PATH elements.
2625 case $as_dir/ in #((
2626   ./ | .// | /[cC]/* | \
2627   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2628   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2629   /usr/ucb/* ) ;;
2630   *)
2631     # OSF1 and SCO ODT 3.0 have their own names for install.
2632     # Don't use installbsd from OSF since it installs stuff as root
2633     # by default.
2634     for ac_prog in ginstall scoinst install; do
2635       for ac_exec_ext in '' $ac_executable_extensions; do
2636         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2637           if test $ac_prog = install &&
2638             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2639             # AIX install.  It has an incompatible calling convention.
2640             :
2641           elif test $ac_prog = install &&
2642             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2643             # program-specific install script used by HP pwplus--don't use.
2644             :
2645           else
2646             rm -rf conftest.one conftest.two conftest.dir
2647             echo one > conftest.one
2648             echo two > conftest.two
2649             mkdir conftest.dir
2650             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2651               test -s conftest.one && test -s conftest.two &&
2652               test -s conftest.dir/conftest.one &&
2653               test -s conftest.dir/conftest.two
2654             then
2655               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2656               break 3
2657             fi
2658           fi
2659         fi
2660       done
2661     done
2662     ;;
2663 esac
2664
2665   done
2666 IFS=$as_save_IFS
2667
2668 rm -rf conftest.one conftest.two conftest.dir
2669
2670 fi
2671   if test "${ac_cv_path_install+set}" = set; then
2672     INSTALL=$ac_cv_path_install
2673   else
2674     # As a last resort, use the slow shell script.  Don't cache a
2675     # value for INSTALL within a source directory, because that will
2676     # break other packages using the cache if that directory is
2677     # removed, or if the value is a relative name.
2678     INSTALL=$ac_install_sh
2679   fi
2680 fi
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2682 $as_echo "$INSTALL" >&6; }
2683
2684 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2685 # It thinks the first close brace ends the variable substitution.
2686 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2687
2688 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2689
2690 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2691
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2693 $as_echo_n "checking whether build environment is sane... " >&6; }
2694 # Just in case
2695 sleep 1
2696 echo timestamp > conftest.file
2697 # Reject unsafe characters in $srcdir or the absolute working directory
2698 # name.  Accept space and tab only in the latter.
2699 am_lf='
2700 '
2701 case `pwd` in
2702   *[\\\"\#\$\&\'\`$am_lf]*)
2703     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2704 esac
2705 case $srcdir in
2706   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2707     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2708 esac
2709
2710 # Do `set' in a subshell so we don't clobber the current shell's
2711 # arguments.  Must try -L first in case configure is actually a
2712 # symlink; some systems play weird games with the mod time of symlinks
2713 # (eg FreeBSD returns the mod time of the symlink's containing
2714 # directory).
2715 if (
2716    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2717    if test "$*" = "X"; then
2718       # -L didn't work.
2719       set X `ls -t "$srcdir/configure" conftest.file`
2720    fi
2721    rm -f conftest.file
2722    if test "$*" != "X $srcdir/configure conftest.file" \
2723       && test "$*" != "X conftest.file $srcdir/configure"; then
2724
2725       # If neither matched, then we have a broken ls.  This can happen
2726       # if, for instance, CONFIG_SHELL is bash and it inherits a
2727       # broken ls alias from the environment.  This has actually
2728       # happened.  Such a system could not be considered "sane".
2729       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2730 alias in your environment" "$LINENO" 5
2731    fi
2732
2733    test "$2" = conftest.file
2734    )
2735 then
2736    # Ok.
2737    :
2738 else
2739    as_fn_error $? "newly created file is older than distributed files!
2740 Check your system clock" "$LINENO" 5
2741 fi
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743 $as_echo "yes" >&6; }
2744 test "$program_prefix" != NONE &&
2745   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2746 # Use a double $ so make ignores it.
2747 test "$program_suffix" != NONE &&
2748   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2749 # Double any \ or $.
2750 # By default was `s,x,x', remove it if useless.
2751 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2752 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2753
2754 # expand $ac_aux_dir to an absolute path
2755 am_aux_dir=`cd $ac_aux_dir && pwd`
2756
2757 if test x"${MISSING+set}" != xset; then
2758   case $am_aux_dir in
2759   *\ * | *\     *)
2760     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2761   *)
2762     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2763   esac
2764 fi
2765 # Use eval to expand $SHELL
2766 if eval "$MISSING --run true"; then
2767   am_missing_run="$MISSING --run "
2768 else
2769   am_missing_run=
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2771 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2772 fi
2773
2774 if test x"${install_sh}" != xset; then
2775   case $am_aux_dir in
2776   *\ * | *\     *)
2777     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2778   *)
2779     install_sh="\${SHELL} $am_aux_dir/install-sh"
2780   esac
2781 fi
2782
2783 # Installed binaries are usually stripped using `strip' when the user
2784 # run `make install-strip'.  However `strip' might not be the right
2785 # tool to use in cross-compilation environments, therefore Automake
2786 # will honor the `STRIP' environment variable to overrule this program.
2787 if test "$cross_compiling" != no; then
2788   if test -n "$ac_tool_prefix"; then
2789   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2790 set dummy ${ac_tool_prefix}strip; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_STRIP+:} false; then :
2794   $as_echo_n "(cached) " >&6
2795 else
2796   if test -n "$STRIP"; then
2797   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802   IFS=$as_save_IFS
2803   test -z "$as_dir" && as_dir=.
2804     for ac_exec_ext in '' $ac_executable_extensions; do
2805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2806     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808     break 2
2809   fi
2810 done
2811   done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 STRIP=$ac_cv_prog_STRIP
2817 if test -n "$STRIP"; then
2818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2819 $as_echo "$STRIP" >&6; }
2820 else
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826 fi
2827 if test -z "$ac_cv_prog_STRIP"; then
2828   ac_ct_STRIP=$STRIP
2829   # Extract the first word of "strip", so it can be a program name with args.
2830 set dummy strip; ac_word=$2
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 $as_echo_n "checking for $ac_word... " >&6; }
2833 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2834   $as_echo_n "(cached) " >&6
2835 else
2836   if test -n "$ac_ct_STRIP"; then
2837   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844     for ac_exec_ext in '' $ac_executable_extensions; do
2845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_ac_ct_STRIP="strip"
2847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851   done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2857 if test -n "$ac_ct_STRIP"; then
2858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2859 $as_echo "$ac_ct_STRIP" >&6; }
2860 else
2861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 fi
2864
2865   if test "x$ac_ct_STRIP" = x; then
2866     STRIP=":"
2867   else
2868     case $cross_compiling:$ac_tool_warned in
2869 yes:)
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2872 ac_tool_warned=yes ;;
2873 esac
2874     STRIP=$ac_ct_STRIP
2875   fi
2876 else
2877   STRIP="$ac_cv_prog_STRIP"
2878 fi
2879
2880 fi
2881 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2882
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2884 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2885 if test -z "$MKDIR_P"; then
2886   if ${ac_cv_path_mkdir+:} false; then :
2887   $as_echo_n "(cached) " >&6
2888 else
2889   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894     for ac_prog in mkdir gmkdir; do
2895          for ac_exec_ext in '' $ac_executable_extensions; do
2896            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2897            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2898              'mkdir (GNU coreutils) '* | \
2899              'mkdir (coreutils) '* | \
2900              'mkdir (fileutils) '4.1*)
2901                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2902                break 3;;
2903            esac
2904          done
2905        done
2906   done
2907 IFS=$as_save_IFS
2908
2909 fi
2910
2911   test -d ./--version && rmdir ./--version
2912   if test "${ac_cv_path_mkdir+set}" = set; then
2913     MKDIR_P="$ac_cv_path_mkdir -p"
2914   else
2915     # As a last resort, use the slow shell script.  Don't cache a
2916     # value for MKDIR_P within a source directory, because that will
2917     # break other packages using the cache if that directory is
2918     # removed, or if the value is a relative name.
2919     MKDIR_P="$ac_install_sh -d"
2920   fi
2921 fi
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2923 $as_echo "$MKDIR_P" >&6; }
2924
2925 mkdir_p="$MKDIR_P"
2926 case $mkdir_p in
2927   [\\/$]* | ?:[\\/]*) ;;
2928   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2929 esac
2930
2931 for ac_prog in gawk mawk nawk awk
2932 do
2933   # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AWK+:} false; then :
2938   $as_echo_n "(cached) " >&6
2939 else
2940   if test -n "$AWK"; then
2941   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948     for ac_exec_ext in '' $ac_executable_extensions; do
2949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950     ac_cv_prog_AWK="$ac_prog"
2951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955   done
2956 IFS=$as_save_IFS
2957
2958 fi
2959 fi
2960 AWK=$ac_cv_prog_AWK
2961 if test -n "$AWK"; then
2962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 $as_echo "$AWK" >&6; }
2964 else
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 fi
2968
2969
2970   test -n "$AWK" && break
2971 done
2972
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2975 set x ${MAKE-make}
2976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2978   $as_echo_n "(cached) " >&6
2979 else
2980   cat >conftest.make <<\_ACEOF
2981 SHELL = /bin/sh
2982 all:
2983         @echo '@@@%%%=$(MAKE)=@@@%%%'
2984 _ACEOF
2985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2987   *@@@%%%=?*=@@@%%%*)
2988     eval ac_cv_prog_make_${ac_make}_set=yes;;
2989   *)
2990     eval ac_cv_prog_make_${ac_make}_set=no;;
2991 esac
2992 rm -f conftest.make
2993 fi
2994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
2997   SET_MAKE=
2998 else
2999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001   SET_MAKE="MAKE=${MAKE-make}"
3002 fi
3003
3004 rm -rf .tst 2>/dev/null
3005 mkdir .tst 2>/dev/null
3006 if test -d .tst; then
3007   am__leading_dot=.
3008 else
3009   am__leading_dot=_
3010 fi
3011 rmdir .tst 2>/dev/null
3012
3013 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3014   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3015   # is not polluted with repeated "-I."
3016   am__isrc=' -I$(srcdir)'
3017   # test to see if srcdir already configured
3018   if test -f $srcdir/config.status; then
3019     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3020   fi
3021 fi
3022
3023 # test whether we have cygpath
3024 if test -z "$CYGPATH_W"; then
3025   if (cygpath --version) >/dev/null 2>/dev/null; then
3026     CYGPATH_W='cygpath -w'
3027   else
3028     CYGPATH_W=echo
3029   fi
3030 fi
3031
3032
3033 # Define the identity of the package.
3034  PACKAGE=libevent
3035  VERSION=2.0.17-stable
3036
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE "$PACKAGE"
3040 _ACEOF
3041
3042
3043 cat >>confdefs.h <<_ACEOF
3044 #define VERSION "$VERSION"
3045 _ACEOF
3046
3047 # Some tools Automake needs.
3048
3049 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3050
3051
3052 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3053
3054
3055 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3056
3057
3058 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3059
3060
3061 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3062
3063 # We need awk for the "check" target.  The system "awk" is bad on
3064 # some platforms.
3065 # Always define AMTAR for backward compatibility.
3066
3067 AMTAR=${AMTAR-"${am_missing_run}tar"}
3068
3069 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3070
3071
3072
3073
3074
3075 ac_config_headers="$ac_config_headers config.h"
3076
3077
3078 $as_echo "#define NUMERIC_VERSION 0x02001100" >>confdefs.h
3079
3080
3081 if test "$prefix" = "NONE"; then
3082    prefix="/usr/local"
3083 fi
3084
3085 # Make sure we can run config.sub.
3086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3087   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3088
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3090 $as_echo_n "checking build system type... " >&6; }
3091 if ${ac_cv_build+:} false; then :
3092   $as_echo_n "(cached) " >&6
3093 else
3094   ac_build_alias=$build_alias
3095 test "x$ac_build_alias" = x &&
3096   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3097 test "x$ac_build_alias" = x &&
3098   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3099 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3100   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3101
3102 fi
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3104 $as_echo "$ac_cv_build" >&6; }
3105 case $ac_cv_build in
3106 *-*-*) ;;
3107 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3108 esac
3109 build=$ac_cv_build
3110 ac_save_IFS=$IFS; IFS='-'
3111 set x $ac_cv_build
3112 shift
3113 build_cpu=$1
3114 build_vendor=$2
3115 shift; shift
3116 # Remember, the first character of IFS is used to create $*,
3117 # except with old shells:
3118 build_os=$*
3119 IFS=$ac_save_IFS
3120 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3121
3122
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3124 $as_echo_n "checking host system type... " >&6; }
3125 if ${ac_cv_host+:} false; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   if test "x$host_alias" = x; then
3129   ac_cv_host=$ac_cv_build
3130 else
3131   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3132     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3133 fi
3134
3135 fi
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3137 $as_echo "$ac_cv_host" >&6; }
3138 case $ac_cv_host in
3139 *-*-*) ;;
3140 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3141 esac
3142 host=$ac_cv_host
3143 ac_save_IFS=$IFS; IFS='-'
3144 set x $ac_cv_host
3145 shift
3146 host_cpu=$1
3147 host_vendor=$2
3148 shift; shift
3149 # Remember, the first character of IFS is used to create $*,
3150 # except with old shells:
3151 host_os=$*
3152 IFS=$ac_save_IFS
3153 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3154
3155
3156
3157 case "$host_os" in
3158
3159  osf5*)
3160     CFLAGS="$CFLAGS -D_OSF_SOURCE"
3161     ;;
3162 esac
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 if test -n "$ac_tool_prefix"; then
3170   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if ${ac_cv_prog_CC+:} false; then :
3175   $as_echo_n "(cached) " >&6
3176 else
3177   if test -n "$CC"; then
3178   ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3182 do
3183   IFS=$as_save_IFS
3184   test -z "$as_dir" && as_dir=.
3185     for ac_exec_ext in '' $ac_executable_extensions; do
3186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189     break 2
3190   fi
3191 done
3192   done
3193 IFS=$as_save_IFS
3194
3195 fi
3196 fi
3197 CC=$ac_cv_prog_CC
3198 if test -n "$CC"; then
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3201 else
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3204 fi
3205
3206
3207 fi
3208 if test -z "$ac_cv_prog_CC"; then
3209   ac_ct_CC=$CC
3210   # Extract the first word of "gcc", so it can be a program name with args.
3211 set dummy gcc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   if test -n "$ac_ct_CC"; then
3218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225     for ac_exec_ext in '' $ac_executable_extensions; do
3226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227     ac_cv_prog_ac_ct_CC="gcc"
3228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229     break 2
3230   fi
3231 done
3232   done
3233 IFS=$as_save_IFS
3234
3235 fi
3236 fi
3237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238 if test -n "$ac_ct_CC"; then
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240 $as_echo "$ac_ct_CC" >&6; }
3241 else
3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3244 fi
3245
3246   if test "x$ac_ct_CC" = x; then
3247     CC=""
3248   else
3249     case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255     CC=$ac_ct_CC
3256   fi
3257 else
3258   CC="$ac_cv_prog_CC"
3259 fi
3260
3261 if test -z "$CC"; then
3262           if test -n "$ac_tool_prefix"; then
3263     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}cc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_CC+:} false; then :
3268   $as_echo_n "(cached) " >&6
3269 else
3270   if test -n "$CC"; then
3271   ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276   IFS=$as_save_IFS
3277   test -z "$as_dir" && as_dir=.
3278     for ac_exec_ext in '' $ac_executable_extensions; do
3279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280     ac_cv_prog_CC="${ac_tool_prefix}cc"
3281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282     break 2
3283   fi
3284 done
3285   done
3286 IFS=$as_save_IFS
3287
3288 fi
3289 fi
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 fi
3298
3299
3300   fi
3301 fi
3302 if test -z "$CC"; then
3303   # Extract the first word of "cc", so it can be a program name with args.
3304 set dummy cc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308   $as_echo_n "(cached) " >&6
3309 else
3310   if test -n "$CC"; then
3311   ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313   ac_prog_rejected=no
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3316 do
3317   IFS=$as_save_IFS
3318   test -z "$as_dir" && as_dir=.
3319     for ac_exec_ext in '' $ac_executable_extensions; do
3320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322        ac_prog_rejected=yes
3323        continue
3324      fi
3325     ac_cv_prog_CC="cc"
3326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327     break 2
3328   fi
3329 done
3330   done
3331 IFS=$as_save_IFS
3332
3333 if test $ac_prog_rejected = yes; then
3334   # We found a bogon in the path, so make sure we never use it.
3335   set dummy $ac_cv_prog_CC
3336   shift
3337   if test $# != 0; then
3338     # We chose a different compiler from the bogus one.
3339     # However, it has the same basename, so the bogon will be chosen
3340     # first if we set CC to just the basename; use the full file name.
3341     shift
3342     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3343   fi
3344 fi
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$CC"; then
3359   if test -n "$ac_tool_prefix"; then
3360   for ac_prog in cl.exe
3361   do
3362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_CC+:} false; then :
3367   $as_echo_n "(cached) " >&6
3368 else
3369   if test -n "$CC"; then
3370   ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375   IFS=$as_save_IFS
3376   test -z "$as_dir" && as_dir=.
3377     for ac_exec_ext in '' $ac_executable_extensions; do
3378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381     break 2
3382   fi
3383 done
3384   done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398
3399     test -n "$CC" && break
3400   done
3401 fi
3402 if test -z "$CC"; then
3403   ac_ct_CC=$CC
3404   for ac_prog in cl.exe
3405 do
3406   # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   if test -n "$ac_ct_CC"; then
3414   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419   IFS=$as_save_IFS
3420   test -z "$as_dir" && as_dir=.
3421     for ac_exec_ext in '' $ac_executable_extensions; do
3422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423     ac_cv_prog_ac_ct_CC="$ac_prog"
3424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425     break 2
3426   fi
3427 done
3428   done
3429 IFS=$as_save_IFS
3430
3431 fi
3432 fi
3433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 if test -n "$ac_ct_CC"; then
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 $as_echo "$ac_ct_CC" >&6; }
3437 else
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443   test -n "$ac_ct_CC" && break
3444 done
3445
3446   if test "x$ac_ct_CC" = x; then
3447     CC=""
3448   else
3449     case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455     CC=$ac_ct_CC
3456   fi
3457 fi
3458
3459 fi
3460
3461
3462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error $? "no acceptable C compiler found in \$PATH
3465 See \`config.log' for more details" "$LINENO" 5; }
3466
3467 # Provide some information about the compiler.
3468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3469 set X $ac_compile
3470 ac_compiler=$2
3471 for ac_option in --version -v -V -qversion; do
3472   { { ac_try="$ac_compiler $ac_option >&5"
3473 case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3480   ac_status=$?
3481   if test -s conftest.err; then
3482     sed '10a\
3483 ... rest of stderr output deleted ...
3484          10q' conftest.err >conftest.er1
3485     cat conftest.er1 >&5
3486   fi
3487   rm -f conftest.er1 conftest.err
3488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489   test $ac_status = 0; }
3490 done
3491
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h.  */
3494
3495 int
3496 main ()
3497 {
3498
3499   ;
3500   return 0;
3501 }
3502 _ACEOF
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3507 # of exeext.
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3509 $as_echo_n "checking whether the C compiler works... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3511
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514
3515 ac_rmfiles=
3516 for ac_file in $ac_files
3517 do
3518   case $ac_file in
3519     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521   esac
3522 done
3523 rm -f $ac_rmfiles
3524
3525 if { { ac_try="$ac_link_default"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532   (eval "$ac_link_default") 2>&5
3533   ac_status=$?
3534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535   test $ac_status = 0; }; then :
3536   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3540 # Autoconf.
3541 for ac_file in $ac_files ''
3542 do
3543   test -f "$ac_file" || continue
3544   case $ac_file in
3545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546         ;;
3547     [ab].out )
3548         # We found the default executable, but exeext='' is most
3549         # certainly right.
3550         break;;
3551     *.* )
3552         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553         then :; else
3554            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555         fi
3556         # We set ac_cv_exeext here because the later test for it is not
3557         # safe: cross compilers may not add the suffix if given an `-o'
3558         # argument, so we may need to know it at that point already.
3559         # Even if this section looks crufty: it has the advantage of
3560         # actually working.
3561         break;;
3562     * )
3563         break;;
3564   esac
3565 done
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567
3568 else
3569   ac_file=''
3570 fi
3571 if test -z "$ac_file"; then :
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error 77 "C compiler cannot create executables
3580 See \`config.log' for more details" "$LINENO" 5; }
3581 else
3582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3583 $as_echo "yes" >&6; }
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3586 $as_echo_n "checking for C compiler default output file name... " >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3588 $as_echo "$ac_file" >&6; }
3589 ac_exeext=$ac_cv_exeext
3590
3591 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3592 ac_clean_files=$ac_clean_files_save
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3594 $as_echo_n "checking for suffix of executables... " >&6; }
3595 if { { ac_try="$ac_link"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602   (eval "$ac_link") 2>&5
3603   ac_status=$?
3604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605   test $ac_status = 0; }; then :
3606   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3607 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3608 # work properly (i.e., refer to `conftest.exe'), while it won't with
3609 # `rm'.
3610 for ac_file in conftest.exe conftest conftest.*; do
3611   test -f "$ac_file" || continue
3612   case $ac_file in
3613     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3614     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3615           break;;
3616     * ) break;;
3617   esac
3618 done
3619 else
3620   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3622 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3623 See \`config.log' for more details" "$LINENO" 5; }
3624 fi
3625 rm -f conftest conftest$ac_cv_exeext
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3627 $as_echo "$ac_cv_exeext" >&6; }
3628
3629 rm -f conftest.$ac_ext
3630 EXEEXT=$ac_cv_exeext
3631 ac_exeext=$EXEEXT
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h.  */
3634 #include <stdio.h>
3635 int
3636 main ()
3637 {
3638 FILE *f = fopen ("conftest.out", "w");
3639  return ferror (f) || fclose (f) != 0;
3640
3641   ;
3642   return 0;
3643 }
3644 _ACEOF
3645 ac_clean_files="$ac_clean_files conftest.out"
3646 # Check that the compiler produces executables we can run.  If not, either
3647 # the compiler is broken, or we cross compile.
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3649 $as_echo_n "checking whether we are cross compiling... " >&6; }
3650 if test "$cross_compiling" != yes; then
3651   { { ac_try="$ac_link"
3652 case "(($ac_try" in
3653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654   *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658   (eval "$ac_link") 2>&5
3659   ac_status=$?
3660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661   test $ac_status = 0; }
3662   if { ac_try='./conftest$ac_cv_exeext'
3663   { { case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669   (eval "$ac_try") 2>&5
3670   ac_status=$?
3671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672   test $ac_status = 0; }; }; then
3673     cross_compiling=no
3674   else
3675     if test "$cross_compiling" = maybe; then
3676         cross_compiling=yes
3677     else
3678         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680 as_fn_error $? "cannot run C compiled programs.
3681 If you meant to cross compile, use \`--host'.
3682 See \`config.log' for more details" "$LINENO" 5; }
3683     fi
3684   fi
3685 fi
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3687 $as_echo "$cross_compiling" >&6; }
3688
3689 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3690 ac_clean_files=$ac_clean_files_save
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3692 $as_echo_n "checking for suffix of object files... " >&6; }
3693 if ${ac_cv_objext+:} false; then :
3694   $as_echo_n "(cached) " >&6
3695 else
3696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h.  */
3698
3699 int
3700 main ()
3701 {
3702
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 rm -f conftest.o conftest.obj
3708 if { { ac_try="$ac_compile"
3709 case "(($ac_try" in
3710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711   *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715   (eval "$ac_compile") 2>&5
3716   ac_status=$?
3717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718   test $ac_status = 0; }; then :
3719   for ac_file in conftest.o conftest.obj conftest.*; do
3720   test -f "$ac_file" || continue;
3721   case $ac_file in
3722     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3723     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3724        break;;
3725   esac
3726 done
3727 else
3728   $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error $? "cannot compute suffix of object files: cannot compile
3734 See \`config.log' for more details" "$LINENO" 5; }
3735 fi
3736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3739 $as_echo "$ac_cv_objext" >&6; }
3740 OBJEXT=$ac_cv_objext
3741 ac_objext=$OBJEXT
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3743 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3744 if ${ac_cv_c_compiler_gnu+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h.  */
3749
3750 int
3751 main ()
3752 {
3753 #ifndef __GNUC__
3754        choke me
3755 #endif
3756
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 if ac_fn_c_try_compile "$LINENO"; then :
3762   ac_compiler_gnu=yes
3763 else
3764   ac_compiler_gnu=no
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3768
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3771 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3772 if test $ac_compiler_gnu = yes; then
3773   GCC=yes
3774 else
3775   GCC=
3776 fi
3777 ac_test_CFLAGS=${CFLAGS+set}
3778 ac_save_CFLAGS=$CFLAGS
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3780 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3781 if ${ac_cv_prog_cc_g+:} false; then :
3782   $as_echo_n "(cached) " >&6
3783 else
3784   ac_save_c_werror_flag=$ac_c_werror_flag
3785    ac_c_werror_flag=yes
3786    ac_cv_prog_cc_g=no
3787    CFLAGS="-g"
3788    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h.  */
3790
3791 int
3792 main ()
3793 {
3794
3795   ;
3796   return 0;
3797 }
3798 _ACEOF
3799 if ac_fn_c_try_compile "$LINENO"; then :
3800   ac_cv_prog_cc_g=yes
3801 else
3802   CFLAGS=""
3803       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h.  */
3805
3806 int
3807 main ()
3808 {
3809
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815
3816 else
3817   ac_c_werror_flag=$ac_save_c_werror_flag
3818          CFLAGS="-g"
3819          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h.  */
3821
3822 int
3823 main ()
3824 {
3825
3826   ;
3827   return 0;
3828 }
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831   ac_cv_prog_cc_g=yes
3832 fi
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838    ac_c_werror_flag=$ac_save_c_werror_flag
3839 fi
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3841 $as_echo "$ac_cv_prog_cc_g" >&6; }
3842 if test "$ac_test_CFLAGS" = set; then
3843   CFLAGS=$ac_save_CFLAGS
3844 elif test $ac_cv_prog_cc_g = yes; then
3845   if test "$GCC" = yes; then
3846     CFLAGS="-g -O2"
3847   else
3848     CFLAGS="-g"
3849   fi
3850 else
3851   if test "$GCC" = yes; then
3852     CFLAGS="-O2"
3853   else
3854     CFLAGS=
3855   fi
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3859 if ${ac_cv_prog_cc_c89+:} false; then :
3860   $as_echo_n "(cached) " >&6
3861 else
3862   ac_cv_prog_cc_c89=no
3863 ac_save_CC=$CC
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h.  */
3866 #include <stdarg.h>
3867 #include <stdio.h>
3868 #include <sys/types.h>
3869 #include <sys/stat.h>
3870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3871 struct buf { int x; };
3872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3873 static char *e (p, i)
3874      char **p;
3875      int i;
3876 {
3877   return p[i];
3878 }
3879 static char *f (char * (*g) (char **, int), char **p, ...)
3880 {
3881   char *s;
3882   va_list v;
3883   va_start (v,p);
3884   s = g (p, va_arg (v,int));
3885   va_end (v);
3886   return s;
3887 }
3888
3889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3890    function prototypes and stuff, but not '\xHH' hex character constants.
3891    These don't provoke an error unfortunately, instead are silently treated
3892    as 'x'.  The following induces an error, until -std is added to get
3893    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3894    array size at least.  It's necessary to write '\x00'==0 to get something
3895    that's true only with -std.  */
3896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3897
3898 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3899    inside strings and character constants.  */
3900 #define FOO(x) 'x'
3901 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3902
3903 int test (int i, double x);
3904 struct s1 {int (*f) (int a);};
3905 struct s2 {int (*f) (double a);};
3906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3907 int argc;
3908 char **argv;
3909 int
3910 main ()
3911 {
3912 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3918         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3919 do
3920   CC="$ac_save_CC $ac_arg"
3921   if ac_fn_c_try_compile "$LINENO"; then :
3922   ac_cv_prog_cc_c89=$ac_arg
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext
3925   test "x$ac_cv_prog_cc_c89" != "xno" && break
3926 done
3927 rm -f conftest.$ac_ext
3928 CC=$ac_save_CC
3929
3930 fi
3931 # AC_CACHE_VAL
3932 case "x$ac_cv_prog_cc_c89" in
3933   x)
3934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3935 $as_echo "none needed" >&6; } ;;
3936   xno)
3937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3938 $as_echo "unsupported" >&6; } ;;
3939   *)
3940     CC="$CC $ac_cv_prog_cc_c89"
3941     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3942 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3943 esac
3944 if test "x$ac_cv_prog_cc_c89" != xno; then :
3945
3946 fi
3947
3948 ac_ext=c
3949 ac_cpp='$CPP $CPPFLAGS'
3950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3953 DEPDIR="${am__leading_dot}deps"
3954
3955 ac_config_commands="$ac_config_commands depfiles"
3956
3957
3958 am_make=${MAKE-make}
3959 cat > confinc << 'END'
3960 am__doit:
3961         @echo this is the am__doit target
3962 .PHONY: am__doit
3963 END
3964 # If we don't find an include directive, just comment out the code.
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3966 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3967 am__include="#"
3968 am__quote=
3969 _am_result=none
3970 # First try GNU make style include.
3971 echo "include confinc" > confmf
3972 # Ignore all kinds of additional output from `make'.
3973 case `$am_make -s -f confmf 2> /dev/null` in #(
3974 *the\ am__doit\ target*)
3975   am__include=include
3976   am__quote=
3977   _am_result=GNU
3978   ;;
3979 esac
3980 # Now try BSD make style include.
3981 if test "$am__include" = "#"; then
3982    echo '.include "confinc"' > confmf
3983    case `$am_make -s -f confmf 2> /dev/null` in #(
3984    *the\ am__doit\ target*)
3985      am__include=.include
3986      am__quote="\""
3987      _am_result=BSD
3988      ;;
3989    esac
3990 fi
3991
3992
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3994 $as_echo "$_am_result" >&6; }
3995 rm -f confinc confmf
3996
3997 # Check whether --enable-dependency-tracking was given.
3998 if test "${enable_dependency_tracking+set}" = set; then :
3999   enableval=$enable_dependency_tracking;
4000 fi
4001
4002 if test "x$enable_dependency_tracking" != xno; then
4003   am_depcomp="$ac_aux_dir/depcomp"
4004   AMDEPBACKSLASH='\'
4005 fi
4006  if test "x$enable_dependency_tracking" != xno; then
4007   AMDEP_TRUE=
4008   AMDEP_FALSE='#'
4009 else
4010   AMDEP_TRUE='#'
4011   AMDEP_FALSE=
4012 fi
4013
4014
4015
4016 depcc="$CC"   am_compiler_list=
4017
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4019 $as_echo_n "checking dependency style of $depcc... " >&6; }
4020 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4021   $as_echo_n "(cached) " >&6
4022 else
4023   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024   # We make a subdir and do the tests there.  Otherwise we can end up
4025   # making bogus files that we don't know about and never remove.  For
4026   # instance it was reported that on HP-UX the gcc test will end up
4027   # making a dummy file named `D' -- because `-MD' means `put the output
4028   # in D'.
4029   mkdir conftest.dir
4030   # Copy depcomp to subdir because otherwise we won't find it if we're
4031   # using a relative directory.
4032   cp "$am_depcomp" conftest.dir
4033   cd conftest.dir
4034   # We will build objects and dependencies in a subdirectory because
4035   # it helps to detect inapplicable dependency modes.  For instance
4036   # both Tru64's cc and ICC support -MD to output dependencies as a
4037   # side effect of compilation, but ICC will put the dependencies in
4038   # the current directory while Tru64 will put them in the object
4039   # directory.
4040   mkdir sub
4041
4042   am_cv_CC_dependencies_compiler_type=none
4043   if test "$am_compiler_list" = ""; then
4044      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4045   fi
4046   am__universal=false
4047   case " $depcc " in #(
4048      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4049      esac
4050
4051   for depmode in $am_compiler_list; do
4052     # Setup a source with many dependencies, because some compilers
4053     # like to wrap large dependency lists on column 80 (with \), and
4054     # we should not choose a depcomp mode which is confused by this.
4055     #
4056     # We need to recreate these files for each test, as the compiler may
4057     # overwrite some of them when testing with obscure command lines.
4058     # This happens at least with the AIX C compiler.
4059     : > sub/conftest.c
4060     for i in 1 2 3 4 5 6; do
4061       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4062       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4063       # Solaris 8's {/usr,}/bin/sh.
4064       touch sub/conftst$i.h
4065     done
4066     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4067
4068     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4069     # mode.  It turns out that the SunPro C++ compiler does not properly
4070     # handle `-M -o', and we need to detect this.  Also, some Intel
4071     # versions had trouble with output in subdirs
4072     am__obj=sub/conftest.${OBJEXT-o}
4073     am__minus_obj="-o $am__obj"
4074     case $depmode in
4075     gcc)
4076       # This depmode causes a compiler race in universal mode.
4077       test "$am__universal" = false || continue
4078       ;;
4079     nosideeffect)
4080       # after this tag, mechanisms are not by side-effect, so they'll
4081       # only be used when explicitly requested
4082       if test "x$enable_dependency_tracking" = xyes; then
4083         continue
4084       else
4085         break
4086       fi
4087       ;;
4088     msvisualcpp | msvcmsys)
4089       # This compiler won't grok `-c -o', but also, the minuso test has
4090       # not run yet.  These depmodes are late enough in the game, and
4091       # so weak that their functioning should not be impacted.
4092       am__obj=conftest.${OBJEXT-o}
4093       am__minus_obj=
4094       ;;
4095     none) break ;;
4096     esac
4097     if depmode=$depmode \
4098        source=sub/conftest.c object=$am__obj \
4099        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4100        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4101          >/dev/null 2>conftest.err &&
4102        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4103        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4104        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4105        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4106       # icc doesn't choke on unknown options, it will just issue warnings
4107       # or remarks (even with -Werror).  So we grep stderr for any message
4108       # that says an option was ignored or not supported.
4109       # When given -MP, icc 7.0 and 7.1 complain thusly:
4110       #   icc: Command line warning: ignoring option '-M'; no argument required
4111       # The diagnosis changed in icc 8.0:
4112       #   icc: Command line remark: option '-MP' not supported
4113       if (grep 'ignoring option' conftest.err ||
4114           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4115         am_cv_CC_dependencies_compiler_type=$depmode
4116         break
4117       fi
4118     fi
4119   done
4120
4121   cd ..
4122   rm -rf conftest.dir
4123 else
4124   am_cv_CC_dependencies_compiler_type=none
4125 fi
4126
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4129 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4130 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4131
4132  if
4133   test "x$enable_dependency_tracking" != xno \
4134   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4135   am__fastdepCC_TRUE=
4136   am__fastdepCC_FALSE='#'
4137 else
4138   am__fastdepCC_TRUE='#'
4139   am__fastdepCC_FALSE=
4140 fi
4141
4142
4143 if test "x$CC" != xcc; then
4144   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4145 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4146 else
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 fi
4150 set dummy $CC; ac_cc=`$as_echo "$2" |
4151                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4152 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4153   $as_echo_n "(cached) " >&6
4154 else
4155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h.  */
4157
4158 int
4159 main ()
4160 {
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 # Make sure it works both with $CC and with simple cc.
4167 # We do the test twice because some compilers refuse to overwrite an
4168 # existing .o file with -o, though they will create one.
4169 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4170 rm -f conftest2.*
4171 if { { case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4176 $as_echo "$ac_try_echo"; } >&5
4177   (eval "$ac_try") 2>&5
4178   ac_status=$?
4179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4180   test $ac_status = 0; } &&
4181    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4186 $as_echo "$ac_try_echo"; } >&5
4187   (eval "$ac_try") 2>&5
4188   ac_status=$?
4189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190   test $ac_status = 0; };
4191 then
4192   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4193   if test "x$CC" != xcc; then
4194     # Test first that cc exists at all.
4195     if { ac_try='cc -c conftest.$ac_ext >&5'
4196   { { case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4201 $as_echo "$ac_try_echo"; } >&5
4202   (eval "$ac_try") 2>&5
4203   ac_status=$?
4204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4205   test $ac_status = 0; }; }; then
4206       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4207       rm -f conftest2.*
4208       if { { case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4213 $as_echo "$ac_try_echo"; } >&5
4214   (eval "$ac_try") 2>&5
4215   ac_status=$?
4216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217   test $ac_status = 0; } &&
4218          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224   (eval "$ac_try") 2>&5
4225   ac_status=$?
4226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4227   test $ac_status = 0; };
4228       then
4229         # cc works too.
4230         :
4231       else
4232         # cc exists but doesn't like -o.
4233         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4234       fi
4235     fi
4236   fi
4237 else
4238   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4239 fi
4240 rm -f core conftest*
4241
4242 fi
4243 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4245 $as_echo "yes" >&6; }
4246 else
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4249
4250 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4251
4252 fi
4253
4254 # FIXME: we rely on the cache variable name because
4255 # there is no other way.
4256 set dummy $CC
4257 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4258 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4259 if test "$am_t" != yes; then
4260    # Losing compiler, so override with the script.
4261    # FIXME: It is wrong to rewrite CC.
4262    # But if we don't then we get into trouble of one sort or another.
4263    # A longer-term fix would be to have automake use am__CC in this case,
4264    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4265    CC="$am_aux_dir/compile $CC"
4266 fi
4267
4268
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4271 $as_echo_n "checking whether ln -s works... " >&6; }
4272 LN_S=$as_ln_s
4273 if test "$LN_S" = "ln -s"; then
4274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4275 $as_echo "yes" >&6; }
4276 else
4277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4278 $as_echo "no, using $LN_S" >&6; }
4279 fi
4280
4281
4282
4283
4284 ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4290 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4291 # On Suns, sometimes $CPP names a directory.
4292 if test -n "$CPP" && test -d "$CPP"; then
4293   CPP=
4294 fi
4295 if test -z "$CPP"; then
4296   if ${ac_cv_prog_CPP+:} false; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299       # Double quotes because CPP needs to be expanded
4300     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4301     do
4302       ac_preproc_ok=false
4303 for ac_c_preproc_warn_flag in '' yes
4304 do
4305   # Use a header file that comes with gcc, so configuring glibc
4306   # with a fresh cross-compiler works.
4307   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4308   # <limits.h> exists even on freestanding compilers.
4309   # On the NeXT, cc -E runs the code through the compiler's parser,
4310   # not just through cpp. "Syntax error" is here to catch this case.
4311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h.  */
4313 #ifdef __STDC__
4314 # include <limits.h>
4315 #else
4316 # include <assert.h>
4317 #endif
4318                      Syntax error
4319 _ACEOF
4320 if ac_fn_c_try_cpp "$LINENO"; then :
4321
4322 else
4323   # Broken: fails on valid input.
4324 continue
4325 fi
4326 rm -f conftest.err conftest.i conftest.$ac_ext
4327
4328   # OK, works on sane cases.  Now check whether nonexistent headers
4329   # can be detected and how.
4330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h.  */
4332 #include <ac_nonexistent.h>
4333 _ACEOF
4334 if ac_fn_c_try_cpp "$LINENO"; then :
4335   # Broken: success on invalid input.
4336 continue
4337 else
4338   # Passes both tests.
4339 ac_preproc_ok=:
4340 break
4341 fi
4342 rm -f conftest.err conftest.i conftest.$ac_ext
4343
4344 done
4345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4346 rm -f conftest.i conftest.err conftest.$ac_ext
4347 if $ac_preproc_ok; then :
4348   break
4349 fi
4350
4351     done
4352     ac_cv_prog_CPP=$CPP
4353
4354 fi
4355   CPP=$ac_cv_prog_CPP
4356 else
4357   ac_cv_prog_CPP=$CPP
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4360 $as_echo "$CPP" >&6; }
4361 ac_preproc_ok=false
4362 for ac_c_preproc_warn_flag in '' yes
4363 do
4364   # Use a header file that comes with gcc, so configuring glibc
4365   # with a fresh cross-compiler works.
4366   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367   # <limits.h> exists even on freestanding compilers.
4368   # On the NeXT, cc -E runs the code through the compiler's parser,
4369   # not just through cpp. "Syntax error" is here to catch this case.
4370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h.  */
4372 #ifdef __STDC__
4373 # include <limits.h>
4374 #else
4375 # include <assert.h>
4376 #endif
4377                      Syntax error
4378 _ACEOF
4379 if ac_fn_c_try_cpp "$LINENO"; then :
4380
4381 else
4382   # Broken: fails on valid input.
4383 continue
4384 fi
4385 rm -f conftest.err conftest.i conftest.$ac_ext
4386
4387   # OK, works on sane cases.  Now check whether nonexistent headers
4388   # can be detected and how.
4389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h.  */
4391 #include <ac_nonexistent.h>
4392 _ACEOF
4393 if ac_fn_c_try_cpp "$LINENO"; then :
4394   # Broken: success on invalid input.
4395 continue
4396 else
4397   # Passes both tests.
4398 ac_preproc_ok=:
4399 break
4400 fi
4401 rm -f conftest.err conftest.i conftest.$ac_ext
4402
4403 done
4404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4405 rm -f conftest.i conftest.err conftest.$ac_ext
4406 if $ac_preproc_ok; then :
4407
4408 else
4409   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4412 See \`config.log' for more details" "$LINENO" 5; }
4413 fi
4414
4415 ac_ext=c
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420
4421
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4423 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4424 if ${ac_cv_path_GREP+:} false; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   if test -z "$GREP"; then
4428   ac_path_GREP_found=false
4429   # Loop through the user's path and test for each of PROGNAME-LIST
4430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435     for ac_prog in grep ggrep; do
4436     for ac_exec_ext in '' $ac_executable_extensions; do
4437       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4438       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4439 # Check for GNU ac_path_GREP and select it if it is found.
4440   # Check for GNU $ac_path_GREP
4441 case `"$ac_path_GREP" --version 2>&1` in
4442 *GNU*)
4443   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4444 *)
4445   ac_count=0
4446   $as_echo_n 0123456789 >"conftest.in"
4447   while :
4448   do
4449     cat "conftest.in" "conftest.in" >"conftest.tmp"
4450     mv "conftest.tmp" "conftest.in"
4451     cp "conftest.in" "conftest.nl"
4452     $as_echo 'GREP' >> "conftest.nl"
4453     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4454     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4455     as_fn_arith $ac_count + 1 && ac_count=$as_val
4456     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4457       # Best one so far, save it but keep looking for a better one
4458       ac_cv_path_GREP="$ac_path_GREP"
4459       ac_path_GREP_max=$ac_count
4460     fi
4461     # 10*(2^10) chars as input seems more than enough
4462     test $ac_count -gt 10 && break
4463   done
4464   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4465 esac
4466
4467       $ac_path_GREP_found && break 3
4468     done
4469   done
4470   done
4471 IFS=$as_save_IFS
4472   if test -z "$ac_cv_path_GREP"; then
4473     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4474   fi
4475 else
4476   ac_cv_path_GREP=$GREP
4477 fi
4478
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4481 $as_echo "$ac_cv_path_GREP" >&6; }
4482  GREP="$ac_cv_path_GREP"
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4486 $as_echo_n "checking for egrep... " >&6; }
4487 if ${ac_cv_path_EGREP+:} false; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4491    then ac_cv_path_EGREP="$GREP -E"
4492    else
4493      if test -z "$EGREP"; then
4494   ac_path_EGREP_found=false
4495   # Loop through the user's path and test for each of PROGNAME-LIST
4496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498 do
4499   IFS=$as_save_IFS
4500   test -z "$as_dir" && as_dir=.
4501     for ac_prog in egrep; do
4502     for ac_exec_ext in '' $ac_executable_extensions; do
4503       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4504       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4505 # Check for GNU ac_path_EGREP and select it if it is found.
4506   # Check for GNU $ac_path_EGREP
4507 case `"$ac_path_EGREP" --version 2>&1` in
4508 *GNU*)
4509   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4510 *)
4511   ac_count=0
4512   $as_echo_n 0123456789 >"conftest.in"
4513   while :
4514   do
4515     cat "conftest.in" "conftest.in" >"conftest.tmp"
4516     mv "conftest.tmp" "conftest.in"
4517     cp "conftest.in" "conftest.nl"
4518     $as_echo 'EGREP' >> "conftest.nl"
4519     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521     as_fn_arith $ac_count + 1 && ac_count=$as_val
4522     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4523       # Best one so far, save it but keep looking for a better one
4524       ac_cv_path_EGREP="$ac_path_EGREP"
4525       ac_path_EGREP_max=$ac_count
4526     fi
4527     # 10*(2^10) chars as input seems more than enough
4528     test $ac_count -gt 10 && break
4529   done
4530   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 esac
4532
4533       $ac_path_EGREP_found && break 3
4534     done
4535   done
4536   done
4537 IFS=$as_save_IFS
4538   if test -z "$ac_cv_path_EGREP"; then
4539     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4540   fi
4541 else
4542   ac_cv_path_EGREP=$EGREP
4543 fi
4544
4545    fi
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4548 $as_echo "$ac_cv_path_EGREP" >&6; }
4549  EGREP="$ac_cv_path_EGREP"
4550
4551
4552 if test $ac_cv_c_compiler_gnu = yes; then
4553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4554 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4555 if ${ac_cv_prog_gcc_traditional+:} false; then :
4556   $as_echo_n "(cached) " >&6
4557 else
4558     ac_pattern="Autoconf.*'x'"
4559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h.  */
4561 #include <sgtty.h>
4562 Autoconf TIOCGETP
4563 _ACEOF
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4566   ac_cv_prog_gcc_traditional=yes
4567 else
4568   ac_cv_prog_gcc_traditional=no
4569 fi
4570 rm -f conftest*
4571
4572
4573   if test $ac_cv_prog_gcc_traditional = no; then
4574     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h.  */
4576 #include <termio.h>
4577 Autoconf TCGETA
4578 _ACEOF
4579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4580   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4581   ac_cv_prog_gcc_traditional=yes
4582 fi
4583 rm -f conftest*
4584
4585   fi
4586 fi
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4588 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4589   if test $ac_cv_prog_gcc_traditional = yes; then
4590     CC="$CC -traditional"
4591   fi
4592 fi
4593
4594
4595 if test "$GCC" = "yes" ; then
4596         # Enable many gcc warnings by default...
4597         CFLAGS="$CFLAGS -Wall"
4598         # And disable the strict-aliasing optimization, since it breaks
4599         # our sockaddr-handling code in strange ways.
4600         CFLAGS="$CFLAGS -fno-strict-aliasing"
4601 fi
4602
4603 # OS X Lion started deprecating the system openssl. Let's just disable
4604 # all deprecation warnings on OS X.
4605 case "$host_os" in
4606
4607  darwin*)
4608     CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4609     ;;
4610 esac
4611
4612 # Check whether --enable-gcc-warnings was given.
4613 if test "${enable_gcc_warnings+set}" = set; then :
4614   enableval=$enable_gcc_warnings;
4615 fi
4616
4617 # Check whether --enable-thread-support was given.
4618 if test "${enable_thread_support+set}" = set; then :
4619   enableval=$enable_thread_support;
4620 else
4621   enable_thread_support=yes
4622 fi
4623
4624 # Check whether --enable-malloc-replacement was given.
4625 if test "${enable_malloc_replacement+set}" = set; then :
4626   enableval=$enable_malloc_replacement;
4627 else
4628   enable_malloc_replacement=yes
4629 fi
4630
4631 # Check whether --enable-openssl was given.
4632 if test "${enable_openssl+set}" = set; then :
4633   enableval=$enable_openssl;
4634 else
4635   enable_openssl=yes
4636 fi
4637
4638 # Check whether --enable-debug-mode was given.
4639 if test "${enable_debug_mode+set}" = set; then :
4640   enableval=$enable_debug_mode;
4641 else
4642   enable_debug_mode=yes
4643 fi
4644
4645 # Check whether --enable-libevent-install was given.
4646 if test "${enable_libevent_install+set}" = set; then :
4647   enableval=$enable_libevent_install;
4648 else
4649   enable_libevent_install=yes
4650 fi
4651
4652 # Check whether --enable-libevent-regress was given.
4653 if test "${enable_libevent_regress+set}" = set; then :
4654   enableval=$enable_libevent_regress;
4655 else
4656   enable_libevent_regress=yes
4657 fi
4658
4659 # Check whether --enable-function-sections was given.
4660 if test "${enable_function_sections+set}" = set; then :
4661   enableval=$enable_function_sections;
4662 else
4663   enable_function_sections=no
4664 fi
4665
4666
4667
4668 case `pwd` in
4669   *\ * | *\     *)
4670     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4671 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4672 esac
4673
4674
4675
4676 macro_version='2.4'
4677 macro_revision='1.3293'
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691 ltmain="$ac_aux_dir/ltmain.sh"
4692
4693 # Backslashify metacharacters that are still active within
4694 # double-quoted strings.
4695 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4696
4697 # Same as above, but do not quote variable references.
4698 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4699
4700 # Sed substitution to delay expansion of an escaped shell variable in a
4701 # double_quote_subst'ed string.
4702 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4703
4704 # Sed substitution to delay expansion of an escaped single quote.
4705 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4706
4707 # Sed substitution to avoid accidental globbing in evaled expressions
4708 no_glob_subst='s/\*/\\\*/g'
4709
4710 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4711 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4712 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4715 $as_echo_n "checking how to print strings... " >&6; }
4716 # Test print first, because it will be a builtin if present.
4717 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4718    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4719   ECHO='print -r --'
4720 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4721   ECHO='printf %s\n'
4722 else
4723   # Use this function as a fallback that always works.
4724   func_fallback_echo ()
4725   {
4726     eval 'cat <<_LTECHO_EOF
4727 $1
4728 _LTECHO_EOF'
4729   }
4730   ECHO='func_fallback_echo'
4731 fi
4732
4733 # func_echo_all arg...
4734 # Invoke $ECHO with all args, space-separated.
4735 func_echo_all ()
4736 {
4737     $ECHO ""
4738 }
4739
4740 case "$ECHO" in
4741   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4742 $as_echo "printf" >&6; } ;;
4743   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4744 $as_echo "print -r" >&6; } ;;
4745   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4746 $as_echo "cat" >&6; } ;;
4747 esac
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4763 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4764 if ${ac_cv_path_SED+:} false; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4768      for ac_i in 1 2 3 4 5 6 7; do
4769        ac_script="$ac_script$as_nl$ac_script"
4770      done
4771      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4772      { ac_script=; unset ac_script;}
4773      if test -z "$SED"; then
4774   ac_path_SED_found=false
4775   # Loop through the user's path and test for each of PROGNAME-LIST
4776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779   IFS=$as_save_IFS
4780   test -z "$as_dir" && as_dir=.
4781     for ac_prog in sed gsed; do
4782     for ac_exec_ext in '' $ac_executable_extensions; do
4783       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4784       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4785 # Check for GNU ac_path_SED and select it if it is found.
4786   # Check for GNU $ac_path_SED
4787 case `"$ac_path_SED" --version 2>&1` in
4788 *GNU*)
4789   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4790 *)
4791   ac_count=0
4792   $as_echo_n 0123456789 >"conftest.in"
4793   while :
4794   do
4795     cat "conftest.in" "conftest.in" >"conftest.tmp"
4796     mv "conftest.tmp" "conftest.in"
4797     cp "conftest.in" "conftest.nl"
4798     $as_echo '' >> "conftest.nl"
4799     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4801     as_fn_arith $ac_count + 1 && ac_count=$as_val
4802     if test $ac_count -gt ${ac_path_SED_max-0}; then
4803       # Best one so far, save it but keep looking for a better one
4804       ac_cv_path_SED="$ac_path_SED"
4805       ac_path_SED_max=$ac_count
4806     fi
4807     # 10*(2^10) chars as input seems more than enough
4808     test $ac_count -gt 10 && break
4809   done
4810   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4811 esac
4812
4813       $ac_path_SED_found && break 3
4814     done
4815   done
4816   done
4817 IFS=$as_save_IFS
4818   if test -z "$ac_cv_path_SED"; then
4819     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4820   fi
4821 else
4822   ac_cv_path_SED=$SED
4823 fi
4824
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4827 $as_echo "$ac_cv_path_SED" >&6; }
4828  SED="$ac_cv_path_SED"
4829   rm -f conftest.sed
4830
4831 test -z "$SED" && SED=sed
4832 Xsed="$SED -e 1s/^X//"
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4845 $as_echo_n "checking for fgrep... " >&6; }
4846 if ${ac_cv_path_FGREP+:} false; then :
4847   $as_echo_n "(cached) " >&6
4848 else
4849   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4850    then ac_cv_path_FGREP="$GREP -F"
4851    else
4852      if test -z "$FGREP"; then
4853   ac_path_FGREP_found=false
4854   # Loop through the user's path and test for each of PROGNAME-LIST
4855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860     for ac_prog in fgrep; do
4861     for ac_exec_ext in '' $ac_executable_extensions; do
4862       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4863       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4864 # Check for GNU ac_path_FGREP and select it if it is found.
4865   # Check for GNU $ac_path_FGREP
4866 case `"$ac_path_FGREP" --version 2>&1` in
4867 *GNU*)
4868   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4869 *)
4870   ac_count=0
4871   $as_echo_n 0123456789 >"conftest.in"
4872   while :
4873   do
4874     cat "conftest.in" "conftest.in" >"conftest.tmp"
4875     mv "conftest.tmp" "conftest.in"
4876     cp "conftest.in" "conftest.nl"
4877     $as_echo 'FGREP' >> "conftest.nl"
4878     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4879     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4880     as_fn_arith $ac_count + 1 && ac_count=$as_val
4881     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4882       # Best one so far, save it but keep looking for a better one
4883       ac_cv_path_FGREP="$ac_path_FGREP"
4884       ac_path_FGREP_max=$ac_count
4885     fi
4886     # 10*(2^10) chars as input seems more than enough
4887     test $ac_count -gt 10 && break
4888   done
4889   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4890 esac
4891
4892       $ac_path_FGREP_found && break 3
4893     done
4894   done
4895   done
4896 IFS=$as_save_IFS
4897   if test -z "$ac_cv_path_FGREP"; then
4898     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4899   fi
4900 else
4901   ac_cv_path_FGREP=$FGREP
4902 fi
4903
4904    fi
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4907 $as_echo "$ac_cv_path_FGREP" >&6; }
4908  FGREP="$ac_cv_path_FGREP"
4909
4910
4911 test -z "$GREP" && GREP=grep
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931 # Check whether --with-gnu-ld was given.
4932 if test "${with_gnu_ld+set}" = set; then :
4933   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4934 else
4935   with_gnu_ld=no
4936 fi
4937
4938 ac_prog=ld
4939 if test "$GCC" = yes; then
4940   # Check if gcc -print-prog-name=ld gives a path.
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4942 $as_echo_n "checking for ld used by $CC... " >&6; }
4943   case $host in
4944   *-*-mingw*)
4945     # gcc leaves a trailing carriage return which upsets mingw
4946     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4947   *)
4948     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4949   esac
4950   case $ac_prog in
4951     # Accept absolute paths.
4952     [\\/]* | ?:[\\/]*)
4953       re_direlt='/[^/][^/]*/\.\./'
4954       # Canonicalize the pathname of ld
4955       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4956       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4957         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4958       done
4959       test -z "$LD" && LD="$ac_prog"
4960       ;;
4961   "")
4962     # If it fails, then pretend we aren't using GCC.
4963     ac_prog=ld
4964     ;;
4965   *)
4966     # If it is relative, then search for the first ld in PATH.
4967     with_gnu_ld=unknown
4968     ;;
4969   esac
4970 elif test "$with_gnu_ld" = yes; then
4971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4972 $as_echo_n "checking for GNU ld... " >&6; }
4973 else
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4975 $as_echo_n "checking for non-GNU ld... " >&6; }
4976 fi
4977 if ${lt_cv_path_LD+:} false; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980   if test -z "$LD"; then
4981   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4982   for ac_dir in $PATH; do
4983     IFS="$lt_save_ifs"
4984     test -z "$ac_dir" && ac_dir=.
4985     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4986       lt_cv_path_LD="$ac_dir/$ac_prog"
4987       # Check to see if the program is GNU ld.  I'd rather use --version,
4988       # but apparently some variants of GNU ld only accept -v.
4989       # Break only if it was the GNU/non-GNU ld that we prefer.
4990       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4991       *GNU* | *'with BFD'*)
4992         test "$with_gnu_ld" != no && break
4993         ;;
4994       *)
4995         test "$with_gnu_ld" != yes && break
4996         ;;
4997       esac
4998     fi
4999   done
5000   IFS="$lt_save_ifs"
5001 else
5002   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5003 fi
5004 fi
5005
5006 LD="$lt_cv_path_LD"
5007 if test -n "$LD"; then
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5009 $as_echo "$LD" >&6; }
5010 else
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5016 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5017 if ${lt_cv_prog_gnu_ld+:} false; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5021 case `$LD -v 2>&1 </dev/null` in
5022 *GNU* | *'with BFD'*)
5023   lt_cv_prog_gnu_ld=yes
5024   ;;
5025 *)
5026   lt_cv_prog_gnu_ld=no
5027   ;;
5028 esac
5029 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5031 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5032 with_gnu_ld=$lt_cv_prog_gnu_ld
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5043 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5044 if ${lt_cv_path_NM+:} false; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if test -n "$NM"; then
5048   # Let the user override the test.
5049   lt_cv_path_NM="$NM"
5050 else
5051   lt_nm_to_check="${ac_tool_prefix}nm"
5052   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5053     lt_nm_to_check="$lt_nm_to_check nm"
5054   fi
5055   for lt_tmp_nm in $lt_nm_to_check; do
5056     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5057     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5058       IFS="$lt_save_ifs"
5059       test -z "$ac_dir" && ac_dir=.
5060       tmp_nm="$ac_dir/$lt_tmp_nm"
5061       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5062         # Check to see if the nm accepts a BSD-compat flag.
5063         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5064         #   nm: unknown option "B" ignored
5065         # Tru64's nm complains that /dev/null is an invalid object file
5066         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5067         */dev/null* | *'Invalid file or object type'*)
5068           lt_cv_path_NM="$tmp_nm -B"
5069           break
5070           ;;
5071         *)
5072           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5073           */dev/null*)
5074             lt_cv_path_NM="$tmp_nm -p"
5075             break
5076             ;;
5077           *)
5078             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5079             continue # so that we can try to find one that supports BSD flags
5080             ;;
5081           esac
5082           ;;
5083         esac
5084       fi
5085     done
5086     IFS="$lt_save_ifs"
5087   done
5088   : ${lt_cv_path_NM=no}
5089 fi
5090 fi
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5092 $as_echo "$lt_cv_path_NM" >&6; }
5093 if test "$lt_cv_path_NM" != "no"; then
5094   NM="$lt_cv_path_NM"
5095 else
5096   # Didn't find any BSD compatible name lister, look for dumpbin.
5097   if test -n "$DUMPBIN"; then :
5098     # Let the user override the test.
5099   else
5100     if test -n "$ac_tool_prefix"; then
5101   for ac_prog in dumpbin "link -dump"
5102   do
5103     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_DUMPBIN+:} false; then :
5108   $as_echo_n "(cached) " >&6
5109 else
5110   if test -n "$DUMPBIN"; then
5111   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118     for ac_exec_ext in '' $ac_executable_extensions; do
5119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125   done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 DUMPBIN=$ac_cv_prog_DUMPBIN
5131 if test -n "$DUMPBIN"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5133 $as_echo "$DUMPBIN" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139
5140     test -n "$DUMPBIN" && break
5141   done
5142 fi
5143 if test -z "$DUMPBIN"; then
5144   ac_ct_DUMPBIN=$DUMPBIN
5145   for ac_prog in dumpbin "link -dump"
5146 do
5147   # Extract the first word of "$ac_prog", so it can be a program name with args.
5148 set dummy $ac_prog; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5152   $as_echo_n "(cached) " >&6
5153 else
5154   if test -n "$ac_ct_DUMPBIN"; then
5155   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5159 do
5160   IFS=$as_save_IFS
5161   test -z "$as_dir" && as_dir=.
5162     for ac_exec_ext in '' $ac_executable_extensions; do
5163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166     break 2
5167   fi
5168 done
5169   done
5170 IFS=$as_save_IFS
5171
5172 fi
5173 fi
5174 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5175 if test -n "$ac_ct_DUMPBIN"; then
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5177 $as_echo "$ac_ct_DUMPBIN" >&6; }
5178 else
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182
5183
5184   test -n "$ac_ct_DUMPBIN" && break
5185 done
5186
5187   if test "x$ac_ct_DUMPBIN" = x; then
5188     DUMPBIN=":"
5189   else
5190     case $cross_compiling:$ac_tool_warned in
5191 yes:)
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5194 ac_tool_warned=yes ;;
5195 esac
5196     DUMPBIN=$ac_ct_DUMPBIN
5197   fi
5198 fi
5199
5200     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5201     *COFF*)
5202       DUMPBIN="$DUMPBIN -symbols"
5203       ;;
5204     *)
5205       DUMPBIN=:
5206       ;;
5207     esac
5208   fi
5209
5210   if test "$DUMPBIN" != ":"; then
5211     NM="$DUMPBIN"
5212   fi
5213 fi
5214 test -z "$NM" && NM=nm
5215
5216
5217
5218
5219
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5222 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5223 if ${lt_cv_nm_interface+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   lt_cv_nm_interface="BSD nm"
5227   echo "int some_variable = 0;" > conftest.$ac_ext
5228   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5229   (eval "$ac_compile" 2>conftest.err)
5230   cat conftest.err >&5
5231   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5232   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5233   cat conftest.err >&5
5234   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5235   cat conftest.out >&5
5236   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5237     lt_cv_nm_interface="MS dumpbin"
5238   fi
5239   rm -f conftest*
5240 fi
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5242 $as_echo "$lt_cv_nm_interface" >&6; }
5243
5244 # find the maximum length of command line arguments
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5246 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5247 if ${lt_cv_sys_max_cmd_len+:} false; then :
5248   $as_echo_n "(cached) " >&6
5249 else
5250     i=0
5251   teststring="ABCD"
5252
5253   case $build_os in
5254   msdosdjgpp*)
5255     # On DJGPP, this test can blow up pretty badly due to problems in libc
5256     # (any single argument exceeding 2000 bytes causes a buffer overrun
5257     # during glob expansion).  Even if it were fixed, the result of this
5258     # check would be larger than it should be.
5259     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5260     ;;
5261
5262   gnu*)
5263     # Under GNU Hurd, this test is not required because there is
5264     # no limit to the length of command line arguments.
5265     # Libtool will interpret -1 as no limit whatsoever
5266     lt_cv_sys_max_cmd_len=-1;
5267     ;;
5268
5269   cygwin* | mingw* | cegcc*)
5270     # On Win9x/ME, this test blows up -- it succeeds, but takes
5271     # about 5 minutes as the teststring grows exponentially.
5272     # Worse, since 9x/ME are not pre-emptively multitasking,
5273     # you end up with a "frozen" computer, even though with patience
5274     # the test eventually succeeds (with a max line length of 256k).
5275     # Instead, let's just punt: use the minimum linelength reported by
5276     # all of the supported platforms: 8192 (on NT/2K/XP).
5277     lt_cv_sys_max_cmd_len=8192;
5278     ;;
5279
5280   mint*)
5281     # On MiNT this can take a long time and run out of memory.
5282     lt_cv_sys_max_cmd_len=8192;
5283     ;;
5284
5285   amigaos*)
5286     # On AmigaOS with pdksh, this test takes hours, literally.
5287     # So we just punt and use a minimum line length of 8192.
5288     lt_cv_sys_max_cmd_len=8192;
5289     ;;
5290
5291   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5292     # This has been around since 386BSD, at least.  Likely further.
5293     if test -x /sbin/sysctl; then
5294       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5295     elif test -x /usr/sbin/sysctl; then
5296       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5297     else
5298       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5299     fi
5300     # And add a safety zone
5301     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5302     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5303     ;;
5304
5305   interix*)
5306     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5307     lt_cv_sys_max_cmd_len=196608
5308     ;;
5309
5310   osf*)
5311     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5312     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5313     # nice to cause kernel panics so lets avoid the loop below.
5314     # First set a reasonable default.
5315     lt_cv_sys_max_cmd_len=16384
5316     #
5317     if test -x /sbin/sysconfig; then
5318       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5319         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5320       esac
5321     fi
5322     ;;
5323   sco3.2v5*)
5324     lt_cv_sys_max_cmd_len=102400
5325     ;;
5326   sysv5* | sco5v6* | sysv4.2uw2*)
5327     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5328     if test -n "$kargmax"; then
5329       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5330     else
5331       lt_cv_sys_max_cmd_len=32768
5332     fi
5333     ;;
5334   *)
5335     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5336     if test -n "$lt_cv_sys_max_cmd_len"; then
5337       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5338       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5339     else
5340       # Make teststring a little bigger before we do anything with it.
5341       # a 1K string should be a reasonable start.
5342       for i in 1 2 3 4 5 6 7 8 ; do
5343         teststring=$teststring$teststring
5344       done
5345       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5346       # If test is not a shell built-in, we'll probably end up computing a
5347       # maximum length that is only half of the actual maximum length, but
5348       # we can't tell.
5349       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5350                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5351               test $i != 17 # 1/2 MB should be enough
5352       do
5353         i=`expr $i + 1`
5354         teststring=$teststring$teststring
5355       done
5356       # Only check the string length outside the loop.
5357       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5358       teststring=
5359       # Add a significant safety factor because C++ compilers can tack on
5360       # massive amounts of additional arguments before passing them to the
5361       # linker.  It appears as though 1/2 is a usable value.
5362       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5363     fi
5364     ;;
5365   esac
5366
5367 fi
5368
5369 if test -n $lt_cv_sys_max_cmd_len ; then
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5371 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5372 else
5373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5374 $as_echo "none" >&6; }
5375 fi
5376 max_cmd_len=$lt_cv_sys_max_cmd_len
5377
5378
5379
5380
5381
5382
5383 : ${CP="cp -f"}
5384 : ${MV="mv -f"}
5385 : ${RM="rm -f"}
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5388 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5389 # Try some XSI features
5390 xsi_shell=no
5391 ( _lt_dummy="a/b/c"
5392   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5393       = c,a/b,b/c, \
5394     && eval 'test $(( 1 + 1 )) -eq 2 \
5395     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5396   && xsi_shell=yes
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5398 $as_echo "$xsi_shell" >&6; }
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5402 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5403 lt_shell_append=no
5404 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5405     >/dev/null 2>&1 \
5406   && lt_shell_append=yes
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5408 $as_echo "$lt_shell_append" >&6; }
5409
5410
5411 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5412   lt_unset=unset
5413 else
5414   lt_unset=false
5415 fi
5416
5417
5418
5419
5420
5421 # test EBCDIC or ASCII
5422 case `echo X|tr X '\101'` in
5423  A) # ASCII based system
5424     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5425   lt_SP2NL='tr \040 \012'
5426   lt_NL2SP='tr \015\012 \040\040'
5427   ;;
5428  *) # EBCDIC based system
5429   lt_SP2NL='tr \100 \n'
5430   lt_NL2SP='tr \r\n \100\100'
5431   ;;
5432 esac
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5443 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5444 if ${lt_cv_to_host_file_cmd+:} false; then :
5445   $as_echo_n "(cached) " >&6
5446 else
5447   case $host in
5448   *-*-mingw* )
5449     case $build in
5450       *-*-mingw* ) # actually msys
5451         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5452         ;;
5453       *-*-cygwin* )
5454         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5455         ;;
5456       * ) # otherwise, assume *nix
5457         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5458         ;;
5459     esac
5460     ;;
5461   *-*-cygwin* )
5462     case $build in
5463       *-*-mingw* ) # actually msys
5464         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5465         ;;
5466       *-*-cygwin* )
5467         lt_cv_to_host_file_cmd=func_convert_file_noop
5468         ;;
5469       * ) # otherwise, assume *nix
5470         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5471         ;;
5472     esac
5473     ;;
5474   * ) # unhandled hosts (and "normal" native builds)
5475     lt_cv_to_host_file_cmd=func_convert_file_noop
5476     ;;
5477 esac
5478
5479 fi
5480
5481 to_host_file_cmd=$lt_cv_to_host_file_cmd
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5483 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5484
5485
5486
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5490 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5491 if ${lt_cv_to_tool_file_cmd+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   #assume ordinary cross tools, or native build.
5495 lt_cv_to_tool_file_cmd=func_convert_file_noop
5496 case $host in
5497   *-*-mingw* )
5498     case $build in
5499       *-*-mingw* ) # actually msys
5500         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5501         ;;
5502     esac
5503     ;;
5504 esac
5505
5506 fi
5507
5508 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5510 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5511
5512
5513
5514
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5517 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5518 if ${lt_cv_ld_reload_flag+:} false; then :
5519   $as_echo_n "(cached) " >&6
5520 else
5521   lt_cv_ld_reload_flag='-r'
5522 fi
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5524 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5525 reload_flag=$lt_cv_ld_reload_flag
5526 case $reload_flag in
5527 "" | " "*) ;;
5528 *) reload_flag=" $reload_flag" ;;
5529 esac
5530 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5531 case $host_os in
5532   cygwin* | mingw* | pw32* | cegcc*)
5533     if test "$GCC" != yes; then
5534       reload_cmds=false
5535     fi
5536     ;;
5537   darwin*)
5538     if test "$GCC" = yes; then
5539       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5540     else
5541       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5542     fi
5543     ;;
5544 esac
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554 if test -n "$ac_tool_prefix"; then
5555   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5556 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_OBJDUMP+:} false; then :
5560   $as_echo_n "(cached) " >&6
5561 else
5562   if test -n "$OBJDUMP"; then
5563   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5567 do
5568   IFS=$as_save_IFS
5569   test -z "$as_dir" && as_dir=.
5570     for ac_exec_ext in '' $ac_executable_extensions; do
5571   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574     break 2
5575   fi
5576 done
5577   done
5578 IFS=$as_save_IFS
5579
5580 fi
5581 fi
5582 OBJDUMP=$ac_cv_prog_OBJDUMP
5583 if test -n "$OBJDUMP"; then
5584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5585 $as_echo "$OBJDUMP" >&6; }
5586 else
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 fi
5590
5591
5592 fi
5593 if test -z "$ac_cv_prog_OBJDUMP"; then
5594   ac_ct_OBJDUMP=$OBJDUMP
5595   # Extract the first word of "objdump", so it can be a program name with args.
5596 set dummy objdump; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5600   $as_echo_n "(cached) " >&6
5601 else
5602   if test -n "$ac_ct_OBJDUMP"; then
5603   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5604 else
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5606 for as_dir in $PATH
5607 do
5608   IFS=$as_save_IFS
5609   test -z "$as_dir" && as_dir=.
5610     for ac_exec_ext in '' $ac_executable_extensions; do
5611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5612     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5614     break 2
5615   fi
5616 done
5617   done
5618 IFS=$as_save_IFS
5619
5620 fi
5621 fi
5622 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5623 if test -n "$ac_ct_OBJDUMP"; then
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5625 $as_echo "$ac_ct_OBJDUMP" >&6; }
5626 else
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628 $as_echo "no" >&6; }
5629 fi
5630
5631   if test "x$ac_ct_OBJDUMP" = x; then
5632     OBJDUMP="false"
5633   else
5634     case $cross_compiling:$ac_tool_warned in
5635 yes:)
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5638 ac_tool_warned=yes ;;
5639 esac
5640     OBJDUMP=$ac_ct_OBJDUMP
5641   fi
5642 else
5643   OBJDUMP="$ac_cv_prog_OBJDUMP"
5644 fi
5645
5646 test -z "$OBJDUMP" && OBJDUMP=objdump
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5657 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5658 if ${lt_cv_deplibs_check_method+:} false; then :
5659   $as_echo_n "(cached) " >&6
5660 else
5661   lt_cv_file_magic_cmd='$MAGIC_CMD'
5662 lt_cv_file_magic_test_file=
5663 lt_cv_deplibs_check_method='unknown'
5664 # Need to set the preceding variable on all platforms that support
5665 # interlibrary dependencies.
5666 # 'none' -- dependencies not supported.
5667 # `unknown' -- same as none, but documents that we really don't know.
5668 # 'pass_all' -- all dependencies passed with no checks.
5669 # 'test_compile' -- check by making test program.
5670 # 'file_magic [[regex]]' -- check by looking for files in library path
5671 # which responds to the $file_magic_cmd with a given extended regex.
5672 # If you have `file' or equivalent on your system and you're not sure
5673 # whether `pass_all' will *always* work, you probably want this one.
5674
5675 case $host_os in
5676 aix[4-9]*)
5677   lt_cv_deplibs_check_method=pass_all
5678   ;;
5679
5680 beos*)
5681   lt_cv_deplibs_check_method=pass_all
5682   ;;
5683
5684 bsdi[45]*)
5685   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5686   lt_cv_file_magic_cmd='/usr/bin/file -L'
5687   lt_cv_file_magic_test_file=/shlib/libc.so
5688   ;;
5689
5690 cygwin*)
5691   # func_win32_libid is a shell function defined in ltmain.sh
5692   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5693   lt_cv_file_magic_cmd='func_win32_libid'
5694   ;;
5695
5696 mingw* | pw32*)
5697   # Base MSYS/MinGW do not provide the 'file' command needed by
5698   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5699   # unless we find 'file', for example because we are cross-compiling.
5700   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5701   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5702     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5703     lt_cv_file_magic_cmd='func_win32_libid'
5704   else
5705     # Keep this pattern in sync with the one in func_win32_libid.
5706     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5707     lt_cv_file_magic_cmd='$OBJDUMP -f'
5708   fi
5709   ;;
5710
5711 cegcc*)
5712   # use the weaker test based on 'objdump'. See mingw*.
5713   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5714   lt_cv_file_magic_cmd='$OBJDUMP -f'
5715   ;;
5716
5717 darwin* | rhapsody*)
5718   lt_cv_deplibs_check_method=pass_all
5719   ;;
5720
5721 freebsd* | dragonfly*)
5722   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5723     case $host_cpu in
5724     i*86 )
5725       # Not sure whether the presence of OpenBSD here was a mistake.
5726       # Let's accept both of them until this is cleared up.
5727       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5728       lt_cv_file_magic_cmd=/usr/bin/file
5729       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5730       ;;
5731     esac
5732   else
5733     lt_cv_deplibs_check_method=pass_all
5734   fi
5735   ;;
5736
5737 gnu*)
5738   lt_cv_deplibs_check_method=pass_all
5739   ;;
5740
5741 haiku*)
5742   lt_cv_deplibs_check_method=pass_all
5743   ;;
5744
5745 hpux10.20* | hpux11*)
5746   lt_cv_file_magic_cmd=/usr/bin/file
5747   case $host_cpu in
5748   ia64*)
5749     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5750     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5751     ;;
5752   hppa*64*)
5753     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]'
5754     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5755     ;;
5756   *)
5757     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5758     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5759     ;;
5760   esac
5761   ;;
5762
5763 interix[3-9]*)
5764   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5765   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5766   ;;
5767
5768 irix5* | irix6* | nonstopux*)
5769   case $LD in
5770   *-32|*"-32 ") libmagic=32-bit;;
5771   *-n32|*"-n32 ") libmagic=N32;;
5772   *-64|*"-64 ") libmagic=64-bit;;
5773   *) libmagic=never-match;;
5774   esac
5775   lt_cv_deplibs_check_method=pass_all
5776   ;;
5777
5778 # This must be Linux ELF.
5779 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5780   lt_cv_deplibs_check_method=pass_all
5781   ;;
5782
5783 netbsd*)
5784   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5785     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5786   else
5787     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5788   fi
5789   ;;
5790
5791 newos6*)
5792   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5793   lt_cv_file_magic_cmd=/usr/bin/file
5794   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5795   ;;
5796
5797 *nto* | *qnx*)
5798   lt_cv_deplibs_check_method=pass_all
5799   ;;
5800
5801 openbsd*)
5802   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5803     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5804   else
5805     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5806   fi
5807   ;;
5808
5809 osf3* | osf4* | osf5*)
5810   lt_cv_deplibs_check_method=pass_all
5811   ;;
5812
5813 rdos*)
5814   lt_cv_deplibs_check_method=pass_all
5815   ;;
5816
5817 solaris*)
5818   lt_cv_deplibs_check_method=pass_all
5819   ;;
5820
5821 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5822   lt_cv_deplibs_check_method=pass_all
5823   ;;
5824
5825 sysv4 | sysv4.3*)
5826   case $host_vendor in
5827   motorola)
5828     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]'
5829     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5830     ;;
5831   ncr)
5832     lt_cv_deplibs_check_method=pass_all
5833     ;;
5834   sequent)
5835     lt_cv_file_magic_cmd='/bin/file'
5836     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5837     ;;
5838   sni)
5839     lt_cv_file_magic_cmd='/bin/file'
5840     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5841     lt_cv_file_magic_test_file=/lib/libc.so
5842     ;;
5843   siemens)
5844     lt_cv_deplibs_check_method=pass_all
5845     ;;
5846   pc)
5847     lt_cv_deplibs_check_method=pass_all
5848     ;;
5849   esac
5850   ;;
5851
5852 tpf*)
5853   lt_cv_deplibs_check_method=pass_all
5854   ;;
5855 esac
5856
5857 fi
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5859 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5860
5861 file_magic_glob=
5862 want_nocaseglob=no
5863 if test "$build" = "$host"; then
5864   case $host_os in
5865   mingw* | pw32*)
5866     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5867       want_nocaseglob=yes
5868     else
5869       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5870     fi
5871     ;;
5872   esac
5873 fi
5874
5875 file_magic_cmd=$lt_cv_file_magic_cmd
5876 deplibs_check_method=$lt_cv_deplibs_check_method
5877 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 if test -n "$ac_tool_prefix"; then
5901   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 $as_echo_n "checking for $ac_word... " >&6; }
5905 if ${ac_cv_prog_DLLTOOL+:} false; then :
5906   $as_echo_n "(cached) " >&6
5907 else
5908   if test -n "$DLLTOOL"; then
5909   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916     for ac_exec_ext in '' $ac_executable_extensions; do
5917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923   done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 DLLTOOL=$ac_cv_prog_DLLTOOL
5929 if test -n "$DLLTOOL"; then
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5931 $as_echo "$DLLTOOL" >&6; }
5932 else
5933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5934 $as_echo "no" >&6; }
5935 fi
5936
5937
5938 fi
5939 if test -z "$ac_cv_prog_DLLTOOL"; then
5940   ac_ct_DLLTOOL=$DLLTOOL
5941   # Extract the first word of "dlltool", so it can be a program name with args.
5942 set dummy dlltool; ac_word=$2
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5944 $as_echo_n "checking for $ac_word... " >&6; }
5945 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   if test -n "$ac_ct_DLLTOOL"; then
5949   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956     for ac_exec_ext in '' $ac_executable_extensions; do
5957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963   done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5969 if test -n "$ac_ct_DLLTOOL"; then
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5971 $as_echo "$ac_ct_DLLTOOL" >&6; }
5972 else
5973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5975 fi
5976
5977   if test "x$ac_ct_DLLTOOL" = x; then
5978     DLLTOOL="false"
5979   else
5980     case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5984 ac_tool_warned=yes ;;
5985 esac
5986     DLLTOOL=$ac_ct_DLLTOOL
5987   fi
5988 else
5989   DLLTOOL="$ac_cv_prog_DLLTOOL"
5990 fi
5991
5992 test -z "$DLLTOOL" && DLLTOOL=dlltool
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6004 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6005 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6006   $as_echo_n "(cached) " >&6
6007 else
6008   lt_cv_sharedlib_from_linklib_cmd='unknown'
6009
6010 case $host_os in
6011 cygwin* | mingw* | pw32* | cegcc*)
6012   # two different shell functions defined in ltmain.sh
6013   # decide which to use based on capabilities of $DLLTOOL
6014   case `$DLLTOOL --help 2>&1` in
6015   *--identify-strict*)
6016     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6017     ;;
6018   *)
6019     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6020     ;;
6021   esac
6022   ;;
6023 *)
6024   # fallback: assume linklib IS sharedlib
6025   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6026   ;;
6027 esac
6028
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6031 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6032 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6033 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6034
6035
6036
6037
6038
6039
6040
6041 if test -n "$ac_tool_prefix"; then
6042   for ac_prog in ar
6043   do
6044     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047 $as_echo_n "checking for $ac_word... " >&6; }
6048 if ${ac_cv_prog_AR+:} false; then :
6049   $as_echo_n "(cached) " >&6
6050 else
6051   if test -n "$AR"; then
6052   ac_cv_prog_AR="$AR" # Let the user override the test.
6053 else
6054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057   IFS=$as_save_IFS
6058   test -z "$as_dir" && as_dir=.
6059     for ac_exec_ext in '' $ac_executable_extensions; do
6060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6061     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063     break 2
6064   fi
6065 done
6066   done
6067 IFS=$as_save_IFS
6068
6069 fi
6070 fi
6071 AR=$ac_cv_prog_AR
6072 if test -n "$AR"; then
6073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6074 $as_echo "$AR" >&6; }
6075 else
6076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6078 fi
6079
6080
6081     test -n "$AR" && break
6082   done
6083 fi
6084 if test -z "$AR"; then
6085   ac_ct_AR=$AR
6086   for ac_prog in ar
6087 do
6088   # Extract the first word of "$ac_prog", so it can be a program name with args.
6089 set dummy $ac_prog; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6093   $as_echo_n "(cached) " >&6
6094 else
6095   if test -n "$ac_ct_AR"; then
6096   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6097 else
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 for as_dir in $PATH
6100 do
6101   IFS=$as_save_IFS
6102   test -z "$as_dir" && as_dir=.
6103     for ac_exec_ext in '' $ac_executable_extensions; do
6104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105     ac_cv_prog_ac_ct_AR="$ac_prog"
6106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107     break 2
6108   fi
6109 done
6110   done
6111 IFS=$as_save_IFS
6112
6113 fi
6114 fi
6115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6116 if test -n "$ac_ct_AR"; then
6117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6118 $as_echo "$ac_ct_AR" >&6; }
6119 else
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 fi
6123
6124
6125   test -n "$ac_ct_AR" && break
6126 done
6127
6128   if test "x$ac_ct_AR" = x; then
6129     AR="false"
6130   else
6131     case $cross_compiling:$ac_tool_warned in
6132 yes:)
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135 ac_tool_warned=yes ;;
6136 esac
6137     AR=$ac_ct_AR
6138   fi
6139 fi
6140
6141 : ${AR=ar}
6142 : ${AR_FLAGS=cru}
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6155 $as_echo_n "checking for archiver @FILE support... " >&6; }
6156 if ${lt_cv_ar_at_file+:} false; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   lt_cv_ar_at_file=no
6160    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h.  */
6162
6163 int
6164 main ()
6165 {
6166
6167   ;
6168   return 0;
6169 }
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"; then :
6172   echo conftest.$ac_objext > conftest.lst
6173       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6174       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6175   (eval $lt_ar_try) 2>&5
6176   ac_status=$?
6177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6178   test $ac_status = 0; }
6179       if test "$ac_status" -eq 0; then
6180         # Ensure the archiver fails upon bogus file names.
6181         rm -f conftest.$ac_objext libconftest.a
6182         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6183   (eval $lt_ar_try) 2>&5
6184   ac_status=$?
6185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186   test $ac_status = 0; }
6187         if test "$ac_status" -ne 0; then
6188           lt_cv_ar_at_file=@
6189         fi
6190       fi
6191       rm -f conftest.* libconftest.a
6192
6193 fi
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195
6196 fi
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6198 $as_echo "$lt_cv_ar_at_file" >&6; }
6199
6200 if test "x$lt_cv_ar_at_file" = xno; then
6201   archiver_list_spec=
6202 else
6203   archiver_list_spec=$lt_cv_ar_at_file
6204 fi
6205
6206
6207
6208
6209
6210
6211
6212 if test -n "$ac_tool_prefix"; then
6213   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}strip; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_STRIP+:} false; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   if test -n "$STRIP"; then
6221   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228     for ac_exec_ext in '' $ac_executable_extensions; do
6229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235   done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 STRIP=$ac_cv_prog_STRIP
6241 if test -n "$STRIP"; then
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6243 $as_echo "$STRIP" >&6; }
6244 else
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249
6250 fi
6251 if test -z "$ac_cv_prog_STRIP"; then
6252   ac_ct_STRIP=$STRIP
6253   # Extract the first word of "strip", so it can be a program name with args.
6254 set dummy strip; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6258   $as_echo_n "(cached) " >&6
6259 else
6260   if test -n "$ac_ct_STRIP"; then
6261   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266   IFS=$as_save_IFS
6267   test -z "$as_dir" && as_dir=.
6268     for ac_exec_ext in '' $ac_executable_extensions; do
6269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270     ac_cv_prog_ac_ct_STRIP="strip"
6271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272     break 2
6273   fi
6274 done
6275   done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6281 if test -n "$ac_ct_STRIP"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6283 $as_echo "$ac_ct_STRIP" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289   if test "x$ac_ct_STRIP" = x; then
6290     STRIP=":"
6291   else
6292     case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298     STRIP=$ac_ct_STRIP
6299   fi
6300 else
6301   STRIP="$ac_cv_prog_STRIP"
6302 fi
6303
6304 test -z "$STRIP" && STRIP=:
6305
6306
6307
6308
6309
6310
6311 if test -n "$ac_tool_prefix"; then
6312   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6313 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_RANLIB+:} false; then :
6317   $as_echo_n "(cached) " >&6
6318 else
6319   if test -n "$RANLIB"; then
6320   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325   IFS=$as_save_IFS
6326   test -z "$as_dir" && as_dir=.
6327     for ac_exec_ext in '' $ac_executable_extensions; do
6328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331     break 2
6332   fi
6333 done
6334   done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 RANLIB=$ac_cv_prog_RANLIB
6340 if test -n "$RANLIB"; then
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6342 $as_echo "$RANLIB" >&6; }
6343 else
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348
6349 fi
6350 if test -z "$ac_cv_prog_RANLIB"; then
6351   ac_ct_RANLIB=$RANLIB
6352   # Extract the first word of "ranlib", so it can be a program name with args.
6353 set dummy ranlib; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   if test -n "$ac_ct_RANLIB"; then
6360   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367     for ac_exec_ext in '' $ac_executable_extensions; do
6368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369     ac_cv_prog_ac_ct_RANLIB="ranlib"
6370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374   done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6380 if test -n "$ac_ct_RANLIB"; then
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6382 $as_echo "$ac_ct_RANLIB" >&6; }
6383 else
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388   if test "x$ac_ct_RANLIB" = x; then
6389     RANLIB=":"
6390   else
6391     case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397     RANLIB=$ac_ct_RANLIB
6398   fi
6399 else
6400   RANLIB="$ac_cv_prog_RANLIB"
6401 fi
6402
6403 test -z "$RANLIB" && RANLIB=:
6404
6405
6406
6407
6408
6409
6410 # Determine commands to create old-style static archives.
6411 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6412 old_postinstall_cmds='chmod 644 $oldlib'
6413 old_postuninstall_cmds=
6414
6415 if test -n "$RANLIB"; then
6416   case $host_os in
6417   openbsd*)
6418     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6419     ;;
6420   *)
6421     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6422     ;;
6423   esac
6424   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6425 fi
6426
6427 case $host_os in
6428   darwin*)
6429     lock_old_archive_extraction=yes ;;
6430   *)
6431     lock_old_archive_extraction=no ;;
6432 esac
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 # If no C compiler was specified, use CC.
6473 LTCC=${LTCC-"$CC"}
6474
6475 # If no C compiler flags were specified, use CFLAGS.
6476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6477
6478 # Allow CC to be a program name with arguments.
6479 compiler=$CC
6480
6481
6482 # Check for command to grab the raw symbol name followed by C symbol from nm.
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6484 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6485 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488
6489 # These are sane defaults that work on at least a few old systems.
6490 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6491
6492 # Character class describing NM global symbol codes.
6493 symcode='[BCDEGRST]'
6494
6495 # Regexp to match symbols that can be accessed directly from C.
6496 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6497
6498 # Define system-specific variables.
6499 case $host_os in
6500 aix*)
6501   symcode='[BCDT]'
6502   ;;
6503 cygwin* | mingw* | pw32* | cegcc*)
6504   symcode='[ABCDGISTW]'
6505   ;;
6506 hpux*)
6507   if test "$host_cpu" = ia64; then
6508     symcode='[ABCDEGRST]'
6509   fi
6510   ;;
6511 irix* | nonstopux*)
6512   symcode='[BCDEGRST]'
6513   ;;
6514 osf*)
6515   symcode='[BCDEGQRST]'
6516   ;;
6517 solaris*)
6518   symcode='[BDRT]'
6519   ;;
6520 sco3.2v5*)
6521   symcode='[DT]'
6522   ;;
6523 sysv4.2uw2*)
6524   symcode='[DT]'
6525   ;;
6526 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6527   symcode='[ABDT]'
6528   ;;
6529 sysv4)
6530   symcode='[DFNSTU]'
6531   ;;
6532 esac
6533
6534 # If we're using GNU nm, then use its standard symbol codes.
6535 case `$NM -V 2>&1` in
6536 *GNU* | *'with BFD'*)
6537   symcode='[ABCDGIRSTW]' ;;
6538 esac
6539
6540 # Transform an extracted symbol line into a proper C declaration.
6541 # Some systems (esp. on ia64) link data and code symbols differently,
6542 # so use this general approach.
6543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6544
6545 # Transform an extracted symbol line into symbol name and symbol address
6546 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6547 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6548
6549 # Handle CRLF in mingw tool chain
6550 opt_cr=
6551 case $build_os in
6552 mingw*)
6553   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6554   ;;
6555 esac
6556
6557 # Try without a prefix underscore, then with it.
6558 for ac_symprfx in "" "_"; do
6559
6560   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6561   symxfrm="\\1 $ac_symprfx\\2 \\2"
6562
6563   # Write the raw and C identifiers.
6564   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6565     # Fake it for dumpbin and say T for any non-static function
6566     # and D for any global variable.
6567     # Also find C++ and __fastcall symbols from MSVC++,
6568     # which start with @ or ?.
6569     lt_cv_sys_global_symbol_pipe="$AWK '"\
6570 "     {last_section=section; section=\$ 3};"\
6571 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6572 "     \$ 0!~/External *\|/{next};"\
6573 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6574 "     {if(hide[section]) next};"\
6575 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6576 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6577 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6578 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6579 "     ' prfx=^$ac_symprfx"
6580   else
6581     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6582   fi
6583   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6584
6585   # Check to see that the pipe works correctly.
6586   pipe_works=no
6587
6588   rm -f conftest*
6589   cat > conftest.$ac_ext <<_LT_EOF
6590 #ifdef __cplusplus
6591 extern "C" {
6592 #endif
6593 char nm_test_var;
6594 void nm_test_func(void);
6595 void nm_test_func(void){}
6596 #ifdef __cplusplus
6597 }
6598 #endif
6599 int main(){nm_test_var='a';nm_test_func();return(0);}
6600 _LT_EOF
6601
6602   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6603   (eval $ac_compile) 2>&5
6604   ac_status=$?
6605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606   test $ac_status = 0; }; then
6607     # Now try to grab the symbols.
6608     nlist=conftest.nm
6609     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6610   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6611   ac_status=$?
6612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6613   test $ac_status = 0; } && test -s "$nlist"; then
6614       # Try sorting and uniquifying the output.
6615       if sort "$nlist" | uniq > "$nlist"T; then
6616         mv -f "$nlist"T "$nlist"
6617       else
6618         rm -f "$nlist"T
6619       fi
6620
6621       # Make sure that we snagged all the symbols we need.
6622       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6623         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6624           cat <<_LT_EOF > conftest.$ac_ext
6625 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6626 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6627 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6628    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6629 # define LT_DLSYM_CONST
6630 #elif defined(__osf__)
6631 /* This system does not cope well with relocations in const data.  */
6632 # define LT_DLSYM_CONST
6633 #else
6634 # define LT_DLSYM_CONST const
6635 #endif
6636
6637 #ifdef __cplusplus
6638 extern "C" {
6639 #endif
6640
6641 _LT_EOF
6642           # Now generate the symbol file.
6643           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6644
6645           cat <<_LT_EOF >> conftest.$ac_ext
6646
6647 /* The mapping between symbol names and symbols.  */
6648 LT_DLSYM_CONST struct {
6649   const char *name;
6650   void       *address;
6651 }
6652 lt__PROGRAM__LTX_preloaded_symbols[] =
6653 {
6654   { "@PROGRAM@", (void *) 0 },
6655 _LT_EOF
6656           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6657           cat <<\_LT_EOF >> conftest.$ac_ext
6658   {0, (void *) 0}
6659 };
6660
6661 /* This works around a problem in FreeBSD linker */
6662 #ifdef FREEBSD_WORKAROUND
6663 static const void *lt_preloaded_setup() {
6664   return lt__PROGRAM__LTX_preloaded_symbols;
6665 }
6666 #endif
6667
6668 #ifdef __cplusplus
6669 }
6670 #endif
6671 _LT_EOF
6672           # Now try linking the two files.
6673           mv conftest.$ac_objext conftstm.$ac_objext
6674           lt_globsym_save_LIBS=$LIBS
6675           lt_globsym_save_CFLAGS=$CFLAGS
6676           LIBS="conftstm.$ac_objext"
6677           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6678           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6679   (eval $ac_link) 2>&5
6680   ac_status=$?
6681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6682   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6683             pipe_works=yes
6684           fi
6685           LIBS=$lt_globsym_save_LIBS
6686           CFLAGS=$lt_globsym_save_CFLAGS
6687         else
6688           echo "cannot find nm_test_func in $nlist" >&5
6689         fi
6690       else
6691         echo "cannot find nm_test_var in $nlist" >&5
6692       fi
6693     else
6694       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6695     fi
6696   else
6697     echo "$progname: failed program was:" >&5
6698     cat conftest.$ac_ext >&5
6699   fi
6700   rm -rf conftest* conftst*
6701
6702   # Do not use the global_symbol_pipe unless it works.
6703   if test "$pipe_works" = yes; then
6704     break
6705   else
6706     lt_cv_sys_global_symbol_pipe=
6707   fi
6708 done
6709
6710 fi
6711
6712 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6713   lt_cv_sys_global_symbol_to_cdecl=
6714 fi
6715 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6717 $as_echo "failed" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6720 $as_echo "ok" >&6; }
6721 fi
6722
6723 # Response file support.
6724 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6725   nm_file_list_spec='@'
6726 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6727   nm_file_list_spec='@'
6728 fi
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6757 $as_echo_n "checking for sysroot... " >&6; }
6758
6759 # Check whether --with-sysroot was given.
6760 if test "${with_sysroot+set}" = set; then :
6761   withval=$with_sysroot;
6762 else
6763   with_sysroot=no
6764 fi
6765
6766
6767 lt_sysroot=
6768 case ${with_sysroot} in #(
6769  yes)
6770    if test "$GCC" = yes; then
6771      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6772    fi
6773    ;; #(
6774  /*)
6775    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6776    ;; #(
6777  no|'')
6778    ;; #(
6779  *)
6780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6781 $as_echo "${with_sysroot}" >&6; }
6782    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6783    ;;
6784 esac
6785
6786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6787 $as_echo "${lt_sysroot:-no}" >&6; }
6788
6789
6790
6791
6792
6793 # Check whether --enable-libtool-lock was given.
6794 if test "${enable_libtool_lock+set}" = set; then :
6795   enableval=$enable_libtool_lock;
6796 fi
6797
6798 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6799
6800 # Some flags need to be propagated to the compiler or linker for good
6801 # libtool support.
6802 case $host in
6803 ia64-*-hpux*)
6804   # Find out which ABI we are using.
6805   echo 'int i;' > conftest.$ac_ext
6806   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6807   (eval $ac_compile) 2>&5
6808   ac_status=$?
6809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810   test $ac_status = 0; }; then
6811     case `/usr/bin/file conftest.$ac_objext` in
6812       *ELF-32*)
6813         HPUX_IA64_MODE="32"
6814         ;;
6815       *ELF-64*)
6816         HPUX_IA64_MODE="64"
6817         ;;
6818     esac
6819   fi
6820   rm -rf conftest*
6821   ;;
6822 *-*-irix6*)
6823   # Find out which ABI we are using.
6824   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6825   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826   (eval $ac_compile) 2>&5
6827   ac_status=$?
6828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829   test $ac_status = 0; }; then
6830     if test "$lt_cv_prog_gnu_ld" = yes; then
6831       case `/usr/bin/file conftest.$ac_objext` in
6832         *32-bit*)
6833           LD="${LD-ld} -melf32bsmip"
6834           ;;
6835         *N32*)
6836           LD="${LD-ld} -melf32bmipn32"
6837           ;;
6838         *64-bit*)
6839           LD="${LD-ld} -melf64bmip"
6840         ;;
6841       esac
6842     else
6843       case `/usr/bin/file conftest.$ac_objext` in
6844         *32-bit*)
6845           LD="${LD-ld} -32"
6846           ;;
6847         *N32*)
6848           LD="${LD-ld} -n32"
6849           ;;
6850         *64-bit*)
6851           LD="${LD-ld} -64"
6852           ;;
6853       esac
6854     fi
6855   fi
6856   rm -rf conftest*
6857   ;;
6858
6859 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6860 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6861   # Find out which ABI we are using.
6862   echo 'int i;' > conftest.$ac_ext
6863   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6864   (eval $ac_compile) 2>&5
6865   ac_status=$?
6866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6867   test $ac_status = 0; }; then
6868     case `/usr/bin/file conftest.o` in
6869       *32-bit*)
6870         case $host in
6871           x86_64-*kfreebsd*-gnu)
6872             LD="${LD-ld} -m elf_i386_fbsd"
6873             ;;
6874           x86_64-*linux*)
6875             LD="${LD-ld} -m elf_i386"
6876             ;;
6877           ppc64-*linux*|powerpc64-*linux*)
6878             LD="${LD-ld} -m elf32ppclinux"
6879             ;;
6880           s390x-*linux*)
6881             LD="${LD-ld} -m elf_s390"
6882             ;;
6883           sparc64-*linux*)
6884             LD="${LD-ld} -m elf32_sparc"
6885             ;;
6886         esac
6887         ;;
6888       *64-bit*)
6889         case $host in
6890           x86_64-*kfreebsd*-gnu)
6891             LD="${LD-ld} -m elf_x86_64_fbsd"
6892             ;;
6893           x86_64-*linux*)
6894             LD="${LD-ld} -m elf_x86_64"
6895             ;;
6896           ppc*-*linux*|powerpc*-*linux*)
6897             LD="${LD-ld} -m elf64ppc"
6898             ;;
6899           s390*-*linux*|s390*-*tpf*)
6900             LD="${LD-ld} -m elf64_s390"
6901             ;;
6902           sparc*-*linux*)
6903             LD="${LD-ld} -m elf64_sparc"
6904             ;;
6905         esac
6906         ;;
6907     esac
6908   fi
6909   rm -rf conftest*
6910   ;;
6911
6912 *-*-sco3.2v5*)
6913   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6914   SAVE_CFLAGS="$CFLAGS"
6915   CFLAGS="$CFLAGS -belf"
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6917 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6918 if ${lt_cv_cc_needs_belf+:} false; then :
6919   $as_echo_n "(cached) " >&6
6920 else
6921   ac_ext=c
6922 ac_cpp='$CPP $CPPFLAGS'
6923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h.  */
6929
6930 int
6931 main ()
6932 {
6933
6934   ;
6935   return 0;
6936 }
6937 _ACEOF
6938 if ac_fn_c_try_link "$LINENO"; then :
6939   lt_cv_cc_needs_belf=yes
6940 else
6941   lt_cv_cc_needs_belf=no
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext \
6944     conftest$ac_exeext conftest.$ac_ext
6945      ac_ext=c
6946 ac_cpp='$CPP $CPPFLAGS'
6947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6950
6951 fi
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6953 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6954   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6955     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6956     CFLAGS="$SAVE_CFLAGS"
6957   fi
6958   ;;
6959 sparc*-*solaris*)
6960   # Find out which ABI we are using.
6961   echo 'int i;' > conftest.$ac_ext
6962   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6963   (eval $ac_compile) 2>&5
6964   ac_status=$?
6965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6966   test $ac_status = 0; }; then
6967     case `/usr/bin/file conftest.o` in
6968     *64-bit*)
6969       case $lt_cv_prog_gnu_ld in
6970       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6971       *)
6972         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6973           LD="${LD-ld} -64"
6974         fi
6975         ;;
6976       esac
6977       ;;
6978     esac
6979   fi
6980   rm -rf conftest*
6981   ;;
6982 esac
6983
6984 need_locks="$enable_libtool_lock"
6985
6986 if test -n "$ac_tool_prefix"; then
6987   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}mt; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6992   $as_echo_n "(cached) " >&6
6993 else
6994   if test -n "$MANIFEST_TOOL"; then
6995   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000   IFS=$as_save_IFS
7001   test -z "$as_dir" && as_dir=.
7002     for ac_exec_ext in '' $ac_executable_extensions; do
7003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006     break 2
7007   fi
7008 done
7009   done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
7014 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7015 if test -n "$MANIFEST_TOOL"; then
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7017 $as_echo "$MANIFEST_TOOL" >&6; }
7018 else
7019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7021 fi
7022
7023
7024 fi
7025 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7026   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7027   # Extract the first word of "mt", so it can be a program name with args.
7028 set dummy mt; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7032   $as_echo_n "(cached) " >&6
7033 else
7034   if test -n "$ac_ct_MANIFEST_TOOL"; then
7035   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040   IFS=$as_save_IFS
7041   test -z "$as_dir" && as_dir=.
7042     for ac_exec_ext in '' $ac_executable_extensions; do
7043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046     break 2
7047   fi
7048 done
7049   done
7050 IFS=$as_save_IFS
7051
7052 fi
7053 fi
7054 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7055 if test -n "$ac_ct_MANIFEST_TOOL"; then
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7057 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7058 else
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7061 fi
7062
7063   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7064     MANIFEST_TOOL=":"
7065   else
7066     case $cross_compiling:$ac_tool_warned in
7067 yes:)
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070 ac_tool_warned=yes ;;
7071 esac
7072     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7073   fi
7074 else
7075   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7076 fi
7077
7078 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7080 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7081 if ${lt_cv_path_mainfest_tool+:} false; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   lt_cv_path_mainfest_tool=no
7085   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7086   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7087   cat conftest.err >&5
7088   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7089     lt_cv_path_mainfest_tool=yes
7090   fi
7091   rm -f conftest*
7092 fi
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7094 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7095 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7096   MANIFEST_TOOL=:
7097 fi
7098
7099
7100
7101
7102
7103
7104   case $host_os in
7105     rhapsody* | darwin*)
7106     if test -n "$ac_tool_prefix"; then
7107   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7112   $as_echo_n "(cached) " >&6
7113 else
7114   if test -n "$DSYMUTIL"; then
7115   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122     for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129   done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7135 if test -n "$DSYMUTIL"; then
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7137 $as_echo "$DSYMUTIL" >&6; }
7138 else
7139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143
7144 fi
7145 if test -z "$ac_cv_prog_DSYMUTIL"; then
7146   ac_ct_DSYMUTIL=$DSYMUTIL
7147   # Extract the first word of "dsymutil", so it can be a program name with args.
7148 set dummy dsymutil; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150 $as_echo_n "checking for $ac_word... " >&6; }
7151 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7152   $as_echo_n "(cached) " >&6
7153 else
7154   if test -n "$ac_ct_DSYMUTIL"; then
7155   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162     for ac_exec_ext in '' $ac_executable_extensions; do
7163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7164     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169   done
7170 IFS=$as_save_IFS
7171
7172 fi
7173 fi
7174 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7175 if test -n "$ac_ct_DSYMUTIL"; then
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7177 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7178 else
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7181 fi
7182
7183   if test "x$ac_ct_DSYMUTIL" = x; then
7184     DSYMUTIL=":"
7185   else
7186     case $cross_compiling:$ac_tool_warned in
7187 yes:)
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190 ac_tool_warned=yes ;;
7191 esac
7192     DSYMUTIL=$ac_ct_DSYMUTIL
7193   fi
7194 else
7195   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7196 fi
7197
7198     if test -n "$ac_tool_prefix"; then
7199   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if ${ac_cv_prog_NMEDIT+:} false; then :
7204   $as_echo_n "(cached) " >&6
7205 else
7206   if test -n "$NMEDIT"; then
7207   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214     for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221   done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 NMEDIT=$ac_cv_prog_NMEDIT
7227 if test -n "$NMEDIT"; then
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7229 $as_echo "$NMEDIT" >&6; }
7230 else
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233 fi
7234
7235
7236 fi
7237 if test -z "$ac_cv_prog_NMEDIT"; then
7238   ac_ct_NMEDIT=$NMEDIT
7239   # Extract the first word of "nmedit", so it can be a program name with args.
7240 set dummy nmedit; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7244   $as_echo_n "(cached) " >&6
7245 else
7246   if test -n "$ac_ct_NMEDIT"; then
7247   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254     for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261   done
7262 IFS=$as_save_IFS
7263
7264 fi
7265 fi
7266 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7267 if test -n "$ac_ct_NMEDIT"; then
7268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7269 $as_echo "$ac_ct_NMEDIT" >&6; }
7270 else
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7273 fi
7274
7275   if test "x$ac_ct_NMEDIT" = x; then
7276     NMEDIT=":"
7277   else
7278     case $cross_compiling:$ac_tool_warned in
7279 yes:)
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 ac_tool_warned=yes ;;
7283 esac
7284     NMEDIT=$ac_ct_NMEDIT
7285   fi
7286 else
7287   NMEDIT="$ac_cv_prog_NMEDIT"
7288 fi
7289
7290     if test -n "$ac_tool_prefix"; then
7291   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_LIPO+:} false; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   if test -n "$LIPO"; then
7299   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304   IFS=$as_save_IFS
7305   test -z "$as_dir" && as_dir=.
7306     for ac_exec_ext in '' $ac_executable_extensions; do
7307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310     break 2
7311   fi
7312 done
7313   done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 LIPO=$ac_cv_prog_LIPO
7319 if test -n "$LIPO"; then
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7321 $as_echo "$LIPO" >&6; }
7322 else
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7325 fi
7326
7327
7328 fi
7329 if test -z "$ac_cv_prog_LIPO"; then
7330   ac_ct_LIPO=$LIPO
7331   # Extract the first word of "lipo", so it can be a program name with args.
7332 set dummy lipo; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if test -n "$ac_ct_LIPO"; then
7339   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348     ac_cv_prog_ac_ct_LIPO="lipo"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7359 if test -n "$ac_ct_LIPO"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7361 $as_echo "$ac_ct_LIPO" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367   if test "x$ac_ct_LIPO" = x; then
7368     LIPO=":"
7369   else
7370     case $cross_compiling:$ac_tool_warned in
7371 yes:)
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7375 esac
7376     LIPO=$ac_ct_LIPO
7377   fi
7378 else
7379   LIPO="$ac_cv_prog_LIPO"
7380 fi
7381
7382     if test -n "$ac_tool_prefix"; then
7383   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}otool; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_OTOOL+:} false; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   if test -n "$OTOOL"; then
7391   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398     for ac_exec_ext in '' $ac_executable_extensions; do
7399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405   done
7406 IFS=$as_save_IFS
7407
7408 fi
7409 fi
7410 OTOOL=$ac_cv_prog_OTOOL
7411 if test -n "$OTOOL"; then
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7413 $as_echo "$OTOOL" >&6; }
7414 else
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417 fi
7418
7419
7420 fi
7421 if test -z "$ac_cv_prog_OTOOL"; then
7422   ac_ct_OTOOL=$OTOOL
7423   # Extract the first word of "otool", so it can be a program name with args.
7424 set dummy otool; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   if test -n "$ac_ct_OTOOL"; then
7431   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436   IFS=$as_save_IFS
7437   test -z "$as_dir" && as_dir=.
7438     for ac_exec_ext in '' $ac_executable_extensions; do
7439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7440     ac_cv_prog_ac_ct_OTOOL="otool"
7441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442     break 2
7443   fi
7444 done
7445   done
7446 IFS=$as_save_IFS
7447
7448 fi
7449 fi
7450 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7451 if test -n "$ac_ct_OTOOL"; then
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7453 $as_echo "$ac_ct_OTOOL" >&6; }
7454 else
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7457 fi
7458
7459   if test "x$ac_ct_OTOOL" = x; then
7460     OTOOL=":"
7461   else
7462     case $cross_compiling:$ac_tool_warned in
7463 yes:)
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7466 ac_tool_warned=yes ;;
7467 esac
7468     OTOOL=$ac_ct_OTOOL
7469   fi
7470 else
7471   OTOOL="$ac_cv_prog_OTOOL"
7472 fi
7473
7474     if test -n "$ac_tool_prefix"; then
7475   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_OTOOL64+:} false; then :
7480   $as_echo_n "(cached) " >&6
7481 else
7482   if test -n "$OTOOL64"; then
7483   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490     for ac_exec_ext in '' $ac_executable_extensions; do
7491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7492     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497   done
7498 IFS=$as_save_IFS
7499
7500 fi
7501 fi
7502 OTOOL64=$ac_cv_prog_OTOOL64
7503 if test -n "$OTOOL64"; then
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7505 $as_echo "$OTOOL64" >&6; }
7506 else
7507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509 fi
7510
7511
7512 fi
7513 if test -z "$ac_cv_prog_OTOOL64"; then
7514   ac_ct_OTOOL64=$OTOOL64
7515   # Extract the first word of "otool64", so it can be a program name with args.
7516 set dummy otool64; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   if test -n "$ac_ct_OTOOL64"; then
7523   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530     for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_prog_ac_ct_OTOOL64="otool64"
7533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537   done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7543 if test -n "$ac_ct_OTOOL64"; then
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7545 $as_echo "$ac_ct_OTOOL64" >&6; }
7546 else
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551   if test "x$ac_ct_OTOOL64" = x; then
7552     OTOOL64=":"
7553   else
7554     case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7559 esac
7560     OTOOL64=$ac_ct_OTOOL64
7561   fi
7562 else
7563   OTOOL64="$ac_cv_prog_OTOOL64"
7564 fi
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7593 $as_echo_n "checking for -single_module linker flag... " >&6; }
7594 if ${lt_cv_apple_cc_single_mod+:} false; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   lt_cv_apple_cc_single_mod=no
7598       if test -z "${LT_MULTI_MODULE}"; then
7599         # By default we will add the -single_module flag. You can override
7600         # by either setting the environment variable LT_MULTI_MODULE
7601         # non-empty at configure time, or by adding -multi_module to the
7602         # link flags.
7603         rm -rf libconftest.dylib*
7604         echo "int foo(void){return 1;}" > conftest.c
7605         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7606 -dynamiclib -Wl,-single_module conftest.c" >&5
7607         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7608           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7609         _lt_result=$?
7610         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7611           lt_cv_apple_cc_single_mod=yes
7612         else
7613           cat conftest.err >&5
7614         fi
7615         rm -rf libconftest.dylib*
7616         rm -f conftest.*
7617       fi
7618 fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7620 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7622 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7623 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7624   $as_echo_n "(cached) " >&6
7625 else
7626   lt_cv_ld_exported_symbols_list=no
7627       save_LDFLAGS=$LDFLAGS
7628       echo "_main" > conftest.sym
7629       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7630       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h.  */
7632
7633 int
7634 main ()
7635 {
7636
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 if ac_fn_c_try_link "$LINENO"; then :
7642   lt_cv_ld_exported_symbols_list=yes
7643 else
7644   lt_cv_ld_exported_symbols_list=no
7645 fi
7646 rm -f core conftest.err conftest.$ac_objext \
7647     conftest$ac_exeext conftest.$ac_ext
7648         LDFLAGS="$save_LDFLAGS"
7649
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7652 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7654 $as_echo_n "checking for -force_load linker flag... " >&6; }
7655 if ${lt_cv_ld_force_load+:} false; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   lt_cv_ld_force_load=no
7659       cat > conftest.c << _LT_EOF
7660 int forced_loaded() { return 2;}
7661 _LT_EOF
7662       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7663       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7664       echo "$AR cru libconftest.a conftest.o" >&5
7665       $AR cru libconftest.a conftest.o 2>&5
7666       echo "$RANLIB libconftest.a" >&5
7667       $RANLIB libconftest.a 2>&5
7668       cat > conftest.c << _LT_EOF
7669 int main() { return 0;}
7670 _LT_EOF
7671       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7672       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7673       _lt_result=$?
7674       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7675         lt_cv_ld_force_load=yes
7676       else
7677         cat conftest.err >&5
7678       fi
7679         rm -f conftest.err libconftest.a conftest conftest.c
7680         rm -rf conftest.dSYM
7681
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7684 $as_echo "$lt_cv_ld_force_load" >&6; }
7685     case $host_os in
7686     rhapsody* | darwin1.[012])
7687       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7688     darwin1.*)
7689       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7690     darwin*) # darwin 5.x on
7691       # if running on 10.5 or later, the deployment target defaults
7692       # to the OS version, if on x86, and 10.4, the deployment
7693       # target defaults to 10.4. Don't you love it?
7694       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7695         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7696           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7697         10.[012]*)
7698           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7699         10.*)
7700           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7701       esac
7702     ;;
7703   esac
7704     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7705       _lt_dar_single_mod='$single_module'
7706     fi
7707     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7708       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7709     else
7710       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7711     fi
7712     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7713       _lt_dsymutil='~$DSYMUTIL $lib || :'
7714     else
7715       _lt_dsymutil=
7716     fi
7717     ;;
7718   esac
7719
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7721 $as_echo_n "checking for ANSI C header files... " >&6; }
7722 if ${ac_cv_header_stdc+:} false; then :
7723   $as_echo_n "(cached) " >&6
7724 else
7725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h.  */
7727 #include <stdlib.h>
7728 #include <stdarg.h>
7729 #include <string.h>
7730 #include <float.h>
7731
7732 int
7733 main ()
7734 {
7735
7736   ;
7737   return 0;
7738 }
7739 _ACEOF
7740 if ac_fn_c_try_compile "$LINENO"; then :
7741   ac_cv_header_stdc=yes
7742 else
7743   ac_cv_header_stdc=no
7744 fi
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746
7747 if test $ac_cv_header_stdc = yes; then
7748   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h.  */
7751 #include <string.h>
7752
7753 _ACEOF
7754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755   $EGREP "memchr" >/dev/null 2>&1; then :
7756
7757 else
7758   ac_cv_header_stdc=no
7759 fi
7760 rm -f conftest*
7761
7762 fi
7763
7764 if test $ac_cv_header_stdc = yes; then
7765   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h.  */
7768 #include <stdlib.h>
7769
7770 _ACEOF
7771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7772   $EGREP "free" >/dev/null 2>&1; then :
7773
7774 else
7775   ac_cv_header_stdc=no
7776 fi
7777 rm -f conftest*
7778
7779 fi
7780
7781 if test $ac_cv_header_stdc = yes; then
7782   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7783   if test "$cross_compiling" = yes; then :
7784   :
7785 else
7786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h.  */
7788 #include <ctype.h>
7789 #include <stdlib.h>
7790 #if ((' ' & 0x0FF) == 0x020)
7791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7793 #else
7794 # define ISLOWER(c) \
7795                    (('a' <= (c) && (c) <= 'i') \
7796                      || ('j' <= (c) && (c) <= 'r') \
7797                      || ('s' <= (c) && (c) <= 'z'))
7798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7799 #endif
7800
7801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7802 int
7803 main ()
7804 {
7805   int i;
7806   for (i = 0; i < 256; i++)
7807     if (XOR (islower (i), ISLOWER (i))
7808         || toupper (i) != TOUPPER (i))
7809       return 2;
7810   return 0;
7811 }
7812 _ACEOF
7813 if ac_fn_c_try_run "$LINENO"; then :
7814
7815 else
7816   ac_cv_header_stdc=no
7817 fi
7818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7819   conftest.$ac_objext conftest.beam conftest.$ac_ext
7820 fi
7821
7822 fi
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7825 $as_echo "$ac_cv_header_stdc" >&6; }
7826 if test $ac_cv_header_stdc = yes; then
7827
7828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7829
7830 fi
7831
7832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7834                   inttypes.h stdint.h unistd.h
7835 do :
7836   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7838 "
7839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7840   cat >>confdefs.h <<_ACEOF
7841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7842 _ACEOF
7843
7844 fi
7845
7846 done
7847
7848
7849 for ac_header in dlfcn.h
7850 do :
7851   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7852 "
7853 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7854   cat >>confdefs.h <<_ACEOF
7855 #define HAVE_DLFCN_H 1
7856 _ACEOF
7857
7858 fi
7859
7860 done
7861
7862
7863
7864
7865
7866 # Set options
7867
7868
7869
7870         enable_dlopen=no
7871
7872
7873   enable_win32_dll=no
7874
7875
7876             # Check whether --enable-shared was given.
7877 if test "${enable_shared+set}" = set; then :
7878   enableval=$enable_shared; p=${PACKAGE-default}
7879     case $enableval in
7880     yes) enable_shared=yes ;;
7881     no) enable_shared=no ;;
7882     *)
7883       enable_shared=no
7884       # Look at the argument we got.  We use all the common list separators.
7885       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7886       for pkg in $enableval; do
7887         IFS="$lt_save_ifs"
7888         if test "X$pkg" = "X$p"; then
7889           enable_shared=yes
7890         fi
7891       done
7892       IFS="$lt_save_ifs"
7893       ;;
7894     esac
7895 else
7896   enable_shared=yes
7897 fi
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907   # Check whether --enable-static was given.
7908 if test "${enable_static+set}" = set; then :
7909   enableval=$enable_static; p=${PACKAGE-default}
7910     case $enableval in
7911     yes) enable_static=yes ;;
7912     no) enable_static=no ;;
7913     *)
7914      enable_static=no
7915       # Look at the argument we got.  We use all the common list separators.
7916       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7917       for pkg in $enableval; do
7918         IFS="$lt_save_ifs"
7919         if test "X$pkg" = "X$p"; then
7920           enable_static=yes
7921         fi
7922       done
7923       IFS="$lt_save_ifs"
7924       ;;
7925     esac
7926 else
7927   enable_static=yes
7928 fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939 # Check whether --with-pic was given.
7940 if test "${with_pic+set}" = set; then :
7941   withval=$with_pic; pic_mode="$withval"
7942 else
7943   pic_mode=default
7944 fi
7945
7946
7947 test -z "$pic_mode" && pic_mode=default
7948
7949
7950
7951
7952
7953
7954
7955   # Check whether --enable-fast-install was given.
7956 if test "${enable_fast_install+set}" = set; then :
7957   enableval=$enable_fast_install; p=${PACKAGE-default}
7958     case $enableval in
7959     yes) enable_fast_install=yes ;;
7960     no) enable_fast_install=no ;;
7961     *)
7962       enable_fast_install=no
7963       # Look at the argument we got.  We use all the common list separators.
7964       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7965       for pkg in $enableval; do
7966         IFS="$lt_save_ifs"
7967         if test "X$pkg" = "X$p"; then
7968           enable_fast_install=yes
7969         fi
7970       done
7971       IFS="$lt_save_ifs"
7972       ;;
7973     esac
7974 else
7975   enable_fast_install=yes
7976 fi
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988 # This can be used to rebuild libtool when needed
7989 LIBTOOL_DEPS="$ltmain"
7990
7991 # Always use our own libtool.
7992 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019 test -z "$LN_S" && LN_S="ln -s"
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034 if test -n "${ZSH_VERSION+set}" ; then
8035    setopt NO_GLOB_SUBST
8036 fi
8037
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8039 $as_echo_n "checking for objdir... " >&6; }
8040 if ${lt_cv_objdir+:} false; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   rm -f .libs 2>/dev/null
8044 mkdir .libs 2>/dev/null
8045 if test -d .libs; then
8046   lt_cv_objdir=.libs
8047 else
8048   # MS-DOS does not allow filenames that begin with a dot.
8049   lt_cv_objdir=_libs
8050 fi
8051 rmdir .libs 2>/dev/null
8052 fi
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8054 $as_echo "$lt_cv_objdir" >&6; }
8055 objdir=$lt_cv_objdir
8056
8057
8058
8059
8060
8061 cat >>confdefs.h <<_ACEOF
8062 #define LT_OBJDIR "$lt_cv_objdir/"
8063 _ACEOF
8064
8065
8066
8067
8068 case $host_os in
8069 aix3*)
8070   # AIX sometimes has problems with the GCC collect2 program.  For some
8071   # reason, if we set the COLLECT_NAMES environment variable, the problems
8072   # vanish in a puff of smoke.
8073   if test "X${COLLECT_NAMES+set}" != Xset; then
8074     COLLECT_NAMES=
8075     export COLLECT_NAMES
8076   fi
8077   ;;
8078 esac
8079
8080 # Global variables:
8081 ofile=libtool
8082 can_build_shared=yes
8083
8084 # All known linkers require a `.a' archive for static linking (except MSVC,
8085 # which needs '.lib').
8086 libext=a
8087
8088 with_gnu_ld="$lt_cv_prog_gnu_ld"
8089
8090 old_CC="$CC"
8091 old_CFLAGS="$CFLAGS"
8092
8093 # Set sane defaults for various variables
8094 test -z "$CC" && CC=cc
8095 test -z "$LTCC" && LTCC=$CC
8096 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8097 test -z "$LD" && LD=ld
8098 test -z "$ac_objext" && ac_objext=o
8099
8100 for cc_temp in $compiler""; do
8101   case $cc_temp in
8102     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8103     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8104     \-*) ;;
8105     *) break;;
8106   esac
8107 done
8108 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8109
8110
8111 # Only perform the check for file, if the check method requires it
8112 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8113 case $deplibs_check_method in
8114 file_magic*)
8115   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8116     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8117 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8118 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8119   $as_echo_n "(cached) " >&6
8120 else
8121   case $MAGIC_CMD in
8122 [\\/*] |  ?:[\\/]*)
8123   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8124   ;;
8125 *)
8126   lt_save_MAGIC_CMD="$MAGIC_CMD"
8127   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8128   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8129   for ac_dir in $ac_dummy; do
8130     IFS="$lt_save_ifs"
8131     test -z "$ac_dir" && ac_dir=.
8132     if test -f $ac_dir/${ac_tool_prefix}file; then
8133       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8134       if test -n "$file_magic_test_file"; then
8135         case $deplibs_check_method in
8136         "file_magic "*)
8137           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8138           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8139           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8140             $EGREP "$file_magic_regex" > /dev/null; then
8141             :
8142           else
8143             cat <<_LT_EOF 1>&2
8144
8145 *** Warning: the command libtool uses to detect shared libraries,
8146 *** $file_magic_cmd, produces output that libtool cannot recognize.
8147 *** The result is that libtool may fail to recognize shared libraries
8148 *** as such.  This will affect the creation of libtool libraries that
8149 *** depend on shared libraries, but programs linked with such libtool
8150 *** libraries will work regardless of this problem.  Nevertheless, you
8151 *** may want to report the problem to your system manager and/or to
8152 *** bug-libtool@gnu.org
8153
8154 _LT_EOF
8155           fi ;;
8156         esac
8157       fi
8158       break
8159     fi
8160   done
8161   IFS="$lt_save_ifs"
8162   MAGIC_CMD="$lt_save_MAGIC_CMD"
8163   ;;
8164 esac
8165 fi
8166
8167 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8168 if test -n "$MAGIC_CMD"; then
8169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8170 $as_echo "$MAGIC_CMD" >&6; }
8171 else
8172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 fi
8175
8176
8177
8178
8179
8180 if test -z "$lt_cv_path_MAGIC_CMD"; then
8181   if test -n "$ac_tool_prefix"; then
8182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8183 $as_echo_n "checking for file... " >&6; }
8184 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   case $MAGIC_CMD in
8188 [\\/*] |  ?:[\\/]*)
8189   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8190   ;;
8191 *)
8192   lt_save_MAGIC_CMD="$MAGIC_CMD"
8193   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8194   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8195   for ac_dir in $ac_dummy; do
8196     IFS="$lt_save_ifs"
8197     test -z "$ac_dir" && ac_dir=.
8198     if test -f $ac_dir/file; then
8199       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8200       if test -n "$file_magic_test_file"; then
8201         case $deplibs_check_method in
8202         "file_magic "*)
8203           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8204           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8205           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8206             $EGREP "$file_magic_regex" > /dev/null; then
8207             :
8208           else
8209             cat <<_LT_EOF 1>&2
8210
8211 *** Warning: the command libtool uses to detect shared libraries,
8212 *** $file_magic_cmd, produces output that libtool cannot recognize.
8213 *** The result is that libtool may fail to recognize shared libraries
8214 *** as such.  This will affect the creation of libtool libraries that
8215 *** depend on shared libraries, but programs linked with such libtool
8216 *** libraries will work regardless of this problem.  Nevertheless, you
8217 *** may want to report the problem to your system manager and/or to
8218 *** bug-libtool@gnu.org
8219
8220 _LT_EOF
8221           fi ;;
8222         esac
8223       fi
8224       break
8225     fi
8226   done
8227   IFS="$lt_save_ifs"
8228   MAGIC_CMD="$lt_save_MAGIC_CMD"
8229   ;;
8230 esac
8231 fi
8232
8233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8234 if test -n "$MAGIC_CMD"; then
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8236 $as_echo "$MAGIC_CMD" >&6; }
8237 else
8238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8240 fi
8241
8242
8243   else
8244     MAGIC_CMD=:
8245   fi
8246 fi
8247
8248   fi
8249   ;;
8250 esac
8251
8252 # Use C for the default configuration in the libtool script
8253
8254 lt_save_CC="$CC"
8255 ac_ext=c
8256 ac_cpp='$CPP $CPPFLAGS'
8257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260
8261
8262 # Source file extension for C test sources.
8263 ac_ext=c
8264
8265 # Object file extension for compiled C test sources.
8266 objext=o
8267 objext=$objext
8268
8269 # Code to be used in simple compile tests
8270 lt_simple_compile_test_code="int some_variable = 0;"
8271
8272 # Code to be used in simple link tests
8273 lt_simple_link_test_code='int main(){return(0);}'
8274
8275
8276
8277
8278
8279
8280
8281 # If no C compiler was specified, use CC.
8282 LTCC=${LTCC-"$CC"}
8283
8284 # If no C compiler flags were specified, use CFLAGS.
8285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8286
8287 # Allow CC to be a program name with arguments.
8288 compiler=$CC
8289
8290 # Save the default compiler, since it gets overwritten when the other
8291 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8292 compiler_DEFAULT=$CC
8293
8294 # save warnings/boilerplate of simple test code
8295 ac_outfile=conftest.$ac_objext
8296 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8297 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8298 _lt_compiler_boilerplate=`cat conftest.err`
8299 $RM conftest*
8300
8301 ac_outfile=conftest.$ac_objext
8302 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8303 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8304 _lt_linker_boilerplate=`cat conftest.err`
8305 $RM -r conftest*
8306
8307
8308 ## CAVEAT EMPTOR:
8309 ## There is no encapsulation within the following macros, do not change
8310 ## the running order or otherwise move them around unless you know exactly
8311 ## what you are doing...
8312 if test -n "$compiler"; then
8313
8314 lt_prog_compiler_no_builtin_flag=
8315
8316 if test "$GCC" = yes; then
8317   case $cc_basename in
8318   nvcc*)
8319     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8320   *)
8321     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8322   esac
8323
8324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8325 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8326 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   lt_cv_prog_compiler_rtti_exceptions=no
8330    ac_outfile=conftest.$ac_objext
8331    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8332    lt_compiler_flag="-fno-rtti -fno-exceptions"
8333    # Insert the option either (1) after the last *FLAGS variable, or
8334    # (2) before a word containing "conftest.", or (3) at the end.
8335    # Note that $ac_compile itself does not contain backslashes and begins
8336    # with a dollar sign (not a hyphen), so the echo should work correctly.
8337    # The option is referenced via a variable to avoid confusing sed.
8338    lt_compile=`echo "$ac_compile" | $SED \
8339    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8340    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8341    -e 's:$: $lt_compiler_flag:'`
8342    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8343    (eval "$lt_compile" 2>conftest.err)
8344    ac_status=$?
8345    cat conftest.err >&5
8346    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347    if (exit $ac_status) && test -s "$ac_outfile"; then
8348      # The compiler can only warn and ignore the option if not recognized
8349      # So say no if there are warnings other than the usual output.
8350      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8351      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8352      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8353        lt_cv_prog_compiler_rtti_exceptions=yes
8354      fi
8355    fi
8356    $RM conftest*
8357
8358 fi
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8360 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8361
8362 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8363     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8364 else
8365     :
8366 fi
8367
8368 fi
8369
8370
8371
8372
8373
8374
8375   lt_prog_compiler_wl=
8376 lt_prog_compiler_pic=
8377 lt_prog_compiler_static=
8378
8379
8380   if test "$GCC" = yes; then
8381     lt_prog_compiler_wl='-Wl,'
8382     lt_prog_compiler_static='-static'
8383
8384     case $host_os in
8385       aix*)
8386       # All AIX code is PIC.
8387       if test "$host_cpu" = ia64; then
8388         # AIX 5 now supports IA64 processor
8389         lt_prog_compiler_static='-Bstatic'
8390       fi
8391       ;;
8392
8393     amigaos*)
8394       case $host_cpu in
8395       powerpc)
8396             # see comment about AmigaOS4 .so support
8397             lt_prog_compiler_pic='-fPIC'
8398         ;;
8399       m68k)
8400             # FIXME: we need at least 68020 code to build shared libraries, but
8401             # adding the `-m68020' flag to GCC prevents building anything better,
8402             # like `-m68040'.
8403             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8404         ;;
8405       esac
8406       ;;
8407
8408     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8409       # PIC is the default for these OSes.
8410       ;;
8411
8412     mingw* | cygwin* | pw32* | os2* | cegcc*)
8413       # This hack is so that the source file can tell whether it is being
8414       # built for inclusion in a dll (and should export symbols for example).
8415       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8416       # (--disable-auto-import) libraries
8417       lt_prog_compiler_pic='-DDLL_EXPORT'
8418       ;;
8419
8420     darwin* | rhapsody*)
8421       # PIC is the default on this platform
8422       # Common symbols not allowed in MH_DYLIB files
8423       lt_prog_compiler_pic='-fno-common'
8424       ;;
8425
8426     haiku*)
8427       # PIC is the default for Haiku.
8428       # The "-static" flag exists, but is broken.
8429       lt_prog_compiler_static=
8430       ;;
8431
8432     hpux*)
8433       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8434       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8435       # sets the default TLS model and affects inlining.
8436       case $host_cpu in
8437       hppa*64*)
8438         # +Z the default
8439         ;;
8440       *)
8441         lt_prog_compiler_pic='-fPIC'
8442         ;;
8443       esac
8444       ;;
8445
8446     interix[3-9]*)
8447       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8448       # Instead, we relocate shared libraries at runtime.
8449       ;;
8450
8451     msdosdjgpp*)
8452       # Just because we use GCC doesn't mean we suddenly get shared libraries
8453       # on systems that don't support them.
8454       lt_prog_compiler_can_build_shared=no
8455       enable_shared=no
8456       ;;
8457
8458     *nto* | *qnx*)
8459       # QNX uses GNU C++, but need to define -shared option too, otherwise
8460       # it will coredump.
8461       lt_prog_compiler_pic='-fPIC -shared'
8462       ;;
8463
8464     sysv4*MP*)
8465       if test -d /usr/nec; then
8466         lt_prog_compiler_pic=-Kconform_pic
8467       fi
8468       ;;
8469
8470     *)
8471       lt_prog_compiler_pic='-fPIC'
8472       ;;
8473     esac
8474
8475     case $cc_basename in
8476     nvcc*) # Cuda Compiler Driver 2.2
8477       lt_prog_compiler_wl='-Xlinker '
8478       lt_prog_compiler_pic='-Xcompiler -fPIC'
8479       ;;
8480     esac
8481   else
8482     # PORTME Check for flag to pass linker flags through the system compiler.
8483     case $host_os in
8484     aix*)
8485       lt_prog_compiler_wl='-Wl,'
8486       if test "$host_cpu" = ia64; then
8487         # AIX 5 now supports IA64 processor
8488         lt_prog_compiler_static='-Bstatic'
8489       else
8490         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8491       fi
8492       ;;
8493
8494     mingw* | cygwin* | pw32* | os2* | cegcc*)
8495       # This hack is so that the source file can tell whether it is being
8496       # built for inclusion in a dll (and should export symbols for example).
8497       lt_prog_compiler_pic='-DDLL_EXPORT'
8498       ;;
8499
8500     hpux9* | hpux10* | hpux11*)
8501       lt_prog_compiler_wl='-Wl,'
8502       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8503       # not for PA HP-UX.
8504       case $host_cpu in
8505       hppa*64*|ia64*)
8506         # +Z the default
8507         ;;
8508       *)
8509         lt_prog_compiler_pic='+Z'
8510         ;;
8511       esac
8512       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8513       lt_prog_compiler_static='${wl}-a ${wl}archive'
8514       ;;
8515
8516     irix5* | irix6* | nonstopux*)
8517       lt_prog_compiler_wl='-Wl,'
8518       # PIC (with -KPIC) is the default.
8519       lt_prog_compiler_static='-non_shared'
8520       ;;
8521
8522     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8523       case $cc_basename in
8524       # old Intel for x86_64 which still supported -KPIC.
8525       ecc*)
8526         lt_prog_compiler_wl='-Wl,'
8527         lt_prog_compiler_pic='-KPIC'
8528         lt_prog_compiler_static='-static'
8529         ;;
8530       # icc used to be incompatible with GCC.
8531       # ICC 10 doesn't accept -KPIC any more.
8532       icc* | ifort*)
8533         lt_prog_compiler_wl='-Wl,'
8534         lt_prog_compiler_pic='-fPIC'
8535         lt_prog_compiler_static='-static'
8536         ;;
8537       # Lahey Fortran 8.1.
8538       lf95*)
8539         lt_prog_compiler_wl='-Wl,'
8540         lt_prog_compiler_pic='--shared'
8541         lt_prog_compiler_static='--static'
8542         ;;
8543       nagfor*)
8544         # NAG Fortran compiler
8545         lt_prog_compiler_wl='-Wl,-Wl,,'
8546         lt_prog_compiler_pic='-PIC'
8547         lt_prog_compiler_static='-Bstatic'
8548         ;;
8549       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8550         # Portland Group compilers (*not* the Pentium gcc compiler,
8551         # which looks to be a dead project)
8552         lt_prog_compiler_wl='-Wl,'
8553         lt_prog_compiler_pic='-fpic'
8554         lt_prog_compiler_static='-Bstatic'
8555         ;;
8556       ccc*)
8557         lt_prog_compiler_wl='-Wl,'
8558         # All Alpha code is PIC.
8559         lt_prog_compiler_static='-non_shared'
8560         ;;
8561       xl* | bgxl* | bgf* | mpixl*)
8562         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8563         lt_prog_compiler_wl='-Wl,'
8564         lt_prog_compiler_pic='-qpic'
8565         lt_prog_compiler_static='-qstaticlink'
8566         ;;
8567       *)
8568         case `$CC -V 2>&1 | sed 5q` in
8569         *Sun\ F* | *Sun*Fortran*)
8570           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8571           lt_prog_compiler_pic='-KPIC'
8572           lt_prog_compiler_static='-Bstatic'
8573           lt_prog_compiler_wl=''
8574           ;;
8575         *Sun\ C*)
8576           # Sun C 5.9
8577           lt_prog_compiler_pic='-KPIC'
8578           lt_prog_compiler_static='-Bstatic'
8579           lt_prog_compiler_wl='-Wl,'
8580           ;;
8581         esac
8582         ;;
8583       esac
8584       ;;
8585
8586     newsos6)
8587       lt_prog_compiler_pic='-KPIC'
8588       lt_prog_compiler_static='-Bstatic'
8589       ;;
8590
8591     *nto* | *qnx*)
8592       # QNX uses GNU C++, but need to define -shared option too, otherwise
8593       # it will coredump.
8594       lt_prog_compiler_pic='-fPIC -shared'
8595       ;;
8596
8597     osf3* | osf4* | osf5*)
8598       lt_prog_compiler_wl='-Wl,'
8599       # All OSF/1 code is PIC.
8600       lt_prog_compiler_static='-non_shared'
8601       ;;
8602
8603     rdos*)
8604       lt_prog_compiler_static='-non_shared'
8605       ;;
8606
8607     solaris*)
8608       lt_prog_compiler_pic='-KPIC'
8609       lt_prog_compiler_static='-Bstatic'
8610       case $cc_basename in
8611       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8612         lt_prog_compiler_wl='-Qoption ld ';;
8613       *)
8614         lt_prog_compiler_wl='-Wl,';;
8615       esac
8616       ;;
8617
8618     sunos4*)
8619       lt_prog_compiler_wl='-Qoption ld '
8620       lt_prog_compiler_pic='-PIC'
8621       lt_prog_compiler_static='-Bstatic'
8622       ;;
8623
8624     sysv4 | sysv4.2uw2* | sysv4.3*)
8625       lt_prog_compiler_wl='-Wl,'
8626       lt_prog_compiler_pic='-KPIC'
8627       lt_prog_compiler_static='-Bstatic'
8628       ;;
8629
8630     sysv4*MP*)
8631       if test -d /usr/nec ;then
8632         lt_prog_compiler_pic='-Kconform_pic'
8633         lt_prog_compiler_static='-Bstatic'
8634       fi
8635       ;;
8636
8637     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8638       lt_prog_compiler_wl='-Wl,'
8639       lt_prog_compiler_pic='-KPIC'
8640       lt_prog_compiler_static='-Bstatic'
8641       ;;
8642
8643     unicos*)
8644       lt_prog_compiler_wl='-Wl,'
8645       lt_prog_compiler_can_build_shared=no
8646       ;;
8647
8648     uts4*)
8649       lt_prog_compiler_pic='-pic'
8650       lt_prog_compiler_static='-Bstatic'
8651       ;;
8652
8653     *)
8654       lt_prog_compiler_can_build_shared=no
8655       ;;
8656     esac
8657   fi
8658
8659 case $host_os in
8660   # For platforms which do not support PIC, -DPIC is meaningless:
8661   *djgpp*)
8662     lt_prog_compiler_pic=
8663     ;;
8664   *)
8665     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8666     ;;
8667 esac
8668
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8670 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8671 if ${lt_cv_prog_compiler_pic+:} false; then :
8672   $as_echo_n "(cached) " >&6
8673 else
8674   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8675 fi
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8677 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8678 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8679
8680 #
8681 # Check to make sure the PIC flag actually works.
8682 #
8683 if test -n "$lt_prog_compiler_pic"; then
8684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8685 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8686 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   lt_cv_prog_compiler_pic_works=no
8690    ac_outfile=conftest.$ac_objext
8691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8692    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8693    # Insert the option either (1) after the last *FLAGS variable, or
8694    # (2) before a word containing "conftest.", or (3) at the end.
8695    # Note that $ac_compile itself does not contain backslashes and begins
8696    # with a dollar sign (not a hyphen), so the echo should work correctly.
8697    # The option is referenced via a variable to avoid confusing sed.
8698    lt_compile=`echo "$ac_compile" | $SED \
8699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8701    -e 's:$: $lt_compiler_flag:'`
8702    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8703    (eval "$lt_compile" 2>conftest.err)
8704    ac_status=$?
8705    cat conftest.err >&5
8706    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707    if (exit $ac_status) && test -s "$ac_outfile"; then
8708      # The compiler can only warn and ignore the option if not recognized
8709      # So say no if there are warnings other than the usual output.
8710      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8711      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8712      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8713        lt_cv_prog_compiler_pic_works=yes
8714      fi
8715    fi
8716    $RM conftest*
8717
8718 fi
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8720 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8721
8722 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8723     case $lt_prog_compiler_pic in
8724      "" | " "*) ;;
8725      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8726      esac
8727 else
8728     lt_prog_compiler_pic=
8729      lt_prog_compiler_can_build_shared=no
8730 fi
8731
8732 fi
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744 #
8745 # Check to make sure the static flag actually works.
8746 #
8747 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8749 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8750 if ${lt_cv_prog_compiler_static_works+:} false; then :
8751   $as_echo_n "(cached) " >&6
8752 else
8753   lt_cv_prog_compiler_static_works=no
8754    save_LDFLAGS="$LDFLAGS"
8755    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8756    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8757    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8758      # The linker can only warn and ignore the option if not recognized
8759      # So say no if there are warnings
8760      if test -s conftest.err; then
8761        # Append any errors to the config.log.
8762        cat conftest.err 1>&5
8763        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8764        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8765        if diff conftest.exp conftest.er2 >/dev/null; then
8766          lt_cv_prog_compiler_static_works=yes
8767        fi
8768      else
8769        lt_cv_prog_compiler_static_works=yes
8770      fi
8771    fi
8772    $RM -r conftest*
8773    LDFLAGS="$save_LDFLAGS"
8774
8775 fi
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8777 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8778
8779 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8780     :
8781 else
8782     lt_prog_compiler_static=
8783 fi
8784
8785
8786
8787
8788
8789
8790
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8792 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8793 if ${lt_cv_prog_compiler_c_o+:} false; then :
8794   $as_echo_n "(cached) " >&6
8795 else
8796   lt_cv_prog_compiler_c_o=no
8797    $RM -r conftest 2>/dev/null
8798    mkdir conftest
8799    cd conftest
8800    mkdir out
8801    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8802
8803    lt_compiler_flag="-o out/conftest2.$ac_objext"
8804    # Insert the option either (1) after the last *FLAGS variable, or
8805    # (2) before a word containing "conftest.", or (3) at the end.
8806    # Note that $ac_compile itself does not contain backslashes and begins
8807    # with a dollar sign (not a hyphen), so the echo should work correctly.
8808    lt_compile=`echo "$ac_compile" | $SED \
8809    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8811    -e 's:$: $lt_compiler_flag:'`
8812    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8813    (eval "$lt_compile" 2>out/conftest.err)
8814    ac_status=$?
8815    cat out/conftest.err >&5
8816    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8818    then
8819      # The compiler can only warn and ignore the option if not recognized
8820      # So say no if there are warnings
8821      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8822      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8823      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8824        lt_cv_prog_compiler_c_o=yes
8825      fi
8826    fi
8827    chmod u+w . 2>&5
8828    $RM conftest*
8829    # SGI C++ compiler will create directory out/ii_files/ for
8830    # template instantiation
8831    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8832    $RM out/* && rmdir out
8833    cd ..
8834    $RM -r conftest
8835    $RM conftest*
8836
8837 fi
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8839 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8840
8841
8842
8843
8844
8845
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8847 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8848 if ${lt_cv_prog_compiler_c_o+:} false; then :
8849   $as_echo_n "(cached) " >&6
8850 else
8851   lt_cv_prog_compiler_c_o=no
8852    $RM -r conftest 2>/dev/null
8853    mkdir conftest
8854    cd conftest
8855    mkdir out
8856    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8857
8858    lt_compiler_flag="-o out/conftest2.$ac_objext"
8859    # Insert the option either (1) after the last *FLAGS variable, or
8860    # (2) before a word containing "conftest.", or (3) at the end.
8861    # Note that $ac_compile itself does not contain backslashes and begins
8862    # with a dollar sign (not a hyphen), so the echo should work correctly.
8863    lt_compile=`echo "$ac_compile" | $SED \
8864    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8865    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8866    -e 's:$: $lt_compiler_flag:'`
8867    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8868    (eval "$lt_compile" 2>out/conftest.err)
8869    ac_status=$?
8870    cat out/conftest.err >&5
8871    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8873    then
8874      # The compiler can only warn and ignore the option if not recognized
8875      # So say no if there are warnings
8876      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8877      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8878      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8879        lt_cv_prog_compiler_c_o=yes
8880      fi
8881    fi
8882    chmod u+w . 2>&5
8883    $RM conftest*
8884    # SGI C++ compiler will create directory out/ii_files/ for
8885    # template instantiation
8886    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8887    $RM out/* && rmdir out
8888    cd ..
8889    $RM -r conftest
8890    $RM conftest*
8891
8892 fi
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8894 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8895
8896
8897
8898
8899 hard_links="nottested"
8900 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8901   # do not overwrite the value of need_locks provided by the user
8902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8903 $as_echo_n "checking if we can lock with hard links... " >&6; }
8904   hard_links=yes
8905   $RM conftest*
8906   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8907   touch conftest.a
8908   ln conftest.a conftest.b 2>&5 || hard_links=no
8909   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8911 $as_echo "$hard_links" >&6; }
8912   if test "$hard_links" = no; then
8913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8914 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8915     need_locks=warn
8916   fi
8917 else
8918   need_locks=no
8919 fi
8920
8921
8922
8923
8924
8925
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8927 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8928
8929   runpath_var=
8930   allow_undefined_flag=
8931   always_export_symbols=no
8932   archive_cmds=
8933   archive_expsym_cmds=
8934   compiler_needs_object=no
8935   enable_shared_with_static_runtimes=no
8936   export_dynamic_flag_spec=
8937   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8938   hardcode_automatic=no
8939   hardcode_direct=no
8940   hardcode_direct_absolute=no
8941   hardcode_libdir_flag_spec=
8942   hardcode_libdir_flag_spec_ld=
8943   hardcode_libdir_separator=
8944   hardcode_minus_L=no
8945   hardcode_shlibpath_var=unsupported
8946   inherit_rpath=no
8947   link_all_deplibs=unknown
8948   module_cmds=
8949   module_expsym_cmds=
8950   old_archive_from_new_cmds=
8951   old_archive_from_expsyms_cmds=
8952   thread_safe_flag_spec=
8953   whole_archive_flag_spec=
8954   # include_expsyms should be a list of space-separated symbols to be *always*
8955   # included in the symbol list
8956   include_expsyms=
8957   # exclude_expsyms can be an extended regexp of symbols to exclude
8958   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8959   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8960   # as well as any symbol that contains `d'.
8961   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8962   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8963   # platforms (ab)use it in PIC code, but their linkers get confused if
8964   # the symbol is explicitly referenced.  Since portable code cannot
8965   # rely on this symbol name, it's probably fine to never include it in
8966   # preloaded symbol tables.
8967   # Exclude shared library initialization/finalization symbols.
8968   extract_expsyms_cmds=
8969
8970   case $host_os in
8971   cygwin* | mingw* | pw32* | cegcc*)
8972     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8973     # When not using gcc, we currently assume that we are using
8974     # Microsoft Visual C++.
8975     if test "$GCC" != yes; then
8976       with_gnu_ld=no
8977     fi
8978     ;;
8979   interix*)
8980     # we just hope/assume this is gcc and not c89 (= MSVC++)
8981     with_gnu_ld=yes
8982     ;;
8983   openbsd*)
8984     with_gnu_ld=no
8985     ;;
8986   esac
8987
8988   ld_shlibs=yes
8989
8990   # On some targets, GNU ld is compatible enough with the native linker
8991   # that we're better off using the native interface for both.
8992   lt_use_gnu_ld_interface=no
8993   if test "$with_gnu_ld" = yes; then
8994     case $host_os in
8995       aix*)
8996         # The AIX port of GNU ld has always aspired to compatibility
8997         # with the native linker.  However, as the warning in the GNU ld
8998         # block says, versions before 2.19.5* couldn't really create working
8999         # shared libraries, regardless of the interface used.
9000         case `$LD -v 2>&1` in
9001           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9002           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9003           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9004           *)
9005             lt_use_gnu_ld_interface=yes
9006             ;;
9007         esac
9008         ;;
9009       *)
9010         lt_use_gnu_ld_interface=yes
9011         ;;
9012     esac
9013   fi
9014
9015   if test "$lt_use_gnu_ld_interface" = yes; then
9016     # If archive_cmds runs LD, not CC, wlarc should be empty
9017     wlarc='${wl}'
9018
9019     # Set some defaults for GNU ld with shared library support. These
9020     # are reset later if shared libraries are not supported. Putting them
9021     # here allows them to be overridden if necessary.
9022     runpath_var=LD_RUN_PATH
9023     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9024     export_dynamic_flag_spec='${wl}--export-dynamic'
9025     # ancient GNU ld didn't support --whole-archive et. al.
9026     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9027       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9028     else
9029       whole_archive_flag_spec=
9030     fi
9031     supports_anon_versioning=no
9032     case `$LD -v 2>&1` in
9033       *GNU\ gold*) supports_anon_versioning=yes ;;
9034       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9035       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9036       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9037       *\ 2.11.*) ;; # other 2.11 versions
9038       *) supports_anon_versioning=yes ;;
9039     esac
9040
9041     # See if GNU ld supports shared libraries.
9042     case $host_os in
9043     aix[3-9]*)
9044       # On AIX/PPC, the GNU linker is very broken
9045       if test "$host_cpu" != ia64; then
9046         ld_shlibs=no
9047         cat <<_LT_EOF 1>&2
9048
9049 *** Warning: the GNU linker, at least up to release 2.19, is reported
9050 *** to be unable to reliably create shared libraries on AIX.
9051 *** Therefore, libtool is disabling shared libraries support.  If you
9052 *** really care for shared libraries, you may want to install binutils
9053 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9054 *** You will then need to restart the configuration process.
9055
9056 _LT_EOF
9057       fi
9058       ;;
9059
9060     amigaos*)
9061       case $host_cpu in
9062       powerpc)
9063             # see comment about AmigaOS4 .so support
9064             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065             archive_expsym_cmds=''
9066         ;;
9067       m68k)
9068             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)'
9069             hardcode_libdir_flag_spec='-L$libdir'
9070             hardcode_minus_L=yes
9071         ;;
9072       esac
9073       ;;
9074
9075     beos*)
9076       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9077         allow_undefined_flag=unsupported
9078         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9079         # support --undefined.  This deserves some investigation.  FIXME
9080         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081       else
9082         ld_shlibs=no
9083       fi
9084       ;;
9085
9086     cygwin* | mingw* | pw32* | cegcc*)
9087       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9088       # as there is no search path for DLLs.
9089       hardcode_libdir_flag_spec='-L$libdir'
9090       export_dynamic_flag_spec='${wl}--export-all-symbols'
9091       allow_undefined_flag=unsupported
9092       always_export_symbols=no
9093       enable_shared_with_static_runtimes=yes
9094       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'
9095       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9096
9097       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9098         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9099         # If the export-symbols file already is a .def file (1st line
9100         # is EXPORTS), use it as is; otherwise, prepend...
9101         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9102           cp $export_symbols $output_objdir/$soname.def;
9103         else
9104           echo EXPORTS > $output_objdir/$soname.def;
9105           cat $export_symbols >> $output_objdir/$soname.def;
9106         fi~
9107         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9108       else
9109         ld_shlibs=no
9110       fi
9111       ;;
9112
9113     haiku*)
9114       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115       link_all_deplibs=yes
9116       ;;
9117
9118     interix[3-9]*)
9119       hardcode_direct=no
9120       hardcode_shlibpath_var=no
9121       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9122       export_dynamic_flag_spec='${wl}-E'
9123       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9124       # Instead, shared libraries are loaded at an image base (0x10000000 by
9125       # default) and relocated if they conflict, which is a slow very memory
9126       # consuming and fragmenting process.  To avoid this, we pick a random,
9127       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9128       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9129       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9130       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'
9131       ;;
9132
9133     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9134       tmp_diet=no
9135       if test "$host_os" = linux-dietlibc; then
9136         case $cc_basename in
9137           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9138         esac
9139       fi
9140       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9141          && test "$tmp_diet" = no
9142       then
9143         tmp_addflag=' $pic_flag'
9144         tmp_sharedflag='-shared'
9145         case $cc_basename,$host_cpu in
9146         pgcc*)                          # Portland Group C compiler
9147           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'
9148           tmp_addflag=' $pic_flag'
9149           ;;
9150         pgf77* | pgf90* | pgf95* | pgfortran*)
9151                                         # Portland Group f77 and f90 compilers
9152           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'
9153           tmp_addflag=' $pic_flag -Mnomain' ;;
9154         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9155           tmp_addflag=' -i_dynamic' ;;
9156         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9157           tmp_addflag=' -i_dynamic -nofor_main' ;;
9158         ifc* | ifort*)                  # Intel Fortran compiler
9159           tmp_addflag=' -nofor_main' ;;
9160         lf95*)                          # Lahey Fortran 8.1
9161           whole_archive_flag_spec=
9162           tmp_sharedflag='--shared' ;;
9163         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9164           tmp_sharedflag='-qmkshrobj'
9165           tmp_addflag= ;;
9166         nvcc*)  # Cuda Compiler Driver 2.2
9167           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'
9168           compiler_needs_object=yes
9169           ;;
9170         esac
9171         case `$CC -V 2>&1 | sed 5q` in
9172         *Sun\ C*)                       # Sun C 5.9
9173           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'
9174           compiler_needs_object=yes
9175           tmp_sharedflag='-G' ;;
9176         *Sun\ F*)                       # Sun Fortran 8.3
9177           tmp_sharedflag='-G' ;;
9178         esac
9179         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180
9181         if test "x$supports_anon_versioning" = xyes; then
9182           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9183             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9184             echo "local: *; };" >> $output_objdir/$libname.ver~
9185             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9186         fi
9187
9188         case $cc_basename in
9189         xlf* | bgf* | bgxlf* | mpixlf*)
9190           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9191           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9192           hardcode_libdir_flag_spec=
9193           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9194           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9195           if test "x$supports_anon_versioning" = xyes; then
9196             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9197               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9198               echo "local: *; };" >> $output_objdir/$libname.ver~
9199               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9200           fi
9201           ;;
9202         esac
9203       else
9204         ld_shlibs=no
9205       fi
9206       ;;
9207
9208     netbsd*)
9209       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9210         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9211         wlarc=
9212       else
9213         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9215       fi
9216       ;;
9217
9218     solaris*)
9219       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9220         ld_shlibs=no
9221         cat <<_LT_EOF 1>&2
9222
9223 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9224 *** create shared libraries on Solaris systems.  Therefore, libtool
9225 *** is disabling shared libraries support.  We urge you to upgrade GNU
9226 *** binutils to release 2.9.1 or newer.  Another option is to modify
9227 *** your PATH or compiler configuration so that the native linker is
9228 *** used, and then restart.
9229
9230 _LT_EOF
9231       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9232         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9233         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9234       else
9235         ld_shlibs=no
9236       fi
9237       ;;
9238
9239     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9240       case `$LD -v 2>&1` in
9241         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9242         ld_shlibs=no
9243         cat <<_LT_EOF 1>&2
9244
9245 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9246 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9247 *** is disabling shared libraries support.  We urge you to upgrade GNU
9248 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9249 *** your PATH or compiler configuration so that the native linker is
9250 *** used, and then restart.
9251
9252 _LT_EOF
9253         ;;
9254         *)
9255           # For security reasons, it is highly recommended that you always
9256           # use absolute paths for naming shared libraries, and exclude the
9257           # DT_RUNPATH tag from executables and libraries.  But doing so
9258           # requires that you compile everything twice, which is a pain.
9259           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9260             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9261             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9263           else
9264             ld_shlibs=no
9265           fi
9266         ;;
9267       esac
9268       ;;
9269
9270     sunos4*)
9271       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9272       wlarc=
9273       hardcode_direct=yes
9274       hardcode_shlibpath_var=no
9275       ;;
9276
9277     *)
9278       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281       else
9282         ld_shlibs=no
9283       fi
9284       ;;
9285     esac
9286
9287     if test "$ld_shlibs" = no; then
9288       runpath_var=
9289       hardcode_libdir_flag_spec=
9290       export_dynamic_flag_spec=
9291       whole_archive_flag_spec=
9292     fi
9293   else
9294     # PORTME fill in a description of your system's linker (not GNU ld)
9295     case $host_os in
9296     aix3*)
9297       allow_undefined_flag=unsupported
9298       always_export_symbols=yes
9299       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'
9300       # Note: this linker hardcodes the directories in LIBPATH if there
9301       # are no directories specified by -L.
9302       hardcode_minus_L=yes
9303       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9304         # Neither direct hardcoding nor static linking is supported with a
9305         # broken collect2.
9306         hardcode_direct=unsupported
9307       fi
9308       ;;
9309
9310     aix[4-9]*)
9311       if test "$host_cpu" = ia64; then
9312         # On IA64, the linker does run time linking by default, so we don't
9313         # have to do anything special.
9314         aix_use_runtimelinking=no
9315         exp_sym_flag='-Bexport'
9316         no_entry_flag=""
9317       else
9318         # If we're using GNU nm, then we don't want the "-C" option.
9319         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9320         # Also, AIX nm treats weak defined symbols like other global
9321         # defined symbols, whereas GNU nm marks them as "W".
9322         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9323           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9324         else
9325           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9326         fi
9327         aix_use_runtimelinking=no
9328
9329         # Test if we are trying to use run time linking or normal
9330         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9331         # need to do runtime linking.
9332         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9333           for ld_flag in $LDFLAGS; do
9334           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9335             aix_use_runtimelinking=yes
9336             break
9337           fi
9338           done
9339           ;;
9340         esac
9341
9342         exp_sym_flag='-bexport'
9343         no_entry_flag='-bnoentry'
9344       fi
9345
9346       # When large executables or shared objects are built, AIX ld can
9347       # have problems creating the table of contents.  If linking a library
9348       # or program results in "error TOC overflow" add -mminimal-toc to
9349       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9350       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9351
9352       archive_cmds=''
9353       hardcode_direct=yes
9354       hardcode_direct_absolute=yes
9355       hardcode_libdir_separator=':'
9356       link_all_deplibs=yes
9357       file_list_spec='${wl}-f,'
9358
9359       if test "$GCC" = yes; then
9360         case $host_os in aix4.[012]|aix4.[012].*)
9361         # We only want to do this on AIX 4.2 and lower, the check
9362         # below for broken collect2 doesn't work under 4.3+
9363           collect2name=`${CC} -print-prog-name=collect2`
9364           if test -f "$collect2name" &&
9365            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9366           then
9367           # We have reworked collect2
9368           :
9369           else
9370           # We have old collect2
9371           hardcode_direct=unsupported
9372           # It fails to find uninstalled libraries when the uninstalled
9373           # path is not listed in the libpath.  Setting hardcode_minus_L
9374           # to unsupported forces relinking
9375           hardcode_minus_L=yes
9376           hardcode_libdir_flag_spec='-L$libdir'
9377           hardcode_libdir_separator=
9378           fi
9379           ;;
9380         esac
9381         shared_flag='-shared'
9382         if test "$aix_use_runtimelinking" = yes; then
9383           shared_flag="$shared_flag "'${wl}-G'
9384         fi
9385       else
9386         # not using gcc
9387         if test "$host_cpu" = ia64; then
9388         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9389         # chokes on -Wl,-G. The following line is correct:
9390           shared_flag='-G'
9391         else
9392           if test "$aix_use_runtimelinking" = yes; then
9393             shared_flag='${wl}-G'
9394           else
9395             shared_flag='${wl}-bM:SRE'
9396           fi
9397         fi
9398       fi
9399
9400       export_dynamic_flag_spec='${wl}-bexpall'
9401       # It seems that -bexpall does not export symbols beginning with
9402       # underscore (_), so it is better to generate a list of symbols to export.
9403       always_export_symbols=yes
9404       if test "$aix_use_runtimelinking" = yes; then
9405         # Warning - without using the other runtime loading flags (-brtl),
9406         # -berok will link without error, but may produce a broken library.
9407         allow_undefined_flag='-berok'
9408         # Determine the default libpath from the value encoded in an
9409         # empty executable.
9410         if test "${lt_cv_aix_libpath+set}" = set; then
9411   aix_libpath=$lt_cv_aix_libpath
9412 else
9413   if ${lt_cv_aix_libpath_+:} false; then :
9414   $as_echo_n "(cached) " >&6
9415 else
9416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417 /* end confdefs.h.  */
9418
9419 int
9420 main ()
9421 {
9422
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 if ac_fn_c_try_link "$LINENO"; then :
9428
9429   lt_aix_libpath_sed='
9430       /Import File Strings/,/^$/ {
9431           /^0/ {
9432               s/^0  *\([^ ]*\) *$/\1/
9433               p
9434           }
9435       }'
9436   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9437   # Check for a 64-bit object if we didn't find anything.
9438   if test -z "$lt_cv_aix_libpath_"; then
9439     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9440   fi
9441 fi
9442 rm -f core conftest.err conftest.$ac_objext \
9443     conftest$ac_exeext conftest.$ac_ext
9444   if test -z "$lt_cv_aix_libpath_"; then
9445     lt_cv_aix_libpath_="/usr/lib:/lib"
9446   fi
9447
9448 fi
9449
9450   aix_libpath=$lt_cv_aix_libpath_
9451 fi
9452
9453         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9454         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9455       else
9456         if test "$host_cpu" = ia64; then
9457           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9458           allow_undefined_flag="-z nodefs"
9459           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"
9460         else
9461          # Determine the default libpath from the value encoded in an
9462          # empty executable.
9463          if test "${lt_cv_aix_libpath+set}" = set; then
9464   aix_libpath=$lt_cv_aix_libpath
9465 else
9466   if ${lt_cv_aix_libpath_+:} false; then :
9467   $as_echo_n "(cached) " >&6
9468 else
9469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h.  */
9471
9472 int
9473 main ()
9474 {
9475
9476   ;
9477   return 0;
9478 }
9479 _ACEOF
9480 if ac_fn_c_try_link "$LINENO"; then :
9481
9482   lt_aix_libpath_sed='
9483       /Import File Strings/,/^$/ {
9484           /^0/ {
9485               s/^0  *\([^ ]*\) *$/\1/
9486               p
9487           }
9488       }'
9489   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490   # Check for a 64-bit object if we didn't find anything.
9491   if test -z "$lt_cv_aix_libpath_"; then
9492     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9493   fi
9494 fi
9495 rm -f core conftest.err conftest.$ac_objext \
9496     conftest$ac_exeext conftest.$ac_ext
9497   if test -z "$lt_cv_aix_libpath_"; then
9498     lt_cv_aix_libpath_="/usr/lib:/lib"
9499   fi
9500
9501 fi
9502
9503   aix_libpath=$lt_cv_aix_libpath_
9504 fi
9505
9506          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9507           # Warning - without using the other run time loading flags,
9508           # -berok will link without error, but may produce a broken library.
9509           no_undefined_flag=' ${wl}-bernotok'
9510           allow_undefined_flag=' ${wl}-berok'
9511           if test "$with_gnu_ld" = yes; then
9512             # We only use this code for GNU lds that support --whole-archive.
9513             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9514           else
9515             # Exported symbols can be pulled into shared objects from archives
9516             whole_archive_flag_spec='$convenience'
9517           fi
9518           archive_cmds_need_lc=yes
9519           # This is similar to how AIX traditionally builds its shared libraries.
9520           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9521         fi
9522       fi
9523       ;;
9524
9525     amigaos*)
9526       case $host_cpu in
9527       powerpc)
9528             # see comment about AmigaOS4 .so support
9529             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9530             archive_expsym_cmds=''
9531         ;;
9532       m68k)
9533             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)'
9534             hardcode_libdir_flag_spec='-L$libdir'
9535             hardcode_minus_L=yes
9536         ;;
9537       esac
9538       ;;
9539
9540     bsdi[45]*)
9541       export_dynamic_flag_spec=-rdynamic
9542       ;;
9543
9544     cygwin* | mingw* | pw32* | cegcc*)
9545       # When not using gcc, we currently assume that we are using
9546       # Microsoft Visual C++.
9547       # hardcode_libdir_flag_spec is actually meaningless, as there is
9548       # no search path for DLLs.
9549       case $cc_basename in
9550       cl*)
9551         # Native MSVC
9552         hardcode_libdir_flag_spec=' '
9553         allow_undefined_flag=unsupported
9554         always_export_symbols=yes
9555         file_list_spec='@'
9556         # Tell ltmain to make .lib files, not .a files.
9557         libext=lib
9558         # Tell ltmain to make .dll files, not .so files.
9559         shrext_cmds=".dll"
9560         # FIXME: Setting linknames here is a bad hack.
9561         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9562         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9563             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9564           else
9565             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9566           fi~
9567           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9568           linknames='
9569         # The linker will not automatically build a static lib if we build a DLL.
9570         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9571         enable_shared_with_static_runtimes=yes
9572         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9573         # Don't use ranlib
9574         old_postinstall_cmds='chmod 644 $oldlib'
9575         postlink_cmds='lt_outputfile="@OUTPUT@"~
9576           lt_tool_outputfile="@TOOL_OUTPUT@"~
9577           case $lt_outputfile in
9578             *.exe|*.EXE) ;;
9579             *)
9580               lt_outputfile="$lt_outputfile.exe"
9581               lt_tool_outputfile="$lt_tool_outputfile.exe"
9582               ;;
9583           esac~
9584           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9585             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9586             $RM "$lt_outputfile.manifest";
9587           fi'
9588         ;;
9589       *)
9590         # Assume MSVC wrapper
9591         hardcode_libdir_flag_spec=' '
9592         allow_undefined_flag=unsupported
9593         # Tell ltmain to make .lib files, not .a files.
9594         libext=lib
9595         # Tell ltmain to make .dll files, not .so files.
9596         shrext_cmds=".dll"
9597         # FIXME: Setting linknames here is a bad hack.
9598         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9599         # The linker will automatically build a .lib file if we build a DLL.
9600         old_archive_from_new_cmds='true'
9601         # FIXME: Should let the user specify the lib program.
9602         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9603         enable_shared_with_static_runtimes=yes
9604         ;;
9605       esac
9606       ;;
9607
9608     darwin* | rhapsody*)
9609
9610
9611   archive_cmds_need_lc=no
9612   hardcode_direct=no
9613   hardcode_automatic=yes
9614   hardcode_shlibpath_var=unsupported
9615   if test "$lt_cv_ld_force_load" = "yes"; then
9616     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\"`'
9617   else
9618     whole_archive_flag_spec=''
9619   fi
9620   link_all_deplibs=yes
9621   allow_undefined_flag="$_lt_dar_allow_undefined"
9622   case $cc_basename in
9623      ifort*) _lt_dar_can_shared=yes ;;
9624      *) _lt_dar_can_shared=$GCC ;;
9625   esac
9626   if test "$_lt_dar_can_shared" = "yes"; then
9627     output_verbose_link_cmd=func_echo_all
9628     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9629     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9630     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}"
9631     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}"
9632
9633   else
9634   ld_shlibs=no
9635   fi
9636
9637       ;;
9638
9639     dgux*)
9640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641       hardcode_libdir_flag_spec='-L$libdir'
9642       hardcode_shlibpath_var=no
9643       ;;
9644
9645     freebsd1*)
9646       ld_shlibs=no
9647       ;;
9648
9649     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9650     # support.  Future versions do this automatically, but an explicit c++rt0.o
9651     # does not break anything, and helps significantly (at the cost of a little
9652     # extra space).
9653     freebsd2.2*)
9654       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9655       hardcode_libdir_flag_spec='-R$libdir'
9656       hardcode_direct=yes
9657       hardcode_shlibpath_var=no
9658       ;;
9659
9660     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9661     freebsd2*)
9662       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9663       hardcode_direct=yes
9664       hardcode_minus_L=yes
9665       hardcode_shlibpath_var=no
9666       ;;
9667
9668     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9669     freebsd* | dragonfly*)
9670       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9671       hardcode_libdir_flag_spec='-R$libdir'
9672       hardcode_direct=yes
9673       hardcode_shlibpath_var=no
9674       ;;
9675
9676     hpux9*)
9677       if test "$GCC" = yes; then
9678         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9679       else
9680         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9681       fi
9682       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9683       hardcode_libdir_separator=:
9684       hardcode_direct=yes
9685
9686       # hardcode_minus_L: Not really in the search PATH,
9687       # but as the default location of the library.
9688       hardcode_minus_L=yes
9689       export_dynamic_flag_spec='${wl}-E'
9690       ;;
9691
9692     hpux10*)
9693       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9694         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9695       else
9696         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9697       fi
9698       if test "$with_gnu_ld" = no; then
9699         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9700         hardcode_libdir_flag_spec_ld='+b $libdir'
9701         hardcode_libdir_separator=:
9702         hardcode_direct=yes
9703         hardcode_direct_absolute=yes
9704         export_dynamic_flag_spec='${wl}-E'
9705         # hardcode_minus_L: Not really in the search PATH,
9706         # but as the default location of the library.
9707         hardcode_minus_L=yes
9708       fi
9709       ;;
9710
9711     hpux11*)
9712       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9713         case $host_cpu in
9714         hppa*64*)
9715           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9716           ;;
9717         ia64*)
9718           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9719           ;;
9720         *)
9721           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9722           ;;
9723         esac
9724       else
9725         case $host_cpu in
9726         hppa*64*)
9727           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9728           ;;
9729         ia64*)
9730           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9731           ;;
9732         *)
9733
9734           # Older versions of the 11.00 compiler do not understand -b yet
9735           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9736           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9737 $as_echo_n "checking if $CC understands -b... " >&6; }
9738 if ${lt_cv_prog_compiler__b+:} false; then :
9739   $as_echo_n "(cached) " >&6
9740 else
9741   lt_cv_prog_compiler__b=no
9742    save_LDFLAGS="$LDFLAGS"
9743    LDFLAGS="$LDFLAGS -b"
9744    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9745    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9746      # The linker can only warn and ignore the option if not recognized
9747      # So say no if there are warnings
9748      if test -s conftest.err; then
9749        # Append any errors to the config.log.
9750        cat conftest.err 1>&5
9751        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9752        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9753        if diff conftest.exp conftest.er2 >/dev/null; then
9754          lt_cv_prog_compiler__b=yes
9755        fi
9756      else
9757        lt_cv_prog_compiler__b=yes
9758      fi
9759    fi
9760    $RM -r conftest*
9761    LDFLAGS="$save_LDFLAGS"
9762
9763 fi
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9765 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9766
9767 if test x"$lt_cv_prog_compiler__b" = xyes; then
9768     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9769 else
9770     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9771 fi
9772
9773           ;;
9774         esac
9775       fi
9776       if test "$with_gnu_ld" = no; then
9777         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9778         hardcode_libdir_separator=:
9779
9780         case $host_cpu in
9781         hppa*64*|ia64*)
9782           hardcode_direct=no
9783           hardcode_shlibpath_var=no
9784           ;;
9785         *)
9786           hardcode_direct=yes
9787           hardcode_direct_absolute=yes
9788           export_dynamic_flag_spec='${wl}-E'
9789
9790           # hardcode_minus_L: Not really in the search PATH,
9791           # but as the default location of the library.
9792           hardcode_minus_L=yes
9793           ;;
9794         esac
9795       fi
9796       ;;
9797
9798     irix5* | irix6* | nonstopux*)
9799       if test "$GCC" = yes; then
9800         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'
9801         # Try to use the -exported_symbol ld option, if it does not
9802         # work, assume that -exports_file does not work either and
9803         # implicitly export all symbols.
9804         # This should be the same for all languages, so no per-tag cache variable.
9805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9806 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9807 if ${lt_cv_irix_exported_symbol+:} false; then :
9808   $as_echo_n "(cached) " >&6
9809 else
9810   save_LDFLAGS="$LDFLAGS"
9811            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9812            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h.  */
9814 int foo (void) { return 0; }
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817   lt_cv_irix_exported_symbol=yes
9818 else
9819   lt_cv_irix_exported_symbol=no
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext \
9822     conftest$ac_exeext conftest.$ac_ext
9823            LDFLAGS="$save_LDFLAGS"
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9826 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9827         if test "$lt_cv_irix_exported_symbol" = yes; then
9828           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'
9829         fi
9830       else
9831         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'
9832         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'
9833       fi
9834       archive_cmds_need_lc='no'
9835       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836       hardcode_libdir_separator=:
9837       inherit_rpath=yes
9838       link_all_deplibs=yes
9839       ;;
9840
9841     netbsd*)
9842       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9843         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9844       else
9845         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9846       fi
9847       hardcode_libdir_flag_spec='-R$libdir'
9848       hardcode_direct=yes
9849       hardcode_shlibpath_var=no
9850       ;;
9851
9852     newsos6)
9853       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854       hardcode_direct=yes
9855       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9856       hardcode_libdir_separator=:
9857       hardcode_shlibpath_var=no
9858       ;;
9859
9860     *nto* | *qnx*)
9861       ;;
9862
9863     openbsd*)
9864       if test -f /usr/libexec/ld.so; then
9865         hardcode_direct=yes
9866         hardcode_shlibpath_var=no
9867         hardcode_direct_absolute=yes
9868         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9869           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9870           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9871           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872           export_dynamic_flag_spec='${wl}-E'
9873         else
9874           case $host_os in
9875            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9876              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9877              hardcode_libdir_flag_spec='-R$libdir'
9878              ;;
9879            *)
9880              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9881              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9882              ;;
9883           esac
9884         fi
9885       else
9886         ld_shlibs=no
9887       fi
9888       ;;
9889
9890     os2*)
9891       hardcode_libdir_flag_spec='-L$libdir'
9892       hardcode_minus_L=yes
9893       allow_undefined_flag=unsupported
9894       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9895       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9896       ;;
9897
9898     osf3*)
9899       if test "$GCC" = yes; then
9900         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9901         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'
9902       else
9903         allow_undefined_flag=' -expect_unresolved \*'
9904         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'
9905       fi
9906       archive_cmds_need_lc='no'
9907       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9908       hardcode_libdir_separator=:
9909       ;;
9910
9911     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9912       if test "$GCC" = yes; then
9913         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9914         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'
9915         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9916       else
9917         allow_undefined_flag=' -expect_unresolved \*'
9918         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'
9919         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~
9920         $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'
9921
9922         # Both c and cxx compiler support -rpath directly
9923         hardcode_libdir_flag_spec='-rpath $libdir'
9924       fi
9925       archive_cmds_need_lc='no'
9926       hardcode_libdir_separator=:
9927       ;;
9928
9929     solaris*)
9930       no_undefined_flag=' -z defs'
9931       if test "$GCC" = yes; then
9932         wlarc='${wl}'
9933         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9934         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935           $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'
9936       else
9937         case `$CC -V 2>&1` in
9938         *"Compilers 5.0"*)
9939           wlarc=''
9940           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9943           ;;
9944         *)
9945           wlarc='${wl}'
9946           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9947           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9948           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9949           ;;
9950         esac
9951       fi
9952       hardcode_libdir_flag_spec='-R$libdir'
9953       hardcode_shlibpath_var=no
9954       case $host_os in
9955       solaris2.[0-5] | solaris2.[0-5].*) ;;
9956       *)
9957         # The compiler driver will combine and reorder linker options,
9958         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9959         # but is careful enough not to reorder.
9960         # Supported since Solaris 2.6 (maybe 2.5.1?)
9961         if test "$GCC" = yes; then
9962           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9963         else
9964           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9965         fi
9966         ;;
9967       esac
9968       link_all_deplibs=yes
9969       ;;
9970
9971     sunos4*)
9972       if test "x$host_vendor" = xsequent; then
9973         # Use $CC to link under sequent, because it throws in some extra .o
9974         # files that make .init and .fini sections work.
9975         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9976       else
9977         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9978       fi
9979       hardcode_libdir_flag_spec='-L$libdir'
9980       hardcode_direct=yes
9981       hardcode_minus_L=yes
9982       hardcode_shlibpath_var=no
9983       ;;
9984
9985     sysv4)
9986       case $host_vendor in
9987         sni)
9988           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989           hardcode_direct=yes # is this really true???
9990         ;;
9991         siemens)
9992           ## LD is ld it makes a PLAMLIB
9993           ## CC just makes a GrossModule.
9994           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9995           reload_cmds='$CC -r -o $output$reload_objs'
9996           hardcode_direct=no
9997         ;;
9998         motorola)
9999           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10001         ;;
10002       esac
10003       runpath_var='LD_RUN_PATH'
10004       hardcode_shlibpath_var=no
10005       ;;
10006
10007     sysv4.3*)
10008       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009       hardcode_shlibpath_var=no
10010       export_dynamic_flag_spec='-Bexport'
10011       ;;
10012
10013     sysv4*MP*)
10014       if test -d /usr/nec; then
10015         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016         hardcode_shlibpath_var=no
10017         runpath_var=LD_RUN_PATH
10018         hardcode_runpath_var=yes
10019         ld_shlibs=yes
10020       fi
10021       ;;
10022
10023     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10024       no_undefined_flag='${wl}-z,text'
10025       archive_cmds_need_lc=no
10026       hardcode_shlibpath_var=no
10027       runpath_var='LD_RUN_PATH'
10028
10029       if test "$GCC" = yes; then
10030         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032       else
10033         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035       fi
10036       ;;
10037
10038     sysv5* | sco3.2v5* | sco5v6*)
10039       # Note: We can NOT use -z defs as we might desire, because we do not
10040       # link with -lc, and that would cause any symbols used from libc to
10041       # always be unresolved, which means just about no library would
10042       # ever link correctly.  If we're not using GNU ld we use -z text
10043       # though, which does catch some bad symbols but isn't as heavy-handed
10044       # as -z defs.
10045       no_undefined_flag='${wl}-z,text'
10046       allow_undefined_flag='${wl}-z,nodefs'
10047       archive_cmds_need_lc=no
10048       hardcode_shlibpath_var=no
10049       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10050       hardcode_libdir_separator=':'
10051       link_all_deplibs=yes
10052       export_dynamic_flag_spec='${wl}-Bexport'
10053       runpath_var='LD_RUN_PATH'
10054
10055       if test "$GCC" = yes; then
10056         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058       else
10059         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061       fi
10062       ;;
10063
10064     uts4*)
10065       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066       hardcode_libdir_flag_spec='-L$libdir'
10067       hardcode_shlibpath_var=no
10068       ;;
10069
10070     *)
10071       ld_shlibs=no
10072       ;;
10073     esac
10074
10075     if test x$host_vendor = xsni; then
10076       case $host in
10077       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10078         export_dynamic_flag_spec='${wl}-Blargedynsym'
10079         ;;
10080       esac
10081     fi
10082   fi
10083
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10085 $as_echo "$ld_shlibs" >&6; }
10086 test "$ld_shlibs" = no && can_build_shared=no
10087
10088 with_gnu_ld=$with_gnu_ld
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104 #
10105 # Do we need to explicitly link libc?
10106 #
10107 case "x$archive_cmds_need_lc" in
10108 x|xyes)
10109   # Assume -lc should be added
10110   archive_cmds_need_lc=yes
10111
10112   if test "$enable_shared" = yes && test "$GCC" = yes; then
10113     case $archive_cmds in
10114     *'~'*)
10115       # FIXME: we may have to deal with multi-command sequences.
10116       ;;
10117     '$CC '*)
10118       # Test whether the compiler implicitly links with -lc since on some
10119       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10120       # to ld, don't add -lc before -lgcc.
10121       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10123 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10124   $as_echo_n "(cached) " >&6
10125 else
10126   $RM conftest*
10127         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10128
10129         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10130   (eval $ac_compile) 2>&5
10131   ac_status=$?
10132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133   test $ac_status = 0; } 2>conftest.err; then
10134           soname=conftest
10135           lib=conftest
10136           libobjs=conftest.$ac_objext
10137           deplibs=
10138           wl=$lt_prog_compiler_wl
10139           pic_flag=$lt_prog_compiler_pic
10140           compiler_flags=-v
10141           linker_flags=-v
10142           verstring=
10143           output_objdir=.
10144           libname=conftest
10145           lt_save_allow_undefined_flag=$allow_undefined_flag
10146           allow_undefined_flag=
10147           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10148   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10149   ac_status=$?
10150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10151   test $ac_status = 0; }
10152           then
10153             lt_cv_archive_cmds_need_lc=no
10154           else
10155             lt_cv_archive_cmds_need_lc=yes
10156           fi
10157           allow_undefined_flag=$lt_save_allow_undefined_flag
10158         else
10159           cat conftest.err 1>&5
10160         fi
10161         $RM conftest*
10162
10163 fi
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10165 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10166       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10167       ;;
10168     esac
10169   fi
10170   ;;
10171 esac
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10330 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10331
10332 if test "$GCC" = yes; then
10333   case $host_os in
10334     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10335     *) lt_awk_arg="/^libraries:/" ;;
10336   esac
10337   case $host_os in
10338     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10339     *) lt_sed_strip_eq="s,=/,/,g" ;;
10340   esac
10341   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10342   case $lt_search_path_spec in
10343   *\;*)
10344     # if the path contains ";" then we assume it to be the separator
10345     # otherwise default to the standard path separator (i.e. ":") - it is
10346     # assumed that no part of a normal pathname contains ";" but that should
10347     # okay in the real world where ";" in dirpaths is itself problematic.
10348     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10349     ;;
10350   *)
10351     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10352     ;;
10353   esac
10354   # Ok, now we have the path, separated by spaces, we can step through it
10355   # and add multilib dir if necessary.
10356   lt_tmp_lt_search_path_spec=
10357   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10358   for lt_sys_path in $lt_search_path_spec; do
10359     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10360       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10361     else
10362       test -d "$lt_sys_path" && \
10363         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10364     fi
10365   done
10366   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10367 BEGIN {RS=" "; FS="/|\n";} {
10368   lt_foo="";
10369   lt_count=0;
10370   for (lt_i = NF; lt_i > 0; lt_i--) {
10371     if ($lt_i != "" && $lt_i != ".") {
10372       if ($lt_i == "..") {
10373         lt_count++;
10374       } else {
10375         if (lt_count == 0) {
10376           lt_foo="/" $lt_i lt_foo;
10377         } else {
10378           lt_count--;
10379         }
10380       }
10381     }
10382   }
10383   if (lt_foo != "") { lt_freq[lt_foo]++; }
10384   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10385 }'`
10386   # AWK program above erroneously prepends '/' to C:/dos/paths
10387   # for these hosts.
10388   case $host_os in
10389     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10390       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10391   esac
10392   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10393 else
10394   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10395 fi
10396 library_names_spec=
10397 libname_spec='lib$name'
10398 soname_spec=
10399 shrext_cmds=".so"
10400 postinstall_cmds=
10401 postuninstall_cmds=
10402 finish_cmds=
10403 finish_eval=
10404 shlibpath_var=
10405 shlibpath_overrides_runpath=unknown
10406 version_type=none
10407 dynamic_linker="$host_os ld.so"
10408 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10409 need_lib_prefix=unknown
10410 hardcode_into_libs=no
10411
10412 # when you set need_version to no, make sure it does not cause -set_version
10413 # flags to be left without arguments
10414 need_version=unknown
10415
10416 case $host_os in
10417 aix3*)
10418   version_type=linux
10419   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10420   shlibpath_var=LIBPATH
10421
10422   # AIX 3 has no versioning support, so we append a major version to the name.
10423   soname_spec='${libname}${release}${shared_ext}$major'
10424   ;;
10425
10426 aix[4-9]*)
10427   version_type=linux
10428   need_lib_prefix=no
10429   need_version=no
10430   hardcode_into_libs=yes
10431   if test "$host_cpu" = ia64; then
10432     # AIX 5 supports IA64
10433     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10434     shlibpath_var=LD_LIBRARY_PATH
10435   else
10436     # With GCC up to 2.95.x, collect2 would create an import file
10437     # for dependence libraries.  The import file would start with
10438     # the line `#! .'.  This would cause the generated library to
10439     # depend on `.', always an invalid library.  This was fixed in
10440     # development snapshots of GCC prior to 3.0.
10441     case $host_os in
10442       aix4 | aix4.[01] | aix4.[01].*)
10443       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10444            echo ' yes '
10445            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10446         :
10447       else
10448         can_build_shared=no
10449       fi
10450       ;;
10451     esac
10452     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10453     # soname into executable. Probably we can add versioning support to
10454     # collect2, so additional links can be useful in future.
10455     if test "$aix_use_runtimelinking" = yes; then
10456       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10457       # instead of lib<name>.a to let people know that these are not
10458       # typical AIX shared libraries.
10459       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460     else
10461       # We preserve .a as extension for shared libraries through AIX4.2
10462       # and later when we are not doing run time linking.
10463       library_names_spec='${libname}${release}.a $libname.a'
10464       soname_spec='${libname}${release}${shared_ext}$major'
10465     fi
10466     shlibpath_var=LIBPATH
10467   fi
10468   ;;
10469
10470 amigaos*)
10471   case $host_cpu in
10472   powerpc)
10473     # Since July 2007 AmigaOS4 officially supports .so libraries.
10474     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10475     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10476     ;;
10477   m68k)
10478     library_names_spec='$libname.ixlibrary $libname.a'
10479     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10480     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10481     ;;
10482   esac
10483   ;;
10484
10485 beos*)
10486   library_names_spec='${libname}${shared_ext}'
10487   dynamic_linker="$host_os ld.so"
10488   shlibpath_var=LIBRARY_PATH
10489   ;;
10490
10491 bsdi[45]*)
10492   version_type=linux
10493   need_version=no
10494   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495   soname_spec='${libname}${release}${shared_ext}$major'
10496   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10497   shlibpath_var=LD_LIBRARY_PATH
10498   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10499   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10500   # the default ld.so.conf also contains /usr/contrib/lib and
10501   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10502   # libtool to hard-code these into programs
10503   ;;
10504
10505 cygwin* | mingw* | pw32* | cegcc*)
10506   version_type=windows
10507   shrext_cmds=".dll"
10508   need_version=no
10509   need_lib_prefix=no
10510
10511   case $GCC,$cc_basename in
10512   yes,*)
10513     # gcc
10514     library_names_spec='$libname.dll.a'
10515     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10516     postinstall_cmds='base_file=`basename \${file}`~
10517       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10518       dldir=$destdir/`dirname \$dlpath`~
10519       test -d \$dldir || mkdir -p \$dldir~
10520       $install_prog $dir/$dlname \$dldir/$dlname~
10521       chmod a+x \$dldir/$dlname~
10522       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10523         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10524       fi'
10525     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10526       dlpath=$dir/\$dldll~
10527        $RM \$dlpath'
10528     shlibpath_overrides_runpath=yes
10529
10530     case $host_os in
10531     cygwin*)
10532       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10533       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10534
10535       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10536       ;;
10537     mingw* | cegcc*)
10538       # MinGW DLLs use traditional 'lib' prefix
10539       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10540       ;;
10541     pw32*)
10542       # pw32 DLLs use 'pw' prefix rather than 'lib'
10543       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544       ;;
10545     esac
10546     dynamic_linker='Win32 ld.exe'
10547     ;;
10548
10549   *,cl*)
10550     # Native MSVC
10551     libname_spec='$name'
10552     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10553     library_names_spec='${libname}.dll.lib'
10554
10555     case $build_os in
10556     mingw*)
10557       sys_lib_search_path_spec=
10558       lt_save_ifs=$IFS
10559       IFS=';'
10560       for lt_path in $LIB
10561       do
10562         IFS=$lt_save_ifs
10563         # Let DOS variable expansion print the short 8.3 style file name.
10564         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10565         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10566       done
10567       IFS=$lt_save_ifs
10568       # Convert to MSYS style.
10569       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10570       ;;
10571     cygwin*)
10572       # Convert to unix form, then to dos form, then back to unix form
10573       # but this time dos style (no spaces!) so that the unix form looks
10574       # like /cygdrive/c/PROGRA~1:/cygdr...
10575       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10576       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10577       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10578       ;;
10579     *)
10580       sys_lib_search_path_spec="$LIB"
10581       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10582         # It is most probably a Windows format PATH.
10583         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10584       else
10585         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10586       fi
10587       # FIXME: find the short name or the path components, as spaces are
10588       # common. (e.g. "Program Files" -> "PROGRA~1")
10589       ;;
10590     esac
10591
10592     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10593     postinstall_cmds='base_file=`basename \${file}`~
10594       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10595       dldir=$destdir/`dirname \$dlpath`~
10596       test -d \$dldir || mkdir -p \$dldir~
10597       $install_prog $dir/$dlname \$dldir/$dlname'
10598     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10599       dlpath=$dir/\$dldll~
10600        $RM \$dlpath'
10601     shlibpath_overrides_runpath=yes
10602     dynamic_linker='Win32 link.exe'
10603     ;;
10604
10605   *)
10606     # Assume MSVC wrapper
10607     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10608     dynamic_linker='Win32 ld.exe'
10609     ;;
10610   esac
10611   # FIXME: first we should search . and the directory the executable is in
10612   shlibpath_var=PATH
10613   ;;
10614
10615 darwin* | rhapsody*)
10616   dynamic_linker="$host_os dyld"
10617   version_type=darwin
10618   need_lib_prefix=no
10619   need_version=no
10620   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10621   soname_spec='${libname}${release}${major}$shared_ext'
10622   shlibpath_overrides_runpath=yes
10623   shlibpath_var=DYLD_LIBRARY_PATH
10624   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10625
10626   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10627   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10628   ;;
10629
10630 dgux*)
10631   version_type=linux
10632   need_lib_prefix=no
10633   need_version=no
10634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10635   soname_spec='${libname}${release}${shared_ext}$major'
10636   shlibpath_var=LD_LIBRARY_PATH
10637   ;;
10638
10639 freebsd1*)
10640   dynamic_linker=no
10641   ;;
10642
10643 freebsd* | dragonfly*)
10644   # DragonFly does not have aout.  When/if they implement a new
10645   # versioning mechanism, adjust this.
10646   if test -x /usr/bin/objformat; then
10647     objformat=`/usr/bin/objformat`
10648   else
10649     case $host_os in
10650     freebsd[123]*) objformat=aout ;;
10651     *) objformat=elf ;;
10652     esac
10653   fi
10654   version_type=freebsd-$objformat
10655   case $version_type in
10656     freebsd-elf*)
10657       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10658       need_version=no
10659       need_lib_prefix=no
10660       ;;
10661     freebsd-*)
10662       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10663       need_version=yes
10664       ;;
10665   esac
10666   shlibpath_var=LD_LIBRARY_PATH
10667   case $host_os in
10668   freebsd2*)
10669     shlibpath_overrides_runpath=yes
10670     ;;
10671   freebsd3.[01]* | freebsdelf3.[01]*)
10672     shlibpath_overrides_runpath=yes
10673     hardcode_into_libs=yes
10674     ;;
10675   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10676   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10677     shlibpath_overrides_runpath=no
10678     hardcode_into_libs=yes
10679     ;;
10680   *) # from 4.6 on, and DragonFly
10681     shlibpath_overrides_runpath=yes
10682     hardcode_into_libs=yes
10683     ;;
10684   esac
10685   ;;
10686
10687 gnu*)
10688   version_type=linux
10689   need_lib_prefix=no
10690   need_version=no
10691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10692   soname_spec='${libname}${release}${shared_ext}$major'
10693   shlibpath_var=LD_LIBRARY_PATH
10694   hardcode_into_libs=yes
10695   ;;
10696
10697 haiku*)
10698   version_type=linux
10699   need_lib_prefix=no
10700   need_version=no
10701   dynamic_linker="$host_os runtime_loader"
10702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10703   soname_spec='${libname}${release}${shared_ext}$major'
10704   shlibpath_var=LIBRARY_PATH
10705   shlibpath_overrides_runpath=yes
10706   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10707   hardcode_into_libs=yes
10708   ;;
10709
10710 hpux9* | hpux10* | hpux11*)
10711   # Give a soname corresponding to the major version so that dld.sl refuses to
10712   # link against other versions.
10713   version_type=sunos
10714   need_lib_prefix=no
10715   need_version=no
10716   case $host_cpu in
10717   ia64*)
10718     shrext_cmds='.so'
10719     hardcode_into_libs=yes
10720     dynamic_linker="$host_os dld.so"
10721     shlibpath_var=LD_LIBRARY_PATH
10722     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724     soname_spec='${libname}${release}${shared_ext}$major'
10725     if test "X$HPUX_IA64_MODE" = X32; then
10726       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10727     else
10728       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10729     fi
10730     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10731     ;;
10732   hppa*64*)
10733     shrext_cmds='.sl'
10734     hardcode_into_libs=yes
10735     dynamic_linker="$host_os dld.sl"
10736     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10737     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10738     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739     soname_spec='${libname}${release}${shared_ext}$major'
10740     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10741     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10742     ;;
10743   *)
10744     shrext_cmds='.sl'
10745     dynamic_linker="$host_os dld.sl"
10746     shlibpath_var=SHLIB_PATH
10747     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749     soname_spec='${libname}${release}${shared_ext}$major'
10750     ;;
10751   esac
10752   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10753   postinstall_cmds='chmod 555 $lib'
10754   # or fails outright, so override atomically:
10755   install_override_mode=555
10756   ;;
10757
10758 interix[3-9]*)
10759   version_type=linux
10760   need_lib_prefix=no
10761   need_version=no
10762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10763   soname_spec='${libname}${release}${shared_ext}$major'
10764   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10765   shlibpath_var=LD_LIBRARY_PATH
10766   shlibpath_overrides_runpath=no
10767   hardcode_into_libs=yes
10768   ;;
10769
10770 irix5* | irix6* | nonstopux*)
10771   case $host_os in
10772     nonstopux*) version_type=nonstopux ;;
10773     *)
10774         if test "$lt_cv_prog_gnu_ld" = yes; then
10775                 version_type=linux
10776         else
10777                 version_type=irix
10778         fi ;;
10779   esac
10780   need_lib_prefix=no
10781   need_version=no
10782   soname_spec='${libname}${release}${shared_ext}$major'
10783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10784   case $host_os in
10785   irix5* | nonstopux*)
10786     libsuff= shlibsuff=
10787     ;;
10788   *)
10789     case $LD in # libtool.m4 will add one of these switches to LD
10790     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10791       libsuff= shlibsuff= libmagic=32-bit;;
10792     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10793       libsuff=32 shlibsuff=N32 libmagic=N32;;
10794     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10795       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10796     *) libsuff= shlibsuff= libmagic=never-match;;
10797     esac
10798     ;;
10799   esac
10800   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10801   shlibpath_overrides_runpath=no
10802   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10803   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10804   hardcode_into_libs=yes
10805   ;;
10806
10807 # No shared lib support for Linux oldld, aout, or coff.
10808 linux*oldld* | linux*aout* | linux*coff*)
10809   dynamic_linker=no
10810   ;;
10811
10812 # This must be Linux ELF.
10813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10814   version_type=linux
10815   need_lib_prefix=no
10816   need_version=no
10817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818   soname_spec='${libname}${release}${shared_ext}$major'
10819   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10820   shlibpath_var=LD_LIBRARY_PATH
10821   shlibpath_overrides_runpath=no
10822
10823   # Some binutils ld are patched to set DT_RUNPATH
10824   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10825   $as_echo_n "(cached) " >&6
10826 else
10827   lt_cv_shlibpath_overrides_runpath=no
10828     save_LDFLAGS=$LDFLAGS
10829     save_libdir=$libdir
10830     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10831          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h.  */
10834
10835 int
10836 main ()
10837 {
10838
10839   ;
10840   return 0;
10841 }
10842 _ACEOF
10843 if ac_fn_c_try_link "$LINENO"; then :
10844   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10845   lt_cv_shlibpath_overrides_runpath=yes
10846 fi
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext \
10849     conftest$ac_exeext conftest.$ac_ext
10850     LDFLAGS=$save_LDFLAGS
10851     libdir=$save_libdir
10852
10853 fi
10854
10855   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10856
10857   # This implies no fast_install, which is unacceptable.
10858   # Some rework will be needed to allow for fast_install
10859   # before this can be enabled.
10860   hardcode_into_libs=yes
10861
10862   # Add ABI-specific directories to the system library path.
10863   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10864
10865   # Append ld.so.conf contents to the search path
10866   if test -f /etc/ld.so.conf; then
10867     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' ' '`
10868     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10869
10870   fi
10871
10872   # We used to test for /lib/ld.so.1 and disable shared libraries on
10873   # powerpc, because MkLinux only supported shared libraries with the
10874   # GNU dynamic linker.  Since this was broken with cross compilers,
10875   # most powerpc-linux boxes support dynamic linking these days and
10876   # people can always --disable-shared, the test was removed, and we
10877   # assume the GNU/Linux dynamic linker is in use.
10878   dynamic_linker='GNU/Linux ld.so'
10879   ;;
10880
10881 netbsd*)
10882   version_type=sunos
10883   need_lib_prefix=no
10884   need_version=no
10885   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10887     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10888     dynamic_linker='NetBSD (a.out) ld.so'
10889   else
10890     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10891     soname_spec='${libname}${release}${shared_ext}$major'
10892     dynamic_linker='NetBSD ld.elf_so'
10893   fi
10894   shlibpath_var=LD_LIBRARY_PATH
10895   shlibpath_overrides_runpath=yes
10896   hardcode_into_libs=yes
10897   ;;
10898
10899 newsos6)
10900   version_type=linux
10901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902   shlibpath_var=LD_LIBRARY_PATH
10903   shlibpath_overrides_runpath=yes
10904   ;;
10905
10906 *nto* | *qnx*)
10907   version_type=qnx
10908   need_lib_prefix=no
10909   need_version=no
10910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10911   soname_spec='${libname}${release}${shared_ext}$major'
10912   shlibpath_var=LD_LIBRARY_PATH
10913   shlibpath_overrides_runpath=no
10914   hardcode_into_libs=yes
10915   dynamic_linker='ldqnx.so'
10916   ;;
10917
10918 openbsd*)
10919   version_type=sunos
10920   sys_lib_dlsearch_path_spec="/usr/lib"
10921   need_lib_prefix=no
10922   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10923   case $host_os in
10924     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10925     *)                          need_version=no  ;;
10926   esac
10927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10928   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10929   shlibpath_var=LD_LIBRARY_PATH
10930   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10931     case $host_os in
10932       openbsd2.[89] | openbsd2.[89].*)
10933         shlibpath_overrides_runpath=no
10934         ;;
10935       *)
10936         shlibpath_overrides_runpath=yes
10937         ;;
10938       esac
10939   else
10940     shlibpath_overrides_runpath=yes
10941   fi
10942   ;;
10943
10944 os2*)
10945   libname_spec='$name'
10946   shrext_cmds=".dll"
10947   need_lib_prefix=no
10948   library_names_spec='$libname${shared_ext} $libname.a'
10949   dynamic_linker='OS/2 ld.exe'
10950   shlibpath_var=LIBPATH
10951   ;;
10952
10953 osf3* | osf4* | osf5*)
10954   version_type=osf
10955   need_lib_prefix=no
10956   need_version=no
10957   soname_spec='${libname}${release}${shared_ext}$major'
10958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959   shlibpath_var=LD_LIBRARY_PATH
10960   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10961   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10962   ;;
10963
10964 rdos*)
10965   dynamic_linker=no
10966   ;;
10967
10968 solaris*)
10969   version_type=linux
10970   need_lib_prefix=no
10971   need_version=no
10972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973   soname_spec='${libname}${release}${shared_ext}$major'
10974   shlibpath_var=LD_LIBRARY_PATH
10975   shlibpath_overrides_runpath=yes
10976   hardcode_into_libs=yes
10977   # ldd complains unless libraries are executable
10978   postinstall_cmds='chmod +x $lib'
10979   ;;
10980
10981 sunos4*)
10982   version_type=sunos
10983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10984   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10985   shlibpath_var=LD_LIBRARY_PATH
10986   shlibpath_overrides_runpath=yes
10987   if test "$with_gnu_ld" = yes; then
10988     need_lib_prefix=no
10989   fi
10990   need_version=yes
10991   ;;
10992
10993 sysv4 | sysv4.3*)
10994   version_type=linux
10995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996   soname_spec='${libname}${release}${shared_ext}$major'
10997   shlibpath_var=LD_LIBRARY_PATH
10998   case $host_vendor in
10999     sni)
11000       shlibpath_overrides_runpath=no
11001       need_lib_prefix=no
11002       runpath_var=LD_RUN_PATH
11003       ;;
11004     siemens)
11005       need_lib_prefix=no
11006       ;;
11007     motorola)
11008       need_lib_prefix=no
11009       need_version=no
11010       shlibpath_overrides_runpath=no
11011       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11012       ;;
11013   esac
11014   ;;
11015
11016 sysv4*MP*)
11017   if test -d /usr/nec ;then
11018     version_type=linux
11019     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11020     soname_spec='$libname${shared_ext}.$major'
11021     shlibpath_var=LD_LIBRARY_PATH
11022   fi
11023   ;;
11024
11025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11026   version_type=freebsd-elf
11027   need_lib_prefix=no
11028   need_version=no
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11030   soname_spec='${libname}${release}${shared_ext}$major'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   shlibpath_overrides_runpath=yes
11033   hardcode_into_libs=yes
11034   if test "$with_gnu_ld" = yes; then
11035     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11036   else
11037     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11038     case $host_os in
11039       sco3.2v5*)
11040         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11041         ;;
11042     esac
11043   fi
11044   sys_lib_dlsearch_path_spec='/usr/lib'
11045   ;;
11046
11047 tpf*)
11048   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11049   version_type=linux
11050   need_lib_prefix=no
11051   need_version=no
11052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053   shlibpath_var=LD_LIBRARY_PATH
11054   shlibpath_overrides_runpath=no
11055   hardcode_into_libs=yes
11056   ;;
11057
11058 uts4*)
11059   version_type=linux
11060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061   soname_spec='${libname}${release}${shared_ext}$major'
11062   shlibpath_var=LD_LIBRARY_PATH
11063   ;;
11064
11065 *)
11066   dynamic_linker=no
11067   ;;
11068 esac
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11070 $as_echo "$dynamic_linker" >&6; }
11071 test "$dynamic_linker" = no && can_build_shared=no
11072
11073 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11074 if test "$GCC" = yes; then
11075   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11076 fi
11077
11078 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11079   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11080 fi
11081 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11082   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11083 fi
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11178 hardcode_action=
11179 if test -n "$hardcode_libdir_flag_spec" ||
11180    test -n "$runpath_var" ||
11181    test "X$hardcode_automatic" = "Xyes" ; then
11182
11183   # We can hardcode non-existent directories.
11184   if test "$hardcode_direct" != no &&
11185      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11186      # have to relink, otherwise we might link with an installed library
11187      # when we should be linking with a yet-to-be-installed one
11188      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11189      test "$hardcode_minus_L" != no; then
11190     # Linking always hardcodes the temporary library directory.
11191     hardcode_action=relink
11192   else
11193     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11194     hardcode_action=immediate
11195   fi
11196 else
11197   # We cannot hardcode anything, or else we can only hardcode existing
11198   # directories.
11199   hardcode_action=unsupported
11200 fi
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11202 $as_echo "$hardcode_action" >&6; }
11203
11204 if test "$hardcode_action" = relink ||
11205    test "$inherit_rpath" = yes; then
11206   # Fast installation is not supported
11207   enable_fast_install=no
11208 elif test "$shlibpath_overrides_runpath" = yes ||
11209      test "$enable_shared" = no; then
11210   # Fast installation is not necessary
11211   enable_fast_install=needless
11212 fi
11213
11214
11215
11216
11217
11218
11219   if test "x$enable_dlopen" != xyes; then
11220   enable_dlopen=unknown
11221   enable_dlopen_self=unknown
11222   enable_dlopen_self_static=unknown
11223 else
11224   lt_cv_dlopen=no
11225   lt_cv_dlopen_libs=
11226
11227   case $host_os in
11228   beos*)
11229     lt_cv_dlopen="load_add_on"
11230     lt_cv_dlopen_libs=
11231     lt_cv_dlopen_self=yes
11232     ;;
11233
11234   mingw* | pw32* | cegcc*)
11235     lt_cv_dlopen="LoadLibrary"
11236     lt_cv_dlopen_libs=
11237     ;;
11238
11239   cygwin*)
11240     lt_cv_dlopen="dlopen"
11241     lt_cv_dlopen_libs=
11242     ;;
11243
11244   darwin*)
11245   # if libdl is installed we need to link against it
11246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11248 if ${ac_cv_lib_dl_dlopen+:} false; then :
11249   $as_echo_n "(cached) " >&6
11250 else
11251   ac_check_lib_save_LIBS=$LIBS
11252 LIBS="-ldl  $LIBS"
11253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254 /* end confdefs.h.  */
11255
11256 /* Override any GCC internal prototype to avoid an error.
11257    Use char because int might match the return type of a GCC
11258    builtin and then its argument prototype would still apply.  */
11259 #ifdef __cplusplus
11260 extern "C"
11261 #endif
11262 char dlopen ();
11263 int
11264 main ()
11265 {
11266 return dlopen ();
11267   ;
11268   return 0;
11269 }
11270 _ACEOF
11271 if ac_fn_c_try_link "$LINENO"; then :
11272   ac_cv_lib_dl_dlopen=yes
11273 else
11274   ac_cv_lib_dl_dlopen=no
11275 fi
11276 rm -f core conftest.err conftest.$ac_objext \
11277     conftest$ac_exeext conftest.$ac_ext
11278 LIBS=$ac_check_lib_save_LIBS
11279 fi
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11282 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11283   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11284 else
11285
11286     lt_cv_dlopen="dyld"
11287     lt_cv_dlopen_libs=
11288     lt_cv_dlopen_self=yes
11289
11290 fi
11291
11292     ;;
11293
11294   *)
11295     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11296 if test "x$ac_cv_func_shl_load" = xyes; then :
11297   lt_cv_dlopen="shl_load"
11298 else
11299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11300 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11301 if ${ac_cv_lib_dld_shl_load+:} false; then :
11302   $as_echo_n "(cached) " >&6
11303 else
11304   ac_check_lib_save_LIBS=$LIBS
11305 LIBS="-ldld  $LIBS"
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h.  */
11308
11309 /* Override any GCC internal prototype to avoid an error.
11310    Use char because int might match the return type of a GCC
11311    builtin and then its argument prototype would still apply.  */
11312 #ifdef __cplusplus
11313 extern "C"
11314 #endif
11315 char shl_load ();
11316 int
11317 main ()
11318 {
11319 return shl_load ();
11320   ;
11321   return 0;
11322 }
11323 _ACEOF
11324 if ac_fn_c_try_link "$LINENO"; then :
11325   ac_cv_lib_dld_shl_load=yes
11326 else
11327   ac_cv_lib_dld_shl_load=no
11328 fi
11329 rm -f core conftest.err conftest.$ac_objext \
11330     conftest$ac_exeext conftest.$ac_ext
11331 LIBS=$ac_check_lib_save_LIBS
11332 fi
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11334 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11335 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11336   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11337 else
11338   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11339 if test "x$ac_cv_func_dlopen" = xyes; then :
11340   lt_cv_dlopen="dlopen"
11341 else
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11344 if ${ac_cv_lib_dl_dlopen+:} false; then :
11345   $as_echo_n "(cached) " >&6
11346 else
11347   ac_check_lib_save_LIBS=$LIBS
11348 LIBS="-ldl  $LIBS"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h.  */
11351
11352 /* Override any GCC internal prototype to avoid an error.
11353    Use char because int might match the return type of a GCC
11354    builtin and then its argument prototype would still apply.  */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char dlopen ();
11359 int
11360 main ()
11361 {
11362 return dlopen ();
11363   ;
11364   return 0;
11365 }
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368   ac_cv_lib_dl_dlopen=yes
11369 else
11370   ac_cv_lib_dl_dlopen=no
11371 fi
11372 rm -f core conftest.err conftest.$ac_objext \
11373     conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_lib_save_LIBS
11375 fi
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11378 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11379   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11380 else
11381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11382 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11383 if ${ac_cv_lib_svld_dlopen+:} false; then :
11384   $as_echo_n "(cached) " >&6
11385 else
11386   ac_check_lib_save_LIBS=$LIBS
11387 LIBS="-lsvld  $LIBS"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h.  */
11390
11391 /* Override any GCC internal prototype to avoid an error.
11392    Use char because int might match the return type of a GCC
11393    builtin and then its argument prototype would still apply.  */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char dlopen ();
11398 int
11399 main ()
11400 {
11401 return dlopen ();
11402   ;
11403   return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407   ac_cv_lib_svld_dlopen=yes
11408 else
11409   ac_cv_lib_svld_dlopen=no
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412     conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11416 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11417 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11418   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11419 else
11420   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11421 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11422 if ${ac_cv_lib_dld_dld_link+:} false; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425   ac_check_lib_save_LIBS=$LIBS
11426 LIBS="-ldld  $LIBS"
11427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11428 /* end confdefs.h.  */
11429
11430 /* Override any GCC internal prototype to avoid an error.
11431    Use char because int might match the return type of a GCC
11432    builtin and then its argument prototype would still apply.  */
11433 #ifdef __cplusplus
11434 extern "C"
11435 #endif
11436 char dld_link ();
11437 int
11438 main ()
11439 {
11440 return dld_link ();
11441   ;
11442   return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"; then :
11446   ac_cv_lib_dld_dld_link=yes
11447 else
11448   ac_cv_lib_dld_dld_link=no
11449 fi
11450 rm -f core conftest.err conftest.$ac_objext \
11451     conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11453 fi
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11455 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11456 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11457   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11458 fi
11459
11460
11461 fi
11462
11463
11464 fi
11465
11466
11467 fi
11468
11469
11470 fi
11471
11472
11473 fi
11474
11475     ;;
11476   esac
11477
11478   if test "x$lt_cv_dlopen" != xno; then
11479     enable_dlopen=yes
11480   else
11481     enable_dlopen=no
11482   fi
11483
11484   case $lt_cv_dlopen in
11485   dlopen)
11486     save_CPPFLAGS="$CPPFLAGS"
11487     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11488
11489     save_LDFLAGS="$LDFLAGS"
11490     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11491
11492     save_LIBS="$LIBS"
11493     LIBS="$lt_cv_dlopen_libs $LIBS"
11494
11495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11496 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11497 if ${lt_cv_dlopen_self+:} false; then :
11498   $as_echo_n "(cached) " >&6
11499 else
11500           if test "$cross_compiling" = yes; then :
11501   lt_cv_dlopen_self=cross
11502 else
11503   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11504   lt_status=$lt_dlunknown
11505   cat > conftest.$ac_ext <<_LT_EOF
11506 #line $LINENO "configure"
11507 #include "confdefs.h"
11508
11509 #if HAVE_DLFCN_H
11510 #include <dlfcn.h>
11511 #endif
11512
11513 #include <stdio.h>
11514
11515 #ifdef RTLD_GLOBAL
11516 #  define LT_DLGLOBAL           RTLD_GLOBAL
11517 #else
11518 #  ifdef DL_GLOBAL
11519 #    define LT_DLGLOBAL         DL_GLOBAL
11520 #  else
11521 #    define LT_DLGLOBAL         0
11522 #  endif
11523 #endif
11524
11525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11526    find out it does not work in some platform. */
11527 #ifndef LT_DLLAZY_OR_NOW
11528 #  ifdef RTLD_LAZY
11529 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11530 #  else
11531 #    ifdef DL_LAZY
11532 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11533 #    else
11534 #      ifdef RTLD_NOW
11535 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11536 #      else
11537 #        ifdef DL_NOW
11538 #          define LT_DLLAZY_OR_NOW      DL_NOW
11539 #        else
11540 #          define LT_DLLAZY_OR_NOW      0
11541 #        endif
11542 #      endif
11543 #    endif
11544 #  endif
11545 #endif
11546
11547 /* When -fvisbility=hidden is used, assume the code has been annotated
11548    correspondingly for the symbols needed.  */
11549 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11550 int fnord () __attribute__((visibility("default")));
11551 #endif
11552
11553 int fnord () { return 42; }
11554 int main ()
11555 {
11556   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11557   int status = $lt_dlunknown;
11558
11559   if (self)
11560     {
11561       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11562       else
11563         {
11564           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11565           else puts (dlerror ());
11566         }
11567       /* dlclose (self); */
11568     }
11569   else
11570     puts (dlerror ());
11571
11572   return status;
11573 }
11574 _LT_EOF
11575   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11576   (eval $ac_link) 2>&5
11577   ac_status=$?
11578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11579   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11580     (./conftest; exit; ) >&5 2>/dev/null
11581     lt_status=$?
11582     case x$lt_status in
11583       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11584       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11585       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11586     esac
11587   else :
11588     # compilation failed
11589     lt_cv_dlopen_self=no
11590   fi
11591 fi
11592 rm -fr conftest*
11593
11594
11595 fi
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11597 $as_echo "$lt_cv_dlopen_self" >&6; }
11598
11599     if test "x$lt_cv_dlopen_self" = xyes; then
11600       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11602 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11603 if ${lt_cv_dlopen_self_static+:} false; then :
11604   $as_echo_n "(cached) " >&6
11605 else
11606           if test "$cross_compiling" = yes; then :
11607   lt_cv_dlopen_self_static=cross
11608 else
11609   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11610   lt_status=$lt_dlunknown
11611   cat > conftest.$ac_ext <<_LT_EOF
11612 #line $LINENO "configure"
11613 #include "confdefs.h"
11614
11615 #if HAVE_DLFCN_H
11616 #include <dlfcn.h>
11617 #endif
11618
11619 #include <stdio.h>
11620
11621 #ifdef RTLD_GLOBAL
11622 #  define LT_DLGLOBAL           RTLD_GLOBAL
11623 #else
11624 #  ifdef DL_GLOBAL
11625 #    define LT_DLGLOBAL         DL_GLOBAL
11626 #  else
11627 #    define LT_DLGLOBAL         0
11628 #  endif
11629 #endif
11630
11631 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11632    find out it does not work in some platform. */
11633 #ifndef LT_DLLAZY_OR_NOW
11634 #  ifdef RTLD_LAZY
11635 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11636 #  else
11637 #    ifdef DL_LAZY
11638 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11639 #    else
11640 #      ifdef RTLD_NOW
11641 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11642 #      else
11643 #        ifdef DL_NOW
11644 #          define LT_DLLAZY_OR_NOW      DL_NOW
11645 #        else
11646 #          define LT_DLLAZY_OR_NOW      0
11647 #        endif
11648 #      endif
11649 #    endif
11650 #  endif
11651 #endif
11652
11653 /* When -fvisbility=hidden is used, assume the code has been annotated
11654    correspondingly for the symbols needed.  */
11655 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11656 int fnord () __attribute__((visibility("default")));
11657 #endif
11658
11659 int fnord () { return 42; }
11660 int main ()
11661 {
11662   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11663   int status = $lt_dlunknown;
11664
11665   if (self)
11666     {
11667       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11668       else
11669         {
11670           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11671           else puts (dlerror ());
11672         }
11673       /* dlclose (self); */
11674     }
11675   else
11676     puts (dlerror ());
11677
11678   return status;
11679 }
11680 _LT_EOF
11681   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11682   (eval $ac_link) 2>&5
11683   ac_status=$?
11684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11686     (./conftest; exit; ) >&5 2>/dev/null
11687     lt_status=$?
11688     case x$lt_status in
11689       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11690       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11691       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11692     esac
11693   else :
11694     # compilation failed
11695     lt_cv_dlopen_self_static=no
11696   fi
11697 fi
11698 rm -fr conftest*
11699
11700
11701 fi
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11703 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11704     fi
11705
11706     CPPFLAGS="$save_CPPFLAGS"
11707     LDFLAGS="$save_LDFLAGS"
11708     LIBS="$save_LIBS"
11709     ;;
11710   esac
11711
11712   case $lt_cv_dlopen_self in
11713   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11714   *) enable_dlopen_self=unknown ;;
11715   esac
11716
11717   case $lt_cv_dlopen_self_static in
11718   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11719   *) enable_dlopen_self_static=unknown ;;
11720   esac
11721 fi
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739 striplib=
11740 old_striplib=
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11742 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11743 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11744   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11745   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11747 $as_echo "yes" >&6; }
11748 else
11749 # FIXME - insert some real tests, host_os isn't really good enough
11750   case $host_os in
11751   darwin*)
11752     if test -n "$STRIP" ; then
11753       striplib="$STRIP -x"
11754       old_striplib="$STRIP -S"
11755       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11756 $as_echo "yes" >&6; }
11757     else
11758       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759 $as_echo "no" >&6; }
11760     fi
11761     ;;
11762   *)
11763     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11765     ;;
11766   esac
11767 fi
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780   # Report which library types will actually be built
11781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11782 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11784 $as_echo "$can_build_shared" >&6; }
11785
11786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11787 $as_echo_n "checking whether to build shared libraries... " >&6; }
11788   test "$can_build_shared" = "no" && enable_shared=no
11789
11790   # On AIX, shared libraries and static libraries use the same namespace, and
11791   # are all built from PIC.
11792   case $host_os in
11793   aix3*)
11794     test "$enable_shared" = yes && enable_static=no
11795     if test -n "$RANLIB"; then
11796       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11797       postinstall_cmds='$RANLIB $lib'
11798     fi
11799     ;;
11800
11801   aix[4-9]*)
11802     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11803       test "$enable_shared" = yes && enable_static=no
11804     fi
11805     ;;
11806   esac
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11808 $as_echo "$enable_shared" >&6; }
11809
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11811 $as_echo_n "checking whether to build static libraries... " >&6; }
11812   # Make sure either enable_shared or enable_static is yes.
11813   test "$enable_shared" = yes || enable_static=yes
11814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11815 $as_echo "$enable_static" >&6; }
11816
11817
11818
11819
11820 fi
11821 ac_ext=c
11822 ac_cpp='$CPP $CPPFLAGS'
11823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11826
11827 CC="$lt_save_CC"
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841         ac_config_commands="$ac_config_commands libtool"
11842
11843
11844
11845
11846 # Only expand once:
11847
11848
11849
11850
11851
11852  if test "$enable_libevent_regress" = "yes"; then
11853   BUILD_REGRESS_TRUE=
11854   BUILD_REGRESS_FALSE='#'
11855 else
11856   BUILD_REGRESS_TRUE='#'
11857   BUILD_REGRESS_FALSE=
11858 fi
11859
11860
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
11862 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
11863 if ${ac_cv_search_inet_ntoa+:} false; then :
11864   $as_echo_n "(cached) " >&6
11865 else
11866   ac_func_search_save_LIBS=$LIBS
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h.  */
11869
11870 /* Override any GCC internal prototype to avoid an error.
11871    Use char because int might match the return type of a GCC
11872    builtin and then its argument prototype would still apply.  */
11873 #ifdef __cplusplus
11874 extern "C"
11875 #endif
11876 char inet_ntoa ();
11877 int
11878 main ()
11879 {
11880 return inet_ntoa ();
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 for ac_lib in '' nsl; do
11886   if test -z "$ac_lib"; then
11887     ac_res="none required"
11888   else
11889     ac_res=-l$ac_lib
11890     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11891   fi
11892   if ac_fn_c_try_link "$LINENO"; then :
11893   ac_cv_search_inet_ntoa=$ac_res
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext \
11896     conftest$ac_exeext
11897   if ${ac_cv_search_inet_ntoa+:} false; then :
11898   break
11899 fi
11900 done
11901 if ${ac_cv_search_inet_ntoa+:} false; then :
11902
11903 else
11904   ac_cv_search_inet_ntoa=no
11905 fi
11906 rm conftest.$ac_ext
11907 LIBS=$ac_func_search_save_LIBS
11908 fi
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
11910 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
11911 ac_res=$ac_cv_search_inet_ntoa
11912 if test "$ac_res" != no; then :
11913   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11914
11915 fi
11916
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
11918 $as_echo_n "checking for library containing socket... " >&6; }
11919 if ${ac_cv_search_socket+:} false; then :
11920   $as_echo_n "(cached) " >&6
11921 else
11922   ac_func_search_save_LIBS=$LIBS
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h.  */
11925
11926 /* Override any GCC internal prototype to avoid an error.
11927    Use char because int might match the return type of a GCC
11928    builtin and then its argument prototype would still apply.  */
11929 #ifdef __cplusplus
11930 extern "C"
11931 #endif
11932 char socket ();
11933 int
11934 main ()
11935 {
11936 return socket ();
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 for ac_lib in '' socket; do
11942   if test -z "$ac_lib"; then
11943     ac_res="none required"
11944   else
11945     ac_res=-l$ac_lib
11946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11947   fi
11948   if ac_fn_c_try_link "$LINENO"; then :
11949   ac_cv_search_socket=$ac_res
11950 fi
11951 rm -f core conftest.err conftest.$ac_objext \
11952     conftest$ac_exeext
11953   if ${ac_cv_search_socket+:} false; then :
11954   break
11955 fi
11956 done
11957 if ${ac_cv_search_socket+:} false; then :
11958
11959 else
11960   ac_cv_search_socket=no
11961 fi
11962 rm conftest.$ac_ext
11963 LIBS=$ac_func_search_save_LIBS
11964 fi
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
11966 $as_echo "$ac_cv_search_socket" >&6; }
11967 ac_res=$ac_cv_search_socket
11968 if test "$ac_res" != no; then :
11969   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11970
11971 fi
11972
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
11974 $as_echo_n "checking for library containing inet_aton... " >&6; }
11975 if ${ac_cv_search_inet_aton+:} false; then :
11976   $as_echo_n "(cached) " >&6
11977 else
11978   ac_func_search_save_LIBS=$LIBS
11979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h.  */
11981
11982 /* Override any GCC internal prototype to avoid an error.
11983    Use char because int might match the return type of a GCC
11984    builtin and then its argument prototype would still apply.  */
11985 #ifdef __cplusplus
11986 extern "C"
11987 #endif
11988 char inet_aton ();
11989 int
11990 main ()
11991 {
11992 return inet_aton ();
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 for ac_lib in '' resolv; do
11998   if test -z "$ac_lib"; then
11999     ac_res="none required"
12000   else
12001     ac_res=-l$ac_lib
12002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12003   fi
12004   if ac_fn_c_try_link "$LINENO"; then :
12005   ac_cv_search_inet_aton=$ac_res
12006 fi
12007 rm -f core conftest.err conftest.$ac_objext \
12008     conftest$ac_exeext
12009   if ${ac_cv_search_inet_aton+:} false; then :
12010   break
12011 fi
12012 done
12013 if ${ac_cv_search_inet_aton+:} false; then :
12014
12015 else
12016   ac_cv_search_inet_aton=no
12017 fi
12018 rm conftest.$ac_ext
12019 LIBS=$ac_func_search_save_LIBS
12020 fi
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12022 $as_echo "$ac_cv_search_inet_aton" >&6; }
12023 ac_res=$ac_cv_search_inet_aton
12024 if test "$ac_res" != no; then :
12025   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12026
12027 fi
12028
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12030 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12031 if ${ac_cv_search_clock_gettime+:} false; then :
12032   $as_echo_n "(cached) " >&6
12033 else
12034   ac_func_search_save_LIBS=$LIBS
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h.  */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039    Use char because int might match the return type of a GCC
12040    builtin and then its argument prototype would still apply.  */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char clock_gettime ();
12045 int
12046 main ()
12047 {
12048 return clock_gettime ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 for ac_lib in '' rt; do
12054   if test -z "$ac_lib"; then
12055     ac_res="none required"
12056   else
12057     ac_res=-l$ac_lib
12058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12059   fi
12060   if ac_fn_c_try_link "$LINENO"; then :
12061   ac_cv_search_clock_gettime=$ac_res
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext \
12064     conftest$ac_exeext
12065   if ${ac_cv_search_clock_gettime+:} false; then :
12066   break
12067 fi
12068 done
12069 if ${ac_cv_search_clock_gettime+:} false; then :
12070
12071 else
12072   ac_cv_search_clock_gettime=no
12073 fi
12074 rm conftest.$ac_ext
12075 LIBS=$ac_func_search_save_LIBS
12076 fi
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12078 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12079 ac_res=$ac_cv_search_clock_gettime
12080 if test "$ac_res" != no; then :
12081   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12082
12083 fi
12084
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12086 $as_echo_n "checking for library containing sendfile... " >&6; }
12087 if ${ac_cv_search_sendfile+:} false; then :
12088   $as_echo_n "(cached) " >&6
12089 else
12090   ac_func_search_save_LIBS=$LIBS
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h.  */
12093
12094 /* Override any GCC internal prototype to avoid an error.
12095    Use char because int might match the return type of a GCC
12096    builtin and then its argument prototype would still apply.  */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 char sendfile ();
12101 int
12102 main ()
12103 {
12104 return sendfile ();
12105   ;
12106   return 0;
12107 }
12108 _ACEOF
12109 for ac_lib in '' sendfile; do
12110   if test -z "$ac_lib"; then
12111     ac_res="none required"
12112   else
12113     ac_res=-l$ac_lib
12114     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12115   fi
12116   if ac_fn_c_try_link "$LINENO"; then :
12117   ac_cv_search_sendfile=$ac_res
12118 fi
12119 rm -f core conftest.err conftest.$ac_objext \
12120     conftest$ac_exeext
12121   if ${ac_cv_search_sendfile+:} false; then :
12122   break
12123 fi
12124 done
12125 if ${ac_cv_search_sendfile+:} false; then :
12126
12127 else
12128   ac_cv_search_sendfile=no
12129 fi
12130 rm conftest.$ac_ext
12131 LIBS=$ac_func_search_save_LIBS
12132 fi
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12134 $as_echo "$ac_cv_search_sendfile" >&6; }
12135 ac_res=$ac_cv_search_sendfile
12136 if test "$ac_res" != no; then :
12137   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12138
12139 fi
12140
12141
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12143 $as_echo_n "checking for WIN32... " >&6; }
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146
12147 int
12148 main ()
12149 {
12150
12151 #ifndef WIN32
12152 die horribly
12153 #endif
12154
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_compile "$LINENO"; then :
12160   bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12161 $as_echo "yes" >&6; }
12162 else
12163   bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12169 $as_echo_n "checking for CYGWIN... " >&6; }
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h.  */
12172
12173 int
12174 main ()
12175 {
12176
12177 #ifndef __CYGWIN__
12178 die horribly
12179 #endif
12180
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_c_try_compile "$LINENO"; then :
12186   cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187 $as_echo "yes" >&6; }
12188 else
12189   cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190 $as_echo "no" >&6; }
12191 fi
12192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193
12194 for ac_header in zlib.h
12195 do :
12196   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12197 if test "x$ac_cv_header_zlib_h" = xyes; then :
12198   cat >>confdefs.h <<_ACEOF
12199 #define HAVE_ZLIB_H 1
12200 _ACEOF
12201
12202 fi
12203
12204 done
12205
12206
12207 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12208 save_LIBS="$LIBS"
12209 LIBS=""
12210 ZLIB_LIBS=""
12211 have_zlib=no
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12213 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12214 if ${ac_cv_search_inflateEnd+:} false; then :
12215   $as_echo_n "(cached) " >&6
12216 else
12217   ac_func_search_save_LIBS=$LIBS
12218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12219 /* end confdefs.h.  */
12220
12221 /* Override any GCC internal prototype to avoid an error.
12222    Use char because int might match the return type of a GCC
12223    builtin and then its argument prototype would still apply.  */
12224 #ifdef __cplusplus
12225 extern "C"
12226 #endif
12227 char inflateEnd ();
12228 int
12229 main ()
12230 {
12231 return inflateEnd ();
12232   ;
12233   return 0;
12234 }
12235 _ACEOF
12236 for ac_lib in '' z; do
12237   if test -z "$ac_lib"; then
12238     ac_res="none required"
12239   else
12240     ac_res=-l$ac_lib
12241     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12242   fi
12243   if ac_fn_c_try_link "$LINENO"; then :
12244   ac_cv_search_inflateEnd=$ac_res
12245 fi
12246 rm -f core conftest.err conftest.$ac_objext \
12247     conftest$ac_exeext
12248   if ${ac_cv_search_inflateEnd+:} false; then :
12249   break
12250 fi
12251 done
12252 if ${ac_cv_search_inflateEnd+:} false; then :
12253
12254 else
12255   ac_cv_search_inflateEnd=no
12256 fi
12257 rm conftest.$ac_ext
12258 LIBS=$ac_func_search_save_LIBS
12259 fi
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12261 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12262 ac_res=$ac_cv_search_inflateEnd
12263 if test "$ac_res" != no; then :
12264   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12265   have_zlib=yes
12266         ZLIB_LIBS="$LIBS"
12267
12268 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12269
12270 fi
12271
12272 LIBS="$save_LIBS"
12273
12274 fi
12275  if test "$have_zlib" = "yes"; then
12276   ZLIB_REGRESS_TRUE=
12277   ZLIB_REGRESS_FALSE='#'
12278 else
12279   ZLIB_REGRESS_TRUE='#'
12280   ZLIB_REGRESS_FALSE=
12281 fi
12282
12283
12284 if test "$bwin32" = true; then
12285   EV_LIB_WS32=-lws2_32
12286   EV_LIB_GDI=-lgdi32
12287 else
12288   EV_LIB_WS32=
12289   EV_LIB_GDI=
12290 fi
12291
12292
12293
12294 for ac_header in openssl/bio.h
12295 do :
12296   ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
12297 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
12298   cat >>confdefs.h <<_ACEOF
12299 #define HAVE_OPENSSL_BIO_H 1
12300 _ACEOF
12301
12302 fi
12303
12304 done
12305
12306
12307 if test "$enable_openssl" = "yes"; then
12308 save_LIBS="$LIBS"
12309 LIBS=""
12310 OPENSSL_LIBS=""
12311 have_openssl=no
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12313 $as_echo_n "checking for library containing SSL_new... " >&6; }
12314 if ${ac_cv_search_SSL_new+:} false; then :
12315   $as_echo_n "(cached) " >&6
12316 else
12317   ac_func_search_save_LIBS=$LIBS
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h.  */
12320
12321 /* Override any GCC internal prototype to avoid an error.
12322    Use char because int might match the return type of a GCC
12323    builtin and then its argument prototype would still apply.  */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 char SSL_new ();
12328 int
12329 main ()
12330 {
12331 return SSL_new ();
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 for ac_lib in '' ssl; do
12337   if test -z "$ac_lib"; then
12338     ac_res="none required"
12339   else
12340     ac_res=-l$ac_lib
12341     LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $ac_func_search_save_LIBS"
12342   fi
12343   if ac_fn_c_try_link "$LINENO"; then :
12344   ac_cv_search_SSL_new=$ac_res
12345 fi
12346 rm -f core conftest.err conftest.$ac_objext \
12347     conftest$ac_exeext
12348   if ${ac_cv_search_SSL_new+:} false; then :
12349   break
12350 fi
12351 done
12352 if ${ac_cv_search_SSL_new+:} false; then :
12353
12354 else
12355   ac_cv_search_SSL_new=no
12356 fi
12357 rm conftest.$ac_ext
12358 LIBS=$ac_func_search_save_LIBS
12359 fi
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12361 $as_echo "$ac_cv_search_SSL_new" >&6; }
12362 ac_res=$ac_cv_search_SSL_new
12363 if test "$ac_res" != no; then :
12364   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12365   have_openssl=yes
12366         OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32"
12367
12368 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12369
12370 else
12371   have_openssl=no
12372 fi
12373
12374 LIBS="$save_LIBS"
12375
12376 fi
12377
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12379 $as_echo_n "checking for ANSI C header files... " >&6; }
12380 if ${ac_cv_header_stdc+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h.  */
12385 #include <stdlib.h>
12386 #include <stdarg.h>
12387 #include <string.h>
12388 #include <float.h>
12389
12390 int
12391 main ()
12392 {
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_compile "$LINENO"; then :
12399   ac_cv_header_stdc=yes
12400 else
12401   ac_cv_header_stdc=no
12402 fi
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404
12405 if test $ac_cv_header_stdc = yes; then
12406   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12407   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408 /* end confdefs.h.  */
12409 #include <string.h>
12410
12411 _ACEOF
12412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12413   $EGREP "memchr" >/dev/null 2>&1; then :
12414
12415 else
12416   ac_cv_header_stdc=no
12417 fi
12418 rm -f conftest*
12419
12420 fi
12421
12422 if test $ac_cv_header_stdc = yes; then
12423   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12425 /* end confdefs.h.  */
12426 #include <stdlib.h>
12427
12428 _ACEOF
12429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12430   $EGREP "free" >/dev/null 2>&1; then :
12431
12432 else
12433   ac_cv_header_stdc=no
12434 fi
12435 rm -f conftest*
12436
12437 fi
12438
12439 if test $ac_cv_header_stdc = yes; then
12440   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12441   if test "$cross_compiling" = yes; then :
12442   :
12443 else
12444   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h.  */
12446 #include <ctype.h>
12447 #include <stdlib.h>
12448 #if ((' ' & 0x0FF) == 0x020)
12449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12451 #else
12452 # define ISLOWER(c) \
12453                    (('a' <= (c) && (c) <= 'i') \
12454                      || ('j' <= (c) && (c) <= 'r') \
12455                      || ('s' <= (c) && (c) <= 'z'))
12456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12457 #endif
12458
12459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12460 int
12461 main ()
12462 {
12463   int i;
12464   for (i = 0; i < 256; i++)
12465     if (XOR (islower (i), ISLOWER (i))
12466         || toupper (i) != TOUPPER (i))
12467       return 2;
12468   return 0;
12469 }
12470 _ACEOF
12471 if ac_fn_c_try_run "$LINENO"; then :
12472
12473 else
12474   ac_cv_header_stdc=no
12475 fi
12476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12477   conftest.$ac_objext conftest.beam conftest.$ac_ext
12478 fi
12479
12480 fi
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12483 $as_echo "$ac_cv_header_stdc" >&6; }
12484 if test $ac_cv_header_stdc = yes; then
12485
12486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12487
12488 fi
12489
12490 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
12491 do :
12492   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12493 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12495   cat >>confdefs.h <<_ACEOF
12496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12497 _ACEOF
12498
12499 fi
12500
12501 done
12502
12503 for ac_header in sys/sysctl.h
12504 do :
12505   ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12506 #ifdef HAVE_SYS_PARAM_H
12507 #include <sys/param.h>
12508 #endif
12509
12510 "
12511 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12512   cat >>confdefs.h <<_ACEOF
12513 #define HAVE_SYS_SYSCTL_H 1
12514 _ACEOF
12515
12516 fi
12517
12518 done
12519
12520 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12521         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
12522 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
12523         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h.  */
12525
12526 #include <sys/queue.h>
12527 #ifdef TAILQ_FOREACH
12528  yes
12529 #endif
12530
12531 _ACEOF
12532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12533   $EGREP "yes" >/dev/null 2>&1; then :
12534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12535 $as_echo "yes" >&6; }
12536
12537 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
12538
12539 else
12540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12542
12543 fi
12544 rm -f conftest*
12545
12546 fi
12547
12548 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12549         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
12550 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
12551         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h.  */
12553
12554 #include <sys/time.h>
12555 #ifdef timeradd
12556  yes
12557 #endif
12558
12559 _ACEOF
12560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12561   $EGREP "yes" >/dev/null 2>&1; then :
12562
12563 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
12564
12565           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12566 $as_echo "yes" >&6; }
12567 else
12568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569 $as_echo "no" >&6; }
12570
12571 fi
12572 rm -f conftest*
12573
12574 fi
12575
12576 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12577         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
12578 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
12579         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h.  */
12581
12582 #include <sys/time.h>
12583 #ifdef timercmp
12584  yes
12585 #endif
12586
12587 _ACEOF
12588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12589   $EGREP "yes" >/dev/null 2>&1; then :
12590
12591 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
12592
12593           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12594 $as_echo "yes" >&6; }
12595 else
12596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12598
12599 fi
12600 rm -f conftest*
12601
12602 fi
12603
12604 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12605         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
12606 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
12607         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h.  */
12609
12610 #include <sys/time.h>
12611 #ifdef timerclear
12612  yes
12613 #endif
12614
12615 _ACEOF
12616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12617   $EGREP "yes" >/dev/null 2>&1; then :
12618
12619 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
12620
12621           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12622 $as_echo "yes" >&6; }
12623 else
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12626
12627 fi
12628 rm -f conftest*
12629
12630 fi
12631
12632 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
12633         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
12634 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
12635         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 /* end confdefs.h.  */
12637
12638 #include <sys/time.h>
12639 #ifdef timerisset
12640  yes
12641 #endif
12642
12643 _ACEOF
12644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12645   $EGREP "yes" >/dev/null 2>&1; then :
12646
12647 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
12648
12649           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12650 $as_echo "yes" >&6; }
12651 else
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653 $as_echo "no" >&6; }
12654
12655 fi
12656 rm -f conftest*
12657
12658 fi
12659
12660 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
12661         ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
12662              #include <sys/sysctl.h>
12663
12664 "
12665 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
12666   ac_have_decl=1
12667 else
12668   ac_have_decl=0
12669 fi
12670
12671 cat >>confdefs.h <<_ACEOF
12672 #define HAVE_DECL_CTL_KERN $ac_have_decl
12673 _ACEOF
12674 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
12675              #include <sys/sysctl.h>
12676
12677 "
12678 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
12679   ac_have_decl=1
12680 else
12681   ac_have_decl=0
12682 fi
12683
12684 cat >>confdefs.h <<_ACEOF
12685 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
12686 _ACEOF
12687 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
12688              #include <sys/sysctl.h>
12689
12690 "
12691 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
12692   ac_have_decl=1
12693 else
12694   ac_have_decl=0
12695 fi
12696
12697 cat >>confdefs.h <<_ACEOF
12698 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
12699 _ACEOF
12700 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
12701              #include <sys/sysctl.h>
12702
12703 "
12704 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
12705   ac_have_decl=1
12706 else
12707   ac_have_decl=0
12708 fi
12709
12710 cat >>confdefs.h <<_ACEOF
12711 #define HAVE_DECL_KERN_ARND $ac_have_decl
12712 _ACEOF
12713
12714 fi
12715
12716  if test x$bwin32 = xtrue; then
12717   BUILD_WIN32_TRUE=
12718   BUILD_WIN32_FALSE='#'
12719 else
12720   BUILD_WIN32_TRUE='#'
12721   BUILD_WIN32_FALSE=
12722 fi
12723
12724  if test x$cygwin = xtrue; then
12725   BUILD_CYGWIN_TRUE=
12726   BUILD_CYGWIN_FALSE='#'
12727 else
12728   BUILD_CYGWIN_TRUE='#'
12729   BUILD_CYGWIN_FALSE=
12730 fi
12731
12732  if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
12733   BUILD_WITH_NO_UNDEFINED_TRUE=
12734   BUILD_WITH_NO_UNDEFINED_FALSE='#'
12735 else
12736   BUILD_WITH_NO_UNDEFINED_TRUE='#'
12737   BUILD_WITH_NO_UNDEFINED_FALSE=
12738 fi
12739
12740
12741 if test x$bwin32 = xtrue; then
12742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
12743 $as_echo_n "checking for library containing getservbyname... " >&6; }
12744 if ${ac_cv_search_getservbyname+:} false; then :
12745   $as_echo_n "(cached) " >&6
12746 else
12747   ac_func_search_save_LIBS=$LIBS
12748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h.  */
12750
12751 /* Override any GCC internal prototype to avoid an error.
12752    Use char because int might match the return type of a GCC
12753    builtin and then its argument prototype would still apply.  */
12754 #ifdef __cplusplus
12755 extern "C"
12756 #endif
12757 char getservbyname ();
12758 int
12759 main ()
12760 {
12761 return getservbyname ();
12762   ;
12763   return 0;
12764 }
12765 _ACEOF
12766 for ac_lib in '' ws2_32; do
12767   if test -z "$ac_lib"; then
12768     ac_res="none required"
12769   else
12770     ac_res=-l$ac_lib
12771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12772   fi
12773   if ac_fn_c_try_link "$LINENO"; then :
12774   ac_cv_search_getservbyname=$ac_res
12775 fi
12776 rm -f core conftest.err conftest.$ac_objext \
12777     conftest$ac_exeext
12778   if ${ac_cv_search_getservbyname+:} false; then :
12779   break
12780 fi
12781 done
12782 if ${ac_cv_search_getservbyname+:} false; then :
12783
12784 else
12785   ac_cv_search_getservbyname=no
12786 fi
12787 rm conftest.$ac_ext
12788 LIBS=$ac_func_search_save_LIBS
12789 fi
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
12791 $as_echo "$ac_cv_search_getservbyname" >&6; }
12792 ac_res=$ac_cv_search_getservbyname
12793 if test "$ac_res" != no; then :
12794   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12795
12796 fi
12797
12798 fi
12799
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12801 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12802 if ${ac_cv_c_const+:} false; then :
12803   $as_echo_n "(cached) " >&6
12804 else
12805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h.  */
12807
12808 int
12809 main ()
12810 {
12811 /* FIXME: Include the comments suggested by Paul. */
12812 #ifndef __cplusplus
12813   /* Ultrix mips cc rejects this.  */
12814   typedef int charset[2];
12815   const charset cs;
12816   /* SunOS 4.1.1 cc rejects this.  */
12817   char const *const *pcpcc;
12818   char **ppc;
12819   /* NEC SVR4.0.2 mips cc rejects this.  */
12820   struct point {int x, y;};
12821   static struct point const zero = {0,0};
12822   /* AIX XL C 1.02.0.0 rejects this.
12823      It does not let you subtract one const X* pointer from another in
12824      an arm of an if-expression whose if-part is not a constant
12825      expression */
12826   const char *g = "string";
12827   pcpcc = &g + (g ? g-g : 0);
12828   /* HPUX 7.0 cc rejects these. */
12829   ++pcpcc;
12830   ppc = (char**) pcpcc;
12831   pcpcc = (char const *const *) ppc;
12832   { /* SCO 3.2v4 cc rejects this.  */
12833     char *t;
12834     char const *s = 0 ? (char *) 0 : (char const *) 0;
12835
12836     *t++ = 0;
12837     if (s) return 0;
12838   }
12839   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12840     int x[] = {25, 17};
12841     const int *foo = &x[0];
12842     ++foo;
12843   }
12844   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12845     typedef const int *iptr;
12846     iptr p = 0;
12847     ++p;
12848   }
12849   { /* AIX XL C 1.02.0.0 rejects this saying
12850        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12851     struct s { int j; const int *ap[3]; };
12852     struct s *b; b->j = 5;
12853   }
12854   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12855     const int foo = 10;
12856     if (!foo) return 0;
12857   }
12858   return !cs[0] && !zero.x;
12859 #endif
12860
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866   ac_cv_c_const=yes
12867 else
12868   ac_cv_c_const=no
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 fi
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12873 $as_echo "$ac_cv_c_const" >&6; }
12874 if test $ac_cv_c_const = no; then
12875
12876 $as_echo "#define const /**/" >>confdefs.h
12877
12878 fi
12879
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12881 $as_echo_n "checking for inline... " >&6; }
12882 if ${ac_cv_c_inline+:} false; then :
12883   $as_echo_n "(cached) " >&6
12884 else
12885   ac_cv_c_inline=no
12886 for ac_kw in inline __inline__ __inline; do
12887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h.  */
12889 #ifndef __cplusplus
12890 typedef int foo_t;
12891 static $ac_kw foo_t static_foo () {return 0; }
12892 $ac_kw foo_t foo () {return 0; }
12893 #endif
12894
12895 _ACEOF
12896 if ac_fn_c_try_compile "$LINENO"; then :
12897   ac_cv_c_inline=$ac_kw
12898 fi
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900   test "$ac_cv_c_inline" != no && break
12901 done
12902
12903 fi
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12905 $as_echo "$ac_cv_c_inline" >&6; }
12906
12907 case $ac_cv_c_inline in
12908   inline | yes) ;;
12909   *)
12910     case $ac_cv_c_inline in
12911       no) ac_val=;;
12912       *) ac_val=$ac_cv_c_inline;;
12913     esac
12914     cat >>confdefs.h <<_ACEOF
12915 #ifndef __cplusplus
12916 #define inline $ac_val
12917 #endif
12918 _ACEOF
12919     ;;
12920 esac
12921
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12923 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12924 if ${ac_cv_header_time+:} false; then :
12925   $as_echo_n "(cached) " >&6
12926 else
12927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12928 /* end confdefs.h.  */
12929 #include <sys/types.h>
12930 #include <sys/time.h>
12931 #include <time.h>
12932
12933 int
12934 main ()
12935 {
12936 if ((struct tm *) 0)
12937 return 0;
12938   ;
12939   return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_compile "$LINENO"; then :
12943   ac_cv_header_time=yes
12944 else
12945   ac_cv_header_time=no
12946 fi
12947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948 fi
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12950 $as_echo "$ac_cv_header_time" >&6; }
12951 if test $ac_cv_header_time = yes; then
12952
12953 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12954
12955 fi
12956
12957
12958 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
12959 do :
12960   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12961 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12962 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12963   cat >>confdefs.h <<_ACEOF
12964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12965 _ACEOF
12966
12967 fi
12968 done
12969
12970 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
12971 do :
12972   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12974 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12975   cat >>confdefs.h <<_ACEOF
12976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12977 _ACEOF
12978
12979 fi
12980 done
12981
12982
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
12984 $as_echo_n "checking for getaddrinfo... " >&6; }
12985 if ${libevent_cv_getaddrinfo+:} false; then :
12986   $as_echo_n "(cached) " >&6
12987 else
12988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12989 /* end confdefs.h.  */
12990
12991                 #ifdef HAVE_NETDB_H
12992                 #include <netdb.h>
12993                 #endif
12994
12995 int
12996 main ()
12997 {
12998
12999                 getaddrinfo;
13000
13001
13002   ;
13003   return 0;
13004 }
13005 _ACEOF
13006 if ac_fn_c_try_link "$LINENO"; then :
13007   libevent_cv_getaddrinfo=yes
13008 else
13009   libevent_cv_getaddrinfo=no
13010
13011 fi
13012 rm -f core conftest.err conftest.$ac_objext \
13013     conftest$ac_exeext conftest.$ac_ext
13014
13015 fi
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13017 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13018 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13019
13020 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13021
13022 else
13023
13024 for ac_func in getservbyname
13025 do :
13026   ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13027 if test "x$ac_cv_func_getservbyname" = xyes; then :
13028   cat >>confdefs.h <<_ACEOF
13029 #define HAVE_GETSERVBYNAME 1
13030 _ACEOF
13031
13032 fi
13033 done
13034
13035 # Check for gethostbyname_r in all its glorious incompatible versions.
13036 #   (This is cut-and-pasted from Tor, which based its logic on
13037 #   Python's configure.in.)
13038
13039
13040 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13041 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13042
13043   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13044 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13045   OLD_CFLAGS=$CFLAGS
13046   CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h.  */
13049
13050 #include <netdb.h>
13051
13052 int
13053 main ()
13054 {
13055
13056     char *cp1, *cp2;
13057     struct hostent *h1, *h2;
13058     int i1, i2;
13059     (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13060
13061   ;
13062   return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066
13067     $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13068
13069
13070 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13071
13072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13073 $as_echo "6" >&6; }
13074
13075 else
13076
13077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h.  */
13079
13080 #include <netdb.h>
13081
13082 int
13083 main ()
13084 {
13085
13086       char *cp1, *cp2;
13087       struct hostent *h1;
13088       int i1, i2;
13089       (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13090
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_compile "$LINENO"; then :
13096
13097       $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13098
13099
13100 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13101
13102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13103 $as_echo "5" >&6; }
13104
13105 else
13106
13107       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h.  */
13109
13110 #include <netdb.h>
13111
13112 int
13113 main ()
13114 {
13115
13116        char *cp1;
13117        struct hostent *h1;
13118        struct hostent_data hd;
13119        (void) gethostbyname_r(cp1,h1,&hd);
13120
13121   ;
13122   return 0;
13123 }
13124 _ACEOF
13125 if ac_fn_c_try_compile "$LINENO"; then :
13126
13127        $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13128
13129
13130 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13131
13132        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13133 $as_echo "3" >&6; }
13134
13135 else
13136
13137        { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13138 $as_echo "0" >&6; }
13139
13140 fi
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145
13146 fi
13147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148  CFLAGS=$OLD_CFLAGS
13149
13150 fi
13151
13152
13153 fi
13154
13155 # The cast to long int works around a bug in the HP C Compiler
13156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13158 # This bug is HP SR number 8606223364.
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13160 $as_echo_n "checking size of long... " >&6; }
13161 if ${ac_cv_sizeof_long+:} false; then :
13162   $as_echo_n "(cached) " >&6
13163 else
13164   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13165
13166 else
13167   if test "$ac_cv_type_long" = yes; then
13168      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13170 as_fn_error 77 "cannot compute sizeof (long)
13171 See \`config.log' for more details" "$LINENO" 5; }
13172    else
13173      ac_cv_sizeof_long=0
13174    fi
13175 fi
13176
13177 fi
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13179 $as_echo "$ac_cv_sizeof_long" >&6; }
13180
13181
13182
13183 cat >>confdefs.h <<_ACEOF
13184 #define SIZEOF_LONG $ac_cv_sizeof_long
13185 _ACEOF
13186
13187
13188
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13190 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h.  */
13193
13194 #define _GNU_SOURCE
13195 #include <fcntl.h>
13196 #ifdef F_SETFD
13197 yes
13198 #endif
13199
13200 _ACEOF
13201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13202   $EGREP "yes" >/dev/null 2>&1; then :
13203
13204 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13205
13206           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13207 $as_echo "yes" >&6; }
13208 else
13209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210 $as_echo "no" >&6; }
13211 fi
13212 rm -f conftest*
13213
13214
13215 needsignal=no
13216 haveselect=no
13217 if test x$bwin32 != xtrue; then
13218     for ac_func in select
13219 do :
13220   ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13221 if test "x$ac_cv_func_select" = xyes; then :
13222   cat >>confdefs.h <<_ACEOF
13223 #define HAVE_SELECT 1
13224 _ACEOF
13225  haveselect=yes
13226 fi
13227 done
13228
13229     if test "x$haveselect" = "xyes" ; then
13230         needsignal=yes
13231     fi
13232 fi
13233  if test "x$haveselect" = "xyes"; then
13234   SELECT_BACKEND_TRUE=
13235   SELECT_BACKEND_FALSE='#'
13236 else
13237   SELECT_BACKEND_TRUE='#'
13238   SELECT_BACKEND_FALSE=
13239 fi
13240
13241
13242 havepoll=no
13243 for ac_func in poll
13244 do :
13245   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13246 if test "x$ac_cv_func_poll" = xyes; then :
13247   cat >>confdefs.h <<_ACEOF
13248 #define HAVE_POLL 1
13249 _ACEOF
13250  havepoll=yes
13251 fi
13252 done
13253
13254 if test "x$havepoll" = "xyes" ; then
13255         needsignal=yes
13256 fi
13257  if test "x$havepoll" = "xyes"; then
13258   POLL_BACKEND_TRUE=
13259   POLL_BACKEND_FALSE='#'
13260 else
13261   POLL_BACKEND_TRUE='#'
13262   POLL_BACKEND_FALSE=
13263 fi
13264
13265
13266 havedevpoll=no
13267 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13268
13269 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13270
13271 fi
13272  if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13273   DEVPOLL_BACKEND_TRUE=
13274   DEVPOLL_BACKEND_FALSE='#'
13275 else
13276   DEVPOLL_BACKEND_TRUE='#'
13277   DEVPOLL_BACKEND_FALSE=
13278 fi
13279
13280
13281 havekqueue=no
13282 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13283         for ac_func in kqueue
13284 do :
13285   ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13286 if test "x$ac_cv_func_kqueue" = xyes; then :
13287   cat >>confdefs.h <<_ACEOF
13288 #define HAVE_KQUEUE 1
13289 _ACEOF
13290  havekqueue=yes
13291 fi
13292 done
13293
13294         if test "x$havekqueue" = "xyes" ; then
13295                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13296 $as_echo_n "checking for working kqueue... " >&6; }
13297                 if test "$cross_compiling" = yes; then :
13298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 else
13301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h.  */
13303 #include <sys/types.h>
13304 #include <sys/time.h>
13305 #include <sys/event.h>
13306 #include <stdio.h>
13307 #include <unistd.h>
13308 #include <fcntl.h>
13309
13310 int
13311 main(int argc, char **argv)
13312 {
13313         int kq;
13314         int n;
13315         int fd[2];
13316         struct kevent ev;
13317         struct timespec ts;
13318         char buf[8000];
13319
13320         if (pipe(fd) == -1)
13321                 exit(1);
13322         if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13323                 exit(1);
13324
13325         while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13326                 ;
13327
13328         if ((kq = kqueue()) == -1)
13329                 exit(1);
13330
13331         memset(&ev, 0, sizeof(ev));
13332         ev.ident = fd[1];
13333         ev.filter = EVFILT_WRITE;
13334         ev.flags = EV_ADD | EV_ENABLE;
13335         n = kevent(kq, &ev, 1, NULL, 0, NULL);
13336         if (n == -1)
13337                 exit(1);
13338
13339         read(fd[0], buf, sizeof(buf));
13340
13341         ts.tv_sec = 0;
13342         ts.tv_nsec = 0;
13343         n = kevent(kq, NULL, 0, &ev, 1, &ts);
13344         if (n == -1 || n == 0)
13345                 exit(1);
13346
13347         exit(0);
13348 }
13349 _ACEOF
13350 if ac_fn_c_try_run "$LINENO"; then :
13351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13352 $as_echo "yes" >&6; }
13353
13354 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13355
13356     havekqueue=yes
13357
13358 else
13359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360 $as_echo "no" >&6; }
13361 fi
13362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13363   conftest.$ac_objext conftest.beam conftest.$ac_ext
13364 fi
13365
13366         fi
13367 fi
13368  if test "x$havekqueue" = "xyes"; then
13369   KQUEUE_BACKEND_TRUE=
13370   KQUEUE_BACKEND_FALSE='#'
13371 else
13372   KQUEUE_BACKEND_TRUE='#'
13373   KQUEUE_BACKEND_FALSE=
13374 fi
13375
13376
13377 haveepollsyscall=no
13378 haveepoll=no
13379 for ac_func in epoll_ctl
13380 do :
13381   ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13382 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13383   cat >>confdefs.h <<_ACEOF
13384 #define HAVE_EPOLL_CTL 1
13385 _ACEOF
13386  haveepoll=yes
13387 fi
13388 done
13389
13390 if test "x$haveepoll" = "xyes" ; then
13391
13392 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13393
13394         needsignal=yes
13395 fi
13396 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13397         if test "x$haveepoll" = "xno" ; then
13398                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13399 $as_echo_n "checking for epoll system call... " >&6; }
13400                 if test "$cross_compiling" = yes; then :
13401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402 $as_echo "no" >&6; }
13403 else
13404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h.  */
13406 #include <stdint.h>
13407 #include <sys/param.h>
13408 #include <sys/types.h>
13409 #include <sys/syscall.h>
13410 #include <sys/epoll.h>
13411 #include <unistd.h>
13412
13413 int
13414 epoll_create(int size)
13415 {
13416         return (syscall(__NR_epoll_create, size));
13417 }
13418
13419 int
13420 main(int argc, char **argv)
13421 {
13422         int epfd;
13423
13424         epfd = epoll_create(256);
13425         exit (epfd == -1 ? 1 : 0);
13426 }
13427 _ACEOF
13428 if ac_fn_c_try_run "$LINENO"; then :
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13430 $as_echo "yes" >&6; }
13431
13432 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13433
13434     needsignal=yes
13435     have_epoll=yes
13436     case " $LIBOBJS " in
13437   *" epoll_sub.$ac_objext "* ) ;;
13438   *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13439  ;;
13440 esac
13441
13442
13443 else
13444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13446 fi
13447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13448   conftest.$ac_objext conftest.beam conftest.$ac_ext
13449 fi
13450
13451         fi
13452 fi
13453  if test "x$haveepoll" = "xyes"; then
13454   EPOLL_BACKEND_TRUE=
13455   EPOLL_BACKEND_FALSE='#'
13456 else
13457   EPOLL_BACKEND_TRUE='#'
13458   EPOLL_BACKEND_FALSE=
13459 fi
13460
13461
13462 haveeventports=no
13463 for ac_func in port_create
13464 do :
13465   ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13466 if test "x$ac_cv_func_port_create" = xyes; then :
13467   cat >>confdefs.h <<_ACEOF
13468 #define HAVE_PORT_CREATE 1
13469 _ACEOF
13470  haveeventports=yes
13471 fi
13472 done
13473
13474 if test "x$haveeventports" = "xyes" ; then
13475
13476 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13477
13478         needsignal=yes
13479 fi
13480  if test "x$haveeventports" = "xyes"; then
13481   EVPORT_BACKEND_TRUE=
13482   EVPORT_BACKEND_FALSE='#'
13483 else
13484   EVPORT_BACKEND_TRUE='#'
13485   EVPORT_BACKEND_FALSE=
13486 fi
13487
13488
13489 if test "x$bwin32" = "xtrue"; then
13490         needsignal=yes
13491 fi
13492
13493  if test "x$needsignal" = "xyes"; then
13494   SIGNAL_SUPPORT_TRUE=
13495   SIGNAL_SUPPORT_FALSE='#'
13496 else
13497   SIGNAL_SUPPORT_TRUE='#'
13498   SIGNAL_SUPPORT_FALSE=
13499 fi
13500
13501
13502 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13503 if test "x$ac_cv_type_pid_t" = xyes; then :
13504
13505 else
13506
13507 cat >>confdefs.h <<_ACEOF
13508 #define pid_t int
13509 _ACEOF
13510
13511 fi
13512
13513 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13514 if test "x$ac_cv_type_size_t" = xyes; then :
13515
13516 else
13517
13518 cat >>confdefs.h <<_ACEOF
13519 #define size_t unsigned int
13520 _ACEOF
13521
13522 fi
13523
13524 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13525 if test "x$ac_cv_type_ssize_t" = xyes; then :
13526
13527 else
13528
13529 cat >>confdefs.h <<_ACEOF
13530 #define ssize_t int
13531 _ACEOF
13532
13533 fi
13534
13535
13536 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
13537 #include <stdint.h>
13538 #elif defined(HAVE_INTTYPES_H)
13539 #include <inttypes.h>
13540 #endif
13541 #ifdef HAVE_SYS_TYPES_H
13542 #include <sys/types.h>
13543 #endif
13544 "
13545 if test "x$ac_cv_type_uint64_t" = xyes; then :
13546
13547 cat >>confdefs.h <<_ACEOF
13548 #define HAVE_UINT64_T 1
13549 _ACEOF
13550
13551
13552 fi
13553 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
13554 #include <stdint.h>
13555 #elif defined(HAVE_INTTYPES_H)
13556 #include <inttypes.h>
13557 #endif
13558 #ifdef HAVE_SYS_TYPES_H
13559 #include <sys/types.h>
13560 #endif
13561 "
13562 if test "x$ac_cv_type_uint32_t" = xyes; then :
13563
13564 cat >>confdefs.h <<_ACEOF
13565 #define HAVE_UINT32_T 1
13566 _ACEOF
13567
13568
13569 fi
13570 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
13571 #include <stdint.h>
13572 #elif defined(HAVE_INTTYPES_H)
13573 #include <inttypes.h>
13574 #endif
13575 #ifdef HAVE_SYS_TYPES_H
13576 #include <sys/types.h>
13577 #endif
13578 "
13579 if test "x$ac_cv_type_uint16_t" = xyes; then :
13580
13581 cat >>confdefs.h <<_ACEOF
13582 #define HAVE_UINT16_T 1
13583 _ACEOF
13584
13585
13586 fi
13587 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
13588 #include <stdint.h>
13589 #elif defined(HAVE_INTTYPES_H)
13590 #include <inttypes.h>
13591 #endif
13592 #ifdef HAVE_SYS_TYPES_H
13593 #include <sys/types.h>
13594 #endif
13595 "
13596 if test "x$ac_cv_type_uint8_t" = xyes; then :
13597
13598 cat >>confdefs.h <<_ACEOF
13599 #define HAVE_UINT8_T 1
13600 _ACEOF
13601
13602
13603 fi
13604 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
13605 #include <stdint.h>
13606 #elif defined(HAVE_INTTYPES_H)
13607 #include <inttypes.h>
13608 #endif
13609 #ifdef HAVE_SYS_TYPES_H
13610 #include <sys/types.h>
13611 #endif
13612 "
13613 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13614
13615 cat >>confdefs.h <<_ACEOF
13616 #define HAVE_UINTPTR_T 1
13617 _ACEOF
13618
13619
13620 fi
13621
13622
13623 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
13624 #include <sys/types.h>
13625 #endif
13626 #ifdef HAVE_SYS_SELECT_H
13627 #include <sys/select.h>
13628 #endif
13629 "
13630 if test "x$ac_cv_type_fd_mask" = xyes; then :
13631
13632 cat >>confdefs.h <<_ACEOF
13633 #define HAVE_FD_MASK 1
13634 _ACEOF
13635
13636
13637 fi
13638
13639
13640 # The cast to long int works around a bug in the HP C Compiler
13641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13643 # This bug is HP SR number 8606223364.
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
13645 $as_echo_n "checking size of long long... " >&6; }
13646 if ${ac_cv_sizeof_long_long+:} false; then :
13647   $as_echo_n "(cached) " >&6
13648 else
13649   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
13650
13651 else
13652   if test "$ac_cv_type_long_long" = yes; then
13653      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13655 as_fn_error 77 "cannot compute sizeof (long long)
13656 See \`config.log' for more details" "$LINENO" 5; }
13657    else
13658      ac_cv_sizeof_long_long=0
13659    fi
13660 fi
13661
13662 fi
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
13664 $as_echo "$ac_cv_sizeof_long_long" >&6; }
13665
13666
13667
13668 cat >>confdefs.h <<_ACEOF
13669 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13670 _ACEOF
13671
13672
13673 # The cast to long int works around a bug in the HP C Compiler
13674 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13675 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13676 # This bug is HP SR number 8606223364.
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13678 $as_echo_n "checking size of long... " >&6; }
13679 if ${ac_cv_sizeof_long+:} false; then :
13680   $as_echo_n "(cached) " >&6
13681 else
13682   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13683
13684 else
13685   if test "$ac_cv_type_long" = yes; then
13686      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13688 as_fn_error 77 "cannot compute sizeof (long)
13689 See \`config.log' for more details" "$LINENO" 5; }
13690    else
13691      ac_cv_sizeof_long=0
13692    fi
13693 fi
13694
13695 fi
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13697 $as_echo "$ac_cv_sizeof_long" >&6; }
13698
13699
13700
13701 cat >>confdefs.h <<_ACEOF
13702 #define SIZEOF_LONG $ac_cv_sizeof_long
13703 _ACEOF
13704
13705
13706 # The cast to long int works around a bug in the HP C Compiler
13707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13709 # This bug is HP SR number 8606223364.
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13711 $as_echo_n "checking size of int... " >&6; }
13712 if ${ac_cv_sizeof_int+:} false; then :
13713   $as_echo_n "(cached) " >&6
13714 else
13715   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13716
13717 else
13718   if test "$ac_cv_type_int" = yes; then
13719      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13721 as_fn_error 77 "cannot compute sizeof (int)
13722 See \`config.log' for more details" "$LINENO" 5; }
13723    else
13724      ac_cv_sizeof_int=0
13725    fi
13726 fi
13727
13728 fi
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13730 $as_echo "$ac_cv_sizeof_int" >&6; }
13731
13732
13733
13734 cat >>confdefs.h <<_ACEOF
13735 #define SIZEOF_INT $ac_cv_sizeof_int
13736 _ACEOF
13737
13738
13739 # The cast to long int works around a bug in the HP C Compiler
13740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13741 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13742 # This bug is HP SR number 8606223364.
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13744 $as_echo_n "checking size of short... " >&6; }
13745 if ${ac_cv_sizeof_short+:} false; then :
13746   $as_echo_n "(cached) " >&6
13747 else
13748   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13749
13750 else
13751   if test "$ac_cv_type_short" = yes; then
13752      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13754 as_fn_error 77 "cannot compute sizeof (short)
13755 See \`config.log' for more details" "$LINENO" 5; }
13756    else
13757      ac_cv_sizeof_short=0
13758    fi
13759 fi
13760
13761 fi
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13763 $as_echo "$ac_cv_sizeof_short" >&6; }
13764
13765
13766
13767 cat >>confdefs.h <<_ACEOF
13768 #define SIZEOF_SHORT $ac_cv_sizeof_short
13769 _ACEOF
13770
13771
13772 # The cast to long int works around a bug in the HP C Compiler
13773 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13774 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13775 # This bug is HP SR number 8606223364.
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
13777 $as_echo_n "checking size of size_t... " >&6; }
13778 if ${ac_cv_sizeof_size_t+:} false; then :
13779   $as_echo_n "(cached) " >&6
13780 else
13781   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
13782
13783 else
13784   if test "$ac_cv_type_size_t" = yes; then
13785      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13787 as_fn_error 77 "cannot compute sizeof (size_t)
13788 See \`config.log' for more details" "$LINENO" 5; }
13789    else
13790      ac_cv_sizeof_size_t=0
13791    fi
13792 fi
13793
13794 fi
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
13796 $as_echo "$ac_cv_sizeof_size_t" >&6; }
13797
13798
13799
13800 cat >>confdefs.h <<_ACEOF
13801 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13802 _ACEOF
13803
13804
13805 # The cast to long int works around a bug in the HP C Compiler
13806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13808 # This bug is HP SR number 8606223364.
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13810 $as_echo_n "checking size of void *... " >&6; }
13811 if ${ac_cv_sizeof_void_p+:} false; then :
13812   $as_echo_n "(cached) " >&6
13813 else
13814   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13815
13816 else
13817   if test "$ac_cv_type_void_p" = yes; then
13818      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13820 as_fn_error 77 "cannot compute sizeof (void *)
13821 See \`config.log' for more details" "$LINENO" 5; }
13822    else
13823      ac_cv_sizeof_void_p=0
13824    fi
13825 fi
13826
13827 fi
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13829 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13830
13831
13832
13833 cat >>confdefs.h <<_ACEOF
13834 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13835 _ACEOF
13836
13837
13838
13839 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
13840 #include <sys/types.h>
13841 #ifdef HAVE_NETINET_IN_H
13842 #include <netinet/in.h>
13843 #endif
13844 #ifdef HAVE_NETINET_IN6_H
13845 #include <netinet/in6.h>
13846 #endif
13847 #ifdef HAVE_SYS_SOCKET_H
13848 #include <sys/socket.h>
13849 #endif
13850 #ifdef HAVE_NETDB_H
13851 #include <netdb.h>
13852 #endif
13853 #ifdef WIN32
13854 #define WIN32_WINNT 0x400
13855 #define _WIN32_WINNT 0x400
13856 #define WIN32_LEAN_AND_MEAN
13857 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13858 #include <winsock.h>
13859 #else
13860 #include <winsock2.h>
13861 #include <ws2tcpip.h>
13862 #endif
13863 #endif
13864
13865 "
13866 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
13867
13868 cat >>confdefs.h <<_ACEOF
13869 #define HAVE_STRUCT_IN6_ADDR 1
13870 _ACEOF
13871
13872
13873 fi
13874 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
13875 #include <sys/types.h>
13876 #ifdef HAVE_NETINET_IN_H
13877 #include <netinet/in.h>
13878 #endif
13879 #ifdef HAVE_NETINET_IN6_H
13880 #include <netinet/in6.h>
13881 #endif
13882 #ifdef HAVE_SYS_SOCKET_H
13883 #include <sys/socket.h>
13884 #endif
13885 #ifdef HAVE_NETDB_H
13886 #include <netdb.h>
13887 #endif
13888 #ifdef WIN32
13889 #define WIN32_WINNT 0x400
13890 #define _WIN32_WINNT 0x400
13891 #define WIN32_LEAN_AND_MEAN
13892 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13893 #include <winsock.h>
13894 #else
13895 #include <winsock2.h>
13896 #include <ws2tcpip.h>
13897 #endif
13898 #endif
13899
13900 "
13901 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13902
13903 cat >>confdefs.h <<_ACEOF
13904 #define HAVE_STRUCT_SOCKADDR_IN6 1
13905 _ACEOF
13906
13907
13908 fi
13909 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
13910 #include <sys/types.h>
13911 #ifdef HAVE_NETINET_IN_H
13912 #include <netinet/in.h>
13913 #endif
13914 #ifdef HAVE_NETINET_IN6_H
13915 #include <netinet/in6.h>
13916 #endif
13917 #ifdef HAVE_SYS_SOCKET_H
13918 #include <sys/socket.h>
13919 #endif
13920 #ifdef HAVE_NETDB_H
13921 #include <netdb.h>
13922 #endif
13923 #ifdef WIN32
13924 #define WIN32_WINNT 0x400
13925 #define _WIN32_WINNT 0x400
13926 #define WIN32_LEAN_AND_MEAN
13927 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13928 #include <winsock.h>
13929 #else
13930 #include <winsock2.h>
13931 #include <ws2tcpip.h>
13932 #endif
13933 #endif
13934
13935 "
13936 if test "x$ac_cv_type_sa_family_t" = xyes; then :
13937
13938 cat >>confdefs.h <<_ACEOF
13939 #define HAVE_SA_FAMILY_T 1
13940 _ACEOF
13941
13942
13943 fi
13944 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
13945 #include <sys/types.h>
13946 #ifdef HAVE_NETINET_IN_H
13947 #include <netinet/in.h>
13948 #endif
13949 #ifdef HAVE_NETINET_IN6_H
13950 #include <netinet/in6.h>
13951 #endif
13952 #ifdef HAVE_SYS_SOCKET_H
13953 #include <sys/socket.h>
13954 #endif
13955 #ifdef HAVE_NETDB_H
13956 #include <netdb.h>
13957 #endif
13958 #ifdef WIN32
13959 #define WIN32_WINNT 0x400
13960 #define _WIN32_WINNT 0x400
13961 #define WIN32_LEAN_AND_MEAN
13962 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13963 #include <winsock.h>
13964 #else
13965 #include <winsock2.h>
13966 #include <ws2tcpip.h>
13967 #endif
13968 #endif
13969
13970 "
13971 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13972
13973 cat >>confdefs.h <<_ACEOF
13974 #define HAVE_STRUCT_ADDRINFO 1
13975 _ACEOF
13976
13977
13978 fi
13979 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
13980 #include <sys/types.h>
13981 #ifdef HAVE_NETINET_IN_H
13982 #include <netinet/in.h>
13983 #endif
13984 #ifdef HAVE_NETINET_IN6_H
13985 #include <netinet/in6.h>
13986 #endif
13987 #ifdef HAVE_SYS_SOCKET_H
13988 #include <sys/socket.h>
13989 #endif
13990 #ifdef HAVE_NETDB_H
13991 #include <netdb.h>
13992 #endif
13993 #ifdef WIN32
13994 #define WIN32_WINNT 0x400
13995 #define _WIN32_WINNT 0x400
13996 #define WIN32_LEAN_AND_MEAN
13997 #if defined(_MSC_VER) && (_MSC_VER < 1300)
13998 #include <winsock.h>
13999 #else
14000 #include <winsock2.h>
14001 #include <ws2tcpip.h>
14002 #endif
14003 #endif
14004
14005 "
14006 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14007
14008 cat >>confdefs.h <<_ACEOF
14009 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14010 _ACEOF
14011
14012
14013 fi
14014
14015 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14016 #ifdef HAVE_NETINET_IN_H
14017 #include <netinet/in.h>
14018 #endif
14019 #ifdef HAVE_NETINET_IN6_H
14020 #include <netinet/in6.h>
14021 #endif
14022 #ifdef HAVE_SYS_SOCKET_H
14023 #include <sys/socket.h>
14024 #endif
14025 #ifdef WIN32
14026 #define WIN32_WINNT 0x400
14027 #define _WIN32_WINNT 0x400
14028 #define WIN32_LEAN_AND_MEAN
14029 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14030 #include <winsock.h>
14031 #else
14032 #include <winsock2.h>
14033 #include <ws2tcpip.h>
14034 #endif
14035 #endif
14036
14037 "
14038 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14039
14040 cat >>confdefs.h <<_ACEOF
14041 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14042 _ACEOF
14043
14044
14045 fi
14046 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14047 #ifdef HAVE_NETINET_IN_H
14048 #include <netinet/in.h>
14049 #endif
14050 #ifdef HAVE_NETINET_IN6_H
14051 #include <netinet/in6.h>
14052 #endif
14053 #ifdef HAVE_SYS_SOCKET_H
14054 #include <sys/socket.h>
14055 #endif
14056 #ifdef WIN32
14057 #define WIN32_WINNT 0x400
14058 #define _WIN32_WINNT 0x400
14059 #define WIN32_LEAN_AND_MEAN
14060 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14061 #include <winsock.h>
14062 #else
14063 #include <winsock2.h>
14064 #include <ws2tcpip.h>
14065 #endif
14066 #endif
14067
14068 "
14069 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14070
14071 cat >>confdefs.h <<_ACEOF
14072 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14073 _ACEOF
14074
14075
14076 fi
14077 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14078 #ifdef HAVE_NETINET_IN_H
14079 #include <netinet/in.h>
14080 #endif
14081 #ifdef HAVE_NETINET_IN6_H
14082 #include <netinet/in6.h>
14083 #endif
14084 #ifdef HAVE_SYS_SOCKET_H
14085 #include <sys/socket.h>
14086 #endif
14087 #ifdef WIN32
14088 #define WIN32_WINNT 0x400
14089 #define _WIN32_WINNT 0x400
14090 #define WIN32_LEAN_AND_MEAN
14091 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14092 #include <winsock.h>
14093 #else
14094 #include <winsock2.h>
14095 #include <ws2tcpip.h>
14096 #endif
14097 #endif
14098
14099 "
14100 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14101
14102 cat >>confdefs.h <<_ACEOF
14103 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14104 _ACEOF
14105
14106
14107 fi
14108 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14109 #ifdef HAVE_NETINET_IN_H
14110 #include <netinet/in.h>
14111 #endif
14112 #ifdef HAVE_NETINET_IN6_H
14113 #include <netinet/in6.h>
14114 #endif
14115 #ifdef HAVE_SYS_SOCKET_H
14116 #include <sys/socket.h>
14117 #endif
14118 #ifdef WIN32
14119 #define WIN32_WINNT 0x400
14120 #define _WIN32_WINNT 0x400
14121 #define WIN32_LEAN_AND_MEAN
14122 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14123 #include <winsock.h>
14124 #else
14125 #include <winsock2.h>
14126 #include <ws2tcpip.h>
14127 #endif
14128 #endif
14129
14130 "
14131 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14132
14133 cat >>confdefs.h <<_ACEOF
14134 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14135 _ACEOF
14136
14137
14138 fi
14139 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14140 #ifdef HAVE_NETINET_IN_H
14141 #include <netinet/in.h>
14142 #endif
14143 #ifdef HAVE_NETINET_IN6_H
14144 #include <netinet/in6.h>
14145 #endif
14146 #ifdef HAVE_SYS_SOCKET_H
14147 #include <sys/socket.h>
14148 #endif
14149 #ifdef WIN32
14150 #define WIN32_WINNT 0x400
14151 #define _WIN32_WINNT 0x400
14152 #define WIN32_LEAN_AND_MEAN
14153 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14154 #include <winsock.h>
14155 #else
14156 #include <winsock2.h>
14157 #include <ws2tcpip.h>
14158 #endif
14159 #endif
14160
14161 "
14162 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14163
14164 cat >>confdefs.h <<_ACEOF
14165 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14166 _ACEOF
14167
14168
14169 fi
14170 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14171 #ifdef HAVE_NETINET_IN_H
14172 #include <netinet/in.h>
14173 #endif
14174 #ifdef HAVE_NETINET_IN6_H
14175 #include <netinet/in6.h>
14176 #endif
14177 #ifdef HAVE_SYS_SOCKET_H
14178 #include <sys/socket.h>
14179 #endif
14180 #ifdef WIN32
14181 #define WIN32_WINNT 0x400
14182 #define _WIN32_WINNT 0x400
14183 #define WIN32_LEAN_AND_MEAN
14184 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14185 #include <winsock.h>
14186 #else
14187 #include <winsock2.h>
14188 #include <ws2tcpip.h>
14189 #endif
14190 #endif
14191
14192 "
14193 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14194
14195 cat >>confdefs.h <<_ACEOF
14196 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14197 _ACEOF
14198
14199
14200 fi
14201
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14204 $as_echo_n "checking for socklen_t... " >&6; }
14205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h.  */
14207
14208  #include <sys/types.h>
14209  #include <sys/socket.h>
14210 int
14211 main ()
14212 {
14213 socklen_t x;
14214   ;
14215   return 0;
14216 }
14217 _ACEOF
14218 if ac_fn_c_try_compile "$LINENO"; then :
14219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14220 $as_echo "yes" >&6; }
14221 else
14222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223 $as_echo "no" >&6; }
14224
14225 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14226
14227
14228 fi
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14230
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14232 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h.  */
14235
14236 int
14237 main ()
14238 {
14239  const char *cp = __func__;
14240   ;
14241   return 0;
14242 }
14243 _ACEOF
14244 if ac_fn_c_try_compile "$LINENO"; then :
14245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14246 $as_echo "yes" >&6; }
14247 else
14248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249 $as_echo "no" >&6; }
14250  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14251 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253 /* end confdefs.h.  */
14254
14255 int
14256 main ()
14257 {
14258  const char *cp = __FUNCTION__;
14259   ;
14260   return 0;
14261 }
14262 _ACEOF
14263 if ac_fn_c_try_compile "$LINENO"; then :
14264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14265 $as_echo "yes" >&6; }
14266
14267 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14268
14269 else
14270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271 $as_echo "no" >&6; }
14272
14273 $as_echo "#define __func__ __FILE__" >>confdefs.h
14274
14275 fi
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 fi
14278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14279
14280
14281 # check if we can compile with pthreads
14282 have_pthreads=no
14283 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14284
14285
14286
14287 ac_ext=c
14288 ac_cpp='$CPP $CPPFLAGS'
14289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14292
14293 acx_pthread_ok=no
14294
14295 # We used to check for pthread.h first, but this fails if pthread.h
14296 # requires special compiler flags (e.g. on True64 or Sequent).
14297 # It gets checked for in the link test anyway.
14298
14299 # First of all, check if the user has set any of the PTHREAD_LIBS,
14300 # etcetera environment variables, and if threads linking works using
14301 # them:
14302 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14303         save_CFLAGS="$CFLAGS"
14304         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14305         save_LIBS="$LIBS"
14306         LIBS="$PTHREAD_LIBS $LIBS"
14307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14308 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14309         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h.  */
14311
14312 /* Override any GCC internal prototype to avoid an error.
14313    Use char because int might match the return type of a GCC
14314    builtin and then its argument prototype would still apply.  */
14315 #ifdef __cplusplus
14316 extern "C"
14317 #endif
14318 char pthread_join ();
14319 int
14320 main ()
14321 {
14322 return pthread_join ();
14323   ;
14324   return 0;
14325 }
14326 _ACEOF
14327 if ac_fn_c_try_link "$LINENO"; then :
14328   acx_pthread_ok=yes
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext \
14331     conftest$ac_exeext conftest.$ac_ext
14332         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14333 $as_echo "$acx_pthread_ok" >&6; }
14334         if test x"$acx_pthread_ok" = xno; then
14335                 PTHREAD_LIBS=""
14336                 PTHREAD_CFLAGS=""
14337         fi
14338         LIBS="$save_LIBS"
14339         CFLAGS="$save_CFLAGS"
14340 fi
14341
14342 # We must check for the threads library under a number of different
14343 # names; the ordering is very important because some systems
14344 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14345 # libraries is broken (non-POSIX).
14346
14347 # Create a list of thread flags to try.  Items starting with a "-" are
14348 # C compiler flags, and other items are library names, except for "none"
14349 # which indicates that we try without any flags at all, and "pthread-config"
14350 # which is a program returning the flags for the Pth emulation library.
14351
14352 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14353
14354 # The ordering *is* (sometimes) important.  Some notes on the
14355 # individual items follow:
14356
14357 # pthreads: AIX (must check this before -lpthread)
14358 # none: in case threads are in libc; should be tried before -Kthread and
14359 #       other compiler flags to prevent continual compiler warnings
14360 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14361 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14362 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14363 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14364 # -pthreads: Solaris/gcc
14365 # -mthreads: Mingw32/gcc, Lynx/gcc
14366 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14367 #      doesn't hurt to check since this sometimes defines pthreads too;
14368 #      also defines -D_REENTRANT)
14369 #      ... -mt is also the pthreads flag for HP/aCC
14370 # pthread: Linux, etcetera
14371 # --thread-safe: KAI C++
14372 # pthread-config: use pthread-config program (for GNU Pth library)
14373
14374 case "${host_cpu}-${host_os}" in
14375         *solaris*)
14376
14377         # On Solaris (at least, for some versions), libc contains stubbed
14378         # (non-functional) versions of the pthreads routines, so link-based
14379         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
14380         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14381         # a function called by this macro, so we could check for that, but
14382         # who knows whether they'll stub that too in a future libc.)  So,
14383         # we'll just look for -pthreads and -lpthread first:
14384
14385         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
14386         ;;
14387 esac
14388
14389 if test x"$acx_pthread_ok" = xno; then
14390 for flag in $acx_pthread_flags; do
14391
14392         case $flag in
14393                 none)
14394                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14395 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14396                 ;;
14397
14398                 -*)
14399                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14400 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14401                 PTHREAD_CFLAGS="$flag"
14402                 ;;
14403
14404                 pthread-config)
14405                 # Extract the first word of "pthread-config", so it can be a program name with args.
14406 set dummy pthread-config; ac_word=$2
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14408 $as_echo_n "checking for $ac_word... " >&6; }
14409 if ${ac_cv_prog_acx_pthread_config+:} false; then :
14410   $as_echo_n "(cached) " >&6
14411 else
14412   if test -n "$acx_pthread_config"; then
14413   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14414 else
14415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416 for as_dir in $PATH
14417 do
14418   IFS=$as_save_IFS
14419   test -z "$as_dir" && as_dir=.
14420     for ac_exec_ext in '' $ac_executable_extensions; do
14421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14422     ac_cv_prog_acx_pthread_config="yes"
14423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14424     break 2
14425   fi
14426 done
14427   done
14428 IFS=$as_save_IFS
14429
14430   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14431 fi
14432 fi
14433 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14434 if test -n "$acx_pthread_config"; then
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
14436 $as_echo "$acx_pthread_config" >&6; }
14437 else
14438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 $as_echo "no" >&6; }
14440 fi
14441
14442
14443                 if test x"$acx_pthread_config" = xno; then continue; fi
14444                 PTHREAD_CFLAGS="`pthread-config --cflags`"
14445                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14446                 ;;
14447
14448                 *)
14449                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14450 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14451                 PTHREAD_LIBS="-l$flag"
14452                 ;;
14453         esac
14454
14455         save_LIBS="$LIBS"
14456         save_CFLAGS="$CFLAGS"
14457         LIBS="$PTHREAD_LIBS $LIBS"
14458         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14459
14460         # Check for various functions.  We must include pthread.h,
14461         # since some functions may be macros.  (On the Sequent, we
14462         # need a special flag -Kthread to make this header compile.)
14463         # We check for pthread_join because it is in -lpthread on IRIX
14464         # while pthread_create is in libc.  We check for pthread_attr_init
14465         # due to DEC craziness with -lpthreads.  We check for
14466         # pthread_cleanup_push because it is one of the few pthread
14467         # functions on Solaris that doesn't have a non-functional libc stub.
14468         # We try pthread_create on general principles.
14469         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h.  */
14471 #include <pthread.h>
14472 int
14473 main ()
14474 {
14475 pthread_t th; pthread_join(th, 0);
14476                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
14477                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 if ac_fn_c_try_link "$LINENO"; then :
14483   acx_pthread_ok=yes
14484 fi
14485 rm -f core conftest.err conftest.$ac_objext \
14486     conftest$ac_exeext conftest.$ac_ext
14487
14488         LIBS="$save_LIBS"
14489         CFLAGS="$save_CFLAGS"
14490
14491         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
14492 $as_echo "$acx_pthread_ok" >&6; }
14493         if test "x$acx_pthread_ok" = xyes; then
14494                 break;
14495         fi
14496
14497         PTHREAD_LIBS=""
14498         PTHREAD_CFLAGS=""
14499 done
14500 fi
14501
14502 # Various other checks:
14503 if test "x$acx_pthread_ok" = xyes; then
14504         save_LIBS="$LIBS"
14505         LIBS="$PTHREAD_LIBS $LIBS"
14506         save_CFLAGS="$CFLAGS"
14507         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14508
14509         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14510         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14511 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14512         attr_name=unknown
14513         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14514             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h.  */
14516 #include <pthread.h>
14517 int
14518 main ()
14519 {
14520 int attr=$attr; return attr;
14521   ;
14522   return 0;
14523 }
14524 _ACEOF
14525 if ac_fn_c_try_link "$LINENO"; then :
14526   attr_name=$attr; break
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext \
14529     conftest$ac_exeext conftest.$ac_ext
14530         done
14531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14532 $as_echo "$attr_name" >&6; }
14533         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14534
14535 cat >>confdefs.h <<_ACEOF
14536 #define PTHREAD_CREATE_JOINABLE $attr_name
14537 _ACEOF
14538
14539         fi
14540
14541         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14542 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14543         flag=no
14544         case "${host_cpu}-${host_os}" in
14545             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
14546             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
14547         esac
14548         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
14549 $as_echo "${flag}" >&6; }
14550         if test "x$flag" != xno; then
14551             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14552         fi
14553
14554         LIBS="$save_LIBS"
14555         CFLAGS="$save_CFLAGS"
14556
14557         # More AIX lossage: must compile with xlc_r or cc_r
14558         if test x"$GCC" != xyes; then
14559           for ac_prog in xlc_r cc_r
14560 do
14561   # Extract the first word of "$ac_prog", so it can be a program name with args.
14562 set dummy $ac_prog; ac_word=$2
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14564 $as_echo_n "checking for $ac_word... " >&6; }
14565 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14566   $as_echo_n "(cached) " >&6
14567 else
14568   if test -n "$PTHREAD_CC"; then
14569   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14570 else
14571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14572 for as_dir in $PATH
14573 do
14574   IFS=$as_save_IFS
14575   test -z "$as_dir" && as_dir=.
14576     for ac_exec_ext in '' $ac_executable_extensions; do
14577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14578     ac_cv_prog_PTHREAD_CC="$ac_prog"
14579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14580     break 2
14581   fi
14582 done
14583   done
14584 IFS=$as_save_IFS
14585
14586 fi
14587 fi
14588 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14589 if test -n "$PTHREAD_CC"; then
14590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14591 $as_echo "$PTHREAD_CC" >&6; }
14592 else
14593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594 $as_echo "no" >&6; }
14595 fi
14596
14597
14598   test -n "$PTHREAD_CC" && break
14599 done
14600 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
14601
14602         else
14603           PTHREAD_CC=$CC
14604         fi
14605 else
14606         PTHREAD_CC="$CC"
14607 fi
14608
14609
14610
14611
14612
14613 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14614 if test x"$acx_pthread_ok" = xyes; then
14615
14616
14617 $as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
14618
14619         have_pthreads=yes
14620         :
14621 else
14622         acx_pthread_ok=no
14623
14624 fi
14625 ac_ext=c
14626 ac_cpp='$CPP $CPPFLAGS'
14627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14630
14631
14632   CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14633   # The cast to long int works around a bug in the HP C Compiler
14634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14636 # This bug is HP SR number 8606223364.
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
14638 $as_echo_n "checking size of pthread_t... " >&6; }
14639 if ${ac_cv_sizeof_pthread_t+:} false; then :
14640   $as_echo_n "(cached) " >&6
14641 else
14642   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t"        "$ac_includes_default
14643       #include <pthread.h>
14644
14645 "; then :
14646
14647 else
14648   if test "$ac_cv_type_pthread_t" = yes; then
14649      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14651 as_fn_error 77 "cannot compute sizeof (pthread_t)
14652 See \`config.log' for more details" "$LINENO" 5; }
14653    else
14654      ac_cv_sizeof_pthread_t=0
14655    fi
14656 fi
14657
14658 fi
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
14660 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
14661
14662
14663
14664 cat >>confdefs.h <<_ACEOF
14665 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
14666 _ACEOF
14667
14668
14669 fi
14670  if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
14671   PTHREADS_TRUE=
14672   PTHREADS_FALSE='#'
14673 else
14674   PTHREADS_TRUE='#'
14675   PTHREADS_FALSE=
14676 fi
14677
14678
14679 # check if we should compile locking into the library
14680 if test x$enable_thread_support = xno; then
14681
14682 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
14683
14684 fi
14685
14686 # check if we should hard-code the mm functions.
14687 if test x$enable_malloc_replacement = xno; then
14688
14689 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
14690
14691 fi
14692
14693 # check if we should hard-code debugging out
14694 if test x$enable_debug_mode = xno; then
14695
14696 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
14697
14698 fi
14699
14700 # check if we have and should use openssl
14701  if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
14702   OPENSSL_TRUE=
14703   OPENSSL_FALSE='#'
14704 else
14705   OPENSSL_TRUE='#'
14706   OPENSSL_FALSE=
14707 fi
14708
14709
14710 # Add some more warnings which we use in development but not in the
14711 # released versions.  (Some relevant gcc versions can't handle these.)
14712 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
14713
14714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h.  */
14716
14717 int
14718 main ()
14719 {
14720
14721 #if !defined(__GNUC__) || (__GNUC__ < 4)
14722 #error
14723 #endif
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 if ac_fn_c_try_compile "$LINENO"; then :
14729   have_gcc4=yes
14730 else
14731   have_gcc4=no
14732 fi
14733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14734
14735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h.  */
14737
14738 int
14739 main ()
14740 {
14741
14742 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
14743 #error
14744 #endif
14745   ;
14746   return 0;
14747 }
14748 _ACEOF
14749 if ac_fn_c_try_compile "$LINENO"; then :
14750   have_gcc42=yes
14751 else
14752   have_gcc42=no
14753 fi
14754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14755
14756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h.  */
14758
14759 int
14760 main ()
14761 {
14762
14763 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
14764 #error
14765 #endif
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771   have_gcc45=yes
14772 else
14773   have_gcc45=no
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776
14777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h.  */
14779
14780 int
14781 main ()
14782 {
14783
14784 #if !defined(__clang__)
14785 #error
14786 #endif
14787   ;
14788   return 0;
14789 }
14790 _ACEOF
14791 if ac_fn_c_try_compile "$LINENO"; then :
14792   have_clang=yes
14793 else
14794   have_clang=no
14795 fi
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797
14798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799 /* end confdefs.h.  */
14800
14801 int
14802 main ()
14803 {
14804
14805 #if !defined(__clang__) || (__clang_major__ > 2) || (__clang_major__ == 2 && __clang_minor__ > 9)
14806 #error
14807 #endif
14808   ;
14809   return 0;
14810 }
14811 _ACEOF
14812 if ac_fn_c_try_compile "$LINENO"; then :
14813   have_clang29orlower=yes
14814 else
14815   have_clang29orlower=no
14816 fi
14817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14818
14819   CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
14820   CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
14821
14822   if test x$have_gcc4 = xyes ; then
14823     # These warnings break gcc 3.3.5 and work on gcc 4.0.2
14824     CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
14825     #CFLAGS="$CFLAGS -Wold-style-definition"
14826   fi
14827
14828   if test x$have_gcc42 = xyes ; then
14829     # These warnings break gcc 4.0.2 and work on gcc 4.2
14830     CFLAGS="$CFLAGS -Waddress"
14831   fi
14832
14833   if test x$have_gcc42 = xyes && test x$have_clang29orlower = xno; then
14834     # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
14835     # We only disable these for clang 2.9 and lower, in case they are
14836     # supported in later versions.
14837     CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
14838   fi
14839
14840   if test x$have_gcc45 = xyes ; then
14841     # These warnings work on gcc 4.5
14842     CFLAGS="$CFLAGS -Wlogical-op"
14843   fi
14844
14845   if test x$have_clang = xyes; then
14846     # Disable the unused-function warnings, because these trigger
14847     # for minheap-internal.h related code.
14848     CFLAGS="$CFLAGS -Wno-unused-function"
14849   fi
14850
14851 ##This will break the world on some 64-bit architectures
14852 # CFLAGS="$CFLAGS -Winline"
14853
14854 fi
14855
14856 LIBEVENT_GC_SECTIONS=
14857 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
14858     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
14859 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
14860 if ${libevent_cv_gc_sections_runs+:} false; then :
14861   $as_echo_n "(cached) " >&6
14862 else
14863
14864                                                                                             origCFLAGS="$CFLAGS"
14865             CFLAGS="$CFLAGS -Wl,--gc-sections"
14866             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h.  */
14868
14869                         #include <stdlib.h>
14870                         #include <stdio.h>
14871
14872 int
14873 main ()
14874 {
14875
14876                         FILE *  fpC;
14877                         char    buf[32];
14878                         size_t  cch;
14879                         int     read_success_once;
14880
14881                         fpC = fopen("conftest.c", "r");
14882                         if (NULL == fpC)
14883                                 exit(1);
14884                         do {
14885                                 cch = fread(buf, sizeof(buf), 1, fpC);
14886                                 read_success_once |= (0 != cch);
14887                         } while (0 != cch);
14888                         if (!read_success_once)
14889                                 exit(2);
14890                         if (!feof(fpC))
14891                                 exit(3);
14892                         if (0 != fclose(fpC))
14893                                 exit(4);
14894
14895                         exit(EXIT_SUCCESS);
14896
14897
14898   ;
14899   return 0;
14900 }
14901 _ACEOF
14902 if ac_fn_c_try_link "$LINENO"; then :
14903
14904                                                                             if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
14905                         libevent_cv_gc_sections_runs=no
14906                     else
14907                         libevent_cv_gc_sections_runs=no
14908                         ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
14909                     fi
14910
14911 else
14912   libevent_cv_gc_sections_runs=no
14913
14914 fi
14915 rm -f core conftest.err conftest.$ac_objext \
14916     conftest$ac_exeext conftest.$ac_ext
14917             CFLAGS="$origCFLAGS"
14918             { origCFLAGS=; unset origCFLAGS;}
14919
14920
14921 fi
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
14923 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
14924     case "$libevent_cv_gc_sections_runs" in
14925      yes)
14926         CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
14927         LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
14928         ;;
14929     esac
14930 fi
14931
14932
14933  if test "$enable_libevent_install" = "yes"; then
14934   INSTALL_LIBEVENT_TRUE=
14935   INSTALL_LIBEVENT_FALSE='#'
14936 else
14937   INSTALL_LIBEVENT_TRUE='#'
14938   INSTALL_LIBEVENT_FALSE=
14939 fi
14940
14941
14942 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
14943
14944 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
14945
14946 cat >confcache <<\_ACEOF
14947 # This file is a shell script that caches the results of configure
14948 # tests run on this system so they can be shared between configure
14949 # scripts and configure runs, see configure's option --config-cache.
14950 # It is not useful on other systems.  If it contains results you don't
14951 # want to keep, you may remove or edit it.
14952 #
14953 # config.status only pays attention to the cache file if you give it
14954 # the --recheck option to rerun configure.
14955 #
14956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14958 # following values.
14959
14960 _ACEOF
14961
14962 # The following way of writing the cache mishandles newlines in values,
14963 # but we know of no workaround that is simple, portable, and efficient.
14964 # So, we kill variables containing newlines.
14965 # Ultrix sh set writes to stderr and can't be redirected directly,
14966 # and sets the high bit in the cache file unless we assign to the vars.
14967 (
14968   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14969     eval ac_val=\$$ac_var
14970     case $ac_val in #(
14971     *${as_nl}*)
14972       case $ac_var in #(
14973       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14974 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14975       esac
14976       case $ac_var in #(
14977       _ | IFS | as_nl) ;; #(
14978       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14979       *) { eval $ac_var=; unset $ac_var;} ;;
14980       esac ;;
14981     esac
14982   done
14983
14984   (set) 2>&1 |
14985     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14986     *${as_nl}ac_space=\ *)
14987       # `set' does not quote correctly, so add quotes: double-quote
14988       # substitution turns \\\\ into \\, and sed turns \\ into \.
14989       sed -n \
14990         "s/'/'\\\\''/g;
14991           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14992       ;; #(
14993     *)
14994       # `set' quotes correctly as required by POSIX, so do not add quotes.
14995       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14996       ;;
14997     esac |
14998     sort
14999 ) |
15000   sed '
15001      /^ac_cv_env_/b end
15002      t clear
15003      :clear
15004      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15005      t end
15006      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15007      :end' >>confcache
15008 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15009   if test -w "$cache_file"; then
15010     if test "x$cache_file" != "x/dev/null"; then
15011       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15012 $as_echo "$as_me: updating cache $cache_file" >&6;}
15013       if test ! -f "$cache_file" || test -h "$cache_file"; then
15014         cat confcache >"$cache_file"
15015       else
15016         case $cache_file in #(
15017         */* | ?:*)
15018           mv -f confcache "$cache_file"$$ &&
15019           mv -f "$cache_file"$$ "$cache_file" ;; #(
15020         *)
15021           mv -f confcache "$cache_file" ;;
15022         esac
15023       fi
15024     fi
15025   else
15026     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15027 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15028   fi
15029 fi
15030 rm -f confcache
15031
15032 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15033 # Let make expand exec_prefix.
15034 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15035
15036 DEFS=-DHAVE_CONFIG_H
15037
15038 ac_libobjs=
15039 ac_ltlibobjs=
15040 U=
15041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15042   # 1. Remove the extension, and $U if already installed.
15043   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15044   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15045   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15046   #    will be set to the directory where LIBOBJS objects are built.
15047   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15048   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15049 done
15050 LIBOBJS=$ac_libobjs
15051
15052 LTLIBOBJS=$ac_ltlibobjs
15053
15054
15055  if test -n "$EXEEXT"; then
15056   am__EXEEXT_TRUE=
15057   am__EXEEXT_FALSE='#'
15058 else
15059   am__EXEEXT_TRUE='#'
15060   am__EXEEXT_FALSE=
15061 fi
15062
15063 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15064   as_fn_error $? "conditional \"AMDEP\" was never defined.
15065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15066 fi
15067 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15068   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15070 fi
15071 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
15072   as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
15073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15074 fi
15075 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
15076   as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
15077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15078 fi
15079 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
15080   as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
15081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15082 fi
15083 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
15084   as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
15085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15086 fi
15087 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
15088   as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
15089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15090 fi
15091 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
15092   as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
15093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15094 fi
15095 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
15096   as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
15097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15098 fi
15099 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
15100   as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
15101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15102 fi
15103 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
15104   as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
15105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15106 fi
15107 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
15108   as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
15109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15110 fi
15111 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
15112   as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
15113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15114 fi
15115 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
15116   as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
15117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15118 fi
15119 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
15120   as_fn_error $? "conditional \"PTHREADS\" was never defined.
15121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15122 fi
15123 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
15124   as_fn_error $? "conditional \"OPENSSL\" was never defined.
15125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15126 fi
15127 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
15128   as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
15129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15130 fi
15131
15132 : "${CONFIG_STATUS=./config.status}"
15133 ac_write_fail=0
15134 ac_clean_files_save=$ac_clean_files
15135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15137 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15138 as_write_fail=0
15139 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15140 #! $SHELL
15141 # Generated by $as_me.
15142 # Run this file to recreate the current configuration.
15143 # Compiler output produced by configure, useful for debugging
15144 # configure, is in config.log if it exists.
15145
15146 debug=false
15147 ac_cs_recheck=false
15148 ac_cs_silent=false
15149
15150 SHELL=\${CONFIG_SHELL-$SHELL}
15151 export SHELL
15152 _ASEOF
15153 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15154 ## -------------------- ##
15155 ## M4sh Initialization. ##
15156 ## -------------------- ##
15157
15158 # Be more Bourne compatible
15159 DUALCASE=1; export DUALCASE # for MKS sh
15160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15161   emulate sh
15162   NULLCMD=:
15163   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15164   # is contrary to our usage.  Disable this feature.
15165   alias -g '${1+"$@"}'='"$@"'
15166   setopt NO_GLOB_SUBST
15167 else
15168   case `(set -o) 2>/dev/null` in #(
15169   *posix*) :
15170     set -o posix ;; #(
15171   *) :
15172      ;;
15173 esac
15174 fi
15175
15176
15177 as_nl='
15178 '
15179 export as_nl
15180 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15181 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15184 # Prefer a ksh shell builtin over an external printf program on Solaris,
15185 # but without wasting forks for bash or zsh.
15186 if test -z "$BASH_VERSION$ZSH_VERSION" \
15187     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15188   as_echo='print -r --'
15189   as_echo_n='print -rn --'
15190 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15191   as_echo='printf %s\n'
15192   as_echo_n='printf %s'
15193 else
15194   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15195     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15196     as_echo_n='/usr/ucb/echo -n'
15197   else
15198     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15199     as_echo_n_body='eval
15200       arg=$1;
15201       case $arg in #(
15202       *"$as_nl"*)
15203         expr "X$arg" : "X\\(.*\\)$as_nl";
15204         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15205       esac;
15206       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15207     '
15208     export as_echo_n_body
15209     as_echo_n='sh -c $as_echo_n_body as_echo'
15210   fi
15211   export as_echo_body
15212   as_echo='sh -c $as_echo_body as_echo'
15213 fi
15214
15215 # The user is always right.
15216 if test "${PATH_SEPARATOR+set}" != set; then
15217   PATH_SEPARATOR=:
15218   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15219     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15220       PATH_SEPARATOR=';'
15221   }
15222 fi
15223
15224
15225 # IFS
15226 # We need space, tab and new line, in precisely that order.  Quoting is
15227 # there to prevent editors from complaining about space-tab.
15228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15229 # splitting by setting IFS to empty value.)
15230 IFS=" ""        $as_nl"
15231
15232 # Find who we are.  Look in the path if we contain no directory separator.
15233 as_myself=
15234 case $0 in #((
15235   *[\\/]* ) as_myself=$0 ;;
15236   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15237 for as_dir in $PATH
15238 do
15239   IFS=$as_save_IFS
15240   test -z "$as_dir" && as_dir=.
15241     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15242   done
15243 IFS=$as_save_IFS
15244
15245      ;;
15246 esac
15247 # We did not find ourselves, most probably we were run as `sh COMMAND'
15248 # in which case we are not to be found in the path.
15249 if test "x$as_myself" = x; then
15250   as_myself=$0
15251 fi
15252 if test ! -f "$as_myself"; then
15253   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15254   exit 1
15255 fi
15256
15257 # Unset variables that we do not need and which cause bugs (e.g. in
15258 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15259 # suppresses any "Segmentation fault" message there.  '((' could
15260 # trigger a bug in pdksh 5.2.14.
15261 for as_var in BASH_ENV ENV MAIL MAILPATH
15262 do eval test x\${$as_var+set} = xset \
15263   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15264 done
15265 PS1='$ '
15266 PS2='> '
15267 PS4='+ '
15268
15269 # NLS nuisances.
15270 LC_ALL=C
15271 export LC_ALL
15272 LANGUAGE=C
15273 export LANGUAGE
15274
15275 # CDPATH.
15276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15277
15278
15279 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15280 # ----------------------------------------
15281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15283 # script with STATUS, using 1 if that was 0.
15284 as_fn_error ()
15285 {
15286   as_status=$1; test $as_status -eq 0 && as_status=1
15287   if test "$4"; then
15288     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15289     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15290   fi
15291   $as_echo "$as_me: error: $2" >&2
15292   as_fn_exit $as_status
15293 } # as_fn_error
15294
15295
15296 # as_fn_set_status STATUS
15297 # -----------------------
15298 # Set $? to STATUS, without forking.
15299 as_fn_set_status ()
15300 {
15301   return $1
15302 } # as_fn_set_status
15303
15304 # as_fn_exit STATUS
15305 # -----------------
15306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15307 as_fn_exit ()
15308 {
15309   set +e
15310   as_fn_set_status $1
15311   exit $1
15312 } # as_fn_exit
15313
15314 # as_fn_unset VAR
15315 # ---------------
15316 # Portably unset VAR.
15317 as_fn_unset ()
15318 {
15319   { eval $1=; unset $1;}
15320 }
15321 as_unset=as_fn_unset
15322 # as_fn_append VAR VALUE
15323 # ----------------------
15324 # Append the text in VALUE to the end of the definition contained in VAR. Take
15325 # advantage of any shell optimizations that allow amortized linear growth over
15326 # repeated appends, instead of the typical quadratic growth present in naive
15327 # implementations.
15328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15329   eval 'as_fn_append ()
15330   {
15331     eval $1+=\$2
15332   }'
15333 else
15334   as_fn_append ()
15335   {
15336     eval $1=\$$1\$2
15337   }
15338 fi # as_fn_append
15339
15340 # as_fn_arith ARG...
15341 # ------------------
15342 # Perform arithmetic evaluation on the ARGs, and store the result in the
15343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15344 # must be portable across $(()) and expr.
15345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15346   eval 'as_fn_arith ()
15347   {
15348     as_val=$(( $* ))
15349   }'
15350 else
15351   as_fn_arith ()
15352   {
15353     as_val=`expr "$@" || test $? -eq 1`
15354   }
15355 fi # as_fn_arith
15356
15357
15358 if expr a : '\(a\)' >/dev/null 2>&1 &&
15359    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15360   as_expr=expr
15361 else
15362   as_expr=false
15363 fi
15364
15365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15366   as_basename=basename
15367 else
15368   as_basename=false
15369 fi
15370
15371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15372   as_dirname=dirname
15373 else
15374   as_dirname=false
15375 fi
15376
15377 as_me=`$as_basename -- "$0" ||
15378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15379          X"$0" : 'X\(//\)$' \| \
15380          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15381 $as_echo X/"$0" |
15382     sed '/^.*\/\([^/][^/]*\)\/*$/{
15383             s//\1/
15384             q
15385           }
15386           /^X\/\(\/\/\)$/{
15387             s//\1/
15388             q
15389           }
15390           /^X\/\(\/\).*/{
15391             s//\1/
15392             q
15393           }
15394           s/.*/./; q'`
15395
15396 # Avoid depending upon Character Ranges.
15397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15400 as_cr_digits='0123456789'
15401 as_cr_alnum=$as_cr_Letters$as_cr_digits
15402
15403 ECHO_C= ECHO_N= ECHO_T=
15404 case `echo -n x` in #(((((
15405 -n*)
15406   case `echo 'xy\c'` in
15407   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15408   xy)  ECHO_C='\c';;
15409   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15410        ECHO_T=' ';;
15411   esac;;
15412 *)
15413   ECHO_N='-n';;
15414 esac
15415
15416 rm -f conf$$ conf$$.exe conf$$.file
15417 if test -d conf$$.dir; then
15418   rm -f conf$$.dir/conf$$.file
15419 else
15420   rm -f conf$$.dir
15421   mkdir conf$$.dir 2>/dev/null
15422 fi
15423 if (echo >conf$$.file) 2>/dev/null; then
15424   if ln -s conf$$.file conf$$ 2>/dev/null; then
15425     as_ln_s='ln -s'
15426     # ... but there are two gotchas:
15427     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15428     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15429     # In both cases, we have to default to `cp -p'.
15430     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15431       as_ln_s='cp -p'
15432   elif ln conf$$.file conf$$ 2>/dev/null; then
15433     as_ln_s=ln
15434   else
15435     as_ln_s='cp -p'
15436   fi
15437 else
15438   as_ln_s='cp -p'
15439 fi
15440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15441 rmdir conf$$.dir 2>/dev/null
15442
15443
15444 # as_fn_mkdir_p
15445 # -------------
15446 # Create "$as_dir" as a directory, including parents if necessary.
15447 as_fn_mkdir_p ()
15448 {
15449
15450   case $as_dir in #(
15451   -*) as_dir=./$as_dir;;
15452   esac
15453   test -d "$as_dir" || eval $as_mkdir_p || {
15454     as_dirs=
15455     while :; do
15456       case $as_dir in #(
15457       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15458       *) as_qdir=$as_dir;;
15459       esac
15460       as_dirs="'$as_qdir' $as_dirs"
15461       as_dir=`$as_dirname -- "$as_dir" ||
15462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15463          X"$as_dir" : 'X\(//\)[^/]' \| \
15464          X"$as_dir" : 'X\(//\)$' \| \
15465          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15466 $as_echo X"$as_dir" |
15467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15468             s//\1/
15469             q
15470           }
15471           /^X\(\/\/\)[^/].*/{
15472             s//\1/
15473             q
15474           }
15475           /^X\(\/\/\)$/{
15476             s//\1/
15477             q
15478           }
15479           /^X\(\/\).*/{
15480             s//\1/
15481             q
15482           }
15483           s/.*/./; q'`
15484       test -d "$as_dir" && break
15485     done
15486     test -z "$as_dirs" || eval "mkdir $as_dirs"
15487   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15488
15489
15490 } # as_fn_mkdir_p
15491 if mkdir -p . 2>/dev/null; then
15492   as_mkdir_p='mkdir -p "$as_dir"'
15493 else
15494   test -d ./-p && rmdir ./-p
15495   as_mkdir_p=false
15496 fi
15497
15498 if test -x / >/dev/null 2>&1; then
15499   as_test_x='test -x'
15500 else
15501   if ls -dL / >/dev/null 2>&1; then
15502     as_ls_L_option=L
15503   else
15504     as_ls_L_option=
15505   fi
15506   as_test_x='
15507     eval sh -c '\''
15508       if test -d "$1"; then
15509         test -d "$1/.";
15510       else
15511         case $1 in #(
15512         -*)set "./$1";;
15513         esac;
15514         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15515         ???[sx]*):;;*)false;;esac;fi
15516     '\'' sh
15517   '
15518 fi
15519 as_executable_p=$as_test_x
15520
15521 # Sed expression to map a string onto a valid CPP name.
15522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15523
15524 # Sed expression to map a string onto a valid variable name.
15525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15526
15527
15528 exec 6>&1
15529 ## ----------------------------------- ##
15530 ## Main body of $CONFIG_STATUS script. ##
15531 ## ----------------------------------- ##
15532 _ASEOF
15533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15534
15535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15536 # Save the log message, to keep $0 and so on meaningful, and to
15537 # report actual input values of CONFIG_FILES etc. instead of their
15538 # values after options handling.
15539 ac_log="
15540 This file was extended by $as_me, which was
15541 generated by GNU Autoconf 2.68.  Invocation command line was
15542
15543   CONFIG_FILES    = $CONFIG_FILES
15544   CONFIG_HEADERS  = $CONFIG_HEADERS
15545   CONFIG_LINKS    = $CONFIG_LINKS
15546   CONFIG_COMMANDS = $CONFIG_COMMANDS
15547   $ $0 $@
15548
15549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15550 "
15551
15552 _ACEOF
15553
15554 case $ac_config_files in *"
15555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15556 esac
15557
15558 case $ac_config_headers in *"
15559 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15560 esac
15561
15562
15563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15564 # Files that config.status was made for.
15565 config_files="$ac_config_files"
15566 config_headers="$ac_config_headers"
15567 config_commands="$ac_config_commands"
15568
15569 _ACEOF
15570
15571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15572 ac_cs_usage="\
15573 \`$as_me' instantiates files and other configuration actions
15574 from templates according to the current configuration.  Unless the files
15575 and actions are specified as TAGs, all are instantiated by default.
15576
15577 Usage: $0 [OPTION]... [TAG]...
15578
15579   -h, --help       print this help, then exit
15580   -V, --version    print version number and configuration settings, then exit
15581       --config     print configuration, then exit
15582   -q, --quiet, --silent
15583                    do not print progress messages
15584   -d, --debug      don't remove temporary files
15585       --recheck    update $as_me by reconfiguring in the same conditions
15586       --file=FILE[:TEMPLATE]
15587                    instantiate the configuration file FILE
15588       --header=FILE[:TEMPLATE]
15589                    instantiate the configuration header FILE
15590
15591 Configuration files:
15592 $config_files
15593
15594 Configuration headers:
15595 $config_headers
15596
15597 Configuration commands:
15598 $config_commands
15599
15600 Report bugs to the package provider."
15601
15602 _ACEOF
15603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15604 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15605 ac_cs_version="\\
15606 config.status
15607 configured by $0, generated by GNU Autoconf 2.68,
15608   with options \\"\$ac_cs_config\\"
15609
15610 Copyright (C) 2010 Free Software Foundation, Inc.
15611 This config.status script is free software; the Free Software Foundation
15612 gives unlimited permission to copy, distribute and modify it."
15613
15614 ac_pwd='$ac_pwd'
15615 srcdir='$srcdir'
15616 INSTALL='$INSTALL'
15617 MKDIR_P='$MKDIR_P'
15618 AWK='$AWK'
15619 test -n "\$AWK" || AWK=awk
15620 _ACEOF
15621
15622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15623 # The default lists apply if the user does not specify any file.
15624 ac_need_defaults=:
15625 while test $# != 0
15626 do
15627   case $1 in
15628   --*=?*)
15629     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15630     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15631     ac_shift=:
15632     ;;
15633   --*=)
15634     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15635     ac_optarg=
15636     ac_shift=:
15637     ;;
15638   *)
15639     ac_option=$1
15640     ac_optarg=$2
15641     ac_shift=shift
15642     ;;
15643   esac
15644
15645   case $ac_option in
15646   # Handling of the options.
15647   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15648     ac_cs_recheck=: ;;
15649   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15650     $as_echo "$ac_cs_version"; exit ;;
15651   --config | --confi | --conf | --con | --co | --c )
15652     $as_echo "$ac_cs_config"; exit ;;
15653   --debug | --debu | --deb | --de | --d | -d )
15654     debug=: ;;
15655   --file | --fil | --fi | --f )
15656     $ac_shift
15657     case $ac_optarg in
15658     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15659     '') as_fn_error $? "missing file argument" ;;
15660     esac
15661     as_fn_append CONFIG_FILES " '$ac_optarg'"
15662     ac_need_defaults=false;;
15663   --header | --heade | --head | --hea )
15664     $ac_shift
15665     case $ac_optarg in
15666     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15667     esac
15668     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15669     ac_need_defaults=false;;
15670   --he | --h)
15671     # Conflict between --help and --header
15672     as_fn_error $? "ambiguous option: \`$1'
15673 Try \`$0 --help' for more information.";;
15674   --help | --hel | -h )
15675     $as_echo "$ac_cs_usage"; exit ;;
15676   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15677   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15678     ac_cs_silent=: ;;
15679
15680   # This is an error.
15681   -*) as_fn_error $? "unrecognized option: \`$1'
15682 Try \`$0 --help' for more information." ;;
15683
15684   *) as_fn_append ac_config_targets " $1"
15685      ac_need_defaults=false ;;
15686
15687   esac
15688   shift
15689 done
15690
15691 ac_configure_extra_args=
15692
15693 if $ac_cs_silent; then
15694   exec 6>/dev/null
15695   ac_configure_extra_args="$ac_configure_extra_args --silent"
15696 fi
15697
15698 _ACEOF
15699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700 if \$ac_cs_recheck; then
15701   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15702   shift
15703   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15704   CONFIG_SHELL='$SHELL'
15705   export CONFIG_SHELL
15706   exec "\$@"
15707 fi
15708
15709 _ACEOF
15710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15711 exec 5>>config.log
15712 {
15713   echo
15714   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15715 ## Running $as_me. ##
15716 _ASBOX
15717   $as_echo "$ac_log"
15718 } >&5
15719
15720 _ACEOF
15721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15722 #
15723 # INIT-COMMANDS
15724 #
15725 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15726
15727
15728 # The HP-UX ksh and POSIX shell print the target directory to stdout
15729 # if CDPATH is set.
15730 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15731
15732 sed_quote_subst='$sed_quote_subst'
15733 double_quote_subst='$double_quote_subst'
15734 delay_variable_subst='$delay_variable_subst'
15735 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15736 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15737 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15738 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15739 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15740 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15741 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15742 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15743 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15744 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15745 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15746 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15747 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15748 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15749 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15750 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15751 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15752 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15753 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15754 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15755 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15756 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15757 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15758 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15759 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15760 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15761 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15762 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15763 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15764 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15765 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15766 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15767 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15768 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15769 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15770 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15771 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15772 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15773 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15774 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15775 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15776 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15777 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15778 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15779 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15780 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15781 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15782 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15783 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15784 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15785 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15786 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15787 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15788 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15789 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15790 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"`'
15791 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15792 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15793 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15794 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15795 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15796 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15797 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15798 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15799 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15800 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15801 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15802 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15803 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15804 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15805 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15806 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15807 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15808 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15809 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15810 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15811 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15812 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15813 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15814 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15815 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15816 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15817 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15818 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15819 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15820 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15821 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15822 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15823 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15824 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15825 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15826 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15827 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15828 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15829 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15830 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15831 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15832 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15833 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15834 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15835 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15836 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15837 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15838 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15839 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15840 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15841 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15842 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15843 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15844 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15845 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15846 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15847 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15848 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15849 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15850 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15851 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15852 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15853 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15854 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15855 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15856 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15857 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15858 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15859 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15860 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15861 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15862 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15863 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15864 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15865
15866 LTCC='$LTCC'
15867 LTCFLAGS='$LTCFLAGS'
15868 compiler='$compiler_DEFAULT'
15869
15870 # A function that is used when there is no print builtin or printf.
15871 func_fallback_echo ()
15872 {
15873   eval 'cat <<_LTECHO_EOF
15874 \$1
15875 _LTECHO_EOF'
15876 }
15877
15878 # Quote evaled strings.
15879 for var in SHELL \
15880 ECHO \
15881 SED \
15882 GREP \
15883 EGREP \
15884 FGREP \
15885 LD \
15886 NM \
15887 LN_S \
15888 lt_SP2NL \
15889 lt_NL2SP \
15890 reload_flag \
15891 OBJDUMP \
15892 deplibs_check_method \
15893 file_magic_cmd \
15894 file_magic_glob \
15895 want_nocaseglob \
15896 DLLTOOL \
15897 sharedlib_from_linklib_cmd \
15898 AR \
15899 AR_FLAGS \
15900 archiver_list_spec \
15901 STRIP \
15902 RANLIB \
15903 CC \
15904 CFLAGS \
15905 compiler \
15906 lt_cv_sys_global_symbol_pipe \
15907 lt_cv_sys_global_symbol_to_cdecl \
15908 lt_cv_sys_global_symbol_to_c_name_address \
15909 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15910 nm_file_list_spec \
15911 lt_prog_compiler_no_builtin_flag \
15912 lt_prog_compiler_pic \
15913 lt_prog_compiler_wl \
15914 lt_prog_compiler_static \
15915 lt_cv_prog_compiler_c_o \
15916 need_locks \
15917 MANIFEST_TOOL \
15918 DSYMUTIL \
15919 NMEDIT \
15920 LIPO \
15921 OTOOL \
15922 OTOOL64 \
15923 shrext_cmds \
15924 export_dynamic_flag_spec \
15925 whole_archive_flag_spec \
15926 compiler_needs_object \
15927 with_gnu_ld \
15928 allow_undefined_flag \
15929 no_undefined_flag \
15930 hardcode_libdir_flag_spec \
15931 hardcode_libdir_flag_spec_ld \
15932 hardcode_libdir_separator \
15933 exclude_expsyms \
15934 include_expsyms \
15935 file_list_spec \
15936 variables_saved_for_relink \
15937 libname_spec \
15938 library_names_spec \
15939 soname_spec \
15940 install_override_mode \
15941 finish_eval \
15942 old_striplib \
15943 striplib; do
15944     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15945     *[\\\\\\\`\\"\\\$]*)
15946       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15947       ;;
15948     *)
15949       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15950       ;;
15951     esac
15952 done
15953
15954 # Double-quote double-evaled strings.
15955 for var in reload_cmds \
15956 old_postinstall_cmds \
15957 old_postuninstall_cmds \
15958 old_archive_cmds \
15959 extract_expsyms_cmds \
15960 old_archive_from_new_cmds \
15961 old_archive_from_expsyms_cmds \
15962 archive_cmds \
15963 archive_expsym_cmds \
15964 module_cmds \
15965 module_expsym_cmds \
15966 export_symbols_cmds \
15967 prelink_cmds \
15968 postlink_cmds \
15969 postinstall_cmds \
15970 postuninstall_cmds \
15971 finish_cmds \
15972 sys_lib_search_path_spec \
15973 sys_lib_dlsearch_path_spec; do
15974     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15975     *[\\\\\\\`\\"\\\$]*)
15976       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15977       ;;
15978     *)
15979       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15980       ;;
15981     esac
15982 done
15983
15984 ac_aux_dir='$ac_aux_dir'
15985 xsi_shell='$xsi_shell'
15986 lt_shell_append='$lt_shell_append'
15987
15988 # See if we are running on zsh, and set the options which allow our
15989 # commands through without removal of \ escapes INIT.
15990 if test -n "\${ZSH_VERSION+set}" ; then
15991    setopt NO_GLOB_SUBST
15992 fi
15993
15994
15995     PACKAGE='$PACKAGE'
15996     VERSION='$VERSION'
15997     TIMESTAMP='$TIMESTAMP'
15998     RM='$RM'
15999     ofile='$ofile'
16000
16001
16002
16003
16004 _ACEOF
16005
16006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16007
16008 # Handling of arguments.
16009 for ac_config_target in $ac_config_targets
16010 do
16011   case $ac_config_target in
16012     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16013     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16014     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16015     "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
16016     "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
16017     "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
16018     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16019     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16020     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16021     "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
16022
16023   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16024   esac
16025 done
16026
16027
16028 # If the user did not use the arguments to specify the items to instantiate,
16029 # then the envvar interface is used.  Set only those that are not.
16030 # We use the long form for the default assignment because of an extremely
16031 # bizarre bug on SunOS 4.1.3.
16032 if $ac_need_defaults; then
16033   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16034   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16035   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16036 fi
16037
16038 # Have a temporary directory for convenience.  Make it in the build tree
16039 # simply because there is no reason against having it here, and in addition,
16040 # creating and moving files from /tmp can sometimes cause problems.
16041 # Hook for its removal unless debugging.
16042 # Note that there is a small window in which the directory will not be cleaned:
16043 # after its creation but before its name has been assigned to `$tmp'.
16044 $debug ||
16045 {
16046   tmp= ac_tmp=
16047   trap 'exit_status=$?
16048   : "${ac_tmp:=$tmp}"
16049   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16050 ' 0
16051   trap 'as_fn_exit 1' 1 2 13 15
16052 }
16053 # Create a (secure) tmp directory for tmp files.
16054
16055 {
16056   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16057   test -d "$tmp"
16058 }  ||
16059 {
16060   tmp=./conf$$-$RANDOM
16061   (umask 077 && mkdir "$tmp")
16062 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16063 ac_tmp=$tmp
16064
16065 # Set up the scripts for CONFIG_FILES section.
16066 # No need to generate them if there are no CONFIG_FILES.
16067 # This happens for instance with `./config.status config.h'.
16068 if test -n "$CONFIG_FILES"; then
16069
16070
16071 ac_cr=`echo X | tr X '\015'`
16072 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16073 # But we know of no other shell where ac_cr would be empty at this
16074 # point, so we can use a bashism as a fallback.
16075 if test "x$ac_cr" = x; then
16076   eval ac_cr=\$\'\\r\'
16077 fi
16078 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16079 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16080   ac_cs_awk_cr='\\r'
16081 else
16082   ac_cs_awk_cr=$ac_cr
16083 fi
16084
16085 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16086 _ACEOF
16087
16088
16089 {
16090   echo "cat >conf$$subs.awk <<_ACEOF" &&
16091   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16092   echo "_ACEOF"
16093 } >conf$$subs.sh ||
16094   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16095 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16096 ac_delim='%!_!# '
16097 for ac_last_try in false false false false false :; do
16098   . ./conf$$subs.sh ||
16099     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16100
16101   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16102   if test $ac_delim_n = $ac_delim_num; then
16103     break
16104   elif $ac_last_try; then
16105     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16106   else
16107     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16108   fi
16109 done
16110 rm -f conf$$subs.sh
16111
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16114 _ACEOF
16115 sed -n '
16116 h
16117 s/^/S["/; s/!.*/"]=/
16118 p
16119 g
16120 s/^[^!]*!//
16121 :repl
16122 t repl
16123 s/'"$ac_delim"'$//
16124 t delim
16125 :nl
16126 h
16127 s/\(.\{148\}\)..*/\1/
16128 t more1
16129 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16130 p
16131 n
16132 b repl
16133 :more1
16134 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16135 p
16136 g
16137 s/.\{148\}//
16138 t nl
16139 :delim
16140 h
16141 s/\(.\{148\}\)..*/\1/
16142 t more2
16143 s/["\\]/\\&/g; s/^/"/; s/$/"/
16144 p
16145 b
16146 :more2
16147 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16148 p
16149 g
16150 s/.\{148\}//
16151 t delim
16152 ' <conf$$subs.awk | sed '
16153 /^[^""]/{
16154   N
16155   s/\n//
16156 }
16157 ' >>$CONFIG_STATUS || ac_write_fail=1
16158 rm -f conf$$subs.awk
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 _ACAWK
16161 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16162   for (key in S) S_is_set[key] = 1
16163   FS = "\a"
16164
16165 }
16166 {
16167   line = $ 0
16168   nfields = split(line, field, "@")
16169   substed = 0
16170   len = length(field[1])
16171   for (i = 2; i < nfields; i++) {
16172     key = field[i]
16173     keylen = length(key)
16174     if (S_is_set[key]) {
16175       value = S[key]
16176       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16177       len += length(value) + length(field[++i])
16178       substed = 1
16179     } else
16180       len += 1 + keylen
16181   }
16182
16183   print line
16184 }
16185
16186 _ACAWK
16187 _ACEOF
16188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16189 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16190   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16191 else
16192   cat
16193 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16194   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16195 _ACEOF
16196
16197 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16198 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16199 # trailing colons and then remove the whole line if VPATH becomes empty
16200 # (actually we leave an empty line to preserve line numbers).
16201 if test "x$srcdir" = x.; then
16202   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16203 h
16204 s///
16205 s/^/:/
16206 s/[      ]*$/:/
16207 s/:\$(srcdir):/:/g
16208 s/:\${srcdir}:/:/g
16209 s/:@srcdir@:/:/g
16210 s/^:*//
16211 s/:*$//
16212 x
16213 s/\(=[   ]*\).*/\1/
16214 G
16215 s/\n//
16216 s/^[^=]*=[       ]*$//
16217 }'
16218 fi
16219
16220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16221 fi # test -n "$CONFIG_FILES"
16222
16223 # Set up the scripts for CONFIG_HEADERS section.
16224 # No need to generate them if there are no CONFIG_HEADERS.
16225 # This happens for instance with `./config.status Makefile'.
16226 if test -n "$CONFIG_HEADERS"; then
16227 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16228 BEGIN {
16229 _ACEOF
16230
16231 # Transform confdefs.h into an awk script `defines.awk', embedded as
16232 # here-document in config.status, that substitutes the proper values into
16233 # config.h.in to produce config.h.
16234
16235 # Create a delimiter string that does not exist in confdefs.h, to ease
16236 # handling of long lines.
16237 ac_delim='%!_!# '
16238 for ac_last_try in false false :; do
16239   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16240   if test -z "$ac_tt"; then
16241     break
16242   elif $ac_last_try; then
16243     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16244   else
16245     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16246   fi
16247 done
16248
16249 # For the awk script, D is an array of macro values keyed by name,
16250 # likewise P contains macro parameters if any.  Preserve backslash
16251 # newline sequences.
16252
16253 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16254 sed -n '
16255 s/.\{148\}/&'"$ac_delim"'/g
16256 t rset
16257 :rset
16258 s/^[     ]*#[    ]*define[       ][      ]*/ /
16259 t def
16260 d
16261 :def
16262 s/\\$//
16263 t bsnl
16264 s/["\\]/\\&/g
16265 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16266 D["\1"]=" \3"/p
16267 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16268 d
16269 :bsnl
16270 s/["\\]/\\&/g
16271 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16272 D["\1"]=" \3\\\\\\n"\\/p
16273 t cont
16274 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16275 t cont
16276 d
16277 :cont
16278 n
16279 s/.\{148\}/&'"$ac_delim"'/g
16280 t clear
16281 :clear
16282 s/\\$//
16283 t bsnlc
16284 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16285 d
16286 :bsnlc
16287 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16288 b cont
16289 ' <confdefs.h | sed '
16290 s/'"$ac_delim"'/"\\\
16291 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16292
16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294   for (key in D) D_is_set[key] = 1
16295   FS = "\a"
16296 }
16297 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16298   line = \$ 0
16299   split(line, arg, " ")
16300   if (arg[1] == "#") {
16301     defundef = arg[2]
16302     mac1 = arg[3]
16303   } else {
16304     defundef = substr(arg[1], 2)
16305     mac1 = arg[2]
16306   }
16307   split(mac1, mac2, "(") #)
16308   macro = mac2[1]
16309   prefix = substr(line, 1, index(line, defundef) - 1)
16310   if (D_is_set[macro]) {
16311     # Preserve the white space surrounding the "#".
16312     print prefix "define", macro P[macro] D[macro]
16313     next
16314   } else {
16315     # Replace #undef with comments.  This is necessary, for example,
16316     # in the case of _POSIX_SOURCE, which is predefined and required
16317     # on some systems where configure will not decide to define it.
16318     if (defundef == "undef") {
16319       print "/*", prefix defundef, macro, "*/"
16320       next
16321     }
16322   }
16323 }
16324 { print }
16325 _ACAWK
16326 _ACEOF
16327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16328   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16329 fi # test -n "$CONFIG_HEADERS"
16330
16331
16332 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16333 shift
16334 for ac_tag
16335 do
16336   case $ac_tag in
16337   :[FHLC]) ac_mode=$ac_tag; continue;;
16338   esac
16339   case $ac_mode$ac_tag in
16340   :[FHL]*:*);;
16341   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16342   :[FH]-) ac_tag=-:-;;
16343   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16344   esac
16345   ac_save_IFS=$IFS
16346   IFS=:
16347   set x $ac_tag
16348   IFS=$ac_save_IFS
16349   shift
16350   ac_file=$1
16351   shift
16352
16353   case $ac_mode in
16354   :L) ac_source=$1;;
16355   :[FH])
16356     ac_file_inputs=
16357     for ac_f
16358     do
16359       case $ac_f in
16360       -) ac_f="$ac_tmp/stdin";;
16361       *) # Look for the file first in the build tree, then in the source tree
16362          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16363          # because $ac_f cannot contain `:'.
16364          test -f "$ac_f" ||
16365            case $ac_f in
16366            [\\/$]*) false;;
16367            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16368            esac ||
16369            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16370       esac
16371       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16372       as_fn_append ac_file_inputs " '$ac_f'"
16373     done
16374
16375     # Let's still pretend it is `configure' which instantiates (i.e., don't
16376     # use $as_me), people would be surprised to read:
16377     #    /* config.h.  Generated by config.status.  */
16378     configure_input='Generated from '`
16379           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16380         `' by configure.'
16381     if test x"$ac_file" != x-; then
16382       configure_input="$ac_file.  $configure_input"
16383       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16384 $as_echo "$as_me: creating $ac_file" >&6;}
16385     fi
16386     # Neutralize special characters interpreted by sed in replacement strings.
16387     case $configure_input in #(
16388     *\&* | *\|* | *\\* )
16389        ac_sed_conf_input=`$as_echo "$configure_input" |
16390        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16391     *) ac_sed_conf_input=$configure_input;;
16392     esac
16393
16394     case $ac_tag in
16395     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16396       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16397     esac
16398     ;;
16399   esac
16400
16401   ac_dir=`$as_dirname -- "$ac_file" ||
16402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16403          X"$ac_file" : 'X\(//\)[^/]' \| \
16404          X"$ac_file" : 'X\(//\)$' \| \
16405          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16406 $as_echo X"$ac_file" |
16407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16408             s//\1/
16409             q
16410           }
16411           /^X\(\/\/\)[^/].*/{
16412             s//\1/
16413             q
16414           }
16415           /^X\(\/\/\)$/{
16416             s//\1/
16417             q
16418           }
16419           /^X\(\/\).*/{
16420             s//\1/
16421             q
16422           }
16423           s/.*/./; q'`
16424   as_dir="$ac_dir"; as_fn_mkdir_p
16425   ac_builddir=.
16426
16427 case "$ac_dir" in
16428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16429 *)
16430   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16431   # A ".." for each directory in $ac_dir_suffix.
16432   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16433   case $ac_top_builddir_sub in
16434   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16435   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16436   esac ;;
16437 esac
16438 ac_abs_top_builddir=$ac_pwd
16439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16440 # for backward compatibility:
16441 ac_top_builddir=$ac_top_build_prefix
16442
16443 case $srcdir in
16444   .)  # We are building in place.
16445     ac_srcdir=.
16446     ac_top_srcdir=$ac_top_builddir_sub
16447     ac_abs_top_srcdir=$ac_pwd ;;
16448   [\\/]* | ?:[\\/]* )  # Absolute name.
16449     ac_srcdir=$srcdir$ac_dir_suffix;
16450     ac_top_srcdir=$srcdir
16451     ac_abs_top_srcdir=$srcdir ;;
16452   *) # Relative name.
16453     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16454     ac_top_srcdir=$ac_top_build_prefix$srcdir
16455     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16456 esac
16457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16458
16459
16460   case $ac_mode in
16461   :F)
16462   #
16463   # CONFIG_FILE
16464   #
16465
16466   case $INSTALL in
16467   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16468   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16469   esac
16470   ac_MKDIR_P=$MKDIR_P
16471   case $MKDIR_P in
16472   [\\/$]* | ?:[\\/]* ) ;;
16473   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16474   esac
16475 _ACEOF
16476
16477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16478 # If the template does not know about datarootdir, expand it.
16479 # FIXME: This hack should be removed a few years after 2.60.
16480 ac_datarootdir_hack=; ac_datarootdir_seen=
16481 ac_sed_dataroot='
16482 /datarootdir/ {
16483   p
16484   q
16485 }
16486 /@datadir@/p
16487 /@docdir@/p
16488 /@infodir@/p
16489 /@localedir@/p
16490 /@mandir@/p'
16491 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16492 *datarootdir*) ac_datarootdir_seen=yes;;
16493 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16494   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16495 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16496 _ACEOF
16497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16498   ac_datarootdir_hack='
16499   s&@datadir@&$datadir&g
16500   s&@docdir@&$docdir&g
16501   s&@infodir@&$infodir&g
16502   s&@localedir@&$localedir&g
16503   s&@mandir@&$mandir&g
16504   s&\\\${datarootdir}&$datarootdir&g' ;;
16505 esac
16506 _ACEOF
16507
16508 # Neutralize VPATH when `$srcdir' = `.'.
16509 # Shell code in configure.ac might set extrasub.
16510 # FIXME: do we really want to maintain this feature?
16511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16512 ac_sed_extra="$ac_vpsub
16513 $extrasub
16514 _ACEOF
16515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16516 :t
16517 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16518 s|@configure_input@|$ac_sed_conf_input|;t t
16519 s&@top_builddir@&$ac_top_builddir_sub&;t t
16520 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16521 s&@srcdir@&$ac_srcdir&;t t
16522 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16523 s&@top_srcdir@&$ac_top_srcdir&;t t
16524 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16525 s&@builddir@&$ac_builddir&;t t
16526 s&@abs_builddir@&$ac_abs_builddir&;t t
16527 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16528 s&@INSTALL@&$ac_INSTALL&;t t
16529 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16530 $ac_datarootdir_hack
16531 "
16532 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16533   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16534
16535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16536   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16537   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16538       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16539   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16540 which seems to be undefined.  Please make sure it is defined" >&5
16541 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16542 which seems to be undefined.  Please make sure it is defined" >&2;}
16543
16544   rm -f "$ac_tmp/stdin"
16545   case $ac_file in
16546   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16547   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16548   esac \
16549   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16550  ;;
16551   :H)
16552   #
16553   # CONFIG_HEADER
16554   #
16555   if test x"$ac_file" != x-; then
16556     {
16557       $as_echo "/* $configure_input  */" \
16558       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16559     } >"$ac_tmp/config.h" \
16560       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16561     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16562       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16563 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16564     else
16565       rm -f "$ac_file"
16566       mv "$ac_tmp/config.h" "$ac_file" \
16567         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16568     fi
16569   else
16570     $as_echo "/* $configure_input  */" \
16571       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16572       || as_fn_error $? "could not create -" "$LINENO" 5
16573   fi
16574 # Compute "$ac_file"'s index in $config_headers.
16575 _am_arg="$ac_file"
16576 _am_stamp_count=1
16577 for _am_header in $config_headers :; do
16578   case $_am_header in
16579     $_am_arg | $_am_arg:* )
16580       break ;;
16581     * )
16582       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16583   esac
16584 done
16585 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16586 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16587          X"$_am_arg" : 'X\(//\)[^/]' \| \
16588          X"$_am_arg" : 'X\(//\)$' \| \
16589          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16590 $as_echo X"$_am_arg" |
16591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16592             s//\1/
16593             q
16594           }
16595           /^X\(\/\/\)[^/].*/{
16596             s//\1/
16597             q
16598           }
16599           /^X\(\/\/\)$/{
16600             s//\1/
16601             q
16602           }
16603           /^X\(\/\).*/{
16604             s//\1/
16605             q
16606           }
16607           s/.*/./; q'`/stamp-h$_am_stamp_count
16608  ;;
16609
16610   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16611 $as_echo "$as_me: executing $ac_file commands" >&6;}
16612  ;;
16613   esac
16614
16615
16616   case $ac_file$ac_mode in
16617     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16618   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16619   # are listed without --file.  Let's play safe and only enable the eval
16620   # if we detect the quoting.
16621   case $CONFIG_FILES in
16622   *\'*) eval set x "$CONFIG_FILES" ;;
16623   *)   set x $CONFIG_FILES ;;
16624   esac
16625   shift
16626   for mf
16627   do
16628     # Strip MF so we end up with the name of the file.
16629     mf=`echo "$mf" | sed -e 's/:.*$//'`
16630     # Check whether this is an Automake generated Makefile or not.
16631     # We used to match only the files named `Makefile.in', but
16632     # some people rename them; so instead we look at the file content.
16633     # Grep'ing the first line is not enough: some people post-process
16634     # each Makefile.in and add a new line on top of each file to say so.
16635     # Grep'ing the whole file is not good either: AIX grep has a line
16636     # limit of 2048, but all sed's we know have understand at least 4000.
16637     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16638       dirpart=`$as_dirname -- "$mf" ||
16639 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16640          X"$mf" : 'X\(//\)[^/]' \| \
16641          X"$mf" : 'X\(//\)$' \| \
16642          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16643 $as_echo X"$mf" |
16644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16645             s//\1/
16646             q
16647           }
16648           /^X\(\/\/\)[^/].*/{
16649             s//\1/
16650             q
16651           }
16652           /^X\(\/\/\)$/{
16653             s//\1/
16654             q
16655           }
16656           /^X\(\/\).*/{
16657             s//\1/
16658             q
16659           }
16660           s/.*/./; q'`
16661     else
16662       continue
16663     fi
16664     # Extract the definition of DEPDIR, am__include, and am__quote
16665     # from the Makefile without running `make'.
16666     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16667     test -z "$DEPDIR" && continue
16668     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16669     test -z "am__include" && continue
16670     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16671     # When using ansi2knr, U may be empty or an underscore; expand it
16672     U=`sed -n 's/^U = //p' < "$mf"`
16673     # Find all dependency output files, they are included files with
16674     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16675     # simplest approach to changing $(DEPDIR) to its actual value in the
16676     # expansion.
16677     for file in `sed -n "
16678       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16679          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16680       # Make sure the directory exists.
16681       test -f "$dirpart/$file" && continue
16682       fdir=`$as_dirname -- "$file" ||
16683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16684          X"$file" : 'X\(//\)[^/]' \| \
16685          X"$file" : 'X\(//\)$' \| \
16686          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16687 $as_echo X"$file" |
16688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16689             s//\1/
16690             q
16691           }
16692           /^X\(\/\/\)[^/].*/{
16693             s//\1/
16694             q
16695           }
16696           /^X\(\/\/\)$/{
16697             s//\1/
16698             q
16699           }
16700           /^X\(\/\).*/{
16701             s//\1/
16702             q
16703           }
16704           s/.*/./; q'`
16705       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16706       # echo "creating $dirpart/$file"
16707       echo '# dummy' > "$dirpart/$file"
16708     done
16709   done
16710 }
16711  ;;
16712     "libtool":C)
16713
16714     # See if we are running on zsh, and set the options which allow our
16715     # commands through without removal of \ escapes.
16716     if test -n "${ZSH_VERSION+set}" ; then
16717       setopt NO_GLOB_SUBST
16718     fi
16719
16720     cfgfile="${ofile}T"
16721     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16722     $RM "$cfgfile"
16723
16724     cat <<_LT_EOF >> "$cfgfile"
16725 #! $SHELL
16726
16727 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16728 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16729 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16730 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16731 #
16732 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16733 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16734 #                 Inc.
16735 #   Written by Gordon Matzigkeit, 1996
16736 #
16737 #   This file is part of GNU Libtool.
16738 #
16739 # GNU Libtool is free software; you can redistribute it and/or
16740 # modify it under the terms of the GNU General Public License as
16741 # published by the Free Software Foundation; either version 2 of
16742 # the License, or (at your option) any later version.
16743 #
16744 # As a special exception to the GNU General Public License,
16745 # if you distribute this file as part of a program or library that
16746 # is built using GNU Libtool, you may include this file under the
16747 # same distribution terms that you use for the rest of that program.
16748 #
16749 # GNU Libtool is distributed in the hope that it will be useful,
16750 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16751 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16752 # GNU General Public License for more details.
16753 #
16754 # You should have received a copy of the GNU General Public License
16755 # along with GNU Libtool; see the file COPYING.  If not, a copy
16756 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16757 # obtained by writing to the Free Software Foundation, Inc.,
16758 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16759
16760
16761 # The names of the tagged configurations supported by this script.
16762 available_tags=""
16763
16764 # ### BEGIN LIBTOOL CONFIG
16765
16766 # Which release of libtool.m4 was used?
16767 macro_version=$macro_version
16768 macro_revision=$macro_revision
16769
16770 # Whether or not to build shared libraries.
16771 build_libtool_libs=$enable_shared
16772
16773 # Whether or not to build static libraries.
16774 build_old_libs=$enable_static
16775
16776 # What type of objects to build.
16777 pic_mode=$pic_mode
16778
16779 # Whether or not to optimize for fast installation.
16780 fast_install=$enable_fast_install
16781
16782 # Shell to use when invoking shell scripts.
16783 SHELL=$lt_SHELL
16784
16785 # An echo program that protects backslashes.
16786 ECHO=$lt_ECHO
16787
16788 # The host system.
16789 host_alias=$host_alias
16790 host=$host
16791 host_os=$host_os
16792
16793 # The build system.
16794 build_alias=$build_alias
16795 build=$build
16796 build_os=$build_os
16797
16798 # A sed program that does not truncate output.
16799 SED=$lt_SED
16800
16801 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16802 Xsed="\$SED -e 1s/^X//"
16803
16804 # A grep program that handles long lines.
16805 GREP=$lt_GREP
16806
16807 # An ERE matcher.
16808 EGREP=$lt_EGREP
16809
16810 # A literal string matcher.
16811 FGREP=$lt_FGREP
16812
16813 # A BSD- or MS-compatible name lister.
16814 NM=$lt_NM
16815
16816 # Whether we need soft or hard links.
16817 LN_S=$lt_LN_S
16818
16819 # What is the maximum length of a command?
16820 max_cmd_len=$max_cmd_len
16821
16822 # Object file suffix (normally "o").
16823 objext=$ac_objext
16824
16825 # Executable file suffix (normally "").
16826 exeext=$exeext
16827
16828 # whether the shell understands "unset".
16829 lt_unset=$lt_unset
16830
16831 # turn spaces into newlines.
16832 SP2NL=$lt_lt_SP2NL
16833
16834 # turn newlines into spaces.
16835 NL2SP=$lt_lt_NL2SP
16836
16837 # convert \$build file names to \$host format.
16838 to_host_file_cmd=$lt_cv_to_host_file_cmd
16839
16840 # convert \$build files to toolchain format.
16841 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16842
16843 # An object symbol dumper.
16844 OBJDUMP=$lt_OBJDUMP
16845
16846 # Method to check whether dependent libraries are shared objects.
16847 deplibs_check_method=$lt_deplibs_check_method
16848
16849 # Command to use when deplibs_check_method = "file_magic".
16850 file_magic_cmd=$lt_file_magic_cmd
16851
16852 # How to find potential files when deplibs_check_method = "file_magic".
16853 file_magic_glob=$lt_file_magic_glob
16854
16855 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16856 want_nocaseglob=$lt_want_nocaseglob
16857
16858 # DLL creation program.
16859 DLLTOOL=$lt_DLLTOOL
16860
16861 # Command to associate shared and link libraries.
16862 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16863
16864 # The archiver.
16865 AR=$lt_AR
16866
16867 # Flags to create an archive.
16868 AR_FLAGS=$lt_AR_FLAGS
16869
16870 # How to feed a file listing to the archiver.
16871 archiver_list_spec=$lt_archiver_list_spec
16872
16873 # A symbol stripping program.
16874 STRIP=$lt_STRIP
16875
16876 # Commands used to install an old-style archive.
16877 RANLIB=$lt_RANLIB
16878 old_postinstall_cmds=$lt_old_postinstall_cmds
16879 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16880
16881 # Whether to use a lock for old archive extraction.
16882 lock_old_archive_extraction=$lock_old_archive_extraction
16883
16884 # A C compiler.
16885 LTCC=$lt_CC
16886
16887 # LTCC compiler flags.
16888 LTCFLAGS=$lt_CFLAGS
16889
16890 # Take the output of nm and produce a listing of raw symbols and C names.
16891 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16892
16893 # Transform the output of nm in a proper C declaration.
16894 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16895
16896 # Transform the output of nm in a C name address pair.
16897 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16898
16899 # Transform the output of nm in a C name address pair when lib prefix is needed.
16900 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16901
16902 # Specify filename containing input files for \$NM.
16903 nm_file_list_spec=$lt_nm_file_list_spec
16904
16905 # The root where to search for dependent libraries,and in which our libraries should be installed.
16906 lt_sysroot=$lt_sysroot
16907
16908 # The name of the directory that contains temporary libtool files.
16909 objdir=$objdir
16910
16911 # Used to examine libraries when file_magic_cmd begins with "file".
16912 MAGIC_CMD=$MAGIC_CMD
16913
16914 # Must we lock files when doing compilation?
16915 need_locks=$lt_need_locks
16916
16917 # Manifest tool.
16918 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16919
16920 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16921 DSYMUTIL=$lt_DSYMUTIL
16922
16923 # Tool to change global to local symbols on Mac OS X.
16924 NMEDIT=$lt_NMEDIT
16925
16926 # Tool to manipulate fat objects and archives on Mac OS X.
16927 LIPO=$lt_LIPO
16928
16929 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16930 OTOOL=$lt_OTOOL
16931
16932 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16933 OTOOL64=$lt_OTOOL64
16934
16935 # Old archive suffix (normally "a").
16936 libext=$libext
16937
16938 # Shared library suffix (normally ".so").
16939 shrext_cmds=$lt_shrext_cmds
16940
16941 # The commands to extract the exported symbol list from a shared archive.
16942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16943
16944 # Variables whose values should be saved in libtool wrapper scripts and
16945 # restored at link time.
16946 variables_saved_for_relink=$lt_variables_saved_for_relink
16947
16948 # Do we need the "lib" prefix for modules?
16949 need_lib_prefix=$need_lib_prefix
16950
16951 # Do we need a version for libraries?
16952 need_version=$need_version
16953
16954 # Library versioning type.
16955 version_type=$version_type
16956
16957 # Shared library runtime path variable.
16958 runpath_var=$runpath_var
16959
16960 # Shared library path variable.
16961 shlibpath_var=$shlibpath_var
16962
16963 # Is shlibpath searched before the hard-coded library search path?
16964 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16965
16966 # Format of library name prefix.
16967 libname_spec=$lt_libname_spec
16968
16969 # List of archive names.  First name is the real one, the rest are links.
16970 # The last name is the one that the linker finds with -lNAME
16971 library_names_spec=$lt_library_names_spec
16972
16973 # The coded name of the library, if different from the real name.
16974 soname_spec=$lt_soname_spec
16975
16976 # Permission mode override for installation of shared libraries.
16977 install_override_mode=$lt_install_override_mode
16978
16979 # Command to use after installation of a shared archive.
16980 postinstall_cmds=$lt_postinstall_cmds
16981
16982 # Command to use after uninstallation of a shared archive.
16983 postuninstall_cmds=$lt_postuninstall_cmds
16984
16985 # Commands used to finish a libtool library installation in a directory.
16986 finish_cmds=$lt_finish_cmds
16987
16988 # As "finish_cmds", except a single script fragment to be evaled but
16989 # not shown.
16990 finish_eval=$lt_finish_eval
16991
16992 # Whether we should hardcode library paths into libraries.
16993 hardcode_into_libs=$hardcode_into_libs
16994
16995 # Compile-time system search path for libraries.
16996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16997
16998 # Run-time system search path for libraries.
16999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17000
17001 # Whether dlopen is supported.
17002 dlopen_support=$enable_dlopen
17003
17004 # Whether dlopen of programs is supported.
17005 dlopen_self=$enable_dlopen_self
17006
17007 # Whether dlopen of statically linked programs is supported.
17008 dlopen_self_static=$enable_dlopen_self_static
17009
17010 # Commands to strip libraries.
17011 old_striplib=$lt_old_striplib
17012 striplib=$lt_striplib
17013
17014
17015 # The linker used to build libraries.
17016 LD=$lt_LD
17017
17018 # How to create reloadable object files.
17019 reload_flag=$lt_reload_flag
17020 reload_cmds=$lt_reload_cmds
17021
17022 # Commands used to build an old-style archive.
17023 old_archive_cmds=$lt_old_archive_cmds
17024
17025 # A language specific compiler.
17026 CC=$lt_compiler
17027
17028 # Is the compiler the GNU compiler?
17029 with_gcc=$GCC
17030
17031 # Compiler flag to turn off builtin functions.
17032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17033
17034 # Additional compiler flags for building library objects.
17035 pic_flag=$lt_lt_prog_compiler_pic
17036
17037 # How to pass a linker flag through the compiler.
17038 wl=$lt_lt_prog_compiler_wl
17039
17040 # Compiler flag to prevent dynamic linking.
17041 link_static_flag=$lt_lt_prog_compiler_static
17042
17043 # Does compiler simultaneously support -c and -o options?
17044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17045
17046 # Whether or not to add -lc for building shared libraries.
17047 build_libtool_need_lc=$archive_cmds_need_lc
17048
17049 # Whether or not to disallow shared libs when runtime libs are static.
17050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17051
17052 # Compiler flag to allow reflexive dlopens.
17053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17054
17055 # Compiler flag to generate shared objects directly from archives.
17056 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17057
17058 # Whether the compiler copes with passing no objects directly.
17059 compiler_needs_object=$lt_compiler_needs_object
17060
17061 # Create an old-style archive from a shared archive.
17062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17063
17064 # Create a temporary old-style archive to link instead of a shared archive.
17065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17066
17067 # Commands used to build a shared archive.
17068 archive_cmds=$lt_archive_cmds
17069 archive_expsym_cmds=$lt_archive_expsym_cmds
17070
17071 # Commands used to build a loadable module if different from building
17072 # a shared archive.
17073 module_cmds=$lt_module_cmds
17074 module_expsym_cmds=$lt_module_expsym_cmds
17075
17076 # Whether we are building with GNU ld or not.
17077 with_gnu_ld=$lt_with_gnu_ld
17078
17079 # Flag that allows shared libraries with undefined symbols to be built.
17080 allow_undefined_flag=$lt_allow_undefined_flag
17081
17082 # Flag that enforces no undefined symbols.
17083 no_undefined_flag=$lt_no_undefined_flag
17084
17085 # Flag to hardcode \$libdir into a binary during linking.
17086 # This must work even if \$libdir does not exist
17087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17088
17089 # If ld is used when linking, flag to hardcode \$libdir into a binary
17090 # during linking.  This must work even if \$libdir does not exist.
17091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17092
17093 # Whether we need a single "-rpath" flag with a separated argument.
17094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17095
17096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17097 # DIR into the resulting binary.
17098 hardcode_direct=$hardcode_direct
17099
17100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17101 # DIR into the resulting binary and the resulting library dependency is
17102 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17103 # library is relocated.
17104 hardcode_direct_absolute=$hardcode_direct_absolute
17105
17106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17107 # into the resulting binary.
17108 hardcode_minus_L=$hardcode_minus_L
17109
17110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17111 # into the resulting binary.
17112 hardcode_shlibpath_var=$hardcode_shlibpath_var
17113
17114 # Set to "yes" if building a shared library automatically hardcodes DIR
17115 # into the library and all subsequent libraries and executables linked
17116 # against it.
17117 hardcode_automatic=$hardcode_automatic
17118
17119 # Set to yes if linker adds runtime paths of dependent libraries
17120 # to runtime path list.
17121 inherit_rpath=$inherit_rpath
17122
17123 # Whether libtool must link a program against all its dependency libraries.
17124 link_all_deplibs=$link_all_deplibs
17125
17126 # Set to "yes" if exported symbols are required.
17127 always_export_symbols=$always_export_symbols
17128
17129 # The commands to list exported symbols.
17130 export_symbols_cmds=$lt_export_symbols_cmds
17131
17132 # Symbols that should not be listed in the preloaded symbols.
17133 exclude_expsyms=$lt_exclude_expsyms
17134
17135 # Symbols that must always be exported.
17136 include_expsyms=$lt_include_expsyms
17137
17138 # Commands necessary for linking programs (against libraries) with templates.
17139 prelink_cmds=$lt_prelink_cmds
17140
17141 # Commands necessary for finishing linking programs.
17142 postlink_cmds=$lt_postlink_cmds
17143
17144 # Specify filename containing input files.
17145 file_list_spec=$lt_file_list_spec
17146
17147 # How to hardcode a shared library path into an executable.
17148 hardcode_action=$hardcode_action
17149
17150 # ### END LIBTOOL CONFIG
17151
17152 _LT_EOF
17153
17154   case $host_os in
17155   aix3*)
17156     cat <<\_LT_EOF >> "$cfgfile"
17157 # AIX sometimes has problems with the GCC collect2 program.  For some
17158 # reason, if we set the COLLECT_NAMES environment variable, the problems
17159 # vanish in a puff of smoke.
17160 if test "X${COLLECT_NAMES+set}" != Xset; then
17161   COLLECT_NAMES=
17162   export COLLECT_NAMES
17163 fi
17164 _LT_EOF
17165     ;;
17166   esac
17167
17168
17169 ltmain="$ac_aux_dir/ltmain.sh"
17170
17171
17172   # We use sed instead of cat because bash on DJGPP gets confused if
17173   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17174   # text mode, it properly converts lines to CR/LF.  This bash problem
17175   # is reportedly fixed, but why not run on old versions too?
17176   sed '$q' "$ltmain" >> "$cfgfile" \
17177      || (rm -f "$cfgfile"; exit 1)
17178
17179   if test x"$xsi_shell" = xyes; then
17180   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17181 func_dirname ()\
17182 {\
17183 \    case ${1} in\
17184 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17185 \      *  ) func_dirname_result="${3}" ;;\
17186 \    esac\
17187 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17188   && mv -f "$cfgfile.tmp" "$cfgfile" \
17189     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17190 test 0 -eq $? || _lt_function_replace_fail=:
17191
17192
17193   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17194 func_basename ()\
17195 {\
17196 \    func_basename_result="${1##*/}"\
17197 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17198   && mv -f "$cfgfile.tmp" "$cfgfile" \
17199     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17200 test 0 -eq $? || _lt_function_replace_fail=:
17201
17202
17203   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17204 func_dirname_and_basename ()\
17205 {\
17206 \    case ${1} in\
17207 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17208 \      *  ) func_dirname_result="${3}" ;;\
17209 \    esac\
17210 \    func_basename_result="${1##*/}"\
17211 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17212   && mv -f "$cfgfile.tmp" "$cfgfile" \
17213     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17214 test 0 -eq $? || _lt_function_replace_fail=:
17215
17216
17217   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17218 func_stripname ()\
17219 {\
17220 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17221 \    # positional parameters, so assign one to ordinary parameter first.\
17222 \    func_stripname_result=${3}\
17223 \    func_stripname_result=${func_stripname_result#"${1}"}\
17224 \    func_stripname_result=${func_stripname_result%"${2}"}\
17225 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17226   && mv -f "$cfgfile.tmp" "$cfgfile" \
17227     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17228 test 0 -eq $? || _lt_function_replace_fail=:
17229
17230
17231   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17232 func_split_long_opt ()\
17233 {\
17234 \    func_split_long_opt_name=${1%%=*}\
17235 \    func_split_long_opt_arg=${1#*=}\
17236 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17237   && mv -f "$cfgfile.tmp" "$cfgfile" \
17238     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17239 test 0 -eq $? || _lt_function_replace_fail=:
17240
17241
17242   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17243 func_split_short_opt ()\
17244 {\
17245 \    func_split_short_opt_arg=${1#??}\
17246 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17247 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17248   && mv -f "$cfgfile.tmp" "$cfgfile" \
17249     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17250 test 0 -eq $? || _lt_function_replace_fail=:
17251
17252
17253   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17254 func_lo2o ()\
17255 {\
17256 \    case ${1} in\
17257 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17258 \      *)    func_lo2o_result=${1} ;;\
17259 \    esac\
17260 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17261   && mv -f "$cfgfile.tmp" "$cfgfile" \
17262     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17263 test 0 -eq $? || _lt_function_replace_fail=:
17264
17265
17266   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17267 func_xform ()\
17268 {\
17269     func_xform_result=${1%.*}.lo\
17270 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17271   && mv -f "$cfgfile.tmp" "$cfgfile" \
17272     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17273 test 0 -eq $? || _lt_function_replace_fail=:
17274
17275
17276   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17277 func_arith ()\
17278 {\
17279     func_arith_result=$(( $* ))\
17280 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17281   && mv -f "$cfgfile.tmp" "$cfgfile" \
17282     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17283 test 0 -eq $? || _lt_function_replace_fail=:
17284
17285
17286   sed -e '/^func_len ()$/,/^} # func_len /c\
17287 func_len ()\
17288 {\
17289     func_len_result=${#1}\
17290 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17291   && mv -f "$cfgfile.tmp" "$cfgfile" \
17292     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17293 test 0 -eq $? || _lt_function_replace_fail=:
17294
17295 fi
17296
17297 if test x"$lt_shell_append" = xyes; then
17298   sed -e '/^func_append ()$/,/^} # func_append /c\
17299 func_append ()\
17300 {\
17301     eval "${1}+=\\${2}"\
17302 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17303   && mv -f "$cfgfile.tmp" "$cfgfile" \
17304     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17305 test 0 -eq $? || _lt_function_replace_fail=:
17306
17307
17308   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17309 func_append_quoted ()\
17310 {\
17311 \    func_quote_for_eval "${2}"\
17312 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17313 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17314   && mv -f "$cfgfile.tmp" "$cfgfile" \
17315     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17316 test 0 -eq $? || _lt_function_replace_fail=:
17317
17318
17319   # Save a `func_append' function call where possible by direct use of '+='
17320   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17321     && mv -f "$cfgfile.tmp" "$cfgfile" \
17322       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17323   test 0 -eq $? || _lt_function_replace_fail=:
17324 else
17325   # Save a `func_append' function call even when '+=' is not available
17326   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17327     && mv -f "$cfgfile.tmp" "$cfgfile" \
17328       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17329   test 0 -eq $? || _lt_function_replace_fail=:
17330 fi
17331
17332 if test x"$_lt_function_replace_fail" = x":"; then
17333   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17334 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17335 fi
17336
17337
17338    mv -f "$cfgfile" "$ofile" ||
17339     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17340   chmod +x "$ofile"
17341
17342  ;;
17343
17344   esac
17345 done # for ac_tag
17346
17347
17348 as_fn_exit 0
17349 _ACEOF
17350 ac_clean_files=$ac_clean_files_save
17351
17352 test $ac_write_fail = 0 ||
17353   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17354
17355
17356 # configure is writing to config.log, and then calls config.status.
17357 # config.status does its own redirection, appending to config.log.
17358 # Unfortunately, on DOS this fails, as config.log is still kept open
17359 # by configure, so config.status won't be able to write to it; its
17360 # output is simply discarded.  So we exec the FD to /dev/null,
17361 # effectively closing config.log, so it can be properly (re)opened and
17362 # appended to by config.status.  When coming back to configure, we
17363 # need to make the FD available again.
17364 if test "$no_create" != yes; then
17365   ac_cs_success=:
17366   ac_config_status_args=
17367   test "$silent" = yes &&
17368     ac_config_status_args="$ac_config_status_args --quiet"
17369   exec 5>/dev/null
17370   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17371   exec 5>>config.log
17372   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17373   # would make configure fail if this is the last instruction.
17374   $ac_cs_success || as_fn_exit 1
17375 fi
17376 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17377   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17378 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17379 fi
17380