extensions change child count to highest child subchannel
[profile/ivi/libwebsockets.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libwebsockets 0.3.
4 #
5 # Report bugs to <andy@warmcat.com>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and andy@warmcat.com
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
253 $0: have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libwebsockets'
572 PACKAGE_TARNAME='libwebsockets'
573 PACKAGE_VERSION='0.3'
574 PACKAGE_STRING='libwebsockets 0.3'
575 PACKAGE_BUGREPORT='andy@warmcat.com'
576 PACKAGE_URL=''
577
578 ac_unique_file="test-server/test-server.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
581 #include <stdio.h>
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
584 #endif
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
587 #endif
588 #ifdef STDC_HEADERS
589 # include <stdlib.h>
590 # include <stddef.h>
591 #else
592 # ifdef HAVE_STDLIB_H
593 #  include <stdlib.h>
594 # endif
595 #endif
596 #ifdef HAVE_STRING_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #  include <memory.h>
599 # endif
600 # include <string.h>
601 #endif
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
604 #endif
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
607 #endif
608 #ifdef HAVE_STDINT_H
609 # include <stdint.h>
610 #endif
611 #ifdef HAVE_UNISTD_H
612 # include <unistd.h>
613 #endif"
614
615 ac_subst_vars='am__EXEEXT_FALSE
616 am__EXEEXT_TRUE
617 LTLIBOBJS
618 LIBOBJS
619 NOPING_FALSE
620 NOPING_TRUE
621 clientcertdir
622 EXT_GOOGLE_MUX_FALSE
623 EXT_GOOGLE_MUX_TRUE
624 LIBCRYPTO_FALSE
625 LIBCRYPTO_TRUE
626 CPP
627 OTOOL64
628 OTOOL
629 LIPO
630 NMEDIT
631 DSYMUTIL
632 MANIFEST_TOOL
633 RANLIB
634 ac_ct_AR
635 AR
636 DLLTOOL
637 OBJDUMP
638 LN_S
639 NM
640 ac_ct_DUMPBIN
641 DUMPBIN
642 LD
643 FGREP
644 EGREP
645 GREP
646 SED
647 am__fastdepCC_FALSE
648 am__fastdepCC_TRUE
649 CCDEPMODE
650 AMDEPBACKSLASH
651 AMDEP_FALSE
652 AMDEP_TRUE
653 am__quote
654 am__include
655 DEPDIR
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
662 CC
663 host_os
664 host_vendor
665 host_cpu
666 host
667 build_os
668 build_vendor
669 build_cpu
670 build
671 LIBTOOL
672 am__untar
673 am__tar
674 AMTAR
675 am__leading_dot
676 SET_MAKE
677 AWK
678 mkdir_p
679 MKDIR_P
680 INSTALL_STRIP_PROGRAM
681 STRIP
682 install_sh
683 MAKEINFO
684 AUTOHEADER
685 AUTOMAKE
686 AUTOCONF
687 ACLOCAL
688 VERSION
689 PACKAGE
690 CYGPATH_W
691 am__isrc
692 INSTALL_DATA
693 INSTALL_SCRIPT
694 INSTALL_PROGRAM
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_shared
737 enable_static
738 with_pic
739 enable_fast_install
740 enable_dependency_tracking
741 with_gnu_ld
742 with_sysroot
743 enable_libtool_lock
744 enable_openssl
745 enable_nofork
746 enable_libcrypto
747 enable_x_google_mux
748 with_client_cert_dir
749 enable_noping
750 '
751       ac_precious_vars='build_alias
752 host_alias
753 target_alias
754 CC
755 CFLAGS
756 LDFLAGS
757 LIBS
758 CPPFLAGS
759 CPP'
760
761
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
809
810 ac_prev=
811 ac_dashdash=
812 for ac_option
813 do
814   # If the previous option needs an argument, assign it.
815   if test -n "$ac_prev"; then
816     eval $ac_prev=\$ac_option
817     ac_prev=
818     continue
819   fi
820
821   case $ac_option in
822   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823   *=)   ac_optarg= ;;
824   *)    ac_optarg=yes ;;
825   esac
826
827   # Accept the important Cygnus configure options, so we can diagnose typos.
828
829   case $ac_dashdash$ac_option in
830   --)
831     ac_dashdash=yes ;;
832
833   -bindir | --bindir | --bindi | --bind | --bin | --bi)
834     ac_prev=bindir ;;
835   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836     bindir=$ac_optarg ;;
837
838   -build | --build | --buil | --bui | --bu)
839     ac_prev=build_alias ;;
840   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841     build_alias=$ac_optarg ;;
842
843   -cache-file | --cache-file | --cache-fil | --cache-fi \
844   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845     ac_prev=cache_file ;;
846   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848     cache_file=$ac_optarg ;;
849
850   --config-cache | -C)
851     cache_file=config.cache ;;
852
853   -datadir | --datadir | --datadi | --datad)
854     ac_prev=datadir ;;
855   -datadir=* | --datadir=* | --datadi=* | --datad=*)
856     datadir=$ac_optarg ;;
857
858   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859   | --dataroo | --dataro | --datar)
860     ac_prev=datarootdir ;;
861   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863     datarootdir=$ac_optarg ;;
864
865   -disable-* | --disable-*)
866     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867     # Reject names that are not valid shell variable names.
868     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869       as_fn_error $? "invalid feature name: $ac_useropt"
870     ac_useropt_orig=$ac_useropt
871     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872     case $ac_user_opts in
873       *"
874 "enable_$ac_useropt"
875 "*) ;;
876       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877          ac_unrecognized_sep=', ';;
878     esac
879     eval enable_$ac_useropt=no ;;
880
881   -docdir | --docdir | --docdi | --doc | --do)
882     ac_prev=docdir ;;
883   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884     docdir=$ac_optarg ;;
885
886   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887     ac_prev=dvidir ;;
888   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889     dvidir=$ac_optarg ;;
890
891   -enable-* | --enable-*)
892     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893     # Reject names that are not valid shell variable names.
894     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895       as_fn_error $? "invalid feature name: $ac_useropt"
896     ac_useropt_orig=$ac_useropt
897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898     case $ac_user_opts in
899       *"
900 "enable_$ac_useropt"
901 "*) ;;
902       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903          ac_unrecognized_sep=', ';;
904     esac
905     eval enable_$ac_useropt=\$ac_optarg ;;
906
907   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909   | --exec | --exe | --ex)
910     ac_prev=exec_prefix ;;
911   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913   | --exec=* | --exe=* | --ex=*)
914     exec_prefix=$ac_optarg ;;
915
916   -gas | --gas | --ga | --g)
917     # Obsolete; use --with-gas.
918     with_gas=yes ;;
919
920   -help | --help | --hel | --he | -h)
921     ac_init_help=long ;;
922   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923     ac_init_help=recursive ;;
924   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925     ac_init_help=short ;;
926
927   -host | --host | --hos | --ho)
928     ac_prev=host_alias ;;
929   -host=* | --host=* | --hos=* | --ho=*)
930     host_alias=$ac_optarg ;;
931
932   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933     ac_prev=htmldir ;;
934   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935   | --ht=*)
936     htmldir=$ac_optarg ;;
937
938   -includedir | --includedir | --includedi | --included | --include \
939   | --includ | --inclu | --incl | --inc)
940     ac_prev=includedir ;;
941   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942   | --includ=* | --inclu=* | --incl=* | --inc=*)
943     includedir=$ac_optarg ;;
944
945   -infodir | --infodir | --infodi | --infod | --info | --inf)
946     ac_prev=infodir ;;
947   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948     infodir=$ac_optarg ;;
949
950   -libdir | --libdir | --libdi | --libd)
951     ac_prev=libdir ;;
952   -libdir=* | --libdir=* | --libdi=* | --libd=*)
953     libdir=$ac_optarg ;;
954
955   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956   | --libexe | --libex | --libe)
957     ac_prev=libexecdir ;;
958   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959   | --libexe=* | --libex=* | --libe=*)
960     libexecdir=$ac_optarg ;;
961
962   -localedir | --localedir | --localedi | --localed | --locale)
963     ac_prev=localedir ;;
964   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965     localedir=$ac_optarg ;;
966
967   -localstatedir | --localstatedir | --localstatedi | --localstated \
968   | --localstate | --localstat | --localsta | --localst | --locals)
969     ac_prev=localstatedir ;;
970   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972     localstatedir=$ac_optarg ;;
973
974   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975     ac_prev=mandir ;;
976   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977     mandir=$ac_optarg ;;
978
979   -nfp | --nfp | --nf)
980     # Obsolete; use --without-fp.
981     with_fp=no ;;
982
983   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984   | --no-cr | --no-c | -n)
985     no_create=yes ;;
986
987   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989     no_recursion=yes ;;
990
991   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993   | --oldin | --oldi | --old | --ol | --o)
994     ac_prev=oldincludedir ;;
995   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998     oldincludedir=$ac_optarg ;;
999
1000   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001     ac_prev=prefix ;;
1002   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003     prefix=$ac_optarg ;;
1004
1005   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006   | --program-pre | --program-pr | --program-p)
1007     ac_prev=program_prefix ;;
1008   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010     program_prefix=$ac_optarg ;;
1011
1012   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013   | --program-suf | --program-su | --program-s)
1014     ac_prev=program_suffix ;;
1015   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017     program_suffix=$ac_optarg ;;
1018
1019   -program-transform-name | --program-transform-name \
1020   | --program-transform-nam | --program-transform-na \
1021   | --program-transform-n | --program-transform- \
1022   | --program-transform | --program-transfor \
1023   | --program-transfo | --program-transf \
1024   | --program-trans | --program-tran \
1025   | --progr-tra | --program-tr | --program-t)
1026     ac_prev=program_transform_name ;;
1027   -program-transform-name=* | --program-transform-name=* \
1028   | --program-transform-nam=* | --program-transform-na=* \
1029   | --program-transform-n=* | --program-transform-=* \
1030   | --program-transform=* | --program-transfor=* \
1031   | --program-transfo=* | --program-transf=* \
1032   | --program-trans=* | --program-tran=* \
1033   | --progr-tra=* | --program-tr=* | --program-t=*)
1034     program_transform_name=$ac_optarg ;;
1035
1036   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037     ac_prev=pdfdir ;;
1038   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039     pdfdir=$ac_optarg ;;
1040
1041   -psdir | --psdir | --psdi | --psd | --ps)
1042     ac_prev=psdir ;;
1043   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044     psdir=$ac_optarg ;;
1045
1046   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047   | -silent | --silent | --silen | --sile | --sil)
1048     silent=yes ;;
1049
1050   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051     ac_prev=sbindir ;;
1052   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053   | --sbi=* | --sb=*)
1054     sbindir=$ac_optarg ;;
1055
1056   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058   | --sharedst | --shareds | --shared | --share | --shar \
1059   | --sha | --sh)
1060     ac_prev=sharedstatedir ;;
1061   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064   | --sha=* | --sh=*)
1065     sharedstatedir=$ac_optarg ;;
1066
1067   -site | --site | --sit)
1068     ac_prev=site ;;
1069   -site=* | --site=* | --sit=*)
1070     site=$ac_optarg ;;
1071
1072   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073     ac_prev=srcdir ;;
1074   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075     srcdir=$ac_optarg ;;
1076
1077   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078   | --syscon | --sysco | --sysc | --sys | --sy)
1079     ac_prev=sysconfdir ;;
1080   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082     sysconfdir=$ac_optarg ;;
1083
1084   -target | --target | --targe | --targ | --tar | --ta | --t)
1085     ac_prev=target_alias ;;
1086   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087     target_alias=$ac_optarg ;;
1088
1089   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090     verbose=yes ;;
1091
1092   -version | --version | --versio | --versi | --vers | -V)
1093     ac_init_version=: ;;
1094
1095   -with-* | --with-*)
1096     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099       as_fn_error $? "invalid package name: $ac_useropt"
1100     ac_useropt_orig=$ac_useropt
1101     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102     case $ac_user_opts in
1103       *"
1104 "with_$ac_useropt"
1105 "*) ;;
1106       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107          ac_unrecognized_sep=', ';;
1108     esac
1109     eval with_$ac_useropt=\$ac_optarg ;;
1110
1111   -without-* | --without-*)
1112     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115       as_fn_error $? "invalid package name: $ac_useropt"
1116     ac_useropt_orig=$ac_useropt
1117     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118     case $ac_user_opts in
1119       *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123          ac_unrecognized_sep=', ';;
1124     esac
1125     eval with_$ac_useropt=no ;;
1126
1127   --x)
1128     # Obsolete; use --with-x.
1129     with_x=yes ;;
1130
1131   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132   | --x-incl | --x-inc | --x-in | --x-i)
1133     ac_prev=x_includes ;;
1134   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136     x_includes=$ac_optarg ;;
1137
1138   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140     ac_prev=x_libraries ;;
1141   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143     x_libraries=$ac_optarg ;;
1144
1145   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information"
1147     ;;
1148
1149   *=*)
1150     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151     # Reject names that are not valid shell variable names.
1152     case $ac_envvar in #(
1153       '' | [0-9]* | *[!_$as_cr_alnum]* )
1154       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1155     esac
1156     eval $ac_envvar=\$ac_optarg
1157     export $ac_envvar ;;
1158
1159   *)
1160     # FIXME: should be removed in autoconf 3.0.
1161     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165     ;;
1166
1167   esac
1168 done
1169
1170 if test -n "$ac_prev"; then
1171   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172   as_fn_error $? "missing argument to $ac_option"
1173 fi
1174
1175 if test -n "$ac_unrecognized_opts"; then
1176   case $enable_option_checking in
1177     no) ;;
1178     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1179     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180   esac
1181 fi
1182
1183 # Check all directory arguments for consistency.
1184 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185                 datadir sysconfdir sharedstatedir localstatedir includedir \
1186                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187                 libdir localedir mandir
1188 do
1189   eval ac_val=\$$ac_var
1190   # Remove trailing slashes.
1191   case $ac_val in
1192     */ )
1193       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194       eval $ac_var=\$ac_val;;
1195   esac
1196   # Be sure to have absolute directory names.
1197   case $ac_val in
1198     [\\/$]* | ?:[\\/]* )  continue;;
1199     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200   esac
1201   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213   if test "x$build_alias" = x; then
1214     cross_compiling=maybe
1215     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1216     If a cross compiler is detected then cross compile mode will be used" >&2
1217   elif test "x$build_alias" != "x$host_alias"; then
1218     cross_compiling=yes
1219   fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231   as_fn_error $? "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233   as_fn_error $? "pwd does not report name of working directory"
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238   ac_srcdir_defaulted=yes
1239   # Try the directory containing this script, then the parent directory.
1240   ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242          X"$as_myself" : 'X\(//\)[^/]' \| \
1243          X"$as_myself" : 'X\(//\)$' \| \
1244          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247             s//\1/
1248             q
1249           }
1250           /^X\(\/\/\)[^/].*/{
1251             s//\1/
1252             q
1253           }
1254           /^X\(\/\/\)$/{
1255             s//\1/
1256             q
1257           }
1258           /^X\(\/\).*/{
1259             s//\1/
1260             q
1261           }
1262           s/.*/./; q'`
1263   srcdir=$ac_confdir
1264   if test ! -r "$srcdir/$ac_unique_file"; then
1265     srcdir=..
1266   fi
1267 else
1268   ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1277         pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280   srcdir=.
1281 fi
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290   eval ac_env_${ac_var}_value=\$${ac_var}
1291   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1294
1295 #
1296 # Report the --help message.
1297 #
1298 if test "$ac_init_help" = "long"; then
1299   # Omit some internal or obsolete options to make the list less imposing.
1300   # This message is too long to be a string in the A/UX 3.1 sh.
1301   cat <<_ACEOF
1302 \`configure' configures libwebsockets 0.3 to adapt to many kinds of systems.
1303
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE.  See below for descriptions of some of the useful variables.
1308
1309 Defaults for the options are specified in brackets.
1310
1311 Configuration:
1312   -h, --help              display this help and exit
1313       --help=short        display options specific to this package
1314       --help=recursive    display the short help of all the included packages
1315   -V, --version           display version information and exit
1316   -q, --quiet, --silent   do not print \`checking ...' messages
1317       --cache-file=FILE   cache test results in FILE [disabled]
1318   -C, --config-cache      alias for \`--cache-file=config.cache'
1319   -n, --no-create         do not create output files
1320       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1321
1322 Installation directories:
1323   --prefix=PREFIX         install architecture-independent files in PREFIX
1324                           [$ac_default_prefix]
1325   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1326                           [PREFIX]
1327
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1332
1333 For better control, use the options below.
1334
1335 Fine tuning of the installation directories:
1336   --bindir=DIR            user executables [EPREFIX/bin]
1337   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1338   --libexecdir=DIR        program executables [EPREFIX/libexec]
1339   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1340   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1341   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1342   --libdir=DIR            object code libraries [EPREFIX/lib]
1343   --includedir=DIR        C header files [PREFIX/include]
1344   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1345   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1346   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1347   --infodir=DIR           info documentation [DATAROOTDIR/info]
1348   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1349   --mandir=DIR            man documentation [DATAROOTDIR/man]
1350   --docdir=DIR            documentation root [DATAROOTDIR/doc/libwebsockets]
1351   --htmldir=DIR           html documentation [DOCDIR]
1352   --dvidir=DIR            dvi documentation [DOCDIR]
1353   --pdfdir=DIR            pdf documentation [DOCDIR]
1354   --psdir=DIR             ps documentation [DOCDIR]
1355 _ACEOF
1356
1357   cat <<\_ACEOF
1358
1359 Program names:
1360   --program-prefix=PREFIX            prepend PREFIX to installed program names
1361   --program-suffix=SUFFIX            append SUFFIX to installed program names
1362   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1363
1364 System types:
1365   --build=BUILD     configure for building on BUILD [guessed]
1366   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1367 _ACEOF
1368 fi
1369
1370 if test -n "$ac_init_help"; then
1371   case $ac_init_help in
1372      short | recursive ) echo "Configuration of libwebsockets 0.3:";;
1373    esac
1374   cat <<\_ACEOF
1375
1376 Optional Features:
1377   --disable-option-checking  ignore unrecognized --enable/--with options
1378   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1379   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1380   --enable-shared[=PKGS]  build shared libraries [default=yes]
1381   --enable-static[=PKGS]  build static libraries [default=yes]
1382   --enable-fast-install[=PKGS]
1383                           optimize for fast installation [default=yes]
1384   --disable-dependency-tracking  speeds up one-time build
1385   --enable-dependency-tracking   do not reject slow dependency extractors
1386   --disable-libtool-lock  avoid locking (might break parallel builds)
1387   --enable-openssl  Enables https support and needs openssl libs
1388   --enable-nofork  Disables fork-related options
1389   --enable-libcrypto  Use libcrypto MD5 and SHA1 implementations
1390   --enable-x-google-mux  Build experimental x-google-mux
1391   --enable-noping  Do not build ping test app, which has some unixy stuff in sources
1392
1393 Optional Packages:
1394   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1395   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1396   --with-pic              try to use only PIC/non-PIC objects [default=use
1397                           both]
1398   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1399   --with-sysroot=DIR Search for dependent libraries within DIR
1400                         (or the compiler's sysroot if not specified).
1401   --with-client-cert-dir  directory containing client certs, defaults to
1402                           /etc/pki/tls/certs/
1403
1404 Some influential environment variables:
1405   CC          C compiler command
1406   CFLAGS      C compiler flags
1407   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1408               nonstandard directory <lib dir>
1409   LIBS        libraries to pass to the linker, e.g. -l<library>
1410   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1411               you have headers in a nonstandard directory <include dir>
1412   CPP         C preprocessor
1413
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1416
1417 Report bugs to <andy@warmcat.com>.
1418 _ACEOF
1419 ac_status=$?
1420 fi
1421
1422 if test "$ac_init_help" = "recursive"; then
1423   # If there are subdirs, report their specific --help.
1424   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425     test -d "$ac_dir" ||
1426       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427       continue
1428     ac_builddir=.
1429
1430 case "$ac_dir" in
1431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 *)
1433   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434   # A ".." for each directory in $ac_dir_suffix.
1435   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436   case $ac_top_builddir_sub in
1437   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439   esac ;;
1440 esac
1441 ac_abs_top_builddir=$ac_pwd
1442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir=$ac_top_build_prefix
1445
1446 case $srcdir in
1447   .)  # We are building in place.
1448     ac_srcdir=.
1449     ac_top_srcdir=$ac_top_builddir_sub
1450     ac_abs_top_srcdir=$ac_pwd ;;
1451   [\\/]* | ?:[\\/]* )  # Absolute name.
1452     ac_srcdir=$srcdir$ac_dir_suffix;
1453     ac_top_srcdir=$srcdir
1454     ac_abs_top_srcdir=$srcdir ;;
1455   *) # Relative name.
1456     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457     ac_top_srcdir=$ac_top_build_prefix$srcdir
1458     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459 esac
1460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461
1462     cd "$ac_dir" || { ac_status=$?; continue; }
1463     # Check for guested configure.
1464     if test -f "$ac_srcdir/configure.gnu"; then
1465       echo &&
1466       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467     elif test -f "$ac_srcdir/configure"; then
1468       echo &&
1469       $SHELL "$ac_srcdir/configure" --help=recursive
1470     else
1471       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472     fi || ac_status=$?
1473     cd "$ac_pwd" || { ac_status=$?; break; }
1474   done
1475 fi
1476
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1479   cat <<\_ACEOF
1480 libwebsockets configure 0.3
1481 generated by GNU Autoconf 2.68
1482
1483 Copyright (C) 2010 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1486 _ACEOF
1487   exit
1488 fi
1489
1490 ## ------------------------ ##
1491 ## Autoconf initialization. ##
1492 ## ------------------------ ##
1493
1494 # ac_fn_c_try_compile LINENO
1495 # --------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_c_try_compile ()
1498 {
1499   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500   rm -f conftest.$ac_objext
1501   if { { ac_try="$ac_compile"
1502 case "(($ac_try" in
1503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504   *) ac_try_echo=$ac_try;;
1505 esac
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508   (eval "$ac_compile") 2>conftest.err
1509   ac_status=$?
1510   if test -s conftest.err; then
1511     grep -v '^ *+' conftest.err >conftest.er1
1512     cat conftest.er1 >&5
1513     mv -f conftest.er1 conftest.err
1514   fi
1515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516   test $ac_status = 0; } && {
1517          test -z "$ac_c_werror_flag" ||
1518          test ! -s conftest.err
1519        } && test -s conftest.$ac_objext; then :
1520   ac_retval=0
1521 else
1522   $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1524
1525         ac_retval=1
1526 fi
1527   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1528   as_fn_set_status $ac_retval
1529
1530 } # ac_fn_c_try_compile
1531
1532 # ac_fn_c_try_link LINENO
1533 # -----------------------
1534 # Try to link conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_link ()
1536 {
1537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538   rm -f conftest.$ac_objext conftest$ac_exeext
1539   if { { ac_try="$ac_link"
1540 case "(($ac_try" in
1541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542   *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546   (eval "$ac_link") 2>conftest.err
1547   ac_status=$?
1548   if test -s conftest.err; then
1549     grep -v '^ *+' conftest.err >conftest.er1
1550     cat conftest.er1 >&5
1551     mv -f conftest.er1 conftest.err
1552   fi
1553   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554   test $ac_status = 0; } && {
1555          test -z "$ac_c_werror_flag" ||
1556          test ! -s conftest.err
1557        } && test -s conftest$ac_exeext && {
1558          test "$cross_compiling" = yes ||
1559          $as_test_x conftest$ac_exeext
1560        }; then :
1561   ac_retval=0
1562 else
1563   $as_echo "$as_me: failed program was:" >&5
1564 sed 's/^/| /' conftest.$ac_ext >&5
1565
1566         ac_retval=1
1567 fi
1568   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1569   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1570   # interfere with the next link command; also delete a directory that is
1571   # left behind by Apple's compiler.  We do this before executing the actions.
1572   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1573   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574   as_fn_set_status $ac_retval
1575
1576 } # ac_fn_c_try_link
1577
1578 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1579 # -------------------------------------------------------
1580 # Tests whether HEADER exists and can be compiled using the include files in
1581 # INCLUDES, setting the cache variable VAR accordingly.
1582 ac_fn_c_check_header_compile ()
1583 {
1584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if eval \${$3+:} false; then :
1588   $as_echo_n "(cached) " >&6
1589 else
1590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h.  */
1592 $4
1593 #include <$2>
1594 _ACEOF
1595 if ac_fn_c_try_compile "$LINENO"; then :
1596   eval "$3=yes"
1597 else
1598   eval "$3=no"
1599 fi
1600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1601 fi
1602 eval ac_res=\$$3
1603                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 $as_echo "$ac_res" >&6; }
1605   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606
1607 } # ac_fn_c_check_header_compile
1608
1609 # ac_fn_c_try_cpp LINENO
1610 # ----------------------
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_cpp ()
1613 {
1614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615   if { { ac_try="$ac_cpp conftest.$ac_ext"
1616 case "(($ac_try" in
1617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618   *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1623   ac_status=$?
1624   if test -s conftest.err; then
1625     grep -v '^ *+' conftest.err >conftest.er1
1626     cat conftest.er1 >&5
1627     mv -f conftest.er1 conftest.err
1628   fi
1629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630   test $ac_status = 0; } > conftest.i && {
1631          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632          test ! -s conftest.err
1633        }; then :
1634   ac_retval=0
1635 else
1636   $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639     ac_retval=1
1640 fi
1641   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1642   as_fn_set_status $ac_retval
1643
1644 } # ac_fn_c_try_cpp
1645
1646 # ac_fn_c_try_run LINENO
1647 # ----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649 # that executables *can* be run.
1650 ac_fn_c_try_run ()
1651 {
1652   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653   if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656   *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660   (eval "$ac_link") 2>&5
1661   ac_status=$?
1662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1664   { { case "(($ac_try" in
1665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666   *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670   (eval "$ac_try") 2>&5
1671   ac_status=$?
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; }; }; then :
1674   ac_retval=0
1675 else
1676   $as_echo "$as_me: program exited with status $ac_status" >&5
1677        $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680        ac_retval=$ac_status
1681 fi
1682   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_run
1687
1688 # ac_fn_c_check_func LINENO FUNC VAR
1689 # ----------------------------------
1690 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1691 ac_fn_c_check_func ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if eval \${$3+:} false; then :
1697   $as_echo_n "(cached) " >&6
1698 else
1699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h.  */
1701 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1703 #define $2 innocuous_$2
1704
1705 /* System header to define __stub macros and hopefully few prototypes,
1706     which can conflict with char $2 (); below.
1707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1708     <limits.h> exists even on freestanding compilers.  */
1709
1710 #ifdef __STDC__
1711 # include <limits.h>
1712 #else
1713 # include <assert.h>
1714 #endif
1715
1716 #undef $2
1717
1718 /* Override any GCC internal prototype to avoid an error.
1719    Use char because int might match the return type of a GCC
1720    builtin and then its argument prototype would still apply.  */
1721 #ifdef __cplusplus
1722 extern "C"
1723 #endif
1724 char $2 ();
1725 /* The GNU C library defines this for functions which it implements
1726     to always fail with ENOSYS.  Some functions are actually named
1727     something starting with __ and the normal name is an alias.  */
1728 #if defined __stub_$2 || defined __stub___$2
1729 choke me
1730 #endif
1731
1732 int
1733 main ()
1734 {
1735 return $2 ();
1736   ;
1737   return 0;
1738 }
1739 _ACEOF
1740 if ac_fn_c_try_link "$LINENO"; then :
1741   eval "$3=yes"
1742 else
1743   eval "$3=no"
1744 fi
1745 rm -f core conftest.err conftest.$ac_objext \
1746     conftest$ac_exeext conftest.$ac_ext
1747 fi
1748 eval ac_res=\$$3
1749                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1750 $as_echo "$ac_res" >&6; }
1751   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752
1753 } # ac_fn_c_check_func
1754
1755 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1756 # -------------------------------------------
1757 # Tests whether TYPE exists after having included INCLUDES, setting cache
1758 # variable VAR accordingly.
1759 ac_fn_c_check_type ()
1760 {
1761   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if eval \${$3+:} false; then :
1765   $as_echo_n "(cached) " >&6
1766 else
1767   eval "$3=no"
1768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h.  */
1770 $4
1771 int
1772 main ()
1773 {
1774 if (sizeof ($2))
1775          return 0;
1776   ;
1777   return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h.  */
1783 $4
1784 int
1785 main ()
1786 {
1787 if (sizeof (($2)))
1788             return 0;
1789   ;
1790   return 0;
1791 }
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794
1795 else
1796   eval "$3=yes"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_type
1808
1809 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1812 # the include files in INCLUDES and setting the cache variable VAR
1813 # accordingly.
1814 ac_fn_c_check_header_mongrel ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   if eval \${$3+:} false; then :
1818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821   $as_echo_n "(cached) " >&6
1822 fi
1823 eval ac_res=\$$3
1824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 else
1827   # Is the header compilable?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1829 $as_echo_n "checking $2 usability... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h.  */
1832 $4
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836   ac_header_compiler=yes
1837 else
1838   ac_header_compiler=no
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1842 $as_echo "$ac_header_compiler" >&6; }
1843
1844 # Is the header present?
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1846 $as_echo_n "checking $2 presence... " >&6; }
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h.  */
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_cpp "$LINENO"; then :
1852   ac_header_preproc=yes
1853 else
1854   ac_header_preproc=no
1855 fi
1856 rm -f conftest.err conftest.i conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1858 $as_echo "$ac_header_preproc" >&6; }
1859
1860 # So?  What about this header?
1861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1862   yes:no: )
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1864 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867     ;;
1868   no:yes:* )
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1870 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1872 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1874 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1876 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879 ( $as_echo "## ------------------------------- ##
1880 ## Report this to andy@warmcat.com ##
1881 ## ------------------------------- ##"
1882      ) | sed "s/^/$as_me: WARNING:     /" >&2
1883     ;;
1884 esac
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   eval "$3=\$ac_header_compiler"
1891 fi
1892 eval ac_res=\$$3
1893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897
1898 } # ac_fn_c_check_header_mongrel
1899 cat >config.log <<_ACEOF
1900 This file contains any messages produced by compilers while
1901 running configure, to aid debugging if configure makes a mistake.
1902
1903 It was created by libwebsockets $as_me 0.3, which was
1904 generated by GNU Autoconf 2.68.  Invocation command line was
1905
1906   $ $0 $@
1907
1908 _ACEOF
1909 exec 5>>config.log
1910 {
1911 cat <<_ASUNAME
1912 ## --------- ##
1913 ## Platform. ##
1914 ## --------- ##
1915
1916 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1917 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1918 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1919 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1920 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1921
1922 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1923 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1924
1925 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1926 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1927 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1928 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1929 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1930 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1931 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1932
1933 _ASUNAME
1934
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940     $as_echo "PATH: $as_dir"
1941   done
1942 IFS=$as_save_IFS
1943
1944 } >&5
1945
1946 cat >&5 <<_ACEOF
1947
1948
1949 ## ----------- ##
1950 ## Core tests. ##
1951 ## ----------- ##
1952
1953 _ACEOF
1954
1955
1956 # Keep a trace of the command line.
1957 # Strip out --no-create and --no-recursion so they do not pile up.
1958 # Strip out --silent because we don't want to record it for future runs.
1959 # Also quote any args containing shell meta-characters.
1960 # Make two passes to allow for proper duplicate-argument suppression.
1961 ac_configure_args=
1962 ac_configure_args0=
1963 ac_configure_args1=
1964 ac_must_keep_next=false
1965 for ac_pass in 1 2
1966 do
1967   for ac_arg
1968   do
1969     case $ac_arg in
1970     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1971     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1972     | -silent | --silent | --silen | --sile | --sil)
1973       continue ;;
1974     *\'*)
1975       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1976     esac
1977     case $ac_pass in
1978     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1979     2)
1980       as_fn_append ac_configure_args1 " '$ac_arg'"
1981       if test $ac_must_keep_next = true; then
1982         ac_must_keep_next=false # Got value, back to normal.
1983       else
1984         case $ac_arg in
1985           *=* | --config-cache | -C | -disable-* | --disable-* \
1986           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1987           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1988           | -with-* | --with-* | -without-* | --without-* | --x)
1989             case "$ac_configure_args0 " in
1990               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1991             esac
1992             ;;
1993           -* ) ac_must_keep_next=true ;;
1994         esac
1995       fi
1996       as_fn_append ac_configure_args " '$ac_arg'"
1997       ;;
1998     esac
1999   done
2000 done
2001 { ac_configure_args0=; unset ac_configure_args0;}
2002 { ac_configure_args1=; unset ac_configure_args1;}
2003
2004 # When interrupted or exit'd, cleanup temporary files, and complete
2005 # config.log.  We remove comments because anyway the quotes in there
2006 # would cause problems or look ugly.
2007 # WARNING: Use '\'' to represent an apostrophe within the trap.
2008 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2009 trap 'exit_status=$?
2010   # Save into config.log some information that might help in debugging.
2011   {
2012     echo
2013
2014     $as_echo "## ---------------- ##
2015 ## Cache variables. ##
2016 ## ---------------- ##"
2017     echo
2018     # The following way of writing the cache mishandles newlines in values,
2019 (
2020   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2021     eval ac_val=\$$ac_var
2022     case $ac_val in #(
2023     *${as_nl}*)
2024       case $ac_var in #(
2025       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2026 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2027       esac
2028       case $ac_var in #(
2029       _ | IFS | as_nl) ;; #(
2030       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2031       *) { eval $ac_var=; unset $ac_var;} ;;
2032       esac ;;
2033     esac
2034   done
2035   (set) 2>&1 |
2036     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2037     *${as_nl}ac_space=\ *)
2038       sed -n \
2039         "s/'\''/'\''\\\\'\'''\''/g;
2040           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2041       ;; #(
2042     *)
2043       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2044       ;;
2045     esac |
2046     sort
2047 )
2048     echo
2049
2050     $as_echo "## ----------------- ##
2051 ## Output variables. ##
2052 ## ----------------- ##"
2053     echo
2054     for ac_var in $ac_subst_vars
2055     do
2056       eval ac_val=\$$ac_var
2057       case $ac_val in
2058       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2059       esac
2060       $as_echo "$ac_var='\''$ac_val'\''"
2061     done | sort
2062     echo
2063
2064     if test -n "$ac_subst_files"; then
2065       $as_echo "## ------------------- ##
2066 ## File substitutions. ##
2067 ## ------------------- ##"
2068       echo
2069       for ac_var in $ac_subst_files
2070       do
2071         eval ac_val=\$$ac_var
2072         case $ac_val in
2073         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2074         esac
2075         $as_echo "$ac_var='\''$ac_val'\''"
2076       done | sort
2077       echo
2078     fi
2079
2080     if test -s confdefs.h; then
2081       $as_echo "## ----------- ##
2082 ## confdefs.h. ##
2083 ## ----------- ##"
2084       echo
2085       cat confdefs.h
2086       echo
2087     fi
2088     test "$ac_signal" != 0 &&
2089       $as_echo "$as_me: caught signal $ac_signal"
2090     $as_echo "$as_me: exit $exit_status"
2091   } >&5
2092   rm -f core *.core core.conftest.* &&
2093     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2094     exit $exit_status
2095 ' 0
2096 for ac_signal in 1 2 13 15; do
2097   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098 done
2099 ac_signal=0
2100
2101 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2102 rm -f -r conftest* confdefs.h
2103
2104 $as_echo "/* confdefs.h */" > confdefs.h
2105
2106 # Predefined preprocessor variables.
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_NAME "$PACKAGE_NAME"
2110 _ACEOF
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_STRING "$PACKAGE_STRING"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_URL "$PACKAGE_URL"
2130 _ACEOF
2131
2132
2133 # Let the site file select an alternate cache file if it wants to.
2134 # Prefer an explicitly selected file to automatically selected ones.
2135 ac_site_file1=NONE
2136 ac_site_file2=NONE
2137 if test -n "$CONFIG_SITE"; then
2138   # We do not want a PATH search for config.site.
2139   case $CONFIG_SITE in #((
2140     -*)  ac_site_file1=./$CONFIG_SITE;;
2141     */*) ac_site_file1=$CONFIG_SITE;;
2142     *)   ac_site_file1=./$CONFIG_SITE;;
2143   esac
2144 elif test "x$prefix" != xNONE; then
2145   ac_site_file1=$prefix/share/config.site
2146   ac_site_file2=$prefix/etc/config.site
2147 else
2148   ac_site_file1=$ac_default_prefix/share/config.site
2149   ac_site_file2=$ac_default_prefix/etc/config.site
2150 fi
2151 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2152 do
2153   test "x$ac_site_file" = xNONE && continue
2154   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2156 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2157     sed 's/^/| /' "$ac_site_file" >&5
2158     . "$ac_site_file" \
2159       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2161 as_fn_error $? "failed to load site script $ac_site_file
2162 See \`config.log' for more details" "$LINENO" 5; }
2163   fi
2164 done
2165
2166 if test -r "$cache_file"; then
2167   # Some versions of bash will fail to source /dev/null (special files
2168   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2169   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2170     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2171 $as_echo "$as_me: loading cache $cache_file" >&6;}
2172     case $cache_file in
2173       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2174       *)                      . "./$cache_file";;
2175     esac
2176   fi
2177 else
2178   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2179 $as_echo "$as_me: creating cache $cache_file" >&6;}
2180   >$cache_file
2181 fi
2182
2183 # Check that the precious variables saved in the cache have kept the same
2184 # value.
2185 ac_cache_corrupted=false
2186 for ac_var in $ac_precious_vars; do
2187   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2188   eval ac_new_set=\$ac_env_${ac_var}_set
2189   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2190   eval ac_new_val=\$ac_env_${ac_var}_value
2191   case $ac_old_set,$ac_new_set in
2192     set,)
2193       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2194 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2195       ac_cache_corrupted=: ;;
2196     ,set)
2197       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2199       ac_cache_corrupted=: ;;
2200     ,);;
2201     *)
2202       if test "x$ac_old_val" != "x$ac_new_val"; then
2203         # differences in whitespace do not lead to failure.
2204         ac_old_val_w=`echo x $ac_old_val`
2205         ac_new_val_w=`echo x $ac_new_val`
2206         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2207           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2208 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2209           ac_cache_corrupted=:
2210         else
2211           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2212 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2213           eval $ac_var=\$ac_old_val
2214         fi
2215         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2216 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2217         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2218 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2219       fi;;
2220   esac
2221   # Pass precious variables to config.status.
2222   if test "$ac_new_set" = set; then
2223     case $ac_new_val in
2224     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2225     *) ac_arg=$ac_var=$ac_new_val ;;
2226     esac
2227     case " $ac_configure_args " in
2228       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2229       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2230     esac
2231   fi
2232 done
2233 if $ac_cache_corrupted; then
2234   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2236   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2237 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2238   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2239 fi
2240 ## -------------------- ##
2241 ## Main body of script. ##
2242 ## -------------------- ##
2243
2244 ac_ext=c
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249
2250
2251
2252 ac_config_headers="$ac_config_headers config.h"
2253
2254
2255 am__api_version='1.11'
2256
2257 ac_aux_dir=
2258 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2259   if test -f "$ac_dir/install-sh"; then
2260     ac_aux_dir=$ac_dir
2261     ac_install_sh="$ac_aux_dir/install-sh -c"
2262     break
2263   elif test -f "$ac_dir/install.sh"; then
2264     ac_aux_dir=$ac_dir
2265     ac_install_sh="$ac_aux_dir/install.sh -c"
2266     break
2267   elif test -f "$ac_dir/shtool"; then
2268     ac_aux_dir=$ac_dir
2269     ac_install_sh="$ac_aux_dir/shtool install -c"
2270     break
2271   fi
2272 done
2273 if test -z "$ac_aux_dir"; then
2274   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2275 fi
2276
2277 # These three variables are undocumented and unsupported,
2278 # and are intended to be withdrawn in a future Autoconf release.
2279 # They can cause serious problems if a builder's source tree is in a directory
2280 # whose full name contains unusual characters.
2281 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2282 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2283 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2284
2285
2286 # Find a good install program.  We prefer a C program (faster),
2287 # so one script is as good as another.  But avoid the broken or
2288 # incompatible versions:
2289 # SysV /etc/install, /usr/sbin/install
2290 # SunOS /usr/etc/install
2291 # IRIX /sbin/install
2292 # AIX /bin/install
2293 # AmigaOS /C/install, which installs bootblocks on floppy discs
2294 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2295 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2296 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2297 # OS/2's system install, which has a completely different semantic
2298 # ./install, which can be erroneously created by make from ./install.sh.
2299 # Reject install programs that cannot install multiple files.
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2301 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2302 if test -z "$INSTALL"; then
2303 if ${ac_cv_path_install+:} false; then :
2304   $as_echo_n "(cached) " >&6
2305 else
2306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 for as_dir in $PATH
2308 do
2309   IFS=$as_save_IFS
2310   test -z "$as_dir" && as_dir=.
2311     # Account for people who put trailing slashes in PATH elements.
2312 case $as_dir/ in #((
2313   ./ | .// | /[cC]/* | \
2314   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2315   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2316   /usr/ucb/* ) ;;
2317   *)
2318     # OSF1 and SCO ODT 3.0 have their own names for install.
2319     # Don't use installbsd from OSF since it installs stuff as root
2320     # by default.
2321     for ac_prog in ginstall scoinst install; do
2322       for ac_exec_ext in '' $ac_executable_extensions; do
2323         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2324           if test $ac_prog = install &&
2325             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2326             # AIX install.  It has an incompatible calling convention.
2327             :
2328           elif test $ac_prog = install &&
2329             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2330             # program-specific install script used by HP pwplus--don't use.
2331             :
2332           else
2333             rm -rf conftest.one conftest.two conftest.dir
2334             echo one > conftest.one
2335             echo two > conftest.two
2336             mkdir conftest.dir
2337             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2338               test -s conftest.one && test -s conftest.two &&
2339               test -s conftest.dir/conftest.one &&
2340               test -s conftest.dir/conftest.two
2341             then
2342               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2343               break 3
2344             fi
2345           fi
2346         fi
2347       done
2348     done
2349     ;;
2350 esac
2351
2352   done
2353 IFS=$as_save_IFS
2354
2355 rm -rf conftest.one conftest.two conftest.dir
2356
2357 fi
2358   if test "${ac_cv_path_install+set}" = set; then
2359     INSTALL=$ac_cv_path_install
2360   else
2361     # As a last resort, use the slow shell script.  Don't cache a
2362     # value for INSTALL within a source directory, because that will
2363     # break other packages using the cache if that directory is
2364     # removed, or if the value is a relative name.
2365     INSTALL=$ac_install_sh
2366   fi
2367 fi
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2369 $as_echo "$INSTALL" >&6; }
2370
2371 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2372 # It thinks the first close brace ends the variable substitution.
2373 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2374
2375 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2376
2377 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2378
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2380 $as_echo_n "checking whether build environment is sane... " >&6; }
2381 # Just in case
2382 sleep 1
2383 echo timestamp > conftest.file
2384 # Reject unsafe characters in $srcdir or the absolute working directory
2385 # name.  Accept space and tab only in the latter.
2386 am_lf='
2387 '
2388 case `pwd` in
2389   *[\\\"\#\$\&\'\`$am_lf]*)
2390     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2391 esac
2392 case $srcdir in
2393   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2394     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2395 esac
2396
2397 # Do `set' in a subshell so we don't clobber the current shell's
2398 # arguments.  Must try -L first in case configure is actually a
2399 # symlink; some systems play weird games with the mod time of symlinks
2400 # (eg FreeBSD returns the mod time of the symlink's containing
2401 # directory).
2402 if (
2403    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2404    if test "$*" = "X"; then
2405       # -L didn't work.
2406       set X `ls -t "$srcdir/configure" conftest.file`
2407    fi
2408    rm -f conftest.file
2409    if test "$*" != "X $srcdir/configure conftest.file" \
2410       && test "$*" != "X conftest.file $srcdir/configure"; then
2411
2412       # If neither matched, then we have a broken ls.  This can happen
2413       # if, for instance, CONFIG_SHELL is bash and it inherits a
2414       # broken ls alias from the environment.  This has actually
2415       # happened.  Such a system could not be considered "sane".
2416       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2417 alias in your environment" "$LINENO" 5
2418    fi
2419
2420    test "$2" = conftest.file
2421    )
2422 then
2423    # Ok.
2424    :
2425 else
2426    as_fn_error $? "newly created file is older than distributed files!
2427 Check your system clock" "$LINENO" 5
2428 fi
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2430 $as_echo "yes" >&6; }
2431 test "$program_prefix" != NONE &&
2432   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2433 # Use a double $ so make ignores it.
2434 test "$program_suffix" != NONE &&
2435   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436 # Double any \ or $.
2437 # By default was `s,x,x', remove it if useless.
2438 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2440
2441 # expand $ac_aux_dir to an absolute path
2442 am_aux_dir=`cd $ac_aux_dir && pwd`
2443
2444 if test x"${MISSING+set}" != xset; then
2445   case $am_aux_dir in
2446   *\ * | *\     *)
2447     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2448   *)
2449     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2450   esac
2451 fi
2452 # Use eval to expand $SHELL
2453 if eval "$MISSING --run true"; then
2454   am_missing_run="$MISSING --run "
2455 else
2456   am_missing_run=
2457   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2458 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2459 fi
2460
2461 if test x"${install_sh}" != xset; then
2462   case $am_aux_dir in
2463   *\ * | *\     *)
2464     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2465   *)
2466     install_sh="\${SHELL} $am_aux_dir/install-sh"
2467   esac
2468 fi
2469
2470 # Installed binaries are usually stripped using `strip' when the user
2471 # run `make install-strip'.  However `strip' might not be the right
2472 # tool to use in cross-compilation environments, therefore Automake
2473 # will honor the `STRIP' environment variable to overrule this program.
2474 if test "$cross_compiling" != no; then
2475   if test -n "$ac_tool_prefix"; then
2476   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2477 set dummy ${ac_tool_prefix}strip; ac_word=$2
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2479 $as_echo_n "checking for $ac_word... " >&6; }
2480 if ${ac_cv_prog_STRIP+:} false; then :
2481   $as_echo_n "(cached) " >&6
2482 else
2483   if test -n "$STRIP"; then
2484   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491     for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498   done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 STRIP=$ac_cv_prog_STRIP
2504 if test -n "$STRIP"; then
2505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2506 $as_echo "$STRIP" >&6; }
2507 else
2508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2509 $as_echo "no" >&6; }
2510 fi
2511
2512
2513 fi
2514 if test -z "$ac_cv_prog_STRIP"; then
2515   ac_ct_STRIP=$STRIP
2516   # Extract the first word of "strip", so it can be a program name with args.
2517 set dummy strip; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2521   $as_echo_n "(cached) " >&6
2522 else
2523   if test -n "$ac_ct_STRIP"; then
2524   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529   IFS=$as_save_IFS
2530   test -z "$as_dir" && as_dir=.
2531     for ac_exec_ext in '' $ac_executable_extensions; do
2532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533     ac_cv_prog_ac_ct_STRIP="strip"
2534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535     break 2
2536   fi
2537 done
2538   done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2544 if test -n "$ac_ct_STRIP"; then
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2546 $as_echo "$ac_ct_STRIP" >&6; }
2547 else
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2550 fi
2551
2552   if test "x$ac_ct_STRIP" = x; then
2553     STRIP=":"
2554   else
2555     case $cross_compiling:$ac_tool_warned in
2556 yes:)
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2559 ac_tool_warned=yes ;;
2560 esac
2561     STRIP=$ac_ct_STRIP
2562   fi
2563 else
2564   STRIP="$ac_cv_prog_STRIP"
2565 fi
2566
2567 fi
2568 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2571 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2572 if test -z "$MKDIR_P"; then
2573   if ${ac_cv_path_mkdir+:} false; then :
2574   $as_echo_n "(cached) " >&6
2575 else
2576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581     for ac_prog in mkdir gmkdir; do
2582          for ac_exec_ext in '' $ac_executable_extensions; do
2583            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2584            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2585              'mkdir (GNU coreutils) '* | \
2586              'mkdir (coreutils) '* | \
2587              'mkdir (fileutils) '4.1*)
2588                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2589                break 3;;
2590            esac
2591          done
2592        done
2593   done
2594 IFS=$as_save_IFS
2595
2596 fi
2597
2598   test -d ./--version && rmdir ./--version
2599   if test "${ac_cv_path_mkdir+set}" = set; then
2600     MKDIR_P="$ac_cv_path_mkdir -p"
2601   else
2602     # As a last resort, use the slow shell script.  Don't cache a
2603     # value for MKDIR_P within a source directory, because that will
2604     # break other packages using the cache if that directory is
2605     # removed, or if the value is a relative name.
2606     MKDIR_P="$ac_install_sh -d"
2607   fi
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2610 $as_echo "$MKDIR_P" >&6; }
2611
2612 mkdir_p="$MKDIR_P"
2613 case $mkdir_p in
2614   [\\/$]* | ?:[\\/]*) ;;
2615   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2616 esac
2617
2618 for ac_prog in gawk mawk nawk awk
2619 do
2620   # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if ${ac_cv_prog_AWK+:} false; then :
2625   $as_echo_n "(cached) " >&6
2626 else
2627   if test -n "$AWK"; then
2628   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635     for ac_exec_ext in '' $ac_executable_extensions; do
2636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637     ac_cv_prog_AWK="$ac_prog"
2638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642   done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 AWK=$ac_cv_prog_AWK
2648 if test -n "$AWK"; then
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2650 $as_echo "$AWK" >&6; }
2651 else
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 fi
2655
2656
2657   test -n "$AWK" && break
2658 done
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2661 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2662 set x ${MAKE-make}
2663 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2664 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2665   $as_echo_n "(cached) " >&6
2666 else
2667   cat >conftest.make <<\_ACEOF
2668 SHELL = /bin/sh
2669 all:
2670         @echo '@@@%%%=$(MAKE)=@@@%%%'
2671 _ACEOF
2672 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2673 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2674   *@@@%%%=?*=@@@%%%*)
2675     eval ac_cv_prog_make_${ac_make}_set=yes;;
2676   *)
2677     eval ac_cv_prog_make_${ac_make}_set=no;;
2678 esac
2679 rm -f conftest.make
2680 fi
2681 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2683 $as_echo "yes" >&6; }
2684   SET_MAKE=
2685 else
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2688   SET_MAKE="MAKE=${MAKE-make}"
2689 fi
2690
2691 rm -rf .tst 2>/dev/null
2692 mkdir .tst 2>/dev/null
2693 if test -d .tst; then
2694   am__leading_dot=.
2695 else
2696   am__leading_dot=_
2697 fi
2698 rmdir .tst 2>/dev/null
2699
2700 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2701   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2702   # is not polluted with repeated "-I."
2703   am__isrc=' -I$(srcdir)'
2704   # test to see if srcdir already configured
2705   if test -f $srcdir/config.status; then
2706     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2707   fi
2708 fi
2709
2710 # test whether we have cygpath
2711 if test -z "$CYGPATH_W"; then
2712   if (cygpath --version) >/dev/null 2>/dev/null; then
2713     CYGPATH_W='cygpath -w'
2714   else
2715     CYGPATH_W=echo
2716   fi
2717 fi
2718
2719
2720 # Define the identity of the package.
2721  PACKAGE='libwebsockets'
2722  VERSION='0.3'
2723
2724
2725 cat >>confdefs.h <<_ACEOF
2726 #define PACKAGE "$PACKAGE"
2727 _ACEOF
2728
2729
2730 cat >>confdefs.h <<_ACEOF
2731 #define VERSION "$VERSION"
2732 _ACEOF
2733
2734 # Some tools Automake needs.
2735
2736 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2737
2738
2739 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2740
2741
2742 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2743
2744
2745 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2746
2747
2748 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2749
2750 # We need awk for the "check" target.  The system "awk" is bad on
2751 # some platforms.
2752 # Always define AMTAR for backward compatibility.
2753
2754 AMTAR=${AMTAR-"${am_missing_run}tar"}
2755
2756 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2757
2758
2759
2760
2761
2762 case `pwd` in
2763   *\ * | *\     *)
2764     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2765 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2766 esac
2767
2768
2769
2770 macro_version='2.4'
2771 macro_revision='1.3293'
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785 ltmain="$ac_aux_dir/ltmain.sh"
2786
2787 # Make sure we can run config.sub.
2788 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2789   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2790
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2792 $as_echo_n "checking build system type... " >&6; }
2793 if ${ac_cv_build+:} false; then :
2794   $as_echo_n "(cached) " >&6
2795 else
2796   ac_build_alias=$build_alias
2797 test "x$ac_build_alias" = x &&
2798   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2799 test "x$ac_build_alias" = x &&
2800   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2802   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2803
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2806 $as_echo "$ac_cv_build" >&6; }
2807 case $ac_cv_build in
2808 *-*-*) ;;
2809 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2810 esac
2811 build=$ac_cv_build
2812 ac_save_IFS=$IFS; IFS='-'
2813 set x $ac_cv_build
2814 shift
2815 build_cpu=$1
2816 build_vendor=$2
2817 shift; shift
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2820 build_os=$*
2821 IFS=$ac_save_IFS
2822 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2823
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2826 $as_echo_n "checking host system type... " >&6; }
2827 if ${ac_cv_host+:} false; then :
2828   $as_echo_n "(cached) " >&6
2829 else
2830   if test "x$host_alias" = x; then
2831   ac_cv_host=$ac_cv_build
2832 else
2833   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2834     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2835 fi
2836
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2839 $as_echo "$ac_cv_host" >&6; }
2840 case $ac_cv_host in
2841 *-*-*) ;;
2842 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2843 esac
2844 host=$ac_cv_host
2845 ac_save_IFS=$IFS; IFS='-'
2846 set x $ac_cv_host
2847 shift
2848 host_cpu=$1
2849 host_vendor=$2
2850 shift; shift
2851 # Remember, the first character of IFS is used to create $*,
2852 # except with old shells:
2853 host_os=$*
2854 IFS=$ac_save_IFS
2855 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2856
2857
2858 # Backslashify metacharacters that are still active within
2859 # double-quoted strings.
2860 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2861
2862 # Same as above, but do not quote variable references.
2863 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2864
2865 # Sed substitution to delay expansion of an escaped shell variable in a
2866 # double_quote_subst'ed string.
2867 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2868
2869 # Sed substitution to delay expansion of an escaped single quote.
2870 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2871
2872 # Sed substitution to avoid accidental globbing in evaled expressions
2873 no_glob_subst='s/\*/\\\*/g'
2874
2875 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2876 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2877 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2878
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2880 $as_echo_n "checking how to print strings... " >&6; }
2881 # Test print first, because it will be a builtin if present.
2882 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2883    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2884   ECHO='print -r --'
2885 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2886   ECHO='printf %s\n'
2887 else
2888   # Use this function as a fallback that always works.
2889   func_fallback_echo ()
2890   {
2891     eval 'cat <<_LTECHO_EOF
2892 $1
2893 _LTECHO_EOF'
2894   }
2895   ECHO='func_fallback_echo'
2896 fi
2897
2898 # func_echo_all arg...
2899 # Invoke $ECHO with all args, space-separated.
2900 func_echo_all ()
2901 {
2902     $ECHO ""
2903 }
2904
2905 case "$ECHO" in
2906   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2907 $as_echo "printf" >&6; } ;;
2908   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2909 $as_echo "print -r" >&6; } ;;
2910   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2911 $as_echo "cat" >&6; } ;;
2912 esac
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927 DEPDIR="${am__leading_dot}deps"
2928
2929 ac_config_commands="$ac_config_commands depfiles"
2930
2931
2932 am_make=${MAKE-make}
2933 cat > confinc << 'END'
2934 am__doit:
2935         @echo this is the am__doit target
2936 .PHONY: am__doit
2937 END
2938 # If we don't find an include directive, just comment out the code.
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2940 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2941 am__include="#"
2942 am__quote=
2943 _am_result=none
2944 # First try GNU make style include.
2945 echo "include confinc" > confmf
2946 # Ignore all kinds of additional output from `make'.
2947 case `$am_make -s -f confmf 2> /dev/null` in #(
2948 *the\ am__doit\ target*)
2949   am__include=include
2950   am__quote=
2951   _am_result=GNU
2952   ;;
2953 esac
2954 # Now try BSD make style include.
2955 if test "$am__include" = "#"; then
2956    echo '.include "confinc"' > confmf
2957    case `$am_make -s -f confmf 2> /dev/null` in #(
2958    *the\ am__doit\ target*)
2959      am__include=.include
2960      am__quote="\""
2961      _am_result=BSD
2962      ;;
2963    esac
2964 fi
2965
2966
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2968 $as_echo "$_am_result" >&6; }
2969 rm -f confinc confmf
2970
2971 # Check whether --enable-dependency-tracking was given.
2972 if test "${enable_dependency_tracking+set}" = set; then :
2973   enableval=$enable_dependency_tracking;
2974 fi
2975
2976 if test "x$enable_dependency_tracking" != xno; then
2977   am_depcomp="$ac_aux_dir/depcomp"
2978   AMDEPBACKSLASH='\'
2979 fi
2980  if test "x$enable_dependency_tracking" != xno; then
2981   AMDEP_TRUE=
2982   AMDEP_FALSE='#'
2983 else
2984   AMDEP_TRUE='#'
2985   AMDEP_FALSE=
2986 fi
2987
2988
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 if test -n "$ac_tool_prefix"; then
2995   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   if test -n "$CC"; then
3003   ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010     for ac_exec_ext in '' $ac_executable_extensions; do
3011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017   done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 fi
3033 if test -z "$ac_cv_prog_CC"; then
3034   ac_ct_CC=$CC
3035   # Extract the first word of "gcc", so it can be a program name with args.
3036 set dummy gcc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3040   $as_echo_n "(cached) " >&6
3041 else
3042   if test -n "$ac_ct_CC"; then
3043   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050     for ac_exec_ext in '' $ac_executable_extensions; do
3051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052     ac_cv_prog_ac_ct_CC="gcc"
3053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057   done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3063 if test -n "$ac_ct_CC"; then
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3065 $as_echo "$ac_ct_CC" >&6; }
3066 else
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071   if test "x$ac_ct_CC" = x; then
3072     CC=""
3073   else
3074     case $cross_compiling:$ac_tool_warned in
3075 yes:)
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3078 ac_tool_warned=yes ;;
3079 esac
3080     CC=$ac_ct_CC
3081   fi
3082 else
3083   CC="$ac_cv_prog_CC"
3084 fi
3085
3086 if test -z "$CC"; then
3087           if test -n "$ac_tool_prefix"; then
3088     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3089 set dummy ${ac_tool_prefix}cc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_CC+:} false; then :
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$CC"; then
3096   ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103     for ac_exec_ext in '' $ac_executable_extensions; do
3104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105     ac_cv_prog_CC="${ac_tool_prefix}cc"
3106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110   done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125   fi
3126 fi
3127 if test -z "$CC"; then
3128   # Extract the first word of "cc", so it can be a program name with args.
3129 set dummy cc; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133   $as_echo_n "(cached) " >&6
3134 else
3135   if test -n "$CC"; then
3136   ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138   ac_prog_rejected=no
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3141 do
3142   IFS=$as_save_IFS
3143   test -z "$as_dir" && as_dir=.
3144     for ac_exec_ext in '' $ac_executable_extensions; do
3145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3147        ac_prog_rejected=yes
3148        continue
3149      fi
3150     ac_cv_prog_CC="cc"
3151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155   done
3156 IFS=$as_save_IFS
3157
3158 if test $ac_prog_rejected = yes; then
3159   # We found a bogon in the path, so make sure we never use it.
3160   set dummy $ac_cv_prog_CC
3161   shift
3162   if test $# != 0; then
3163     # We chose a different compiler from the bogus one.
3164     # However, it has the same basename, so the bogon will be chosen
3165     # first if we set CC to just the basename; use the full file name.
3166     shift
3167     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3168   fi
3169 fi
3170 fi
3171 fi
3172 CC=$ac_cv_prog_CC
3173 if test -n "$CC"; then
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3176 else
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3179 fi
3180
3181
3182 fi
3183 if test -z "$CC"; then
3184   if test -n "$ac_tool_prefix"; then
3185   for ac_prog in cl.exe
3186   do
3187     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190 $as_echo_n "checking for $ac_word... " >&6; }
3191 if ${ac_cv_prog_CC+:} false; then :
3192   $as_echo_n "(cached) " >&6
3193 else
3194   if test -n "$CC"; then
3195   ac_cv_prog_CC="$CC" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202     for ac_exec_ext in '' $ac_executable_extensions; do
3203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209   done
3210 IFS=$as_save_IFS
3211
3212 fi
3213 fi
3214 CC=$ac_cv_prog_CC
3215 if test -n "$CC"; then
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3217 $as_echo "$CC" >&6; }
3218 else
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224     test -n "$CC" && break
3225   done
3226 fi
3227 if test -z "$CC"; then
3228   ac_ct_CC=$CC
3229   for ac_prog in cl.exe
3230 do
3231   # Extract the first word of "$ac_prog", so it can be a program name with args.
3232 set dummy $ac_prog; ac_word=$2
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3234 $as_echo_n "checking for $ac_word... " >&6; }
3235 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3236   $as_echo_n "(cached) " >&6
3237 else
3238   if test -n "$ac_ct_CC"; then
3239   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240 else
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     for ac_exec_ext in '' $ac_executable_extensions; do
3247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3248     ac_cv_prog_ac_ct_CC="$ac_prog"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3255
3256 fi
3257 fi
3258 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3259 if test -n "$ac_ct_CC"; then
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3261 $as_echo "$ac_ct_CC" >&6; }
3262 else
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268   test -n "$ac_ct_CC" && break
3269 done
3270
3271   if test "x$ac_ct_CC" = x; then
3272     CC=""
3273   else
3274     case $cross_compiling:$ac_tool_warned in
3275 yes:)
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3278 ac_tool_warned=yes ;;
3279 esac
3280     CC=$ac_ct_CC
3281   fi
3282 fi
3283
3284 fi
3285
3286
3287 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "no acceptable C compiler found in \$PATH
3290 See \`config.log' for more details" "$LINENO" 5; }
3291
3292 # Provide some information about the compiler.
3293 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3294 set X $ac_compile
3295 ac_compiler=$2
3296 for ac_option in --version -v -V -qversion; do
3297   { { ac_try="$ac_compiler $ac_option >&5"
3298 case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3305   ac_status=$?
3306   if test -s conftest.err; then
3307     sed '10a\
3308 ... rest of stderr output deleted ...
3309          10q' conftest.err >conftest.er1
3310     cat conftest.er1 >&5
3311   fi
3312   rm -f conftest.er1 conftest.err
3313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314   test $ac_status = 0; }
3315 done
3316
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h.  */
3319
3320 int
3321 main ()
3322 {
3323
3324   ;
3325   return 0;
3326 }
3327 _ACEOF
3328 ac_clean_files_save=$ac_clean_files
3329 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3330 # Try to create an executable without -o first, disregard a.out.
3331 # It will help us diagnose broken compilers, and finding out an intuition
3332 # of exeext.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3334 $as_echo_n "checking whether the C compiler works... " >&6; }
3335 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3336
3337 # The possible output files:
3338 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3339
3340 ac_rmfiles=
3341 for ac_file in $ac_files
3342 do
3343   case $ac_file in
3344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3345     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3346   esac
3347 done
3348 rm -f $ac_rmfiles
3349
3350 if { { ac_try="$ac_link_default"
3351 case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357   (eval "$ac_link_default") 2>&5
3358   ac_status=$?
3359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360   test $ac_status = 0; }; then :
3361   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3362 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3363 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3364 # so that the user can short-circuit this test for compilers unknown to
3365 # Autoconf.
3366 for ac_file in $ac_files ''
3367 do
3368   test -f "$ac_file" || continue
3369   case $ac_file in
3370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3371         ;;
3372     [ab].out )
3373         # We found the default executable, but exeext='' is most
3374         # certainly right.
3375         break;;
3376     *.* )
3377         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3378         then :; else
3379            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3380         fi
3381         # We set ac_cv_exeext here because the later test for it is not
3382         # safe: cross compilers may not add the suffix if given an `-o'
3383         # argument, so we may need to know it at that point already.
3384         # Even if this section looks crufty: it has the advantage of
3385         # actually working.
3386         break;;
3387     * )
3388         break;;
3389   esac
3390 done
3391 test "$ac_cv_exeext" = no && ac_cv_exeext=
3392
3393 else
3394   ac_file=''
3395 fi
3396 if test -z "$ac_file"; then :
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 $as_echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3401
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error 77 "C compiler cannot create executables
3405 See \`config.log' for more details" "$LINENO" 5; }
3406 else
3407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3411 $as_echo_n "checking for C compiler default output file name... " >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3413 $as_echo "$ac_file" >&6; }
3414 ac_exeext=$ac_cv_exeext
3415
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3419 $as_echo_n "checking for suffix of executables... " >&6; }
3420 if { { ac_try="$ac_link"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427   (eval "$ac_link") 2>&5
3428   ac_status=$?
3429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430   test $ac_status = 0; }; then :
3431   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3432 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3433 # work properly (i.e., refer to `conftest.exe'), while it won't with
3434 # `rm'.
3435 for ac_file in conftest.exe conftest conftest.*; do
3436   test -f "$ac_file" || continue
3437   case $ac_file in
3438     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3439     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3440           break;;
3441     * ) break;;
3442   esac
3443 done
3444 else
3445   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3447 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details" "$LINENO" 5; }
3449 fi
3450 rm -f conftest conftest$ac_cv_exeext
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3452 $as_echo "$ac_cv_exeext" >&6; }
3453
3454 rm -f conftest.$ac_ext
3455 EXEEXT=$ac_cv_exeext
3456 ac_exeext=$EXEEXT
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h.  */
3459 #include <stdio.h>
3460 int
3461 main ()
3462 {
3463 FILE *f = fopen ("conftest.out", "w");
3464  return ferror (f) || fclose (f) != 0;
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 ac_clean_files="$ac_clean_files conftest.out"
3471 # Check that the compiler produces executables we can run.  If not, either
3472 # the compiler is broken, or we cross compile.
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3474 $as_echo_n "checking whether we are cross compiling... " >&6; }
3475 if test "$cross_compiling" != yes; then
3476   { { ac_try="$ac_link"
3477 case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483   (eval "$ac_link") 2>&5
3484   ac_status=$?
3485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486   test $ac_status = 0; }
3487   if { ac_try='./conftest$ac_cv_exeext'
3488   { { case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494   (eval "$ac_try") 2>&5
3495   ac_status=$?
3496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497   test $ac_status = 0; }; }; then
3498     cross_compiling=no
3499   else
3500     if test "$cross_compiling" = maybe; then
3501         cross_compiling=yes
3502     else
3503         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3505 as_fn_error $? "cannot run C compiled programs.
3506 If you meant to cross compile, use \`--host'.
3507 See \`config.log' for more details" "$LINENO" 5; }
3508     fi
3509   fi
3510 fi
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3512 $as_echo "$cross_compiling" >&6; }
3513
3514 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3517 $as_echo_n "checking for suffix of object files... " >&6; }
3518 if ${ac_cv_objext+:} false; then :
3519   $as_echo_n "(cached) " >&6
3520 else
3521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h.  */
3523
3524 int
3525 main ()
3526 {
3527
3528   ;
3529   return 0;
3530 }
3531 _ACEOF
3532 rm -f conftest.o conftest.obj
3533 if { { ac_try="$ac_compile"
3534 case "(($ac_try" in
3535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536   *) ac_try_echo=$ac_try;;
3537 esac
3538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539 $as_echo "$ac_try_echo"; } >&5
3540   (eval "$ac_compile") 2>&5
3541   ac_status=$?
3542   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543   test $ac_status = 0; }; then :
3544   for ac_file in conftest.o conftest.obj conftest.*; do
3545   test -f "$ac_file" || continue;
3546   case $ac_file in
3547     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3548     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3549        break;;
3550   esac
3551 done
3552 else
3553   $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot compute suffix of object files: cannot compile
3559 See \`config.log' for more details" "$LINENO" 5; }
3560 fi
3561 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3564 $as_echo "$ac_cv_objext" >&6; }
3565 OBJEXT=$ac_cv_objext
3566 ac_objext=$OBJEXT
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3568 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3569 if ${ac_cv_c_compiler_gnu+:} false; then :
3570   $as_echo_n "(cached) " >&6
3571 else
3572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h.  */
3574
3575 int
3576 main ()
3577 {
3578 #ifndef __GNUC__
3579        choke me
3580 #endif
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587   ac_compiler_gnu=yes
3588 else
3589   ac_compiler_gnu=no
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3593
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3596 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3597 if test $ac_compiler_gnu = yes; then
3598   GCC=yes
3599 else
3600   GCC=
3601 fi
3602 ac_test_CFLAGS=${CFLAGS+set}
3603 ac_save_CFLAGS=$CFLAGS
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3605 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3606 if ${ac_cv_prog_cc_g+:} false; then :
3607   $as_echo_n "(cached) " >&6
3608 else
3609   ac_save_c_werror_flag=$ac_c_werror_flag
3610    ac_c_werror_flag=yes
3611    ac_cv_prog_cc_g=no
3612    CFLAGS="-g"
3613    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615
3616 int
3617 main ()
3618 {
3619
3620   ;
3621   return 0;
3622 }
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625   ac_cv_prog_cc_g=yes
3626 else
3627   CFLAGS=""
3628       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h.  */
3630
3631 int
3632 main ()
3633 {
3634
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640
3641 else
3642   ac_c_werror_flag=$ac_save_c_werror_flag
3643          CFLAGS="-g"
3644          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h.  */
3646
3647 int
3648 main ()
3649 {
3650
3651   ;
3652   return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656   ac_cv_prog_cc_g=yes
3657 fi
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 fi
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3663    ac_c_werror_flag=$ac_save_c_werror_flag
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3666 $as_echo "$ac_cv_prog_cc_g" >&6; }
3667 if test "$ac_test_CFLAGS" = set; then
3668   CFLAGS=$ac_save_CFLAGS
3669 elif test $ac_cv_prog_cc_g = yes; then
3670   if test "$GCC" = yes; then
3671     CFLAGS="-g -O2"
3672   else
3673     CFLAGS="-g"
3674   fi
3675 else
3676   if test "$GCC" = yes; then
3677     CFLAGS="-O2"
3678   else
3679     CFLAGS=
3680   fi
3681 fi
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3683 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3684 if ${ac_cv_prog_cc_c89+:} false; then :
3685   $as_echo_n "(cached) " >&6
3686 else
3687   ac_cv_prog_cc_c89=no
3688 ac_save_CC=$CC
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h.  */
3691 #include <stdarg.h>
3692 #include <stdio.h>
3693 #include <sys/types.h>
3694 #include <sys/stat.h>
3695 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3696 struct buf { int x; };
3697 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3698 static char *e (p, i)
3699      char **p;
3700      int i;
3701 {
3702   return p[i];
3703 }
3704 static char *f (char * (*g) (char **, int), char **p, ...)
3705 {
3706   char *s;
3707   va_list v;
3708   va_start (v,p);
3709   s = g (p, va_arg (v,int));
3710   va_end (v);
3711   return s;
3712 }
3713
3714 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3715    function prototypes and stuff, but not '\xHH' hex character constants.
3716    These don't provoke an error unfortunately, instead are silently treated
3717    as 'x'.  The following induces an error, until -std is added to get
3718    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3719    array size at least.  It's necessary to write '\x00'==0 to get something
3720    that's true only with -std.  */
3721 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3722
3723 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3724    inside strings and character constants.  */
3725 #define FOO(x) 'x'
3726 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3727
3728 int test (int i, double x);
3729 struct s1 {int (*f) (int a);};
3730 struct s2 {int (*f) (double a);};
3731 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3732 int argc;
3733 char **argv;
3734 int
3735 main ()
3736 {
3737 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3743         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3744 do
3745   CC="$ac_save_CC $ac_arg"
3746   if ac_fn_c_try_compile "$LINENO"; then :
3747   ac_cv_prog_cc_c89=$ac_arg
3748 fi
3749 rm -f core conftest.err conftest.$ac_objext
3750   test "x$ac_cv_prog_cc_c89" != "xno" && break
3751 done
3752 rm -f conftest.$ac_ext
3753 CC=$ac_save_CC
3754
3755 fi
3756 # AC_CACHE_VAL
3757 case "x$ac_cv_prog_cc_c89" in
3758   x)
3759     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760 $as_echo "none needed" >&6; } ;;
3761   xno)
3762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3763 $as_echo "unsupported" >&6; } ;;
3764   *)
3765     CC="$CC $ac_cv_prog_cc_c89"
3766     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3767 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3768 esac
3769 if test "x$ac_cv_prog_cc_c89" != xno; then :
3770
3771 fi
3772
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779 depcc="$CC"   am_compiler_list=
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3782 $as_echo_n "checking dependency style of $depcc... " >&6; }
3783 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3784   $as_echo_n "(cached) " >&6
3785 else
3786   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3787   # We make a subdir and do the tests there.  Otherwise we can end up
3788   # making bogus files that we don't know about and never remove.  For
3789   # instance it was reported that on HP-UX the gcc test will end up
3790   # making a dummy file named `D' -- because `-MD' means `put the output
3791   # in D'.
3792   mkdir conftest.dir
3793   # Copy depcomp to subdir because otherwise we won't find it if we're
3794   # using a relative directory.
3795   cp "$am_depcomp" conftest.dir
3796   cd conftest.dir
3797   # We will build objects and dependencies in a subdirectory because
3798   # it helps to detect inapplicable dependency modes.  For instance
3799   # both Tru64's cc and ICC support -MD to output dependencies as a
3800   # side effect of compilation, but ICC will put the dependencies in
3801   # the current directory while Tru64 will put them in the object
3802   # directory.
3803   mkdir sub
3804
3805   am_cv_CC_dependencies_compiler_type=none
3806   if test "$am_compiler_list" = ""; then
3807      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3808   fi
3809   am__universal=false
3810   case " $depcc " in #(
3811      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3812      esac
3813
3814   for depmode in $am_compiler_list; do
3815     # Setup a source with many dependencies, because some compilers
3816     # like to wrap large dependency lists on column 80 (with \), and
3817     # we should not choose a depcomp mode which is confused by this.
3818     #
3819     # We need to recreate these files for each test, as the compiler may
3820     # overwrite some of them when testing with obscure command lines.
3821     # This happens at least with the AIX C compiler.
3822     : > sub/conftest.c
3823     for i in 1 2 3 4 5 6; do
3824       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3825       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3826       # Solaris 8's {/usr,}/bin/sh.
3827       touch sub/conftst$i.h
3828     done
3829     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3830
3831     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3832     # mode.  It turns out that the SunPro C++ compiler does not properly
3833     # handle `-M -o', and we need to detect this.  Also, some Intel
3834     # versions had trouble with output in subdirs
3835     am__obj=sub/conftest.${OBJEXT-o}
3836     am__minus_obj="-o $am__obj"
3837     case $depmode in
3838     gcc)
3839       # This depmode causes a compiler race in universal mode.
3840       test "$am__universal" = false || continue
3841       ;;
3842     nosideeffect)
3843       # after this tag, mechanisms are not by side-effect, so they'll
3844       # only be used when explicitly requested
3845       if test "x$enable_dependency_tracking" = xyes; then
3846         continue
3847       else
3848         break
3849       fi
3850       ;;
3851     msvisualcpp | msvcmsys)
3852       # This compiler won't grok `-c -o', but also, the minuso test has
3853       # not run yet.  These depmodes are late enough in the game, and
3854       # so weak that their functioning should not be impacted.
3855       am__obj=conftest.${OBJEXT-o}
3856       am__minus_obj=
3857       ;;
3858     none) break ;;
3859     esac
3860     if depmode=$depmode \
3861        source=sub/conftest.c object=$am__obj \
3862        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3863        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3864          >/dev/null 2>conftest.err &&
3865        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3866        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3867        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3868        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3869       # icc doesn't choke on unknown options, it will just issue warnings
3870       # or remarks (even with -Werror).  So we grep stderr for any message
3871       # that says an option was ignored or not supported.
3872       # When given -MP, icc 7.0 and 7.1 complain thusly:
3873       #   icc: Command line warning: ignoring option '-M'; no argument required
3874       # The diagnosis changed in icc 8.0:
3875       #   icc: Command line remark: option '-MP' not supported
3876       if (grep 'ignoring option' conftest.err ||
3877           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3878         am_cv_CC_dependencies_compiler_type=$depmode
3879         break
3880       fi
3881     fi
3882   done
3883
3884   cd ..
3885   rm -rf conftest.dir
3886 else
3887   am_cv_CC_dependencies_compiler_type=none
3888 fi
3889
3890 fi
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3892 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3893 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3894
3895  if
3896   test "x$enable_dependency_tracking" != xno \
3897   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3898   am__fastdepCC_TRUE=
3899   am__fastdepCC_FALSE='#'
3900 else
3901   am__fastdepCC_TRUE='#'
3902   am__fastdepCC_FALSE=
3903 fi
3904
3905
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3907 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3908 if ${ac_cv_path_SED+:} false; then :
3909   $as_echo_n "(cached) " >&6
3910 else
3911             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3912      for ac_i in 1 2 3 4 5 6 7; do
3913        ac_script="$ac_script$as_nl$ac_script"
3914      done
3915      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3916      { ac_script=; unset ac_script;}
3917      if test -z "$SED"; then
3918   ac_path_SED_found=false
3919   # Loop through the user's path and test for each of PROGNAME-LIST
3920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923   IFS=$as_save_IFS
3924   test -z "$as_dir" && as_dir=.
3925     for ac_prog in sed gsed; do
3926     for ac_exec_ext in '' $ac_executable_extensions; do
3927       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3928       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3929 # Check for GNU ac_path_SED and select it if it is found.
3930   # Check for GNU $ac_path_SED
3931 case `"$ac_path_SED" --version 2>&1` in
3932 *GNU*)
3933   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3934 *)
3935   ac_count=0
3936   $as_echo_n 0123456789 >"conftest.in"
3937   while :
3938   do
3939     cat "conftest.in" "conftest.in" >"conftest.tmp"
3940     mv "conftest.tmp" "conftest.in"
3941     cp "conftest.in" "conftest.nl"
3942     $as_echo '' >> "conftest.nl"
3943     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945     as_fn_arith $ac_count + 1 && ac_count=$as_val
3946     if test $ac_count -gt ${ac_path_SED_max-0}; then
3947       # Best one so far, save it but keep looking for a better one
3948       ac_cv_path_SED="$ac_path_SED"
3949       ac_path_SED_max=$ac_count
3950     fi
3951     # 10*(2^10) chars as input seems more than enough
3952     test $ac_count -gt 10 && break
3953   done
3954   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 esac
3956
3957       $ac_path_SED_found && break 3
3958     done
3959   done
3960   done
3961 IFS=$as_save_IFS
3962   if test -z "$ac_cv_path_SED"; then
3963     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3964   fi
3965 else
3966   ac_cv_path_SED=$SED
3967 fi
3968
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3971 $as_echo "$ac_cv_path_SED" >&6; }
3972  SED="$ac_cv_path_SED"
3973   rm -f conftest.sed
3974
3975 test -z "$SED" && SED=sed
3976 Xsed="$SED -e 1s/^X//"
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3989 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3990 if ${ac_cv_path_GREP+:} false; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   if test -z "$GREP"; then
3994   ac_path_GREP_found=false
3995   # Loop through the user's path and test for each of PROGNAME-LIST
3996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 do
3999   IFS=$as_save_IFS
4000   test -z "$as_dir" && as_dir=.
4001     for ac_prog in grep ggrep; do
4002     for ac_exec_ext in '' $ac_executable_extensions; do
4003       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4004       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4005 # Check for GNU ac_path_GREP and select it if it is found.
4006   # Check for GNU $ac_path_GREP
4007 case `"$ac_path_GREP" --version 2>&1` in
4008 *GNU*)
4009   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4010 *)
4011   ac_count=0
4012   $as_echo_n 0123456789 >"conftest.in"
4013   while :
4014   do
4015     cat "conftest.in" "conftest.in" >"conftest.tmp"
4016     mv "conftest.tmp" "conftest.in"
4017     cp "conftest.in" "conftest.nl"
4018     $as_echo 'GREP' >> "conftest.nl"
4019     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4020     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4021     as_fn_arith $ac_count + 1 && ac_count=$as_val
4022     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4023       # Best one so far, save it but keep looking for a better one
4024       ac_cv_path_GREP="$ac_path_GREP"
4025       ac_path_GREP_max=$ac_count
4026     fi
4027     # 10*(2^10) chars as input seems more than enough
4028     test $ac_count -gt 10 && break
4029   done
4030   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 esac
4032
4033       $ac_path_GREP_found && break 3
4034     done
4035   done
4036   done
4037 IFS=$as_save_IFS
4038   if test -z "$ac_cv_path_GREP"; then
4039     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4040   fi
4041 else
4042   ac_cv_path_GREP=$GREP
4043 fi
4044
4045 fi
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4047 $as_echo "$ac_cv_path_GREP" >&6; }
4048  GREP="$ac_cv_path_GREP"
4049
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4052 $as_echo_n "checking for egrep... " >&6; }
4053 if ${ac_cv_path_EGREP+:} false; then :
4054   $as_echo_n "(cached) " >&6
4055 else
4056   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4057    then ac_cv_path_EGREP="$GREP -E"
4058    else
4059      if test -z "$EGREP"; then
4060   ac_path_EGREP_found=false
4061   # Loop through the user's path and test for each of PROGNAME-LIST
4062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064 do
4065   IFS=$as_save_IFS
4066   test -z "$as_dir" && as_dir=.
4067     for ac_prog in egrep; do
4068     for ac_exec_ext in '' $ac_executable_extensions; do
4069       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4070       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4071 # Check for GNU ac_path_EGREP and select it if it is found.
4072   # Check for GNU $ac_path_EGREP
4073 case `"$ac_path_EGREP" --version 2>&1` in
4074 *GNU*)
4075   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4076 *)
4077   ac_count=0
4078   $as_echo_n 0123456789 >"conftest.in"
4079   while :
4080   do
4081     cat "conftest.in" "conftest.in" >"conftest.tmp"
4082     mv "conftest.tmp" "conftest.in"
4083     cp "conftest.in" "conftest.nl"
4084     $as_echo 'EGREP' >> "conftest.nl"
4085     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4086     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4087     as_fn_arith $ac_count + 1 && ac_count=$as_val
4088     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4089       # Best one so far, save it but keep looking for a better one
4090       ac_cv_path_EGREP="$ac_path_EGREP"
4091       ac_path_EGREP_max=$ac_count
4092     fi
4093     # 10*(2^10) chars as input seems more than enough
4094     test $ac_count -gt 10 && break
4095   done
4096   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097 esac
4098
4099       $ac_path_EGREP_found && break 3
4100     done
4101   done
4102   done
4103 IFS=$as_save_IFS
4104   if test -z "$ac_cv_path_EGREP"; then
4105     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106   fi
4107 else
4108   ac_cv_path_EGREP=$EGREP
4109 fi
4110
4111    fi
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4114 $as_echo "$ac_cv_path_EGREP" >&6; }
4115  EGREP="$ac_cv_path_EGREP"
4116
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4119 $as_echo_n "checking for fgrep... " >&6; }
4120 if ${ac_cv_path_FGREP+:} false; then :
4121   $as_echo_n "(cached) " >&6
4122 else
4123   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4124    then ac_cv_path_FGREP="$GREP -F"
4125    else
4126      if test -z "$FGREP"; then
4127   ac_path_FGREP_found=false
4128   # Loop through the user's path and test for each of PROGNAME-LIST
4129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4131 do
4132   IFS=$as_save_IFS
4133   test -z "$as_dir" && as_dir=.
4134     for ac_prog in fgrep; do
4135     for ac_exec_ext in '' $ac_executable_extensions; do
4136       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4137       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4138 # Check for GNU ac_path_FGREP and select it if it is found.
4139   # Check for GNU $ac_path_FGREP
4140 case `"$ac_path_FGREP" --version 2>&1` in
4141 *GNU*)
4142   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4143 *)
4144   ac_count=0
4145   $as_echo_n 0123456789 >"conftest.in"
4146   while :
4147   do
4148     cat "conftest.in" "conftest.in" >"conftest.tmp"
4149     mv "conftest.tmp" "conftest.in"
4150     cp "conftest.in" "conftest.nl"
4151     $as_echo 'FGREP' >> "conftest.nl"
4152     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4153     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4154     as_fn_arith $ac_count + 1 && ac_count=$as_val
4155     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4156       # Best one so far, save it but keep looking for a better one
4157       ac_cv_path_FGREP="$ac_path_FGREP"
4158       ac_path_FGREP_max=$ac_count
4159     fi
4160     # 10*(2^10) chars as input seems more than enough
4161     test $ac_count -gt 10 && break
4162   done
4163   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4164 esac
4165
4166       $ac_path_FGREP_found && break 3
4167     done
4168   done
4169   done
4170 IFS=$as_save_IFS
4171   if test -z "$ac_cv_path_FGREP"; then
4172     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4173   fi
4174 else
4175   ac_cv_path_FGREP=$FGREP
4176 fi
4177
4178    fi
4179 fi
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4181 $as_echo "$ac_cv_path_FGREP" >&6; }
4182  FGREP="$ac_cv_path_FGREP"
4183
4184
4185 test -z "$GREP" && GREP=grep
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205 # Check whether --with-gnu-ld was given.
4206 if test "${with_gnu_ld+set}" = set; then :
4207   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4208 else
4209   with_gnu_ld=no
4210 fi
4211
4212 ac_prog=ld
4213 if test "$GCC" = yes; then
4214   # Check if gcc -print-prog-name=ld gives a path.
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4216 $as_echo_n "checking for ld used by $CC... " >&6; }
4217   case $host in
4218   *-*-mingw*)
4219     # gcc leaves a trailing carriage return which upsets mingw
4220     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4221   *)
4222     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4223   esac
4224   case $ac_prog in
4225     # Accept absolute paths.
4226     [\\/]* | ?:[\\/]*)
4227       re_direlt='/[^/][^/]*/\.\./'
4228       # Canonicalize the pathname of ld
4229       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4230       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4231         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4232       done
4233       test -z "$LD" && LD="$ac_prog"
4234       ;;
4235   "")
4236     # If it fails, then pretend we aren't using GCC.
4237     ac_prog=ld
4238     ;;
4239   *)
4240     # If it is relative, then search for the first ld in PATH.
4241     with_gnu_ld=unknown
4242     ;;
4243   esac
4244 elif test "$with_gnu_ld" = yes; then
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4246 $as_echo_n "checking for GNU ld... " >&6; }
4247 else
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4249 $as_echo_n "checking for non-GNU ld... " >&6; }
4250 fi
4251 if ${lt_cv_path_LD+:} false; then :
4252   $as_echo_n "(cached) " >&6
4253 else
4254   if test -z "$LD"; then
4255   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4256   for ac_dir in $PATH; do
4257     IFS="$lt_save_ifs"
4258     test -z "$ac_dir" && ac_dir=.
4259     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4260       lt_cv_path_LD="$ac_dir/$ac_prog"
4261       # Check to see if the program is GNU ld.  I'd rather use --version,
4262       # but apparently some variants of GNU ld only accept -v.
4263       # Break only if it was the GNU/non-GNU ld that we prefer.
4264       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4265       *GNU* | *'with BFD'*)
4266         test "$with_gnu_ld" != no && break
4267         ;;
4268       *)
4269         test "$with_gnu_ld" != yes && break
4270         ;;
4271       esac
4272     fi
4273   done
4274   IFS="$lt_save_ifs"
4275 else
4276   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4277 fi
4278 fi
4279
4280 LD="$lt_cv_path_LD"
4281 if test -n "$LD"; then
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4283 $as_echo "$LD" >&6; }
4284 else
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4291 if ${lt_cv_prog_gnu_ld+:} false; then :
4292   $as_echo_n "(cached) " >&6
4293 else
4294   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4295 case `$LD -v 2>&1 </dev/null` in
4296 *GNU* | *'with BFD'*)
4297   lt_cv_prog_gnu_ld=yes
4298   ;;
4299 *)
4300   lt_cv_prog_gnu_ld=no
4301   ;;
4302 esac
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4306 with_gnu_ld=$lt_cv_prog_gnu_ld
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4317 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4318 if ${lt_cv_path_NM+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   if test -n "$NM"; then
4322   # Let the user override the test.
4323   lt_cv_path_NM="$NM"
4324 else
4325   lt_nm_to_check="${ac_tool_prefix}nm"
4326   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4327     lt_nm_to_check="$lt_nm_to_check nm"
4328   fi
4329   for lt_tmp_nm in $lt_nm_to_check; do
4330     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4331     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4332       IFS="$lt_save_ifs"
4333       test -z "$ac_dir" && ac_dir=.
4334       tmp_nm="$ac_dir/$lt_tmp_nm"
4335       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4336         # Check to see if the nm accepts a BSD-compat flag.
4337         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4338         #   nm: unknown option "B" ignored
4339         # Tru64's nm complains that /dev/null is an invalid object file
4340         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4341         */dev/null* | *'Invalid file or object type'*)
4342           lt_cv_path_NM="$tmp_nm -B"
4343           break
4344           ;;
4345         *)
4346           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4347           */dev/null*)
4348             lt_cv_path_NM="$tmp_nm -p"
4349             break
4350             ;;
4351           *)
4352             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4353             continue # so that we can try to find one that supports BSD flags
4354             ;;
4355           esac
4356           ;;
4357         esac
4358       fi
4359     done
4360     IFS="$lt_save_ifs"
4361   done
4362   : ${lt_cv_path_NM=no}
4363 fi
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4366 $as_echo "$lt_cv_path_NM" >&6; }
4367 if test "$lt_cv_path_NM" != "no"; then
4368   NM="$lt_cv_path_NM"
4369 else
4370   # Didn't find any BSD compatible name lister, look for dumpbin.
4371   if test -n "$DUMPBIN"; then :
4372     # Let the user override the test.
4373   else
4374     if test -n "$ac_tool_prefix"; then
4375   for ac_prog in dumpbin "link -dump"
4376   do
4377     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_DUMPBIN+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   if test -n "$DUMPBIN"; then
4385   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392     for ac_exec_ext in '' $ac_executable_extensions; do
4393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396     break 2
4397   fi
4398 done
4399   done
4400 IFS=$as_save_IFS
4401
4402 fi
4403 fi
4404 DUMPBIN=$ac_cv_prog_DUMPBIN
4405 if test -n "$DUMPBIN"; then
4406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4407 $as_echo "$DUMPBIN" >&6; }
4408 else
4409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4411 fi
4412
4413
4414     test -n "$DUMPBIN" && break
4415   done
4416 fi
4417 if test -z "$DUMPBIN"; then
4418   ac_ct_DUMPBIN=$DUMPBIN
4419   for ac_prog in dumpbin "link -dump"
4420 do
4421   # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   if test -n "$ac_ct_DUMPBIN"; then
4429   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436     for ac_exec_ext in '' $ac_executable_extensions; do
4437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443   done
4444 IFS=$as_save_IFS
4445
4446 fi
4447 fi
4448 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4449 if test -n "$ac_ct_DUMPBIN"; then
4450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4451 $as_echo "$ac_ct_DUMPBIN" >&6; }
4452 else
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4455 fi
4456
4457
4458   test -n "$ac_ct_DUMPBIN" && break
4459 done
4460
4461   if test "x$ac_ct_DUMPBIN" = x; then
4462     DUMPBIN=":"
4463   else
4464     case $cross_compiling:$ac_tool_warned in
4465 yes:)
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4468 ac_tool_warned=yes ;;
4469 esac
4470     DUMPBIN=$ac_ct_DUMPBIN
4471   fi
4472 fi
4473
4474     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4475     *COFF*)
4476       DUMPBIN="$DUMPBIN -symbols"
4477       ;;
4478     *)
4479       DUMPBIN=:
4480       ;;
4481     esac
4482   fi
4483
4484   if test "$DUMPBIN" != ":"; then
4485     NM="$DUMPBIN"
4486   fi
4487 fi
4488 test -z "$NM" && NM=nm
4489
4490
4491
4492
4493
4494
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4496 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4497 if ${lt_cv_nm_interface+:} false; then :
4498   $as_echo_n "(cached) " >&6
4499 else
4500   lt_cv_nm_interface="BSD nm"
4501   echo "int some_variable = 0;" > conftest.$ac_ext
4502   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4503   (eval "$ac_compile" 2>conftest.err)
4504   cat conftest.err >&5
4505   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4506   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4507   cat conftest.err >&5
4508   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4509   cat conftest.out >&5
4510   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4511     lt_cv_nm_interface="MS dumpbin"
4512   fi
4513   rm -f conftest*
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4516 $as_echo "$lt_cv_nm_interface" >&6; }
4517
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4519 $as_echo_n "checking whether ln -s works... " >&6; }
4520 LN_S=$as_ln_s
4521 if test "$LN_S" = "ln -s"; then
4522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4523 $as_echo "yes" >&6; }
4524 else
4525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4526 $as_echo "no, using $LN_S" >&6; }
4527 fi
4528
4529 # find the maximum length of command line arguments
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4531 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4532 if ${lt_cv_sys_max_cmd_len+:} false; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535     i=0
4536   teststring="ABCD"
4537
4538   case $build_os in
4539   msdosdjgpp*)
4540     # On DJGPP, this test can blow up pretty badly due to problems in libc
4541     # (any single argument exceeding 2000 bytes causes a buffer overrun
4542     # during glob expansion).  Even if it were fixed, the result of this
4543     # check would be larger than it should be.
4544     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4545     ;;
4546
4547   gnu*)
4548     # Under GNU Hurd, this test is not required because there is
4549     # no limit to the length of command line arguments.
4550     # Libtool will interpret -1 as no limit whatsoever
4551     lt_cv_sys_max_cmd_len=-1;
4552     ;;
4553
4554   cygwin* | mingw* | cegcc*)
4555     # On Win9x/ME, this test blows up -- it succeeds, but takes
4556     # about 5 minutes as the teststring grows exponentially.
4557     # Worse, since 9x/ME are not pre-emptively multitasking,
4558     # you end up with a "frozen" computer, even though with patience
4559     # the test eventually succeeds (with a max line length of 256k).
4560     # Instead, let's just punt: use the minimum linelength reported by
4561     # all of the supported platforms: 8192 (on NT/2K/XP).
4562     lt_cv_sys_max_cmd_len=8192;
4563     ;;
4564
4565   mint*)
4566     # On MiNT this can take a long time and run out of memory.
4567     lt_cv_sys_max_cmd_len=8192;
4568     ;;
4569
4570   amigaos*)
4571     # On AmigaOS with pdksh, this test takes hours, literally.
4572     # So we just punt and use a minimum line length of 8192.
4573     lt_cv_sys_max_cmd_len=8192;
4574     ;;
4575
4576   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4577     # This has been around since 386BSD, at least.  Likely further.
4578     if test -x /sbin/sysctl; then
4579       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4580     elif test -x /usr/sbin/sysctl; then
4581       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4582     else
4583       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4584     fi
4585     # And add a safety zone
4586     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4587     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4588     ;;
4589
4590   interix*)
4591     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4592     lt_cv_sys_max_cmd_len=196608
4593     ;;
4594
4595   osf*)
4596     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4597     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4598     # nice to cause kernel panics so lets avoid the loop below.
4599     # First set a reasonable default.
4600     lt_cv_sys_max_cmd_len=16384
4601     #
4602     if test -x /sbin/sysconfig; then
4603       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4604         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4605       esac
4606     fi
4607     ;;
4608   sco3.2v5*)
4609     lt_cv_sys_max_cmd_len=102400
4610     ;;
4611   sysv5* | sco5v6* | sysv4.2uw2*)
4612     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4613     if test -n "$kargmax"; then
4614       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4615     else
4616       lt_cv_sys_max_cmd_len=32768
4617     fi
4618     ;;
4619   *)
4620     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4621     if test -n "$lt_cv_sys_max_cmd_len"; then
4622       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4623       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4624     else
4625       # Make teststring a little bigger before we do anything with it.
4626       # a 1K string should be a reasonable start.
4627       for i in 1 2 3 4 5 6 7 8 ; do
4628         teststring=$teststring$teststring
4629       done
4630       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4631       # If test is not a shell built-in, we'll probably end up computing a
4632       # maximum length that is only half of the actual maximum length, but
4633       # we can't tell.
4634       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4635                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4636               test $i != 17 # 1/2 MB should be enough
4637       do
4638         i=`expr $i + 1`
4639         teststring=$teststring$teststring
4640       done
4641       # Only check the string length outside the loop.
4642       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4643       teststring=
4644       # Add a significant safety factor because C++ compilers can tack on
4645       # massive amounts of additional arguments before passing them to the
4646       # linker.  It appears as though 1/2 is a usable value.
4647       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4648     fi
4649     ;;
4650   esac
4651
4652 fi
4653
4654 if test -n $lt_cv_sys_max_cmd_len ; then
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4656 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4657 else
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4659 $as_echo "none" >&6; }
4660 fi
4661 max_cmd_len=$lt_cv_sys_max_cmd_len
4662
4663
4664
4665
4666
4667
4668 : ${CP="cp -f"}
4669 : ${MV="mv -f"}
4670 : ${RM="rm -f"}
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4673 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4674 # Try some XSI features
4675 xsi_shell=no
4676 ( _lt_dummy="a/b/c"
4677   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4678       = c,a/b,b/c, \
4679     && eval 'test $(( 1 + 1 )) -eq 2 \
4680     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4681   && xsi_shell=yes
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4683 $as_echo "$xsi_shell" >&6; }
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4687 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4688 lt_shell_append=no
4689 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4690     >/dev/null 2>&1 \
4691   && lt_shell_append=yes
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4693 $as_echo "$lt_shell_append" >&6; }
4694
4695
4696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4697   lt_unset=unset
4698 else
4699   lt_unset=false
4700 fi
4701
4702
4703
4704
4705
4706 # test EBCDIC or ASCII
4707 case `echo X|tr X '\101'` in
4708  A) # ASCII based system
4709     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4710   lt_SP2NL='tr \040 \012'
4711   lt_NL2SP='tr \015\012 \040\040'
4712   ;;
4713  *) # EBCDIC based system
4714   lt_SP2NL='tr \100 \n'
4715   lt_NL2SP='tr \r\n \100\100'
4716   ;;
4717 esac
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4728 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4729 if ${lt_cv_to_host_file_cmd+:} false; then :
4730   $as_echo_n "(cached) " >&6
4731 else
4732   case $host in
4733   *-*-mingw* )
4734     case $build in
4735       *-*-mingw* ) # actually msys
4736         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4737         ;;
4738       *-*-cygwin* )
4739         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4740         ;;
4741       * ) # otherwise, assume *nix
4742         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4743         ;;
4744     esac
4745     ;;
4746   *-*-cygwin* )
4747     case $build in
4748       *-*-mingw* ) # actually msys
4749         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4750         ;;
4751       *-*-cygwin* )
4752         lt_cv_to_host_file_cmd=func_convert_file_noop
4753         ;;
4754       * ) # otherwise, assume *nix
4755         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4756         ;;
4757     esac
4758     ;;
4759   * ) # unhandled hosts (and "normal" native builds)
4760     lt_cv_to_host_file_cmd=func_convert_file_noop
4761     ;;
4762 esac
4763
4764 fi
4765
4766 to_host_file_cmd=$lt_cv_to_host_file_cmd
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4768 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4769
4770
4771
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4775 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4776 if ${lt_cv_to_tool_file_cmd+:} false; then :
4777   $as_echo_n "(cached) " >&6
4778 else
4779   #assume ordinary cross tools, or native build.
4780 lt_cv_to_tool_file_cmd=func_convert_file_noop
4781 case $host in
4782   *-*-mingw* )
4783     case $build in
4784       *-*-mingw* ) # actually msys
4785         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4786         ;;
4787     esac
4788     ;;
4789 esac
4790
4791 fi
4792
4793 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4795 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4796
4797
4798
4799
4800
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4802 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4803 if ${lt_cv_ld_reload_flag+:} false; then :
4804   $as_echo_n "(cached) " >&6
4805 else
4806   lt_cv_ld_reload_flag='-r'
4807 fi
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4809 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4810 reload_flag=$lt_cv_ld_reload_flag
4811 case $reload_flag in
4812 "" | " "*) ;;
4813 *) reload_flag=" $reload_flag" ;;
4814 esac
4815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4816 case $host_os in
4817   cygwin* | mingw* | pw32* | cegcc*)
4818     if test "$GCC" != yes; then
4819       reload_cmds=false
4820     fi
4821     ;;
4822   darwin*)
4823     if test "$GCC" = yes; then
4824       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4825     else
4826       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4827     fi
4828     ;;
4829 esac
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 if test -n "$ac_tool_prefix"; then
4840   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4841 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_prog_OBJDUMP+:} false; then :
4845   $as_echo_n "(cached) " >&6
4846 else
4847   if test -n "$OBJDUMP"; then
4848   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862   done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 OBJDUMP=$ac_cv_prog_OBJDUMP
4868 if test -n "$OBJDUMP"; then
4869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4870 $as_echo "$OBJDUMP" >&6; }
4871 else
4872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876
4877 fi
4878 if test -z "$ac_cv_prog_OBJDUMP"; then
4879   ac_ct_OBJDUMP=$OBJDUMP
4880   # Extract the first word of "objdump", so it can be a program name with args.
4881 set dummy objdump; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   if test -n "$ac_ct_OBJDUMP"; then
4888   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4889 else
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 for as_dir in $PATH
4892 do
4893   IFS=$as_save_IFS
4894   test -z "$as_dir" && as_dir=.
4895     for ac_exec_ext in '' $ac_executable_extensions; do
4896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4897     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4899     break 2
4900   fi
4901 done
4902   done
4903 IFS=$as_save_IFS
4904
4905 fi
4906 fi
4907 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4908 if test -n "$ac_ct_OBJDUMP"; then
4909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4910 $as_echo "$ac_ct_OBJDUMP" >&6; }
4911 else
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4914 fi
4915
4916   if test "x$ac_ct_OBJDUMP" = x; then
4917     OBJDUMP="false"
4918   else
4919     case $cross_compiling:$ac_tool_warned in
4920 yes:)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4923 ac_tool_warned=yes ;;
4924 esac
4925     OBJDUMP=$ac_ct_OBJDUMP
4926   fi
4927 else
4928   OBJDUMP="$ac_cv_prog_OBJDUMP"
4929 fi
4930
4931 test -z "$OBJDUMP" && OBJDUMP=objdump
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4942 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4943 if ${lt_cv_deplibs_check_method+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   lt_cv_file_magic_cmd='$MAGIC_CMD'
4947 lt_cv_file_magic_test_file=
4948 lt_cv_deplibs_check_method='unknown'
4949 # Need to set the preceding variable on all platforms that support
4950 # interlibrary dependencies.
4951 # 'none' -- dependencies not supported.
4952 # `unknown' -- same as none, but documents that we really don't know.
4953 # 'pass_all' -- all dependencies passed with no checks.
4954 # 'test_compile' -- check by making test program.
4955 # 'file_magic [[regex]]' -- check by looking for files in library path
4956 # which responds to the $file_magic_cmd with a given extended regex.
4957 # If you have `file' or equivalent on your system and you're not sure
4958 # whether `pass_all' will *always* work, you probably want this one.
4959
4960 case $host_os in
4961 aix[4-9]*)
4962   lt_cv_deplibs_check_method=pass_all
4963   ;;
4964
4965 beos*)
4966   lt_cv_deplibs_check_method=pass_all
4967   ;;
4968
4969 bsdi[45]*)
4970   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4971   lt_cv_file_magic_cmd='/usr/bin/file -L'
4972   lt_cv_file_magic_test_file=/shlib/libc.so
4973   ;;
4974
4975 cygwin*)
4976   # func_win32_libid is a shell function defined in ltmain.sh
4977   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4978   lt_cv_file_magic_cmd='func_win32_libid'
4979   ;;
4980
4981 mingw* | pw32*)
4982   # Base MSYS/MinGW do not provide the 'file' command needed by
4983   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4984   # unless we find 'file', for example because we are cross-compiling.
4985   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4986   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4987     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4988     lt_cv_file_magic_cmd='func_win32_libid'
4989   else
4990     # Keep this pattern in sync with the one in func_win32_libid.
4991     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4992     lt_cv_file_magic_cmd='$OBJDUMP -f'
4993   fi
4994   ;;
4995
4996 cegcc*)
4997   # use the weaker test based on 'objdump'. See mingw*.
4998   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4999   lt_cv_file_magic_cmd='$OBJDUMP -f'
5000   ;;
5001
5002 darwin* | rhapsody*)
5003   lt_cv_deplibs_check_method=pass_all
5004   ;;
5005
5006 freebsd* | dragonfly*)
5007   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5008     case $host_cpu in
5009     i*86 )
5010       # Not sure whether the presence of OpenBSD here was a mistake.
5011       # Let's accept both of them until this is cleared up.
5012       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5013       lt_cv_file_magic_cmd=/usr/bin/file
5014       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5015       ;;
5016     esac
5017   else
5018     lt_cv_deplibs_check_method=pass_all
5019   fi
5020   ;;
5021
5022 gnu*)
5023   lt_cv_deplibs_check_method=pass_all
5024   ;;
5025
5026 haiku*)
5027   lt_cv_deplibs_check_method=pass_all
5028   ;;
5029
5030 hpux10.20* | hpux11*)
5031   lt_cv_file_magic_cmd=/usr/bin/file
5032   case $host_cpu in
5033   ia64*)
5034     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5035     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5036     ;;
5037   hppa*64*)
5038     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]'
5039     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5040     ;;
5041   *)
5042     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5043     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5044     ;;
5045   esac
5046   ;;
5047
5048 interix[3-9]*)
5049   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5050   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5051   ;;
5052
5053 irix5* | irix6* | nonstopux*)
5054   case $LD in
5055   *-32|*"-32 ") libmagic=32-bit;;
5056   *-n32|*"-n32 ") libmagic=N32;;
5057   *-64|*"-64 ") libmagic=64-bit;;
5058   *) libmagic=never-match;;
5059   esac
5060   lt_cv_deplibs_check_method=pass_all
5061   ;;
5062
5063 # This must be Linux ELF.
5064 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5065   lt_cv_deplibs_check_method=pass_all
5066   ;;
5067
5068 netbsd*)
5069   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5070     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5071   else
5072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5073   fi
5074   ;;
5075
5076 newos6*)
5077   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5078   lt_cv_file_magic_cmd=/usr/bin/file
5079   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5080   ;;
5081
5082 *nto* | *qnx*)
5083   lt_cv_deplibs_check_method=pass_all
5084   ;;
5085
5086 openbsd*)
5087   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5088     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5089   else
5090     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5091   fi
5092   ;;
5093
5094 osf3* | osf4* | osf5*)
5095   lt_cv_deplibs_check_method=pass_all
5096   ;;
5097
5098 rdos*)
5099   lt_cv_deplibs_check_method=pass_all
5100   ;;
5101
5102 solaris*)
5103   lt_cv_deplibs_check_method=pass_all
5104   ;;
5105
5106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5107   lt_cv_deplibs_check_method=pass_all
5108   ;;
5109
5110 sysv4 | sysv4.3*)
5111   case $host_vendor in
5112   motorola)
5113     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]'
5114     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5115     ;;
5116   ncr)
5117     lt_cv_deplibs_check_method=pass_all
5118     ;;
5119   sequent)
5120     lt_cv_file_magic_cmd='/bin/file'
5121     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5122     ;;
5123   sni)
5124     lt_cv_file_magic_cmd='/bin/file'
5125     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5126     lt_cv_file_magic_test_file=/lib/libc.so
5127     ;;
5128   siemens)
5129     lt_cv_deplibs_check_method=pass_all
5130     ;;
5131   pc)
5132     lt_cv_deplibs_check_method=pass_all
5133     ;;
5134   esac
5135   ;;
5136
5137 tpf*)
5138   lt_cv_deplibs_check_method=pass_all
5139   ;;
5140 esac
5141
5142 fi
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5144 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5145
5146 file_magic_glob=
5147 want_nocaseglob=no
5148 if test "$build" = "$host"; then
5149   case $host_os in
5150   mingw* | pw32*)
5151     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5152       want_nocaseglob=yes
5153     else
5154       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5155     fi
5156     ;;
5157   esac
5158 fi
5159
5160 file_magic_cmd=$lt_cv_file_magic_cmd
5161 deplibs_check_method=$lt_cv_deplibs_check_method
5162 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 if test -n "$ac_tool_prefix"; then
5186   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5187 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_DLLTOOL+:} false; then :
5191   $as_echo_n "(cached) " >&6
5192 else
5193   if test -n "$DLLTOOL"; then
5194   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201     for ac_exec_ext in '' $ac_executable_extensions; do
5202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208   done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 DLLTOOL=$ac_cv_prog_DLLTOOL
5214 if test -n "$DLLTOOL"; then
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5216 $as_echo "$DLLTOOL" >&6; }
5217 else
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222
5223 fi
5224 if test -z "$ac_cv_prog_DLLTOOL"; then
5225   ac_ct_DLLTOOL=$DLLTOOL
5226   # Extract the first word of "dlltool", so it can be a program name with args.
5227 set dummy dlltool; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   if test -n "$ac_ct_DLLTOOL"; then
5234   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5235 else
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH
5238 do
5239   IFS=$as_save_IFS
5240   test -z "$as_dir" && as_dir=.
5241     for ac_exec_ext in '' $ac_executable_extensions; do
5242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5243     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245     break 2
5246   fi
5247 done
5248   done
5249 IFS=$as_save_IFS
5250
5251 fi
5252 fi
5253 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5254 if test -n "$ac_ct_DLLTOOL"; then
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5256 $as_echo "$ac_ct_DLLTOOL" >&6; }
5257 else
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259 $as_echo "no" >&6; }
5260 fi
5261
5262   if test "x$ac_ct_DLLTOOL" = x; then
5263     DLLTOOL="false"
5264   else
5265     case $cross_compiling:$ac_tool_warned in
5266 yes:)
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5269 ac_tool_warned=yes ;;
5270 esac
5271     DLLTOOL=$ac_ct_DLLTOOL
5272   fi
5273 else
5274   DLLTOOL="$ac_cv_prog_DLLTOOL"
5275 fi
5276
5277 test -z "$DLLTOOL" && DLLTOOL=dlltool
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5289 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5290 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5291   $as_echo_n "(cached) " >&6
5292 else
5293   lt_cv_sharedlib_from_linklib_cmd='unknown'
5294
5295 case $host_os in
5296 cygwin* | mingw* | pw32* | cegcc*)
5297   # two different shell functions defined in ltmain.sh
5298   # decide which to use based on capabilities of $DLLTOOL
5299   case `$DLLTOOL --help 2>&1` in
5300   *--identify-strict*)
5301     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5302     ;;
5303   *)
5304     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5305     ;;
5306   esac
5307   ;;
5308 *)
5309   # fallback: assume linklib IS sharedlib
5310   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5311   ;;
5312 esac
5313
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5316 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5317 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5318 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5319
5320
5321
5322
5323
5324
5325
5326
5327 if test -n "$ac_tool_prefix"; then
5328   for ac_prog in ar
5329   do
5330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_AR+:} false; then :
5335   $as_echo_n "(cached) " >&6
5336 else
5337   if test -n "$AR"; then
5338   ac_cv_prog_AR="$AR" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345     for ac_exec_ext in '' $ac_executable_extensions; do
5346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5347     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352   done
5353 IFS=$as_save_IFS
5354
5355 fi
5356 fi
5357 AR=$ac_cv_prog_AR
5358 if test -n "$AR"; then
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5360 $as_echo "$AR" >&6; }
5361 else
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365
5366
5367     test -n "$AR" && break
5368   done
5369 fi
5370 if test -z "$AR"; then
5371   ac_ct_AR=$AR
5372   for ac_prog in ar
5373 do
5374   # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381   if test -n "$ac_ct_AR"; then
5382   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389     for ac_exec_ext in '' $ac_executable_extensions; do
5390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391     ac_cv_prog_ac_ct_AR="$ac_prog"
5392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393     break 2
5394   fi
5395 done
5396   done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5402 if test -n "$ac_ct_AR"; then
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5404 $as_echo "$ac_ct_AR" >&6; }
5405 else
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410
5411   test -n "$ac_ct_AR" && break
5412 done
5413
5414   if test "x$ac_ct_AR" = x; then
5415     AR="false"
5416   else
5417     case $cross_compiling:$ac_tool_warned in
5418 yes:)
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5421 ac_tool_warned=yes ;;
5422 esac
5423     AR=$ac_ct_AR
5424   fi
5425 fi
5426
5427 : ${AR=ar}
5428 : ${AR_FLAGS=cru}
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5441 $as_echo_n "checking for archiver @FILE support... " >&6; }
5442 if ${lt_cv_ar_at_file+:} false; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445   lt_cv_ar_at_file=no
5446    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448
5449 int
5450 main ()
5451 {
5452
5453   ;
5454   return 0;
5455 }
5456 _ACEOF
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458   echo conftest.$ac_objext > conftest.lst
5459       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5460       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5461   (eval $lt_ar_try) 2>&5
5462   ac_status=$?
5463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5464   test $ac_status = 0; }
5465       if test "$ac_status" -eq 0; then
5466         # Ensure the archiver fails upon bogus file names.
5467         rm -f conftest.$ac_objext libconftest.a
5468         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5469   (eval $lt_ar_try) 2>&5
5470   ac_status=$?
5471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472   test $ac_status = 0; }
5473         if test "$ac_status" -ne 0; then
5474           lt_cv_ar_at_file=@
5475         fi
5476       fi
5477       rm -f conftest.* libconftest.a
5478
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481
5482 fi
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5484 $as_echo "$lt_cv_ar_at_file" >&6; }
5485
5486 if test "x$lt_cv_ar_at_file" = xno; then
5487   archiver_list_spec=
5488 else
5489   archiver_list_spec=$lt_cv_ar_at_file
5490 fi
5491
5492
5493
5494
5495
5496
5497
5498 if test -n "$ac_tool_prefix"; then
5499   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5500 set dummy ${ac_tool_prefix}strip; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_prog_STRIP+:} false; then :
5504   $as_echo_n "(cached) " >&6
5505 else
5506   if test -n "$STRIP"; then
5507   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5511 do
5512   IFS=$as_save_IFS
5513   test -z "$as_dir" && as_dir=.
5514     for ac_exec_ext in '' $ac_executable_extensions; do
5515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518     break 2
5519   fi
5520 done
5521   done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 STRIP=$ac_cv_prog_STRIP
5527 if test -n "$STRIP"; then
5528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5529 $as_echo "$STRIP" >&6; }
5530 else
5531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5533 fi
5534
5535
5536 fi
5537 if test -z "$ac_cv_prog_STRIP"; then
5538   ac_ct_STRIP=$STRIP
5539   # Extract the first word of "strip", so it can be a program name with args.
5540 set dummy strip; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   if test -n "$ac_ct_STRIP"; then
5547   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554     for ac_exec_ext in '' $ac_executable_extensions; do
5555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556     ac_cv_prog_ac_ct_STRIP="strip"
5557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561   done
5562 IFS=$as_save_IFS
5563
5564 fi
5565 fi
5566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5567 if test -n "$ac_ct_STRIP"; then
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5569 $as_echo "$ac_ct_STRIP" >&6; }
5570 else
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574
5575   if test "x$ac_ct_STRIP" = x; then
5576     STRIP=":"
5577   else
5578     case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584     STRIP=$ac_ct_STRIP
5585   fi
5586 else
5587   STRIP="$ac_cv_prog_STRIP"
5588 fi
5589
5590 test -z "$STRIP" && STRIP=:
5591
5592
5593
5594
5595
5596
5597 if test -n "$ac_tool_prefix"; then
5598   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_RANLIB+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$RANLIB"; then
5606   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613     for ac_exec_ext in '' $ac_executable_extensions; do
5614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620   done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 RANLIB=$ac_cv_prog_RANLIB
5626 if test -n "$RANLIB"; then
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5628 $as_echo "$RANLIB" >&6; }
5629 else
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635 fi
5636 if test -z "$ac_cv_prog_RANLIB"; then
5637   ac_ct_RANLIB=$RANLIB
5638   # Extract the first word of "ranlib", so it can be a program name with args.
5639 set dummy ranlib; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5643   $as_echo_n "(cached) " >&6
5644 else
5645   if test -n "$ac_ct_RANLIB"; then
5646   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5647 else
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653     for ac_exec_ext in '' $ac_executable_extensions; do
5654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655     ac_cv_prog_ac_ct_RANLIB="ranlib"
5656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660   done
5661 IFS=$as_save_IFS
5662
5663 fi
5664 fi
5665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5666 if test -n "$ac_ct_RANLIB"; then
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5668 $as_echo "$ac_ct_RANLIB" >&6; }
5669 else
5670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5672 fi
5673
5674   if test "x$ac_ct_RANLIB" = x; then
5675     RANLIB=":"
5676   else
5677     case $cross_compiling:$ac_tool_warned in
5678 yes:)
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned=yes ;;
5682 esac
5683     RANLIB=$ac_ct_RANLIB
5684   fi
5685 else
5686   RANLIB="$ac_cv_prog_RANLIB"
5687 fi
5688
5689 test -z "$RANLIB" && RANLIB=:
5690
5691
5692
5693
5694
5695
5696 # Determine commands to create old-style static archives.
5697 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5698 old_postinstall_cmds='chmod 644 $oldlib'
5699 old_postuninstall_cmds=
5700
5701 if test -n "$RANLIB"; then
5702   case $host_os in
5703   openbsd*)
5704     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5705     ;;
5706   *)
5707     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5708     ;;
5709   esac
5710   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5711 fi
5712
5713 case $host_os in
5714   darwin*)
5715     lock_old_archive_extraction=yes ;;
5716   *)
5717     lock_old_archive_extraction=no ;;
5718 esac
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 # If no C compiler was specified, use CC.
5759 LTCC=${LTCC-"$CC"}
5760
5761 # If no C compiler flags were specified, use CFLAGS.
5762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5763
5764 # Allow CC to be a program name with arguments.
5765 compiler=$CC
5766
5767
5768 # Check for command to grab the raw symbol name followed by C symbol from nm.
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5770 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5771 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774
5775 # These are sane defaults that work on at least a few old systems.
5776 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5777
5778 # Character class describing NM global symbol codes.
5779 symcode='[BCDEGRST]'
5780
5781 # Regexp to match symbols that can be accessed directly from C.
5782 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5783
5784 # Define system-specific variables.
5785 case $host_os in
5786 aix*)
5787   symcode='[BCDT]'
5788   ;;
5789 cygwin* | mingw* | pw32* | cegcc*)
5790   symcode='[ABCDGISTW]'
5791   ;;
5792 hpux*)
5793   if test "$host_cpu" = ia64; then
5794     symcode='[ABCDEGRST]'
5795   fi
5796   ;;
5797 irix* | nonstopux*)
5798   symcode='[BCDEGRST]'
5799   ;;
5800 osf*)
5801   symcode='[BCDEGQRST]'
5802   ;;
5803 solaris*)
5804   symcode='[BDRT]'
5805   ;;
5806 sco3.2v5*)
5807   symcode='[DT]'
5808   ;;
5809 sysv4.2uw2*)
5810   symcode='[DT]'
5811   ;;
5812 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5813   symcode='[ABDT]'
5814   ;;
5815 sysv4)
5816   symcode='[DFNSTU]'
5817   ;;
5818 esac
5819
5820 # If we're using GNU nm, then use its standard symbol codes.
5821 case `$NM -V 2>&1` in
5822 *GNU* | *'with BFD'*)
5823   symcode='[ABCDGIRSTW]' ;;
5824 esac
5825
5826 # Transform an extracted symbol line into a proper C declaration.
5827 # Some systems (esp. on ia64) link data and code symbols differently,
5828 # so use this general approach.
5829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5830
5831 # Transform an extracted symbol line into symbol name and symbol address
5832 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5833 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'"
5834
5835 # Handle CRLF in mingw tool chain
5836 opt_cr=
5837 case $build_os in
5838 mingw*)
5839   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5840   ;;
5841 esac
5842
5843 # Try without a prefix underscore, then with it.
5844 for ac_symprfx in "" "_"; do
5845
5846   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5847   symxfrm="\\1 $ac_symprfx\\2 \\2"
5848
5849   # Write the raw and C identifiers.
5850   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5851     # Fake it for dumpbin and say T for any non-static function
5852     # and D for any global variable.
5853     # Also find C++ and __fastcall symbols from MSVC++,
5854     # which start with @ or ?.
5855     lt_cv_sys_global_symbol_pipe="$AWK '"\
5856 "     {last_section=section; section=\$ 3};"\
5857 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5858 "     \$ 0!~/External *\|/{next};"\
5859 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5860 "     {if(hide[section]) next};"\
5861 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5862 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5863 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5864 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5865 "     ' prfx=^$ac_symprfx"
5866   else
5867     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5868   fi
5869   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5870
5871   # Check to see that the pipe works correctly.
5872   pipe_works=no
5873
5874   rm -f conftest*
5875   cat > conftest.$ac_ext <<_LT_EOF
5876 #ifdef __cplusplus
5877 extern "C" {
5878 #endif
5879 char nm_test_var;
5880 void nm_test_func(void);
5881 void nm_test_func(void){}
5882 #ifdef __cplusplus
5883 }
5884 #endif
5885 int main(){nm_test_var='a';nm_test_func();return(0);}
5886 _LT_EOF
5887
5888   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5889   (eval $ac_compile) 2>&5
5890   ac_status=$?
5891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5892   test $ac_status = 0; }; then
5893     # Now try to grab the symbols.
5894     nlist=conftest.nm
5895     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5896   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5897   ac_status=$?
5898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899   test $ac_status = 0; } && test -s "$nlist"; then
5900       # Try sorting and uniquifying the output.
5901       if sort "$nlist" | uniq > "$nlist"T; then
5902         mv -f "$nlist"T "$nlist"
5903       else
5904         rm -f "$nlist"T
5905       fi
5906
5907       # Make sure that we snagged all the symbols we need.
5908       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5909         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5910           cat <<_LT_EOF > conftest.$ac_ext
5911 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5912 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5913 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5914    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5915 # define LT_DLSYM_CONST
5916 #elif defined(__osf__)
5917 /* This system does not cope well with relocations in const data.  */
5918 # define LT_DLSYM_CONST
5919 #else
5920 # define LT_DLSYM_CONST const
5921 #endif
5922
5923 #ifdef __cplusplus
5924 extern "C" {
5925 #endif
5926
5927 _LT_EOF
5928           # Now generate the symbol file.
5929           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5930
5931           cat <<_LT_EOF >> conftest.$ac_ext
5932
5933 /* The mapping between symbol names and symbols.  */
5934 LT_DLSYM_CONST struct {
5935   const char *name;
5936   void       *address;
5937 }
5938 lt__PROGRAM__LTX_preloaded_symbols[] =
5939 {
5940   { "@PROGRAM@", (void *) 0 },
5941 _LT_EOF
5942           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5943           cat <<\_LT_EOF >> conftest.$ac_ext
5944   {0, (void *) 0}
5945 };
5946
5947 /* This works around a problem in FreeBSD linker */
5948 #ifdef FREEBSD_WORKAROUND
5949 static const void *lt_preloaded_setup() {
5950   return lt__PROGRAM__LTX_preloaded_symbols;
5951 }
5952 #endif
5953
5954 #ifdef __cplusplus
5955 }
5956 #endif
5957 _LT_EOF
5958           # Now try linking the two files.
5959           mv conftest.$ac_objext conftstm.$ac_objext
5960           lt_globsym_save_LIBS=$LIBS
5961           lt_globsym_save_CFLAGS=$CFLAGS
5962           LIBS="conftstm.$ac_objext"
5963           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5964           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5965   (eval $ac_link) 2>&5
5966   ac_status=$?
5967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5968   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5969             pipe_works=yes
5970           fi
5971           LIBS=$lt_globsym_save_LIBS
5972           CFLAGS=$lt_globsym_save_CFLAGS
5973         else
5974           echo "cannot find nm_test_func in $nlist" >&5
5975         fi
5976       else
5977         echo "cannot find nm_test_var in $nlist" >&5
5978       fi
5979     else
5980       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5981     fi
5982   else
5983     echo "$progname: failed program was:" >&5
5984     cat conftest.$ac_ext >&5
5985   fi
5986   rm -rf conftest* conftst*
5987
5988   # Do not use the global_symbol_pipe unless it works.
5989   if test "$pipe_works" = yes; then
5990     break
5991   else
5992     lt_cv_sys_global_symbol_pipe=
5993   fi
5994 done
5995
5996 fi
5997
5998 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5999   lt_cv_sys_global_symbol_to_cdecl=
6000 fi
6001 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6003 $as_echo "failed" >&6; }
6004 else
6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6006 $as_echo "ok" >&6; }
6007 fi
6008
6009 # Response file support.
6010 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6011   nm_file_list_spec='@'
6012 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6013   nm_file_list_spec='@'
6014 fi
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6043 $as_echo_n "checking for sysroot... " >&6; }
6044
6045 # Check whether --with-sysroot was given.
6046 if test "${with_sysroot+set}" = set; then :
6047   withval=$with_sysroot;
6048 else
6049   with_sysroot=no
6050 fi
6051
6052
6053 lt_sysroot=
6054 case ${with_sysroot} in #(
6055  yes)
6056    if test "$GCC" = yes; then
6057      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6058    fi
6059    ;; #(
6060  /*)
6061    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6062    ;; #(
6063  no|'')
6064    ;; #(
6065  *)
6066    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6067 $as_echo "${with_sysroot}" >&6; }
6068    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6069    ;;
6070 esac
6071
6072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6073 $as_echo "${lt_sysroot:-no}" >&6; }
6074
6075
6076
6077
6078
6079 # Check whether --enable-libtool-lock was given.
6080 if test "${enable_libtool_lock+set}" = set; then :
6081   enableval=$enable_libtool_lock;
6082 fi
6083
6084 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6085
6086 # Some flags need to be propagated to the compiler or linker for good
6087 # libtool support.
6088 case $host in
6089 ia64-*-hpux*)
6090   # Find out which ABI we are using.
6091   echo 'int i;' > conftest.$ac_ext
6092   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6093   (eval $ac_compile) 2>&5
6094   ac_status=$?
6095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6096   test $ac_status = 0; }; then
6097     case `/usr/bin/file conftest.$ac_objext` in
6098       *ELF-32*)
6099         HPUX_IA64_MODE="32"
6100         ;;
6101       *ELF-64*)
6102         HPUX_IA64_MODE="64"
6103         ;;
6104     esac
6105   fi
6106   rm -rf conftest*
6107   ;;
6108 *-*-irix6*)
6109   # Find out which ABI we are using.
6110   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6111   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6112   (eval $ac_compile) 2>&5
6113   ac_status=$?
6114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115   test $ac_status = 0; }; then
6116     if test "$lt_cv_prog_gnu_ld" = yes; then
6117       case `/usr/bin/file conftest.$ac_objext` in
6118         *32-bit*)
6119           LD="${LD-ld} -melf32bsmip"
6120           ;;
6121         *N32*)
6122           LD="${LD-ld} -melf32bmipn32"
6123           ;;
6124         *64-bit*)
6125           LD="${LD-ld} -melf64bmip"
6126         ;;
6127       esac
6128     else
6129       case `/usr/bin/file conftest.$ac_objext` in
6130         *32-bit*)
6131           LD="${LD-ld} -32"
6132           ;;
6133         *N32*)
6134           LD="${LD-ld} -n32"
6135           ;;
6136         *64-bit*)
6137           LD="${LD-ld} -64"
6138           ;;
6139       esac
6140     fi
6141   fi
6142   rm -rf conftest*
6143   ;;
6144
6145 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6146 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6147   # Find out which ABI we are using.
6148   echo 'int i;' > conftest.$ac_ext
6149   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6150   (eval $ac_compile) 2>&5
6151   ac_status=$?
6152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6153   test $ac_status = 0; }; then
6154     case `/usr/bin/file conftest.o` in
6155       *32-bit*)
6156         case $host in
6157           x86_64-*kfreebsd*-gnu)
6158             LD="${LD-ld} -m elf_i386_fbsd"
6159             ;;
6160           x86_64-*linux*)
6161             LD="${LD-ld} -m elf_i386"
6162             ;;
6163           ppc64-*linux*|powerpc64-*linux*)
6164             LD="${LD-ld} -m elf32ppclinux"
6165             ;;
6166           s390x-*linux*)
6167             LD="${LD-ld} -m elf_s390"
6168             ;;
6169           sparc64-*linux*)
6170             LD="${LD-ld} -m elf32_sparc"
6171             ;;
6172         esac
6173         ;;
6174       *64-bit*)
6175         case $host in
6176           x86_64-*kfreebsd*-gnu)
6177             LD="${LD-ld} -m elf_x86_64_fbsd"
6178             ;;
6179           x86_64-*linux*)
6180             LD="${LD-ld} -m elf_x86_64"
6181             ;;
6182           ppc*-*linux*|powerpc*-*linux*)
6183             LD="${LD-ld} -m elf64ppc"
6184             ;;
6185           s390*-*linux*|s390*-*tpf*)
6186             LD="${LD-ld} -m elf64_s390"
6187             ;;
6188           sparc*-*linux*)
6189             LD="${LD-ld} -m elf64_sparc"
6190             ;;
6191         esac
6192         ;;
6193     esac
6194   fi
6195   rm -rf conftest*
6196   ;;
6197
6198 *-*-sco3.2v5*)
6199   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6200   SAVE_CFLAGS="$CFLAGS"
6201   CFLAGS="$CFLAGS -belf"
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6203 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6204 if ${lt_cv_cc_needs_belf+:} false; then :
6205   $as_echo_n "(cached) " >&6
6206 else
6207   ac_ext=c
6208 ac_cpp='$CPP $CPPFLAGS'
6209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6212
6213      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h.  */
6215
6216 int
6217 main ()
6218 {
6219
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 if ac_fn_c_try_link "$LINENO"; then :
6225   lt_cv_cc_needs_belf=yes
6226 else
6227   lt_cv_cc_needs_belf=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext \
6230     conftest$ac_exeext conftest.$ac_ext
6231      ac_ext=c
6232 ac_cpp='$CPP $CPPFLAGS'
6233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6236
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6239 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6240   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6241     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6242     CFLAGS="$SAVE_CFLAGS"
6243   fi
6244   ;;
6245 sparc*-*solaris*)
6246   # Find out which ABI we are using.
6247   echo 'int i;' > conftest.$ac_ext
6248   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249   (eval $ac_compile) 2>&5
6250   ac_status=$?
6251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252   test $ac_status = 0; }; then
6253     case `/usr/bin/file conftest.o` in
6254     *64-bit*)
6255       case $lt_cv_prog_gnu_ld in
6256       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6257       *)
6258         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6259           LD="${LD-ld} -64"
6260         fi
6261         ;;
6262       esac
6263       ;;
6264     esac
6265   fi
6266   rm -rf conftest*
6267   ;;
6268 esac
6269
6270 need_locks="$enable_libtool_lock"
6271
6272 if test -n "$ac_tool_prefix"; then
6273   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}mt; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   if test -n "$MANIFEST_TOOL"; then
6281   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288     for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295   done
6296 IFS=$as_save_IFS
6297
6298 fi
6299 fi
6300 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6301 if test -n "$MANIFEST_TOOL"; then
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6303 $as_echo "$MANIFEST_TOOL" >&6; }
6304 else
6305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6307 fi
6308
6309
6310 fi
6311 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6312   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6313   # Extract the first word of "mt", so it can be a program name with args.
6314 set dummy mt; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6318   $as_echo_n "(cached) " >&6
6319 else
6320   if test -n "$ac_ct_MANIFEST_TOOL"; then
6321   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328     for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335   done
6336 IFS=$as_save_IFS
6337
6338 fi
6339 fi
6340 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6341 if test -n "$ac_ct_MANIFEST_TOOL"; then
6342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6343 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6344 else
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6350     MANIFEST_TOOL=":"
6351   else
6352     case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6356 ac_tool_warned=yes ;;
6357 esac
6358     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6359   fi
6360 else
6361   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6362 fi
6363
6364 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6366 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6367 if ${lt_cv_path_mainfest_tool+:} false; then :
6368   $as_echo_n "(cached) " >&6
6369 else
6370   lt_cv_path_mainfest_tool=no
6371   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6372   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6373   cat conftest.err >&5
6374   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6375     lt_cv_path_mainfest_tool=yes
6376   fi
6377   rm -f conftest*
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6380 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6381 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6382   MANIFEST_TOOL=:
6383 fi
6384
6385
6386
6387
6388
6389
6390   case $host_os in
6391     rhapsody* | darwin*)
6392     if test -n "$ac_tool_prefix"; then
6393   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6394 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   if test -n "$DSYMUTIL"; then
6401   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408     for ac_exec_ext in '' $ac_executable_extensions; do
6409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412     break 2
6413   fi
6414 done
6415   done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6421 if test -n "$DSYMUTIL"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6423 $as_echo "$DSYMUTIL" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429
6430 fi
6431 if test -z "$ac_cv_prog_DSYMUTIL"; then
6432   ac_ct_DSYMUTIL=$DSYMUTIL
6433   # Extract the first word of "dsymutil", so it can be a program name with args.
6434 set dummy dsymutil; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   if test -n "$ac_ct_DSYMUTIL"; then
6441   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   test -z "$as_dir" && as_dir=.
6448     for ac_exec_ext in '' $ac_executable_extensions; do
6449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453   fi
6454 done
6455   done
6456 IFS=$as_save_IFS
6457
6458 fi
6459 fi
6460 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6461 if test -n "$ac_ct_DSYMUTIL"; then
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6463 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6464 else
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468
6469   if test "x$ac_ct_DSYMUTIL" = x; then
6470     DSYMUTIL=":"
6471   else
6472     case $cross_compiling:$ac_tool_warned in
6473 yes:)
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476 ac_tool_warned=yes ;;
6477 esac
6478     DSYMUTIL=$ac_ct_DSYMUTIL
6479   fi
6480 else
6481   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6482 fi
6483
6484     if test -n "$ac_tool_prefix"; then
6485   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6486 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_prog_NMEDIT+:} false; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   if test -n "$NMEDIT"; then
6493   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6497 do
6498   IFS=$as_save_IFS
6499   test -z "$as_dir" && as_dir=.
6500     for ac_exec_ext in '' $ac_executable_extensions; do
6501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504     break 2
6505   fi
6506 done
6507   done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 NMEDIT=$ac_cv_prog_NMEDIT
6513 if test -n "$NMEDIT"; then
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6515 $as_echo "$NMEDIT" >&6; }
6516 else
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520
6521
6522 fi
6523 if test -z "$ac_cv_prog_NMEDIT"; then
6524   ac_ct_NMEDIT=$NMEDIT
6525   # Extract the first word of "nmedit", so it can be a program name with args.
6526 set dummy nmedit; ac_word=$2
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; }
6529 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6530   $as_echo_n "(cached) " >&6
6531 else
6532   if test -n "$ac_ct_NMEDIT"; then
6533   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538   IFS=$as_save_IFS
6539   test -z "$as_dir" && as_dir=.
6540     for ac_exec_ext in '' $ac_executable_extensions; do
6541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6542     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6543     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544     break 2
6545   fi
6546 done
6547   done
6548 IFS=$as_save_IFS
6549
6550 fi
6551 fi
6552 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6553 if test -n "$ac_ct_NMEDIT"; then
6554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6555 $as_echo "$ac_ct_NMEDIT" >&6; }
6556 else
6557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 $as_echo "no" >&6; }
6559 fi
6560
6561   if test "x$ac_ct_NMEDIT" = x; then
6562     NMEDIT=":"
6563   else
6564     case $cross_compiling:$ac_tool_warned in
6565 yes:)
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned=yes ;;
6569 esac
6570     NMEDIT=$ac_ct_NMEDIT
6571   fi
6572 else
6573   NMEDIT="$ac_cv_prog_NMEDIT"
6574 fi
6575
6576     if test -n "$ac_tool_prefix"; then
6577   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6578 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if ${ac_cv_prog_LIPO+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584   if test -n "$LIPO"; then
6585   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6586 else
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6589 do
6590   IFS=$as_save_IFS
6591   test -z "$as_dir" && as_dir=.
6592     for ac_exec_ext in '' $ac_executable_extensions; do
6593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596     break 2
6597   fi
6598 done
6599   done
6600 IFS=$as_save_IFS
6601
6602 fi
6603 fi
6604 LIPO=$ac_cv_prog_LIPO
6605 if test -n "$LIPO"; then
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6607 $as_echo "$LIPO" >&6; }
6608 else
6609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6611 fi
6612
6613
6614 fi
6615 if test -z "$ac_cv_prog_LIPO"; then
6616   ac_ct_LIPO=$LIPO
6617   # Extract the first word of "lipo", so it can be a program name with args.
6618 set dummy lipo; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6622   $as_echo_n "(cached) " >&6
6623 else
6624   if test -n "$ac_ct_LIPO"; then
6625   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6626 else
6627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632     for ac_exec_ext in '' $ac_executable_extensions; do
6633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6634     ac_cv_prog_ac_ct_LIPO="lipo"
6635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6636     break 2
6637   fi
6638 done
6639   done
6640 IFS=$as_save_IFS
6641
6642 fi
6643 fi
6644 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6645 if test -n "$ac_ct_LIPO"; then
6646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6647 $as_echo "$ac_ct_LIPO" >&6; }
6648 else
6649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6651 fi
6652
6653   if test "x$ac_ct_LIPO" = x; then
6654     LIPO=":"
6655   else
6656     case $cross_compiling:$ac_tool_warned in
6657 yes:)
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6660 ac_tool_warned=yes ;;
6661 esac
6662     LIPO=$ac_ct_LIPO
6663   fi
6664 else
6665   LIPO="$ac_cv_prog_LIPO"
6666 fi
6667
6668     if test -n "$ac_tool_prefix"; then
6669   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6670 set dummy ${ac_tool_prefix}otool; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if ${ac_cv_prog_OTOOL+:} false; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   if test -n "$OTOOL"; then
6677   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684     for ac_exec_ext in '' $ac_executable_extensions; do
6685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691   done
6692 IFS=$as_save_IFS
6693
6694 fi
6695 fi
6696 OTOOL=$ac_cv_prog_OTOOL
6697 if test -n "$OTOOL"; then
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6699 $as_echo "$OTOOL" >&6; }
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704
6705
6706 fi
6707 if test -z "$ac_cv_prog_OTOOL"; then
6708   ac_ct_OTOOL=$OTOOL
6709   # Extract the first word of "otool", so it can be a program name with args.
6710 set dummy otool; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   if test -n "$ac_ct_OTOOL"; then
6717   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724     for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_prog_ac_ct_OTOOL="otool"
6727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731   done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6737 if test -n "$ac_ct_OTOOL"; then
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6739 $as_echo "$ac_ct_OTOOL" >&6; }
6740 else
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6743 fi
6744
6745   if test "x$ac_ct_OTOOL" = x; then
6746     OTOOL=":"
6747   else
6748     case $cross_compiling:$ac_tool_warned in
6749 yes:)
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6752 ac_tool_warned=yes ;;
6753 esac
6754     OTOOL=$ac_ct_OTOOL
6755   fi
6756 else
6757   OTOOL="$ac_cv_prog_OTOOL"
6758 fi
6759
6760     if test -n "$ac_tool_prefix"; then
6761   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6762 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_prog_OTOOL64+:} false; then :
6766   $as_echo_n "(cached) " >&6
6767 else
6768   if test -n "$OTOOL64"; then
6769   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774   IFS=$as_save_IFS
6775   test -z "$as_dir" && as_dir=.
6776     for ac_exec_ext in '' $ac_executable_extensions; do
6777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780     break 2
6781   fi
6782 done
6783   done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 OTOOL64=$ac_cv_prog_OTOOL64
6789 if test -n "$OTOOL64"; then
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6791 $as_echo "$OTOOL64" >&6; }
6792 else
6793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6795 fi
6796
6797
6798 fi
6799 if test -z "$ac_cv_prog_OTOOL64"; then
6800   ac_ct_OTOOL64=$OTOOL64
6801   # Extract the first word of "otool64", so it can be a program name with args.
6802 set dummy otool64; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6806   $as_echo_n "(cached) " >&6
6807 else
6808   if test -n "$ac_ct_OTOOL64"; then
6809   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816     for ac_exec_ext in '' $ac_executable_extensions; do
6817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818     ac_cv_prog_ac_ct_OTOOL64="otool64"
6819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823   done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6829 if test -n "$ac_ct_OTOOL64"; then
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6831 $as_echo "$ac_ct_OTOOL64" >&6; }
6832 else
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837   if test "x$ac_ct_OTOOL64" = x; then
6838     OTOOL64=":"
6839   else
6840     case $cross_compiling:$ac_tool_warned in
6841 yes:)
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844 ac_tool_warned=yes ;;
6845 esac
6846     OTOOL64=$ac_ct_OTOOL64
6847   fi
6848 else
6849   OTOOL64="$ac_cv_prog_OTOOL64"
6850 fi
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6879 $as_echo_n "checking for -single_module linker flag... " >&6; }
6880 if ${lt_cv_apple_cc_single_mod+:} false; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   lt_cv_apple_cc_single_mod=no
6884       if test -z "${LT_MULTI_MODULE}"; then
6885         # By default we will add the -single_module flag. You can override
6886         # by either setting the environment variable LT_MULTI_MODULE
6887         # non-empty at configure time, or by adding -multi_module to the
6888         # link flags.
6889         rm -rf libconftest.dylib*
6890         echo "int foo(void){return 1;}" > conftest.c
6891         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6892 -dynamiclib -Wl,-single_module conftest.c" >&5
6893         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6894           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6895         _lt_result=$?
6896         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6897           lt_cv_apple_cc_single_mod=yes
6898         else
6899           cat conftest.err >&5
6900         fi
6901         rm -rf libconftest.dylib*
6902         rm -f conftest.*
6903       fi
6904 fi
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6906 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6908 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6909 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6910   $as_echo_n "(cached) " >&6
6911 else
6912   lt_cv_ld_exported_symbols_list=no
6913       save_LDFLAGS=$LDFLAGS
6914       echo "_main" > conftest.sym
6915       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6916       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h.  */
6918
6919 int
6920 main ()
6921 {
6922
6923   ;
6924   return 0;
6925 }
6926 _ACEOF
6927 if ac_fn_c_try_link "$LINENO"; then :
6928   lt_cv_ld_exported_symbols_list=yes
6929 else
6930   lt_cv_ld_exported_symbols_list=no
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext \
6933     conftest$ac_exeext conftest.$ac_ext
6934         LDFLAGS="$save_LDFLAGS"
6935
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6938 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6940 $as_echo_n "checking for -force_load linker flag... " >&6; }
6941 if ${lt_cv_ld_force_load+:} false; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   lt_cv_ld_force_load=no
6945       cat > conftest.c << _LT_EOF
6946 int forced_loaded() { return 2;}
6947 _LT_EOF
6948       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6949       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6950       echo "$AR cru libconftest.a conftest.o" >&5
6951       $AR cru libconftest.a conftest.o 2>&5
6952       echo "$RANLIB libconftest.a" >&5
6953       $RANLIB libconftest.a 2>&5
6954       cat > conftest.c << _LT_EOF
6955 int main() { return 0;}
6956 _LT_EOF
6957       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6958       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6959       _lt_result=$?
6960       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6961         lt_cv_ld_force_load=yes
6962       else
6963         cat conftest.err >&5
6964       fi
6965         rm -f conftest.err libconftest.a conftest conftest.c
6966         rm -rf conftest.dSYM
6967
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6970 $as_echo "$lt_cv_ld_force_load" >&6; }
6971     case $host_os in
6972     rhapsody* | darwin1.[012])
6973       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6974     darwin1.*)
6975       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6976     darwin*) # darwin 5.x on
6977       # if running on 10.5 or later, the deployment target defaults
6978       # to the OS version, if on x86, and 10.4, the deployment
6979       # target defaults to 10.4. Don't you love it?
6980       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6981         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6982           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6983         10.[012]*)
6984           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6985         10.*)
6986           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6987       esac
6988     ;;
6989   esac
6990     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6991       _lt_dar_single_mod='$single_module'
6992     fi
6993     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6994       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6995     else
6996       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6997     fi
6998     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6999       _lt_dsymutil='~$DSYMUTIL $lib || :'
7000     else
7001       _lt_dsymutil=
7002     fi
7003     ;;
7004   esac
7005
7006 ac_ext=c
7007 ac_cpp='$CPP $CPPFLAGS'
7008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7012 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7013 # On Suns, sometimes $CPP names a directory.
7014 if test -n "$CPP" && test -d "$CPP"; then
7015   CPP=
7016 fi
7017 if test -z "$CPP"; then
7018   if ${ac_cv_prog_CPP+:} false; then :
7019   $as_echo_n "(cached) " >&6
7020 else
7021       # Double quotes because CPP needs to be expanded
7022     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7023     do
7024       ac_preproc_ok=false
7025 for ac_c_preproc_warn_flag in '' yes
7026 do
7027   # Use a header file that comes with gcc, so configuring glibc
7028   # with a fresh cross-compiler works.
7029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7030   # <limits.h> exists even on freestanding compilers.
7031   # On the NeXT, cc -E runs the code through the compiler's parser,
7032   # not just through cpp. "Syntax error" is here to catch this case.
7033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h.  */
7035 #ifdef __STDC__
7036 # include <limits.h>
7037 #else
7038 # include <assert.h>
7039 #endif
7040                      Syntax error
7041 _ACEOF
7042 if ac_fn_c_try_cpp "$LINENO"; then :
7043
7044 else
7045   # Broken: fails on valid input.
7046 continue
7047 fi
7048 rm -f conftest.err conftest.i conftest.$ac_ext
7049
7050   # OK, works on sane cases.  Now check whether nonexistent headers
7051   # can be detected and how.
7052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h.  */
7054 #include <ac_nonexistent.h>
7055 _ACEOF
7056 if ac_fn_c_try_cpp "$LINENO"; then :
7057   # Broken: success on invalid input.
7058 continue
7059 else
7060   # Passes both tests.
7061 ac_preproc_ok=:
7062 break
7063 fi
7064 rm -f conftest.err conftest.i conftest.$ac_ext
7065
7066 done
7067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7068 rm -f conftest.i conftest.err conftest.$ac_ext
7069 if $ac_preproc_ok; then :
7070   break
7071 fi
7072
7073     done
7074     ac_cv_prog_CPP=$CPP
7075
7076 fi
7077   CPP=$ac_cv_prog_CPP
7078 else
7079   ac_cv_prog_CPP=$CPP
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7082 $as_echo "$CPP" >&6; }
7083 ac_preproc_ok=false
7084 for ac_c_preproc_warn_flag in '' yes
7085 do
7086   # Use a header file that comes with gcc, so configuring glibc
7087   # with a fresh cross-compiler works.
7088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7089   # <limits.h> exists even on freestanding compilers.
7090   # On the NeXT, cc -E runs the code through the compiler's parser,
7091   # not just through cpp. "Syntax error" is here to catch this case.
7092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h.  */
7094 #ifdef __STDC__
7095 # include <limits.h>
7096 #else
7097 # include <assert.h>
7098 #endif
7099                      Syntax error
7100 _ACEOF
7101 if ac_fn_c_try_cpp "$LINENO"; then :
7102
7103 else
7104   # Broken: fails on valid input.
7105 continue
7106 fi
7107 rm -f conftest.err conftest.i conftest.$ac_ext
7108
7109   # OK, works on sane cases.  Now check whether nonexistent headers
7110   # can be detected and how.
7111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h.  */
7113 #include <ac_nonexistent.h>
7114 _ACEOF
7115 if ac_fn_c_try_cpp "$LINENO"; then :
7116   # Broken: success on invalid input.
7117 continue
7118 else
7119   # Passes both tests.
7120 ac_preproc_ok=:
7121 break
7122 fi
7123 rm -f conftest.err conftest.i conftest.$ac_ext
7124
7125 done
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.i conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then :
7129
7130 else
7131   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7133 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details" "$LINENO" 5; }
7135 fi
7136
7137 ac_ext=c
7138 ac_cpp='$CPP $CPPFLAGS'
7139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7142
7143
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7145 $as_echo_n "checking for ANSI C header files... " >&6; }
7146 if ${ac_cv_header_stdc+:} false; then :
7147   $as_echo_n "(cached) " >&6
7148 else
7149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h.  */
7151 #include <stdlib.h>
7152 #include <stdarg.h>
7153 #include <string.h>
7154 #include <float.h>
7155
7156 int
7157 main ()
7158 {
7159
7160   ;
7161   return 0;
7162 }
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"; then :
7165   ac_cv_header_stdc=yes
7166 else
7167   ac_cv_header_stdc=no
7168 fi
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170
7171 if test $ac_cv_header_stdc = yes; then
7172   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h.  */
7175 #include <string.h>
7176
7177 _ACEOF
7178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7179   $EGREP "memchr" >/dev/null 2>&1; then :
7180
7181 else
7182   ac_cv_header_stdc=no
7183 fi
7184 rm -f conftest*
7185
7186 fi
7187
7188 if test $ac_cv_header_stdc = yes; then
7189   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h.  */
7192 #include <stdlib.h>
7193
7194 _ACEOF
7195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7196   $EGREP "free" >/dev/null 2>&1; then :
7197
7198 else
7199   ac_cv_header_stdc=no
7200 fi
7201 rm -f conftest*
7202
7203 fi
7204
7205 if test $ac_cv_header_stdc = yes; then
7206   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7207   if test "$cross_compiling" = yes; then :
7208   :
7209 else
7210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212 #include <ctype.h>
7213 #include <stdlib.h>
7214 #if ((' ' & 0x0FF) == 0x020)
7215 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7216 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7217 #else
7218 # define ISLOWER(c) \
7219                    (('a' <= (c) && (c) <= 'i') \
7220                      || ('j' <= (c) && (c) <= 'r') \
7221                      || ('s' <= (c) && (c) <= 'z'))
7222 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7223 #endif
7224
7225 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7226 int
7227 main ()
7228 {
7229   int i;
7230   for (i = 0; i < 256; i++)
7231     if (XOR (islower (i), ISLOWER (i))
7232         || toupper (i) != TOUPPER (i))
7233       return 2;
7234   return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_run "$LINENO"; then :
7238
7239 else
7240   ac_cv_header_stdc=no
7241 fi
7242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7243   conftest.$ac_objext conftest.beam conftest.$ac_ext
7244 fi
7245
7246 fi
7247 fi
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7249 $as_echo "$ac_cv_header_stdc" >&6; }
7250 if test $ac_cv_header_stdc = yes; then
7251
7252 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7253
7254 fi
7255
7256 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7257 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7258                   inttypes.h stdint.h unistd.h
7259 do :
7260   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7261 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7262 "
7263 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7264   cat >>confdefs.h <<_ACEOF
7265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7266 _ACEOF
7267
7268 fi
7269
7270 done
7271
7272
7273 for ac_header in dlfcn.h
7274 do :
7275   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7276 "
7277 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7278   cat >>confdefs.h <<_ACEOF
7279 #define HAVE_DLFCN_H 1
7280 _ACEOF
7281
7282 fi
7283
7284 done
7285
7286
7287
7288
7289
7290 # Set options
7291 # Check whether --enable-shared was given.
7292 if test "${enable_shared+set}" = set; then :
7293   enableval=$enable_shared; p=${PACKAGE-default}
7294     case $enableval in
7295     yes) enable_shared=yes ;;
7296     no) enable_shared=no ;;
7297     *)
7298       enable_shared=no
7299       # Look at the argument we got.  We use all the common list separators.
7300       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7301       for pkg in $enableval; do
7302         IFS="$lt_save_ifs"
7303         if test "X$pkg" = "X$p"; then
7304           enable_shared=yes
7305         fi
7306       done
7307       IFS="$lt_save_ifs"
7308       ;;
7309     esac
7310 else
7311   enable_shared=yes
7312 fi
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323         enable_dlopen=no
7324
7325
7326   enable_win32_dll=no
7327
7328
7329
7330   # Check whether --enable-static was given.
7331 if test "${enable_static+set}" = set; then :
7332   enableval=$enable_static; p=${PACKAGE-default}
7333     case $enableval in
7334     yes) enable_static=yes ;;
7335     no) enable_static=no ;;
7336     *)
7337      enable_static=no
7338       # Look at the argument we got.  We use all the common list separators.
7339       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7340       for pkg in $enableval; do
7341         IFS="$lt_save_ifs"
7342         if test "X$pkg" = "X$p"; then
7343           enable_static=yes
7344         fi
7345       done
7346       IFS="$lt_save_ifs"
7347       ;;
7348     esac
7349 else
7350   enable_static=yes
7351 fi
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362 # Check whether --with-pic was given.
7363 if test "${with_pic+set}" = set; then :
7364   withval=$with_pic; pic_mode="$withval"
7365 else
7366   pic_mode=default
7367 fi
7368
7369
7370 test -z "$pic_mode" && pic_mode=default
7371
7372
7373
7374
7375
7376
7377
7378   # Check whether --enable-fast-install was given.
7379 if test "${enable_fast_install+set}" = set; then :
7380   enableval=$enable_fast_install; p=${PACKAGE-default}
7381     case $enableval in
7382     yes) enable_fast_install=yes ;;
7383     no) enable_fast_install=no ;;
7384     *)
7385       enable_fast_install=no
7386       # Look at the argument we got.  We use all the common list separators.
7387       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7388       for pkg in $enableval; do
7389         IFS="$lt_save_ifs"
7390         if test "X$pkg" = "X$p"; then
7391           enable_fast_install=yes
7392         fi
7393       done
7394       IFS="$lt_save_ifs"
7395       ;;
7396     esac
7397 else
7398   enable_fast_install=yes
7399 fi
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411 # This can be used to rebuild libtool when needed
7412 LIBTOOL_DEPS="$ltmain"
7413
7414 # Always use our own libtool.
7415 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442 test -z "$LN_S" && LN_S="ln -s"
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457 if test -n "${ZSH_VERSION+set}" ; then
7458    setopt NO_GLOB_SUBST
7459 fi
7460
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7462 $as_echo_n "checking for objdir... " >&6; }
7463 if ${lt_cv_objdir+:} false; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466   rm -f .libs 2>/dev/null
7467 mkdir .libs 2>/dev/null
7468 if test -d .libs; then
7469   lt_cv_objdir=.libs
7470 else
7471   # MS-DOS does not allow filenames that begin with a dot.
7472   lt_cv_objdir=_libs
7473 fi
7474 rmdir .libs 2>/dev/null
7475 fi
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7477 $as_echo "$lt_cv_objdir" >&6; }
7478 objdir=$lt_cv_objdir
7479
7480
7481
7482
7483
7484 cat >>confdefs.h <<_ACEOF
7485 #define LT_OBJDIR "$lt_cv_objdir/"
7486 _ACEOF
7487
7488
7489
7490
7491 case $host_os in
7492 aix3*)
7493   # AIX sometimes has problems with the GCC collect2 program.  For some
7494   # reason, if we set the COLLECT_NAMES environment variable, the problems
7495   # vanish in a puff of smoke.
7496   if test "X${COLLECT_NAMES+set}" != Xset; then
7497     COLLECT_NAMES=
7498     export COLLECT_NAMES
7499   fi
7500   ;;
7501 esac
7502
7503 # Global variables:
7504 ofile=libtool
7505 can_build_shared=yes
7506
7507 # All known linkers require a `.a' archive for static linking (except MSVC,
7508 # which needs '.lib').
7509 libext=a
7510
7511 with_gnu_ld="$lt_cv_prog_gnu_ld"
7512
7513 old_CC="$CC"
7514 old_CFLAGS="$CFLAGS"
7515
7516 # Set sane defaults for various variables
7517 test -z "$CC" && CC=cc
7518 test -z "$LTCC" && LTCC=$CC
7519 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7520 test -z "$LD" && LD=ld
7521 test -z "$ac_objext" && ac_objext=o
7522
7523 for cc_temp in $compiler""; do
7524   case $cc_temp in
7525     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7526     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7527     \-*) ;;
7528     *) break;;
7529   esac
7530 done
7531 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7532
7533
7534 # Only perform the check for file, if the check method requires it
7535 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7536 case $deplibs_check_method in
7537 file_magic*)
7538   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7540 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7541 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   case $MAGIC_CMD in
7545 [\\/*] |  ?:[\\/]*)
7546   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7547   ;;
7548 *)
7549   lt_save_MAGIC_CMD="$MAGIC_CMD"
7550   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7551   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7552   for ac_dir in $ac_dummy; do
7553     IFS="$lt_save_ifs"
7554     test -z "$ac_dir" && ac_dir=.
7555     if test -f $ac_dir/${ac_tool_prefix}file; then
7556       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7557       if test -n "$file_magic_test_file"; then
7558         case $deplibs_check_method in
7559         "file_magic "*)
7560           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7561           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7562           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7563             $EGREP "$file_magic_regex" > /dev/null; then
7564             :
7565           else
7566             cat <<_LT_EOF 1>&2
7567
7568 *** Warning: the command libtool uses to detect shared libraries,
7569 *** $file_magic_cmd, produces output that libtool cannot recognize.
7570 *** The result is that libtool may fail to recognize shared libraries
7571 *** as such.  This will affect the creation of libtool libraries that
7572 *** depend on shared libraries, but programs linked with such libtool
7573 *** libraries will work regardless of this problem.  Nevertheless, you
7574 *** may want to report the problem to your system manager and/or to
7575 *** bug-libtool@gnu.org
7576
7577 _LT_EOF
7578           fi ;;
7579         esac
7580       fi
7581       break
7582     fi
7583   done
7584   IFS="$lt_save_ifs"
7585   MAGIC_CMD="$lt_save_MAGIC_CMD"
7586   ;;
7587 esac
7588 fi
7589
7590 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7591 if test -n "$MAGIC_CMD"; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7593 $as_echo "$MAGIC_CMD" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599
7600
7601
7602
7603 if test -z "$lt_cv_path_MAGIC_CMD"; then
7604   if test -n "$ac_tool_prefix"; then
7605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7606 $as_echo_n "checking for file... " >&6; }
7607 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7608   $as_echo_n "(cached) " >&6
7609 else
7610   case $MAGIC_CMD in
7611 [\\/*] |  ?:[\\/]*)
7612   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7613   ;;
7614 *)
7615   lt_save_MAGIC_CMD="$MAGIC_CMD"
7616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7617   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7618   for ac_dir in $ac_dummy; do
7619     IFS="$lt_save_ifs"
7620     test -z "$ac_dir" && ac_dir=.
7621     if test -f $ac_dir/file; then
7622       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7623       if test -n "$file_magic_test_file"; then
7624         case $deplibs_check_method in
7625         "file_magic "*)
7626           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7627           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7628           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7629             $EGREP "$file_magic_regex" > /dev/null; then
7630             :
7631           else
7632             cat <<_LT_EOF 1>&2
7633
7634 *** Warning: the command libtool uses to detect shared libraries,
7635 *** $file_magic_cmd, produces output that libtool cannot recognize.
7636 *** The result is that libtool may fail to recognize shared libraries
7637 *** as such.  This will affect the creation of libtool libraries that
7638 *** depend on shared libraries, but programs linked with such libtool
7639 *** libraries will work regardless of this problem.  Nevertheless, you
7640 *** may want to report the problem to your system manager and/or to
7641 *** bug-libtool@gnu.org
7642
7643 _LT_EOF
7644           fi ;;
7645         esac
7646       fi
7647       break
7648     fi
7649   done
7650   IFS="$lt_save_ifs"
7651   MAGIC_CMD="$lt_save_MAGIC_CMD"
7652   ;;
7653 esac
7654 fi
7655
7656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7657 if test -n "$MAGIC_CMD"; then
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7659 $as_echo "$MAGIC_CMD" >&6; }
7660 else
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7663 fi
7664
7665
7666   else
7667     MAGIC_CMD=:
7668   fi
7669 fi
7670
7671   fi
7672   ;;
7673 esac
7674
7675 # Use C for the default configuration in the libtool script
7676
7677 lt_save_CC="$CC"
7678 ac_ext=c
7679 ac_cpp='$CPP $CPPFLAGS'
7680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7683
7684
7685 # Source file extension for C test sources.
7686 ac_ext=c
7687
7688 # Object file extension for compiled C test sources.
7689 objext=o
7690 objext=$objext
7691
7692 # Code to be used in simple compile tests
7693 lt_simple_compile_test_code="int some_variable = 0;"
7694
7695 # Code to be used in simple link tests
7696 lt_simple_link_test_code='int main(){return(0);}'
7697
7698
7699
7700
7701
7702
7703
7704 # If no C compiler was specified, use CC.
7705 LTCC=${LTCC-"$CC"}
7706
7707 # If no C compiler flags were specified, use CFLAGS.
7708 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7709
7710 # Allow CC to be a program name with arguments.
7711 compiler=$CC
7712
7713 # Save the default compiler, since it gets overwritten when the other
7714 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7715 compiler_DEFAULT=$CC
7716
7717 # save warnings/boilerplate of simple test code
7718 ac_outfile=conftest.$ac_objext
7719 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7721 _lt_compiler_boilerplate=`cat conftest.err`
7722 $RM conftest*
7723
7724 ac_outfile=conftest.$ac_objext
7725 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7727 _lt_linker_boilerplate=`cat conftest.err`
7728 $RM -r conftest*
7729
7730
7731 if test -n "$compiler"; then
7732
7733 lt_prog_compiler_no_builtin_flag=
7734
7735 if test "$GCC" = yes; then
7736   case $cc_basename in
7737   nvcc*)
7738     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7739   *)
7740     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7741   esac
7742
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7744 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7745 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7746   $as_echo_n "(cached) " >&6
7747 else
7748   lt_cv_prog_compiler_rtti_exceptions=no
7749    ac_outfile=conftest.$ac_objext
7750    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7751    lt_compiler_flag="-fno-rtti -fno-exceptions"
7752    # Insert the option either (1) after the last *FLAGS variable, or
7753    # (2) before a word containing "conftest.", or (3) at the end.
7754    # Note that $ac_compile itself does not contain backslashes and begins
7755    # with a dollar sign (not a hyphen), so the echo should work correctly.
7756    # The option is referenced via a variable to avoid confusing sed.
7757    lt_compile=`echo "$ac_compile" | $SED \
7758    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7759    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7760    -e 's:$: $lt_compiler_flag:'`
7761    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7762    (eval "$lt_compile" 2>conftest.err)
7763    ac_status=$?
7764    cat conftest.err >&5
7765    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766    if (exit $ac_status) && test -s "$ac_outfile"; then
7767      # The compiler can only warn and ignore the option if not recognized
7768      # So say no if there are warnings other than the usual output.
7769      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7770      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7771      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7772        lt_cv_prog_compiler_rtti_exceptions=yes
7773      fi
7774    fi
7775    $RM conftest*
7776
7777 fi
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7779 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7780
7781 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7782     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7783 else
7784     :
7785 fi
7786
7787 fi
7788
7789
7790
7791
7792
7793
7794   lt_prog_compiler_wl=
7795 lt_prog_compiler_pic=
7796 lt_prog_compiler_static=
7797
7798
7799   if test "$GCC" = yes; then
7800     lt_prog_compiler_wl='-Wl,'
7801     lt_prog_compiler_static='-static'
7802
7803     case $host_os in
7804       aix*)
7805       # All AIX code is PIC.
7806       if test "$host_cpu" = ia64; then
7807         # AIX 5 now supports IA64 processor
7808         lt_prog_compiler_static='-Bstatic'
7809       fi
7810       ;;
7811
7812     amigaos*)
7813       case $host_cpu in
7814       powerpc)
7815             # see comment about AmigaOS4 .so support
7816             lt_prog_compiler_pic='-fPIC'
7817         ;;
7818       m68k)
7819             # FIXME: we need at least 68020 code to build shared libraries, but
7820             # adding the `-m68020' flag to GCC prevents building anything better,
7821             # like `-m68040'.
7822             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7823         ;;
7824       esac
7825       ;;
7826
7827     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7828       # PIC is the default for these OSes.
7829       ;;
7830
7831     mingw* | cygwin* | pw32* | os2* | cegcc*)
7832       # This hack is so that the source file can tell whether it is being
7833       # built for inclusion in a dll (and should export symbols for example).
7834       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7835       # (--disable-auto-import) libraries
7836       lt_prog_compiler_pic='-DDLL_EXPORT'
7837       ;;
7838
7839     darwin* | rhapsody*)
7840       # PIC is the default on this platform
7841       # Common symbols not allowed in MH_DYLIB files
7842       lt_prog_compiler_pic='-fno-common'
7843       ;;
7844
7845     haiku*)
7846       # PIC is the default for Haiku.
7847       # The "-static" flag exists, but is broken.
7848       lt_prog_compiler_static=
7849       ;;
7850
7851     hpux*)
7852       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7853       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7854       # sets the default TLS model and affects inlining.
7855       case $host_cpu in
7856       hppa*64*)
7857         # +Z the default
7858         ;;
7859       *)
7860         lt_prog_compiler_pic='-fPIC'
7861         ;;
7862       esac
7863       ;;
7864
7865     interix[3-9]*)
7866       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7867       # Instead, we relocate shared libraries at runtime.
7868       ;;
7869
7870     msdosdjgpp*)
7871       # Just because we use GCC doesn't mean we suddenly get shared libraries
7872       # on systems that don't support them.
7873       lt_prog_compiler_can_build_shared=no
7874       enable_shared=no
7875       ;;
7876
7877     *nto* | *qnx*)
7878       # QNX uses GNU C++, but need to define -shared option too, otherwise
7879       # it will coredump.
7880       lt_prog_compiler_pic='-fPIC -shared'
7881       ;;
7882
7883     sysv4*MP*)
7884       if test -d /usr/nec; then
7885         lt_prog_compiler_pic=-Kconform_pic
7886       fi
7887       ;;
7888
7889     *)
7890       lt_prog_compiler_pic='-fPIC'
7891       ;;
7892     esac
7893
7894     case $cc_basename in
7895     nvcc*) # Cuda Compiler Driver 2.2
7896       lt_prog_compiler_wl='-Xlinker '
7897       lt_prog_compiler_pic='-Xcompiler -fPIC'
7898       ;;
7899     esac
7900   else
7901     # PORTME Check for flag to pass linker flags through the system compiler.
7902     case $host_os in
7903     aix*)
7904       lt_prog_compiler_wl='-Wl,'
7905       if test "$host_cpu" = ia64; then
7906         # AIX 5 now supports IA64 processor
7907         lt_prog_compiler_static='-Bstatic'
7908       else
7909         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7910       fi
7911       ;;
7912
7913     mingw* | cygwin* | pw32* | os2* | cegcc*)
7914       # This hack is so that the source file can tell whether it is being
7915       # built for inclusion in a dll (and should export symbols for example).
7916       lt_prog_compiler_pic='-DDLL_EXPORT'
7917       ;;
7918
7919     hpux9* | hpux10* | hpux11*)
7920       lt_prog_compiler_wl='-Wl,'
7921       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7922       # not for PA HP-UX.
7923       case $host_cpu in
7924       hppa*64*|ia64*)
7925         # +Z the default
7926         ;;
7927       *)
7928         lt_prog_compiler_pic='+Z'
7929         ;;
7930       esac
7931       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7932       lt_prog_compiler_static='${wl}-a ${wl}archive'
7933       ;;
7934
7935     irix5* | irix6* | nonstopux*)
7936       lt_prog_compiler_wl='-Wl,'
7937       # PIC (with -KPIC) is the default.
7938       lt_prog_compiler_static='-non_shared'
7939       ;;
7940
7941     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7942       case $cc_basename in
7943       # old Intel for x86_64 which still supported -KPIC.
7944       ecc*)
7945         lt_prog_compiler_wl='-Wl,'
7946         lt_prog_compiler_pic='-KPIC'
7947         lt_prog_compiler_static='-static'
7948         ;;
7949       # icc used to be incompatible with GCC.
7950       # ICC 10 doesn't accept -KPIC any more.
7951       icc* | ifort*)
7952         lt_prog_compiler_wl='-Wl,'
7953         lt_prog_compiler_pic='-fPIC'
7954         lt_prog_compiler_static='-static'
7955         ;;
7956       # Lahey Fortran 8.1.
7957       lf95*)
7958         lt_prog_compiler_wl='-Wl,'
7959         lt_prog_compiler_pic='--shared'
7960         lt_prog_compiler_static='--static'
7961         ;;
7962       nagfor*)
7963         # NAG Fortran compiler
7964         lt_prog_compiler_wl='-Wl,-Wl,,'
7965         lt_prog_compiler_pic='-PIC'
7966         lt_prog_compiler_static='-Bstatic'
7967         ;;
7968       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7969         # Portland Group compilers (*not* the Pentium gcc compiler,
7970         # which looks to be a dead project)
7971         lt_prog_compiler_wl='-Wl,'
7972         lt_prog_compiler_pic='-fpic'
7973         lt_prog_compiler_static='-Bstatic'
7974         ;;
7975       ccc*)
7976         lt_prog_compiler_wl='-Wl,'
7977         # All Alpha code is PIC.
7978         lt_prog_compiler_static='-non_shared'
7979         ;;
7980       xl* | bgxl* | bgf* | mpixl*)
7981         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7982         lt_prog_compiler_wl='-Wl,'
7983         lt_prog_compiler_pic='-qpic'
7984         lt_prog_compiler_static='-qstaticlink'
7985         ;;
7986       *)
7987         case `$CC -V 2>&1 | sed 5q` in
7988         *Sun\ F* | *Sun*Fortran*)
7989           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7990           lt_prog_compiler_pic='-KPIC'
7991           lt_prog_compiler_static='-Bstatic'
7992           lt_prog_compiler_wl=''
7993           ;;
7994         *Sun\ C*)
7995           # Sun C 5.9
7996           lt_prog_compiler_pic='-KPIC'
7997           lt_prog_compiler_static='-Bstatic'
7998           lt_prog_compiler_wl='-Wl,'
7999           ;;
8000         esac
8001         ;;
8002       esac
8003       ;;
8004
8005     newsos6)
8006       lt_prog_compiler_pic='-KPIC'
8007       lt_prog_compiler_static='-Bstatic'
8008       ;;
8009
8010     *nto* | *qnx*)
8011       # QNX uses GNU C++, but need to define -shared option too, otherwise
8012       # it will coredump.
8013       lt_prog_compiler_pic='-fPIC -shared'
8014       ;;
8015
8016     osf3* | osf4* | osf5*)
8017       lt_prog_compiler_wl='-Wl,'
8018       # All OSF/1 code is PIC.
8019       lt_prog_compiler_static='-non_shared'
8020       ;;
8021
8022     rdos*)
8023       lt_prog_compiler_static='-non_shared'
8024       ;;
8025
8026     solaris*)
8027       lt_prog_compiler_pic='-KPIC'
8028       lt_prog_compiler_static='-Bstatic'
8029       case $cc_basename in
8030       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8031         lt_prog_compiler_wl='-Qoption ld ';;
8032       *)
8033         lt_prog_compiler_wl='-Wl,';;
8034       esac
8035       ;;
8036
8037     sunos4*)
8038       lt_prog_compiler_wl='-Qoption ld '
8039       lt_prog_compiler_pic='-PIC'
8040       lt_prog_compiler_static='-Bstatic'
8041       ;;
8042
8043     sysv4 | sysv4.2uw2* | sysv4.3*)
8044       lt_prog_compiler_wl='-Wl,'
8045       lt_prog_compiler_pic='-KPIC'
8046       lt_prog_compiler_static='-Bstatic'
8047       ;;
8048
8049     sysv4*MP*)
8050       if test -d /usr/nec ;then
8051         lt_prog_compiler_pic='-Kconform_pic'
8052         lt_prog_compiler_static='-Bstatic'
8053       fi
8054       ;;
8055
8056     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8057       lt_prog_compiler_wl='-Wl,'
8058       lt_prog_compiler_pic='-KPIC'
8059       lt_prog_compiler_static='-Bstatic'
8060       ;;
8061
8062     unicos*)
8063       lt_prog_compiler_wl='-Wl,'
8064       lt_prog_compiler_can_build_shared=no
8065       ;;
8066
8067     uts4*)
8068       lt_prog_compiler_pic='-pic'
8069       lt_prog_compiler_static='-Bstatic'
8070       ;;
8071
8072     *)
8073       lt_prog_compiler_can_build_shared=no
8074       ;;
8075     esac
8076   fi
8077
8078 case $host_os in
8079   # For platforms which do not support PIC, -DPIC is meaningless:
8080   *djgpp*)
8081     lt_prog_compiler_pic=
8082     ;;
8083   *)
8084     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8085     ;;
8086 esac
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8089 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8090 if ${lt_cv_prog_compiler_pic+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8094 fi
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8096 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8097 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8098
8099 #
8100 # Check to make sure the PIC flag actually works.
8101 #
8102 if test -n "$lt_prog_compiler_pic"; then
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8104 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8105 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8106   $as_echo_n "(cached) " >&6
8107 else
8108   lt_cv_prog_compiler_pic_works=no
8109    ac_outfile=conftest.$ac_objext
8110    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8111    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8112    # Insert the option either (1) after the last *FLAGS variable, or
8113    # (2) before a word containing "conftest.", or (3) at the end.
8114    # Note that $ac_compile itself does not contain backslashes and begins
8115    # with a dollar sign (not a hyphen), so the echo should work correctly.
8116    # The option is referenced via a variable to avoid confusing sed.
8117    lt_compile=`echo "$ac_compile" | $SED \
8118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8120    -e 's:$: $lt_compiler_flag:'`
8121    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8122    (eval "$lt_compile" 2>conftest.err)
8123    ac_status=$?
8124    cat conftest.err >&5
8125    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126    if (exit $ac_status) && test -s "$ac_outfile"; then
8127      # The compiler can only warn and ignore the option if not recognized
8128      # So say no if there are warnings other than the usual output.
8129      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8130      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8131      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8132        lt_cv_prog_compiler_pic_works=yes
8133      fi
8134    fi
8135    $RM conftest*
8136
8137 fi
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8139 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8140
8141 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8142     case $lt_prog_compiler_pic in
8143      "" | " "*) ;;
8144      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8145      esac
8146 else
8147     lt_prog_compiler_pic=
8148      lt_prog_compiler_can_build_shared=no
8149 fi
8150
8151 fi
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163 #
8164 # Check to make sure the static flag actually works.
8165 #
8166 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8168 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8169 if ${lt_cv_prog_compiler_static_works+:} false; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172   lt_cv_prog_compiler_static_works=no
8173    save_LDFLAGS="$LDFLAGS"
8174    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8175    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8176    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8177      # The linker can only warn and ignore the option if not recognized
8178      # So say no if there are warnings
8179      if test -s conftest.err; then
8180        # Append any errors to the config.log.
8181        cat conftest.err 1>&5
8182        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8183        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8184        if diff conftest.exp conftest.er2 >/dev/null; then
8185          lt_cv_prog_compiler_static_works=yes
8186        fi
8187      else
8188        lt_cv_prog_compiler_static_works=yes
8189      fi
8190    fi
8191    $RM -r conftest*
8192    LDFLAGS="$save_LDFLAGS"
8193
8194 fi
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8196 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8197
8198 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8199     :
8200 else
8201     lt_prog_compiler_static=
8202 fi
8203
8204
8205
8206
8207
8208
8209
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8211 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8212 if ${lt_cv_prog_compiler_c_o+:} false; then :
8213   $as_echo_n "(cached) " >&6
8214 else
8215   lt_cv_prog_compiler_c_o=no
8216    $RM -r conftest 2>/dev/null
8217    mkdir conftest
8218    cd conftest
8219    mkdir out
8220    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8221
8222    lt_compiler_flag="-o out/conftest2.$ac_objext"
8223    # Insert the option either (1) after the last *FLAGS variable, or
8224    # (2) before a word containing "conftest.", or (3) at the end.
8225    # Note that $ac_compile itself does not contain backslashes and begins
8226    # with a dollar sign (not a hyphen), so the echo should work correctly.
8227    lt_compile=`echo "$ac_compile" | $SED \
8228    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8229    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8230    -e 's:$: $lt_compiler_flag:'`
8231    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8232    (eval "$lt_compile" 2>out/conftest.err)
8233    ac_status=$?
8234    cat out/conftest.err >&5
8235    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8237    then
8238      # The compiler can only warn and ignore the option if not recognized
8239      # So say no if there are warnings
8240      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8241      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8242      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8243        lt_cv_prog_compiler_c_o=yes
8244      fi
8245    fi
8246    chmod u+w . 2>&5
8247    $RM conftest*
8248    # SGI C++ compiler will create directory out/ii_files/ for
8249    # template instantiation
8250    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8251    $RM out/* && rmdir out
8252    cd ..
8253    $RM -r conftest
8254    $RM conftest*
8255
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8258 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8259
8260
8261
8262
8263
8264
8265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8266 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8267 if ${lt_cv_prog_compiler_c_o+:} false; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   lt_cv_prog_compiler_c_o=no
8271    $RM -r conftest 2>/dev/null
8272    mkdir conftest
8273    cd conftest
8274    mkdir out
8275    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8276
8277    lt_compiler_flag="-o out/conftest2.$ac_objext"
8278    # Insert the option either (1) after the last *FLAGS variable, or
8279    # (2) before a word containing "conftest.", or (3) at the end.
8280    # Note that $ac_compile itself does not contain backslashes and begins
8281    # with a dollar sign (not a hyphen), so the echo should work correctly.
8282    lt_compile=`echo "$ac_compile" | $SED \
8283    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8284    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8285    -e 's:$: $lt_compiler_flag:'`
8286    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8287    (eval "$lt_compile" 2>out/conftest.err)
8288    ac_status=$?
8289    cat out/conftest.err >&5
8290    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8292    then
8293      # The compiler can only warn and ignore the option if not recognized
8294      # So say no if there are warnings
8295      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8296      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8297      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8298        lt_cv_prog_compiler_c_o=yes
8299      fi
8300    fi
8301    chmod u+w . 2>&5
8302    $RM conftest*
8303    # SGI C++ compiler will create directory out/ii_files/ for
8304    # template instantiation
8305    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8306    $RM out/* && rmdir out
8307    cd ..
8308    $RM -r conftest
8309    $RM conftest*
8310
8311 fi
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8313 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8314
8315
8316
8317
8318 hard_links="nottested"
8319 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8320   # do not overwrite the value of need_locks provided by the user
8321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8322 $as_echo_n "checking if we can lock with hard links... " >&6; }
8323   hard_links=yes
8324   $RM conftest*
8325   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8326   touch conftest.a
8327   ln conftest.a conftest.b 2>&5 || hard_links=no
8328   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8330 $as_echo "$hard_links" >&6; }
8331   if test "$hard_links" = no; then
8332     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8333 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8334     need_locks=warn
8335   fi
8336 else
8337   need_locks=no
8338 fi
8339
8340
8341
8342
8343
8344
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8346 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8347
8348   runpath_var=
8349   allow_undefined_flag=
8350   always_export_symbols=no
8351   archive_cmds=
8352   archive_expsym_cmds=
8353   compiler_needs_object=no
8354   enable_shared_with_static_runtimes=no
8355   export_dynamic_flag_spec=
8356   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8357   hardcode_automatic=no
8358   hardcode_direct=no
8359   hardcode_direct_absolute=no
8360   hardcode_libdir_flag_spec=
8361   hardcode_libdir_flag_spec_ld=
8362   hardcode_libdir_separator=
8363   hardcode_minus_L=no
8364   hardcode_shlibpath_var=unsupported
8365   inherit_rpath=no
8366   link_all_deplibs=unknown
8367   module_cmds=
8368   module_expsym_cmds=
8369   old_archive_from_new_cmds=
8370   old_archive_from_expsyms_cmds=
8371   thread_safe_flag_spec=
8372   whole_archive_flag_spec=
8373   # include_expsyms should be a list of space-separated symbols to be *always*
8374   # included in the symbol list
8375   include_expsyms=
8376   # exclude_expsyms can be an extended regexp of symbols to exclude
8377   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8378   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8379   # as well as any symbol that contains `d'.
8380   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8381   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8382   # platforms (ab)use it in PIC code, but their linkers get confused if
8383   # the symbol is explicitly referenced.  Since portable code cannot
8384   # rely on this symbol name, it's probably fine to never include it in
8385   # preloaded symbol tables.
8386   # Exclude shared library initialization/finalization symbols.
8387   extract_expsyms_cmds=
8388
8389   case $host_os in
8390   cygwin* | mingw* | pw32* | cegcc*)
8391     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8392     # When not using gcc, we currently assume that we are using
8393     # Microsoft Visual C++.
8394     if test "$GCC" != yes; then
8395       with_gnu_ld=no
8396     fi
8397     ;;
8398   interix*)
8399     # we just hope/assume this is gcc and not c89 (= MSVC++)
8400     with_gnu_ld=yes
8401     ;;
8402   openbsd*)
8403     with_gnu_ld=no
8404     ;;
8405   esac
8406
8407   ld_shlibs=yes
8408
8409   # On some targets, GNU ld is compatible enough with the native linker
8410   # that we're better off using the native interface for both.
8411   lt_use_gnu_ld_interface=no
8412   if test "$with_gnu_ld" = yes; then
8413     case $host_os in
8414       aix*)
8415         # The AIX port of GNU ld has always aspired to compatibility
8416         # with the native linker.  However, as the warning in the GNU ld
8417         # block says, versions before 2.19.5* couldn't really create working
8418         # shared libraries, regardless of the interface used.
8419         case `$LD -v 2>&1` in
8420           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8421           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8422           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8423           *)
8424             lt_use_gnu_ld_interface=yes
8425             ;;
8426         esac
8427         ;;
8428       *)
8429         lt_use_gnu_ld_interface=yes
8430         ;;
8431     esac
8432   fi
8433
8434   if test "$lt_use_gnu_ld_interface" = yes; then
8435     # If archive_cmds runs LD, not CC, wlarc should be empty
8436     wlarc='${wl}'
8437
8438     # Set some defaults for GNU ld with shared library support. These
8439     # are reset later if shared libraries are not supported. Putting them
8440     # here allows them to be overridden if necessary.
8441     runpath_var=LD_RUN_PATH
8442     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8443     export_dynamic_flag_spec='${wl}--export-dynamic'
8444     # ancient GNU ld didn't support --whole-archive et. al.
8445     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8446       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8447     else
8448       whole_archive_flag_spec=
8449     fi
8450     supports_anon_versioning=no
8451     case `$LD -v 2>&1` in
8452       *GNU\ gold*) supports_anon_versioning=yes ;;
8453       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8454       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8455       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8456       *\ 2.11.*) ;; # other 2.11 versions
8457       *) supports_anon_versioning=yes ;;
8458     esac
8459
8460     # See if GNU ld supports shared libraries.
8461     case $host_os in
8462     aix[3-9]*)
8463       # On AIX/PPC, the GNU linker is very broken
8464       if test "$host_cpu" != ia64; then
8465         ld_shlibs=no
8466         cat <<_LT_EOF 1>&2
8467
8468 *** Warning: the GNU linker, at least up to release 2.19, is reported
8469 *** to be unable to reliably create shared libraries on AIX.
8470 *** Therefore, libtool is disabling shared libraries support.  If you
8471 *** really care for shared libraries, you may want to install binutils
8472 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8473 *** You will then need to restart the configuration process.
8474
8475 _LT_EOF
8476       fi
8477       ;;
8478
8479     amigaos*)
8480       case $host_cpu in
8481       powerpc)
8482             # see comment about AmigaOS4 .so support
8483             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484             archive_expsym_cmds=''
8485         ;;
8486       m68k)
8487             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)'
8488             hardcode_libdir_flag_spec='-L$libdir'
8489             hardcode_minus_L=yes
8490         ;;
8491       esac
8492       ;;
8493
8494     beos*)
8495       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8496         allow_undefined_flag=unsupported
8497         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8498         # support --undefined.  This deserves some investigation.  FIXME
8499         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8500       else
8501         ld_shlibs=no
8502       fi
8503       ;;
8504
8505     cygwin* | mingw* | pw32* | cegcc*)
8506       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8507       # as there is no search path for DLLs.
8508       hardcode_libdir_flag_spec='-L$libdir'
8509       export_dynamic_flag_spec='${wl}--export-all-symbols'
8510       allow_undefined_flag=unsupported
8511       always_export_symbols=no
8512       enable_shared_with_static_runtimes=yes
8513       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'
8514       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8515
8516       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8517         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8518         # If the export-symbols file already is a .def file (1st line
8519         # is EXPORTS), use it as is; otherwise, prepend...
8520         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8521           cp $export_symbols $output_objdir/$soname.def;
8522         else
8523           echo EXPORTS > $output_objdir/$soname.def;
8524           cat $export_symbols >> $output_objdir/$soname.def;
8525         fi~
8526         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8527       else
8528         ld_shlibs=no
8529       fi
8530       ;;
8531
8532     haiku*)
8533       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534       link_all_deplibs=yes
8535       ;;
8536
8537     interix[3-9]*)
8538       hardcode_direct=no
8539       hardcode_shlibpath_var=no
8540       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8541       export_dynamic_flag_spec='${wl}-E'
8542       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8543       # Instead, shared libraries are loaded at an image base (0x10000000 by
8544       # default) and relocated if they conflict, which is a slow very memory
8545       # consuming and fragmenting process.  To avoid this, we pick a random,
8546       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8547       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8548       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8549       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'
8550       ;;
8551
8552     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8553       tmp_diet=no
8554       if test "$host_os" = linux-dietlibc; then
8555         case $cc_basename in
8556           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8557         esac
8558       fi
8559       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8560          && test "$tmp_diet" = no
8561       then
8562         tmp_addflag=' $pic_flag'
8563         tmp_sharedflag='-shared'
8564         case $cc_basename,$host_cpu in
8565         pgcc*)                          # Portland Group C compiler
8566           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'
8567           tmp_addflag=' $pic_flag'
8568           ;;
8569         pgf77* | pgf90* | pgf95* | pgfortran*)
8570                                         # Portland Group f77 and f90 compilers
8571           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'
8572           tmp_addflag=' $pic_flag -Mnomain' ;;
8573         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8574           tmp_addflag=' -i_dynamic' ;;
8575         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8576           tmp_addflag=' -i_dynamic -nofor_main' ;;
8577         ifc* | ifort*)                  # Intel Fortran compiler
8578           tmp_addflag=' -nofor_main' ;;
8579         lf95*)                          # Lahey Fortran 8.1
8580           whole_archive_flag_spec=
8581           tmp_sharedflag='--shared' ;;
8582         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8583           tmp_sharedflag='-qmkshrobj'
8584           tmp_addflag= ;;
8585         nvcc*)  # Cuda Compiler Driver 2.2
8586           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'
8587           compiler_needs_object=yes
8588           ;;
8589         esac
8590         case `$CC -V 2>&1 | sed 5q` in
8591         *Sun\ C*)                       # Sun C 5.9
8592           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'
8593           compiler_needs_object=yes
8594           tmp_sharedflag='-G' ;;
8595         *Sun\ F*)                       # Sun Fortran 8.3
8596           tmp_sharedflag='-G' ;;
8597         esac
8598         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8599
8600         if test "x$supports_anon_versioning" = xyes; then
8601           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8602             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8603             echo "local: *; };" >> $output_objdir/$libname.ver~
8604             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8605         fi
8606
8607         case $cc_basename in
8608         xlf* | bgf* | bgxlf* | mpixlf*)
8609           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8610           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8611           hardcode_libdir_flag_spec=
8612           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8613           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8614           if test "x$supports_anon_versioning" = xyes; then
8615             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8616               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8617               echo "local: *; };" >> $output_objdir/$libname.ver~
8618               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8619           fi
8620           ;;
8621         esac
8622       else
8623         ld_shlibs=no
8624       fi
8625       ;;
8626
8627     netbsd*)
8628       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8629         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8630         wlarc=
8631       else
8632         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8634       fi
8635       ;;
8636
8637     solaris*)
8638       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8639         ld_shlibs=no
8640         cat <<_LT_EOF 1>&2
8641
8642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8643 *** create shared libraries on Solaris systems.  Therefore, libtool
8644 *** is disabling shared libraries support.  We urge you to upgrade GNU
8645 *** binutils to release 2.9.1 or newer.  Another option is to modify
8646 *** your PATH or compiler configuration so that the native linker is
8647 *** used, and then restart.
8648
8649 _LT_EOF
8650       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8651         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653       else
8654         ld_shlibs=no
8655       fi
8656       ;;
8657
8658     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8659       case `$LD -v 2>&1` in
8660         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8661         ld_shlibs=no
8662         cat <<_LT_EOF 1>&2
8663
8664 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8665 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8666 *** is disabling shared libraries support.  We urge you to upgrade GNU
8667 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8668 *** your PATH or compiler configuration so that the native linker is
8669 *** used, and then restart.
8670
8671 _LT_EOF
8672         ;;
8673         *)
8674           # For security reasons, it is highly recommended that you always
8675           # use absolute paths for naming shared libraries, and exclude the
8676           # DT_RUNPATH tag from executables and libraries.  But doing so
8677           # requires that you compile everything twice, which is a pain.
8678           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8679             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8680             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8682           else
8683             ld_shlibs=no
8684           fi
8685         ;;
8686       esac
8687       ;;
8688
8689     sunos4*)
8690       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8691       wlarc=
8692       hardcode_direct=yes
8693       hardcode_shlibpath_var=no
8694       ;;
8695
8696     *)
8697       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700       else
8701         ld_shlibs=no
8702       fi
8703       ;;
8704     esac
8705
8706     if test "$ld_shlibs" = no; then
8707       runpath_var=
8708       hardcode_libdir_flag_spec=
8709       export_dynamic_flag_spec=
8710       whole_archive_flag_spec=
8711     fi
8712   else
8713     # PORTME fill in a description of your system's linker (not GNU ld)
8714     case $host_os in
8715     aix3*)
8716       allow_undefined_flag=unsupported
8717       always_export_symbols=yes
8718       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'
8719       # Note: this linker hardcodes the directories in LIBPATH if there
8720       # are no directories specified by -L.
8721       hardcode_minus_L=yes
8722       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8723         # Neither direct hardcoding nor static linking is supported with a
8724         # broken collect2.
8725         hardcode_direct=unsupported
8726       fi
8727       ;;
8728
8729     aix[4-9]*)
8730       if test "$host_cpu" = ia64; then
8731         # On IA64, the linker does run time linking by default, so we don't
8732         # have to do anything special.
8733         aix_use_runtimelinking=no
8734         exp_sym_flag='-Bexport'
8735         no_entry_flag=""
8736       else
8737         # If we're using GNU nm, then we don't want the "-C" option.
8738         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8739         # Also, AIX nm treats weak defined symbols like other global
8740         # defined symbols, whereas GNU nm marks them as "W".
8741         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8742           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'
8743         else
8744           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'
8745         fi
8746         aix_use_runtimelinking=no
8747
8748         # Test if we are trying to use run time linking or normal
8749         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8750         # need to do runtime linking.
8751         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8752           for ld_flag in $LDFLAGS; do
8753           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8754             aix_use_runtimelinking=yes
8755             break
8756           fi
8757           done
8758           ;;
8759         esac
8760
8761         exp_sym_flag='-bexport'
8762         no_entry_flag='-bnoentry'
8763       fi
8764
8765       # When large executables or shared objects are built, AIX ld can
8766       # have problems creating the table of contents.  If linking a library
8767       # or program results in "error TOC overflow" add -mminimal-toc to
8768       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8769       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8770
8771       archive_cmds=''
8772       hardcode_direct=yes
8773       hardcode_direct_absolute=yes
8774       hardcode_libdir_separator=':'
8775       link_all_deplibs=yes
8776       file_list_spec='${wl}-f,'
8777
8778       if test "$GCC" = yes; then
8779         case $host_os in aix4.[012]|aix4.[012].*)
8780         # We only want to do this on AIX 4.2 and lower, the check
8781         # below for broken collect2 doesn't work under 4.3+
8782           collect2name=`${CC} -print-prog-name=collect2`
8783           if test -f "$collect2name" &&
8784            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8785           then
8786           # We have reworked collect2
8787           :
8788           else
8789           # We have old collect2
8790           hardcode_direct=unsupported
8791           # It fails to find uninstalled libraries when the uninstalled
8792           # path is not listed in the libpath.  Setting hardcode_minus_L
8793           # to unsupported forces relinking
8794           hardcode_minus_L=yes
8795           hardcode_libdir_flag_spec='-L$libdir'
8796           hardcode_libdir_separator=
8797           fi
8798           ;;
8799         esac
8800         shared_flag='-shared'
8801         if test "$aix_use_runtimelinking" = yes; then
8802           shared_flag="$shared_flag "'${wl}-G'
8803         fi
8804       else
8805         # not using gcc
8806         if test "$host_cpu" = ia64; then
8807         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8808         # chokes on -Wl,-G. The following line is correct:
8809           shared_flag='-G'
8810         else
8811           if test "$aix_use_runtimelinking" = yes; then
8812             shared_flag='${wl}-G'
8813           else
8814             shared_flag='${wl}-bM:SRE'
8815           fi
8816         fi
8817       fi
8818
8819       export_dynamic_flag_spec='${wl}-bexpall'
8820       # It seems that -bexpall does not export symbols beginning with
8821       # underscore (_), so it is better to generate a list of symbols to export.
8822       always_export_symbols=yes
8823       if test "$aix_use_runtimelinking" = yes; then
8824         # Warning - without using the other runtime loading flags (-brtl),
8825         # -berok will link without error, but may produce a broken library.
8826         allow_undefined_flag='-berok'
8827         # Determine the default libpath from the value encoded in an
8828         # empty executable.
8829         if test "${lt_cv_aix_libpath+set}" = set; then
8830   aix_libpath=$lt_cv_aix_libpath
8831 else
8832   if ${lt_cv_aix_libpath_+:} false; then :
8833   $as_echo_n "(cached) " >&6
8834 else
8835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h.  */
8837
8838 int
8839 main ()
8840 {
8841
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 if ac_fn_c_try_link "$LINENO"; then :
8847
8848   lt_aix_libpath_sed='
8849       /Import File Strings/,/^$/ {
8850           /^0/ {
8851               s/^0  *\([^ ]*\) *$/\1/
8852               p
8853           }
8854       }'
8855   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8856   # Check for a 64-bit object if we didn't find anything.
8857   if test -z "$lt_cv_aix_libpath_"; then
8858     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8859   fi
8860 fi
8861 rm -f core conftest.err conftest.$ac_objext \
8862     conftest$ac_exeext conftest.$ac_ext
8863   if test -z "$lt_cv_aix_libpath_"; then
8864     lt_cv_aix_libpath_="/usr/lib:/lib"
8865   fi
8866
8867 fi
8868
8869   aix_libpath=$lt_cv_aix_libpath_
8870 fi
8871
8872         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8873         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"
8874       else
8875         if test "$host_cpu" = ia64; then
8876           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8877           allow_undefined_flag="-z nodefs"
8878           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"
8879         else
8880          # Determine the default libpath from the value encoded in an
8881          # empty executable.
8882          if test "${lt_cv_aix_libpath+set}" = set; then
8883   aix_libpath=$lt_cv_aix_libpath
8884 else
8885   if ${lt_cv_aix_libpath_+:} false; then :
8886   $as_echo_n "(cached) " >&6
8887 else
8888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h.  */
8890
8891 int
8892 main ()
8893 {
8894
8895   ;
8896   return 0;
8897 }
8898 _ACEOF
8899 if ac_fn_c_try_link "$LINENO"; then :
8900
8901   lt_aix_libpath_sed='
8902       /Import File Strings/,/^$/ {
8903           /^0/ {
8904               s/^0  *\([^ ]*\) *$/\1/
8905               p
8906           }
8907       }'
8908   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8909   # Check for a 64-bit object if we didn't find anything.
8910   if test -z "$lt_cv_aix_libpath_"; then
8911     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8912   fi
8913 fi
8914 rm -f core conftest.err conftest.$ac_objext \
8915     conftest$ac_exeext conftest.$ac_ext
8916   if test -z "$lt_cv_aix_libpath_"; then
8917     lt_cv_aix_libpath_="/usr/lib:/lib"
8918   fi
8919
8920 fi
8921
8922   aix_libpath=$lt_cv_aix_libpath_
8923 fi
8924
8925          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8926           # Warning - without using the other run time loading flags,
8927           # -berok will link without error, but may produce a broken library.
8928           no_undefined_flag=' ${wl}-bernotok'
8929           allow_undefined_flag=' ${wl}-berok'
8930           if test "$with_gnu_ld" = yes; then
8931             # We only use this code for GNU lds that support --whole-archive.
8932             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8933           else
8934             # Exported symbols can be pulled into shared objects from archives
8935             whole_archive_flag_spec='$convenience'
8936           fi
8937           archive_cmds_need_lc=yes
8938           # This is similar to how AIX traditionally builds its shared libraries.
8939           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'
8940         fi
8941       fi
8942       ;;
8943
8944     amigaos*)
8945       case $host_cpu in
8946       powerpc)
8947             # see comment about AmigaOS4 .so support
8948             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949             archive_expsym_cmds=''
8950         ;;
8951       m68k)
8952             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)'
8953             hardcode_libdir_flag_spec='-L$libdir'
8954             hardcode_minus_L=yes
8955         ;;
8956       esac
8957       ;;
8958
8959     bsdi[45]*)
8960       export_dynamic_flag_spec=-rdynamic
8961       ;;
8962
8963     cygwin* | mingw* | pw32* | cegcc*)
8964       # When not using gcc, we currently assume that we are using
8965       # Microsoft Visual C++.
8966       # hardcode_libdir_flag_spec is actually meaningless, as there is
8967       # no search path for DLLs.
8968       case $cc_basename in
8969       cl*)
8970         # Native MSVC
8971         hardcode_libdir_flag_spec=' '
8972         allow_undefined_flag=unsupported
8973         always_export_symbols=yes
8974         file_list_spec='@'
8975         # Tell ltmain to make .lib files, not .a files.
8976         libext=lib
8977         # Tell ltmain to make .dll files, not .so files.
8978         shrext_cmds=".dll"
8979         # FIXME: Setting linknames here is a bad hack.
8980         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8981         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8982             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8983           else
8984             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8985           fi~
8986           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8987           linknames='
8988         # The linker will not automatically build a static lib if we build a DLL.
8989         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8990         enable_shared_with_static_runtimes=yes
8991         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8992         # Don't use ranlib
8993         old_postinstall_cmds='chmod 644 $oldlib'
8994         postlink_cmds='lt_outputfile="@OUTPUT@"~
8995           lt_tool_outputfile="@TOOL_OUTPUT@"~
8996           case $lt_outputfile in
8997             *.exe|*.EXE) ;;
8998             *)
8999               lt_outputfile="$lt_outputfile.exe"
9000               lt_tool_outputfile="$lt_tool_outputfile.exe"
9001               ;;
9002           esac~
9003           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9004             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9005             $RM "$lt_outputfile.manifest";
9006           fi'
9007         ;;
9008       *)
9009         # Assume MSVC wrapper
9010         hardcode_libdir_flag_spec=' '
9011         allow_undefined_flag=unsupported
9012         # Tell ltmain to make .lib files, not .a files.
9013         libext=lib
9014         # Tell ltmain to make .dll files, not .so files.
9015         shrext_cmds=".dll"
9016         # FIXME: Setting linknames here is a bad hack.
9017         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9018         # The linker will automatically build a .lib file if we build a DLL.
9019         old_archive_from_new_cmds='true'
9020         # FIXME: Should let the user specify the lib program.
9021         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9022         enable_shared_with_static_runtimes=yes
9023         ;;
9024       esac
9025       ;;
9026
9027     darwin* | rhapsody*)
9028
9029
9030   archive_cmds_need_lc=no
9031   hardcode_direct=no
9032   hardcode_automatic=yes
9033   hardcode_shlibpath_var=unsupported
9034   if test "$lt_cv_ld_force_load" = "yes"; then
9035     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\"`'
9036   else
9037     whole_archive_flag_spec=''
9038   fi
9039   link_all_deplibs=yes
9040   allow_undefined_flag="$_lt_dar_allow_undefined"
9041   case $cc_basename in
9042      ifort*) _lt_dar_can_shared=yes ;;
9043      *) _lt_dar_can_shared=$GCC ;;
9044   esac
9045   if test "$_lt_dar_can_shared" = "yes"; then
9046     output_verbose_link_cmd=func_echo_all
9047     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9048     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9049     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}"
9050     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}"
9051
9052   else
9053   ld_shlibs=no
9054   fi
9055
9056       ;;
9057
9058     dgux*)
9059       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060       hardcode_libdir_flag_spec='-L$libdir'
9061       hardcode_shlibpath_var=no
9062       ;;
9063
9064     freebsd1*)
9065       ld_shlibs=no
9066       ;;
9067
9068     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9069     # support.  Future versions do this automatically, but an explicit c++rt0.o
9070     # does not break anything, and helps significantly (at the cost of a little
9071     # extra space).
9072     freebsd2.2*)
9073       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9074       hardcode_libdir_flag_spec='-R$libdir'
9075       hardcode_direct=yes
9076       hardcode_shlibpath_var=no
9077       ;;
9078
9079     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9080     freebsd2*)
9081       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9082       hardcode_direct=yes
9083       hardcode_minus_L=yes
9084       hardcode_shlibpath_var=no
9085       ;;
9086
9087     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9088     freebsd* | dragonfly*)
9089       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9090       hardcode_libdir_flag_spec='-R$libdir'
9091       hardcode_direct=yes
9092       hardcode_shlibpath_var=no
9093       ;;
9094
9095     hpux9*)
9096       if test "$GCC" = yes; then
9097         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'
9098       else
9099         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'
9100       fi
9101       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9102       hardcode_libdir_separator=:
9103       hardcode_direct=yes
9104
9105       # hardcode_minus_L: Not really in the search PATH,
9106       # but as the default location of the library.
9107       hardcode_minus_L=yes
9108       export_dynamic_flag_spec='${wl}-E'
9109       ;;
9110
9111     hpux10*)
9112       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9113         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9114       else
9115         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9116       fi
9117       if test "$with_gnu_ld" = no; then
9118         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9119         hardcode_libdir_flag_spec_ld='+b $libdir'
9120         hardcode_libdir_separator=:
9121         hardcode_direct=yes
9122         hardcode_direct_absolute=yes
9123         export_dynamic_flag_spec='${wl}-E'
9124         # hardcode_minus_L: Not really in the search PATH,
9125         # but as the default location of the library.
9126         hardcode_minus_L=yes
9127       fi
9128       ;;
9129
9130     hpux11*)
9131       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9132         case $host_cpu in
9133         hppa*64*)
9134           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9135           ;;
9136         ia64*)
9137           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9138           ;;
9139         *)
9140           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9141           ;;
9142         esac
9143       else
9144         case $host_cpu in
9145         hppa*64*)
9146           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9147           ;;
9148         ia64*)
9149           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9150           ;;
9151         *)
9152
9153           # Older versions of the 11.00 compiler do not understand -b yet
9154           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9156 $as_echo_n "checking if $CC understands -b... " >&6; }
9157 if ${lt_cv_prog_compiler__b+:} false; then :
9158   $as_echo_n "(cached) " >&6
9159 else
9160   lt_cv_prog_compiler__b=no
9161    save_LDFLAGS="$LDFLAGS"
9162    LDFLAGS="$LDFLAGS -b"
9163    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9164    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9165      # The linker can only warn and ignore the option if not recognized
9166      # So say no if there are warnings
9167      if test -s conftest.err; then
9168        # Append any errors to the config.log.
9169        cat conftest.err 1>&5
9170        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9171        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9172        if diff conftest.exp conftest.er2 >/dev/null; then
9173          lt_cv_prog_compiler__b=yes
9174        fi
9175      else
9176        lt_cv_prog_compiler__b=yes
9177      fi
9178    fi
9179    $RM -r conftest*
9180    LDFLAGS="$save_LDFLAGS"
9181
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9184 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9185
9186 if test x"$lt_cv_prog_compiler__b" = xyes; then
9187     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9188 else
9189     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9190 fi
9191
9192           ;;
9193         esac
9194       fi
9195       if test "$with_gnu_ld" = no; then
9196         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9197         hardcode_libdir_separator=:
9198
9199         case $host_cpu in
9200         hppa*64*|ia64*)
9201           hardcode_direct=no
9202           hardcode_shlibpath_var=no
9203           ;;
9204         *)
9205           hardcode_direct=yes
9206           hardcode_direct_absolute=yes
9207           export_dynamic_flag_spec='${wl}-E'
9208
9209           # hardcode_minus_L: Not really in the search PATH,
9210           # but as the default location of the library.
9211           hardcode_minus_L=yes
9212           ;;
9213         esac
9214       fi
9215       ;;
9216
9217     irix5* | irix6* | nonstopux*)
9218       if test "$GCC" = yes; then
9219         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'
9220         # Try to use the -exported_symbol ld option, if it does not
9221         # work, assume that -exports_file does not work either and
9222         # implicitly export all symbols.
9223         # This should be the same for all languages, so no per-tag cache variable.
9224         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9225 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9226 if ${lt_cv_irix_exported_symbol+:} false; then :
9227   $as_echo_n "(cached) " >&6
9228 else
9229   save_LDFLAGS="$LDFLAGS"
9230            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9231            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h.  */
9233 int foo (void) { return 0; }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"; then :
9236   lt_cv_irix_exported_symbol=yes
9237 else
9238   lt_cv_irix_exported_symbol=no
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241     conftest$ac_exeext conftest.$ac_ext
9242            LDFLAGS="$save_LDFLAGS"
9243 fi
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9245 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9246         if test "$lt_cv_irix_exported_symbol" = yes; then
9247           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'
9248         fi
9249       else
9250         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'
9251         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'
9252       fi
9253       archive_cmds_need_lc='no'
9254       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255       hardcode_libdir_separator=:
9256       inherit_rpath=yes
9257       link_all_deplibs=yes
9258       ;;
9259
9260     netbsd*)
9261       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9262         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9263       else
9264         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9265       fi
9266       hardcode_libdir_flag_spec='-R$libdir'
9267       hardcode_direct=yes
9268       hardcode_shlibpath_var=no
9269       ;;
9270
9271     newsos6)
9272       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273       hardcode_direct=yes
9274       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275       hardcode_libdir_separator=:
9276       hardcode_shlibpath_var=no
9277       ;;
9278
9279     *nto* | *qnx*)
9280       ;;
9281
9282     openbsd*)
9283       if test -f /usr/libexec/ld.so; then
9284         hardcode_direct=yes
9285         hardcode_shlibpath_var=no
9286         hardcode_direct_absolute=yes
9287         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9288           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9289           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9290           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9291           export_dynamic_flag_spec='${wl}-E'
9292         else
9293           case $host_os in
9294            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9295              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9296              hardcode_libdir_flag_spec='-R$libdir'
9297              ;;
9298            *)
9299              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9300              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9301              ;;
9302           esac
9303         fi
9304       else
9305         ld_shlibs=no
9306       fi
9307       ;;
9308
9309     os2*)
9310       hardcode_libdir_flag_spec='-L$libdir'
9311       hardcode_minus_L=yes
9312       allow_undefined_flag=unsupported
9313       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'
9314       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9315       ;;
9316
9317     osf3*)
9318       if test "$GCC" = yes; then
9319         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9320         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'
9321       else
9322         allow_undefined_flag=' -expect_unresolved \*'
9323         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'
9324       fi
9325       archive_cmds_need_lc='no'
9326       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9327       hardcode_libdir_separator=:
9328       ;;
9329
9330     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9331       if test "$GCC" = yes; then
9332         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9333         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'
9334         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9335       else
9336         allow_undefined_flag=' -expect_unresolved \*'
9337         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'
9338         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~
9339         $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'
9340
9341         # Both c and cxx compiler support -rpath directly
9342         hardcode_libdir_flag_spec='-rpath $libdir'
9343       fi
9344       archive_cmds_need_lc='no'
9345       hardcode_libdir_separator=:
9346       ;;
9347
9348     solaris*)
9349       no_undefined_flag=' -z defs'
9350       if test "$GCC" = yes; then
9351         wlarc='${wl}'
9352         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9354           $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'
9355       else
9356         case `$CC -V 2>&1` in
9357         *"Compilers 5.0"*)
9358           wlarc=''
9359           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9361           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9362           ;;
9363         *)
9364           wlarc='${wl}'
9365           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9366           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9367           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9368           ;;
9369         esac
9370       fi
9371       hardcode_libdir_flag_spec='-R$libdir'
9372       hardcode_shlibpath_var=no
9373       case $host_os in
9374       solaris2.[0-5] | solaris2.[0-5].*) ;;
9375       *)
9376         # The compiler driver will combine and reorder linker options,
9377         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9378         # but is careful enough not to reorder.
9379         # Supported since Solaris 2.6 (maybe 2.5.1?)
9380         if test "$GCC" = yes; then
9381           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9382         else
9383           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9384         fi
9385         ;;
9386       esac
9387       link_all_deplibs=yes
9388       ;;
9389
9390     sunos4*)
9391       if test "x$host_vendor" = xsequent; then
9392         # Use $CC to link under sequent, because it throws in some extra .o
9393         # files that make .init and .fini sections work.
9394         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9395       else
9396         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9397       fi
9398       hardcode_libdir_flag_spec='-L$libdir'
9399       hardcode_direct=yes
9400       hardcode_minus_L=yes
9401       hardcode_shlibpath_var=no
9402       ;;
9403
9404     sysv4)
9405       case $host_vendor in
9406         sni)
9407           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408           hardcode_direct=yes # is this really true???
9409         ;;
9410         siemens)
9411           ## LD is ld it makes a PLAMLIB
9412           ## CC just makes a GrossModule.
9413           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9414           reload_cmds='$CC -r -o $output$reload_objs'
9415           hardcode_direct=no
9416         ;;
9417         motorola)
9418           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9420         ;;
9421       esac
9422       runpath_var='LD_RUN_PATH'
9423       hardcode_shlibpath_var=no
9424       ;;
9425
9426     sysv4.3*)
9427       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428       hardcode_shlibpath_var=no
9429       export_dynamic_flag_spec='-Bexport'
9430       ;;
9431
9432     sysv4*MP*)
9433       if test -d /usr/nec; then
9434         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435         hardcode_shlibpath_var=no
9436         runpath_var=LD_RUN_PATH
9437         hardcode_runpath_var=yes
9438         ld_shlibs=yes
9439       fi
9440       ;;
9441
9442     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9443       no_undefined_flag='${wl}-z,text'
9444       archive_cmds_need_lc=no
9445       hardcode_shlibpath_var=no
9446       runpath_var='LD_RUN_PATH'
9447
9448       if test "$GCC" = yes; then
9449         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451       else
9452         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454       fi
9455       ;;
9456
9457     sysv5* | sco3.2v5* | sco5v6*)
9458       # Note: We can NOT use -z defs as we might desire, because we do not
9459       # link with -lc, and that would cause any symbols used from libc to
9460       # always be unresolved, which means just about no library would
9461       # ever link correctly.  If we're not using GNU ld we use -z text
9462       # though, which does catch some bad symbols but isn't as heavy-handed
9463       # as -z defs.
9464       no_undefined_flag='${wl}-z,text'
9465       allow_undefined_flag='${wl}-z,nodefs'
9466       archive_cmds_need_lc=no
9467       hardcode_shlibpath_var=no
9468       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9469       hardcode_libdir_separator=':'
9470       link_all_deplibs=yes
9471       export_dynamic_flag_spec='${wl}-Bexport'
9472       runpath_var='LD_RUN_PATH'
9473
9474       if test "$GCC" = yes; then
9475         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9477       else
9478         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9480       fi
9481       ;;
9482
9483     uts4*)
9484       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485       hardcode_libdir_flag_spec='-L$libdir'
9486       hardcode_shlibpath_var=no
9487       ;;
9488
9489     *)
9490       ld_shlibs=no
9491       ;;
9492     esac
9493
9494     if test x$host_vendor = xsni; then
9495       case $host in
9496       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9497         export_dynamic_flag_spec='${wl}-Blargedynsym'
9498         ;;
9499       esac
9500     fi
9501   fi
9502
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9504 $as_echo "$ld_shlibs" >&6; }
9505 test "$ld_shlibs" = no && can_build_shared=no
9506
9507 with_gnu_ld=$with_gnu_ld
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523 #
9524 # Do we need to explicitly link libc?
9525 #
9526 case "x$archive_cmds_need_lc" in
9527 x|xyes)
9528   # Assume -lc should be added
9529   archive_cmds_need_lc=yes
9530
9531   if test "$enable_shared" = yes && test "$GCC" = yes; then
9532     case $archive_cmds in
9533     *'~'*)
9534       # FIXME: we may have to deal with multi-command sequences.
9535       ;;
9536     '$CC '*)
9537       # Test whether the compiler implicitly links with -lc since on some
9538       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9539       # to ld, don't add -lc before -lgcc.
9540       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9541 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9542 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9543   $as_echo_n "(cached) " >&6
9544 else
9545   $RM conftest*
9546         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9547
9548         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9549   (eval $ac_compile) 2>&5
9550   ac_status=$?
9551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9552   test $ac_status = 0; } 2>conftest.err; then
9553           soname=conftest
9554           lib=conftest
9555           libobjs=conftest.$ac_objext
9556           deplibs=
9557           wl=$lt_prog_compiler_wl
9558           pic_flag=$lt_prog_compiler_pic
9559           compiler_flags=-v
9560           linker_flags=-v
9561           verstring=
9562           output_objdir=.
9563           libname=conftest
9564           lt_save_allow_undefined_flag=$allow_undefined_flag
9565           allow_undefined_flag=
9566           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9567   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9568   ac_status=$?
9569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9570   test $ac_status = 0; }
9571           then
9572             lt_cv_archive_cmds_need_lc=no
9573           else
9574             lt_cv_archive_cmds_need_lc=yes
9575           fi
9576           allow_undefined_flag=$lt_save_allow_undefined_flag
9577         else
9578           cat conftest.err 1>&5
9579         fi
9580         $RM conftest*
9581
9582 fi
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9584 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9585       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9586       ;;
9587     esac
9588   fi
9589   ;;
9590 esac
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9749 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9750
9751 if test "$GCC" = yes; then
9752   case $host_os in
9753     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9754     *) lt_awk_arg="/^libraries:/" ;;
9755   esac
9756   case $host_os in
9757     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9758     *) lt_sed_strip_eq="s,=/,/,g" ;;
9759   esac
9760   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9761   case $lt_search_path_spec in
9762   *\;*)
9763     # if the path contains ";" then we assume it to be the separator
9764     # otherwise default to the standard path separator (i.e. ":") - it is
9765     # assumed that no part of a normal pathname contains ";" but that should
9766     # okay in the real world where ";" in dirpaths is itself problematic.
9767     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9768     ;;
9769   *)
9770     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9771     ;;
9772   esac
9773   # Ok, now we have the path, separated by spaces, we can step through it
9774   # and add multilib dir if necessary.
9775   lt_tmp_lt_search_path_spec=
9776   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9777   for lt_sys_path in $lt_search_path_spec; do
9778     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9779       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9780     else
9781       test -d "$lt_sys_path" && \
9782         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9783     fi
9784   done
9785   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9786 BEGIN {RS=" "; FS="/|\n";} {
9787   lt_foo="";
9788   lt_count=0;
9789   for (lt_i = NF; lt_i > 0; lt_i--) {
9790     if ($lt_i != "" && $lt_i != ".") {
9791       if ($lt_i == "..") {
9792         lt_count++;
9793       } else {
9794         if (lt_count == 0) {
9795           lt_foo="/" $lt_i lt_foo;
9796         } else {
9797           lt_count--;
9798         }
9799       }
9800     }
9801   }
9802   if (lt_foo != "") { lt_freq[lt_foo]++; }
9803   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9804 }'`
9805   # AWK program above erroneously prepends '/' to C:/dos/paths
9806   # for these hosts.
9807   case $host_os in
9808     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9809       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9810   esac
9811   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9812 else
9813   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9814 fi
9815 library_names_spec=
9816 libname_spec='lib$name'
9817 soname_spec=
9818 shrext_cmds=".so"
9819 postinstall_cmds=
9820 postuninstall_cmds=
9821 finish_cmds=
9822 finish_eval=
9823 shlibpath_var=
9824 shlibpath_overrides_runpath=unknown
9825 version_type=none
9826 dynamic_linker="$host_os ld.so"
9827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9828 need_lib_prefix=unknown
9829 hardcode_into_libs=no
9830
9831 # when you set need_version to no, make sure it does not cause -set_version
9832 # flags to be left without arguments
9833 need_version=unknown
9834
9835 case $host_os in
9836 aix3*)
9837   version_type=linux
9838   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9839   shlibpath_var=LIBPATH
9840
9841   # AIX 3 has no versioning support, so we append a major version to the name.
9842   soname_spec='${libname}${release}${shared_ext}$major'
9843   ;;
9844
9845 aix[4-9]*)
9846   version_type=linux
9847   need_lib_prefix=no
9848   need_version=no
9849   hardcode_into_libs=yes
9850   if test "$host_cpu" = ia64; then
9851     # AIX 5 supports IA64
9852     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9853     shlibpath_var=LD_LIBRARY_PATH
9854   else
9855     # With GCC up to 2.95.x, collect2 would create an import file
9856     # for dependence libraries.  The import file would start with
9857     # the line `#! .'.  This would cause the generated library to
9858     # depend on `.', always an invalid library.  This was fixed in
9859     # development snapshots of GCC prior to 3.0.
9860     case $host_os in
9861       aix4 | aix4.[01] | aix4.[01].*)
9862       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9863            echo ' yes '
9864            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9865         :
9866       else
9867         can_build_shared=no
9868       fi
9869       ;;
9870     esac
9871     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9872     # soname into executable. Probably we can add versioning support to
9873     # collect2, so additional links can be useful in future.
9874     if test "$aix_use_runtimelinking" = yes; then
9875       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9876       # instead of lib<name>.a to let people know that these are not
9877       # typical AIX shared libraries.
9878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879     else
9880       # We preserve .a as extension for shared libraries through AIX4.2
9881       # and later when we are not doing run time linking.
9882       library_names_spec='${libname}${release}.a $libname.a'
9883       soname_spec='${libname}${release}${shared_ext}$major'
9884     fi
9885     shlibpath_var=LIBPATH
9886   fi
9887   ;;
9888
9889 amigaos*)
9890   case $host_cpu in
9891   powerpc)
9892     # Since July 2007 AmigaOS4 officially supports .so libraries.
9893     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9895     ;;
9896   m68k)
9897     library_names_spec='$libname.ixlibrary $libname.a'
9898     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9899     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'
9900     ;;
9901   esac
9902   ;;
9903
9904 beos*)
9905   library_names_spec='${libname}${shared_ext}'
9906   dynamic_linker="$host_os ld.so"
9907   shlibpath_var=LIBRARY_PATH
9908   ;;
9909
9910 bsdi[45]*)
9911   version_type=linux
9912   need_version=no
9913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914   soname_spec='${libname}${release}${shared_ext}$major'
9915   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9916   shlibpath_var=LD_LIBRARY_PATH
9917   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9918   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9919   # the default ld.so.conf also contains /usr/contrib/lib and
9920   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9921   # libtool to hard-code these into programs
9922   ;;
9923
9924 cygwin* | mingw* | pw32* | cegcc*)
9925   version_type=windows
9926   shrext_cmds=".dll"
9927   need_version=no
9928   need_lib_prefix=no
9929
9930   case $GCC,$cc_basename in
9931   yes,*)
9932     # gcc
9933     library_names_spec='$libname.dll.a'
9934     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9935     postinstall_cmds='base_file=`basename \${file}`~
9936       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9937       dldir=$destdir/`dirname \$dlpath`~
9938       test -d \$dldir || mkdir -p \$dldir~
9939       $install_prog $dir/$dlname \$dldir/$dlname~
9940       chmod a+x \$dldir/$dlname~
9941       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9942         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9943       fi'
9944     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9945       dlpath=$dir/\$dldll~
9946        $RM \$dlpath'
9947     shlibpath_overrides_runpath=yes
9948
9949     case $host_os in
9950     cygwin*)
9951       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9952       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9953
9954       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9955       ;;
9956     mingw* | cegcc*)
9957       # MinGW DLLs use traditional 'lib' prefix
9958       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9959       ;;
9960     pw32*)
9961       # pw32 DLLs use 'pw' prefix rather than 'lib'
9962       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9963       ;;
9964     esac
9965     dynamic_linker='Win32 ld.exe'
9966     ;;
9967
9968   *,cl*)
9969     # Native MSVC
9970     libname_spec='$name'
9971     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9972     library_names_spec='${libname}.dll.lib'
9973
9974     case $build_os in
9975     mingw*)
9976       sys_lib_search_path_spec=
9977       lt_save_ifs=$IFS
9978       IFS=';'
9979       for lt_path in $LIB
9980       do
9981         IFS=$lt_save_ifs
9982         # Let DOS variable expansion print the short 8.3 style file name.
9983         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9984         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9985       done
9986       IFS=$lt_save_ifs
9987       # Convert to MSYS style.
9988       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9989       ;;
9990     cygwin*)
9991       # Convert to unix form, then to dos form, then back to unix form
9992       # but this time dos style (no spaces!) so that the unix form looks
9993       # like /cygdrive/c/PROGRA~1:/cygdr...
9994       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9995       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9996       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9997       ;;
9998     *)
9999       sys_lib_search_path_spec="$LIB"
10000       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10001         # It is most probably a Windows format PATH.
10002         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10003       else
10004         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10005       fi
10006       # FIXME: find the short name or the path components, as spaces are
10007       # common. (e.g. "Program Files" -> "PROGRA~1")
10008       ;;
10009     esac
10010
10011     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10012     postinstall_cmds='base_file=`basename \${file}`~
10013       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10014       dldir=$destdir/`dirname \$dlpath`~
10015       test -d \$dldir || mkdir -p \$dldir~
10016       $install_prog $dir/$dlname \$dldir/$dlname'
10017     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10018       dlpath=$dir/\$dldll~
10019        $RM \$dlpath'
10020     shlibpath_overrides_runpath=yes
10021     dynamic_linker='Win32 link.exe'
10022     ;;
10023
10024   *)
10025     # Assume MSVC wrapper
10026     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10027     dynamic_linker='Win32 ld.exe'
10028     ;;
10029   esac
10030   # FIXME: first we should search . and the directory the executable is in
10031   shlibpath_var=PATH
10032   ;;
10033
10034 darwin* | rhapsody*)
10035   dynamic_linker="$host_os dyld"
10036   version_type=darwin
10037   need_lib_prefix=no
10038   need_version=no
10039   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10040   soname_spec='${libname}${release}${major}$shared_ext'
10041   shlibpath_overrides_runpath=yes
10042   shlibpath_var=DYLD_LIBRARY_PATH
10043   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10044
10045   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10046   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10047   ;;
10048
10049 dgux*)
10050   version_type=linux
10051   need_lib_prefix=no
10052   need_version=no
10053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10054   soname_spec='${libname}${release}${shared_ext}$major'
10055   shlibpath_var=LD_LIBRARY_PATH
10056   ;;
10057
10058 freebsd1*)
10059   dynamic_linker=no
10060   ;;
10061
10062 freebsd* | dragonfly*)
10063   # DragonFly does not have aout.  When/if they implement a new
10064   # versioning mechanism, adjust this.
10065   if test -x /usr/bin/objformat; then
10066     objformat=`/usr/bin/objformat`
10067   else
10068     case $host_os in
10069     freebsd[123]*) objformat=aout ;;
10070     *) objformat=elf ;;
10071     esac
10072   fi
10073   version_type=freebsd-$objformat
10074   case $version_type in
10075     freebsd-elf*)
10076       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10077       need_version=no
10078       need_lib_prefix=no
10079       ;;
10080     freebsd-*)
10081       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10082       need_version=yes
10083       ;;
10084   esac
10085   shlibpath_var=LD_LIBRARY_PATH
10086   case $host_os in
10087   freebsd2*)
10088     shlibpath_overrides_runpath=yes
10089     ;;
10090   freebsd3.[01]* | freebsdelf3.[01]*)
10091     shlibpath_overrides_runpath=yes
10092     hardcode_into_libs=yes
10093     ;;
10094   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10095   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10096     shlibpath_overrides_runpath=no
10097     hardcode_into_libs=yes
10098     ;;
10099   *) # from 4.6 on, and DragonFly
10100     shlibpath_overrides_runpath=yes
10101     hardcode_into_libs=yes
10102     ;;
10103   esac
10104   ;;
10105
10106 gnu*)
10107   version_type=linux
10108   need_lib_prefix=no
10109   need_version=no
10110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10111   soname_spec='${libname}${release}${shared_ext}$major'
10112   shlibpath_var=LD_LIBRARY_PATH
10113   hardcode_into_libs=yes
10114   ;;
10115
10116 haiku*)
10117   version_type=linux
10118   need_lib_prefix=no
10119   need_version=no
10120   dynamic_linker="$host_os runtime_loader"
10121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10122   soname_spec='${libname}${release}${shared_ext}$major'
10123   shlibpath_var=LIBRARY_PATH
10124   shlibpath_overrides_runpath=yes
10125   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10126   hardcode_into_libs=yes
10127   ;;
10128
10129 hpux9* | hpux10* | hpux11*)
10130   # Give a soname corresponding to the major version so that dld.sl refuses to
10131   # link against other versions.
10132   version_type=sunos
10133   need_lib_prefix=no
10134   need_version=no
10135   case $host_cpu in
10136   ia64*)
10137     shrext_cmds='.so'
10138     hardcode_into_libs=yes
10139     dynamic_linker="$host_os dld.so"
10140     shlibpath_var=LD_LIBRARY_PATH
10141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143     soname_spec='${libname}${release}${shared_ext}$major'
10144     if test "X$HPUX_IA64_MODE" = X32; then
10145       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10146     else
10147       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10148     fi
10149     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10150     ;;
10151   hppa*64*)
10152     shrext_cmds='.sl'
10153     hardcode_into_libs=yes
10154     dynamic_linker="$host_os dld.sl"
10155     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10156     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10157     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158     soname_spec='${libname}${release}${shared_ext}$major'
10159     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10160     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10161     ;;
10162   *)
10163     shrext_cmds='.sl'
10164     dynamic_linker="$host_os dld.sl"
10165     shlibpath_var=SHLIB_PATH
10166     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10168     soname_spec='${libname}${release}${shared_ext}$major'
10169     ;;
10170   esac
10171   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10172   postinstall_cmds='chmod 555 $lib'
10173   # or fails outright, so override atomically:
10174   install_override_mode=555
10175   ;;
10176
10177 interix[3-9]*)
10178   version_type=linux
10179   need_lib_prefix=no
10180   need_version=no
10181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10182   soname_spec='${libname}${release}${shared_ext}$major'
10183   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10184   shlibpath_var=LD_LIBRARY_PATH
10185   shlibpath_overrides_runpath=no
10186   hardcode_into_libs=yes
10187   ;;
10188
10189 irix5* | irix6* | nonstopux*)
10190   case $host_os in
10191     nonstopux*) version_type=nonstopux ;;
10192     *)
10193         if test "$lt_cv_prog_gnu_ld" = yes; then
10194                 version_type=linux
10195         else
10196                 version_type=irix
10197         fi ;;
10198   esac
10199   need_lib_prefix=no
10200   need_version=no
10201   soname_spec='${libname}${release}${shared_ext}$major'
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10203   case $host_os in
10204   irix5* | nonstopux*)
10205     libsuff= shlibsuff=
10206     ;;
10207   *)
10208     case $LD in # libtool.m4 will add one of these switches to LD
10209     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10210       libsuff= shlibsuff= libmagic=32-bit;;
10211     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10212       libsuff=32 shlibsuff=N32 libmagic=N32;;
10213     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10214       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10215     *) libsuff= shlibsuff= libmagic=never-match;;
10216     esac
10217     ;;
10218   esac
10219   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10220   shlibpath_overrides_runpath=no
10221   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10222   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10223   hardcode_into_libs=yes
10224   ;;
10225
10226 # No shared lib support for Linux oldld, aout, or coff.
10227 linux*oldld* | linux*aout* | linux*coff*)
10228   dynamic_linker=no
10229   ;;
10230
10231 # This must be Linux ELF.
10232 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10233   version_type=linux
10234   need_lib_prefix=no
10235   need_version=no
10236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237   soname_spec='${libname}${release}${shared_ext}$major'
10238   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=no
10241
10242   # Some binutils ld are patched to set DT_RUNPATH
10243   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10244   $as_echo_n "(cached) " >&6
10245 else
10246   lt_cv_shlibpath_overrides_runpath=no
10247     save_LDFLAGS=$LDFLAGS
10248     save_libdir=$libdir
10249     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10250          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10251     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h.  */
10253
10254 int
10255 main ()
10256 {
10257
10258   ;
10259   return 0;
10260 }
10261 _ACEOF
10262 if ac_fn_c_try_link "$LINENO"; then :
10263   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10264   lt_cv_shlibpath_overrides_runpath=yes
10265 fi
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext \
10268     conftest$ac_exeext conftest.$ac_ext
10269     LDFLAGS=$save_LDFLAGS
10270     libdir=$save_libdir
10271
10272 fi
10273
10274   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10275
10276   # This implies no fast_install, which is unacceptable.
10277   # Some rework will be needed to allow for fast_install
10278   # before this can be enabled.
10279   hardcode_into_libs=yes
10280
10281   # Add ABI-specific directories to the system library path.
10282   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10283
10284   # Append ld.so.conf contents to the search path
10285   if test -f /etc/ld.so.conf; then
10286     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' ' '`
10287     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10288
10289   fi
10290
10291   # We used to test for /lib/ld.so.1 and disable shared libraries on
10292   # powerpc, because MkLinux only supported shared libraries with the
10293   # GNU dynamic linker.  Since this was broken with cross compilers,
10294   # most powerpc-linux boxes support dynamic linking these days and
10295   # people can always --disable-shared, the test was removed, and we
10296   # assume the GNU/Linux dynamic linker is in use.
10297   dynamic_linker='GNU/Linux ld.so'
10298   ;;
10299
10300 netbsd*)
10301   version_type=sunos
10302   need_lib_prefix=no
10303   need_version=no
10304   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10306     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10307     dynamic_linker='NetBSD (a.out) ld.so'
10308   else
10309     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10310     soname_spec='${libname}${release}${shared_ext}$major'
10311     dynamic_linker='NetBSD ld.elf_so'
10312   fi
10313   shlibpath_var=LD_LIBRARY_PATH
10314   shlibpath_overrides_runpath=yes
10315   hardcode_into_libs=yes
10316   ;;
10317
10318 newsos6)
10319   version_type=linux
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321   shlibpath_var=LD_LIBRARY_PATH
10322   shlibpath_overrides_runpath=yes
10323   ;;
10324
10325 *nto* | *qnx*)
10326   version_type=qnx
10327   need_lib_prefix=no
10328   need_version=no
10329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330   soname_spec='${libname}${release}${shared_ext}$major'
10331   shlibpath_var=LD_LIBRARY_PATH
10332   shlibpath_overrides_runpath=no
10333   hardcode_into_libs=yes
10334   dynamic_linker='ldqnx.so'
10335   ;;
10336
10337 openbsd*)
10338   version_type=sunos
10339   sys_lib_dlsearch_path_spec="/usr/lib"
10340   need_lib_prefix=no
10341   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10342   case $host_os in
10343     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10344     *)                          need_version=no  ;;
10345   esac
10346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10347   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10348   shlibpath_var=LD_LIBRARY_PATH
10349   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10350     case $host_os in
10351       openbsd2.[89] | openbsd2.[89].*)
10352         shlibpath_overrides_runpath=no
10353         ;;
10354       *)
10355         shlibpath_overrides_runpath=yes
10356         ;;
10357       esac
10358   else
10359     shlibpath_overrides_runpath=yes
10360   fi
10361   ;;
10362
10363 os2*)
10364   libname_spec='$name'
10365   shrext_cmds=".dll"
10366   need_lib_prefix=no
10367   library_names_spec='$libname${shared_ext} $libname.a'
10368   dynamic_linker='OS/2 ld.exe'
10369   shlibpath_var=LIBPATH
10370   ;;
10371
10372 osf3* | osf4* | osf5*)
10373   version_type=osf
10374   need_lib_prefix=no
10375   need_version=no
10376   soname_spec='${libname}${release}${shared_ext}$major'
10377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378   shlibpath_var=LD_LIBRARY_PATH
10379   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10380   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10381   ;;
10382
10383 rdos*)
10384   dynamic_linker=no
10385   ;;
10386
10387 solaris*)
10388   version_type=linux
10389   need_lib_prefix=no
10390   need_version=no
10391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392   soname_spec='${libname}${release}${shared_ext}$major'
10393   shlibpath_var=LD_LIBRARY_PATH
10394   shlibpath_overrides_runpath=yes
10395   hardcode_into_libs=yes
10396   # ldd complains unless libraries are executable
10397   postinstall_cmds='chmod +x $lib'
10398   ;;
10399
10400 sunos4*)
10401   version_type=sunos
10402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10403   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10404   shlibpath_var=LD_LIBRARY_PATH
10405   shlibpath_overrides_runpath=yes
10406   if test "$with_gnu_ld" = yes; then
10407     need_lib_prefix=no
10408   fi
10409   need_version=yes
10410   ;;
10411
10412 sysv4 | sysv4.3*)
10413   version_type=linux
10414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415   soname_spec='${libname}${release}${shared_ext}$major'
10416   shlibpath_var=LD_LIBRARY_PATH
10417   case $host_vendor in
10418     sni)
10419       shlibpath_overrides_runpath=no
10420       need_lib_prefix=no
10421       runpath_var=LD_RUN_PATH
10422       ;;
10423     siemens)
10424       need_lib_prefix=no
10425       ;;
10426     motorola)
10427       need_lib_prefix=no
10428       need_version=no
10429       shlibpath_overrides_runpath=no
10430       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10431       ;;
10432   esac
10433   ;;
10434
10435 sysv4*MP*)
10436   if test -d /usr/nec ;then
10437     version_type=linux
10438     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10439     soname_spec='$libname${shared_ext}.$major'
10440     shlibpath_var=LD_LIBRARY_PATH
10441   fi
10442   ;;
10443
10444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10445   version_type=freebsd-elf
10446   need_lib_prefix=no
10447   need_version=no
10448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10449   soname_spec='${libname}${release}${shared_ext}$major'
10450   shlibpath_var=LD_LIBRARY_PATH
10451   shlibpath_overrides_runpath=yes
10452   hardcode_into_libs=yes
10453   if test "$with_gnu_ld" = yes; then
10454     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10455   else
10456     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10457     case $host_os in
10458       sco3.2v5*)
10459         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10460         ;;
10461     esac
10462   fi
10463   sys_lib_dlsearch_path_spec='/usr/lib'
10464   ;;
10465
10466 tpf*)
10467   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10468   version_type=linux
10469   need_lib_prefix=no
10470   need_version=no
10471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10472   shlibpath_var=LD_LIBRARY_PATH
10473   shlibpath_overrides_runpath=no
10474   hardcode_into_libs=yes
10475   ;;
10476
10477 uts4*)
10478   version_type=linux
10479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480   soname_spec='${libname}${release}${shared_ext}$major'
10481   shlibpath_var=LD_LIBRARY_PATH
10482   ;;
10483
10484 *)
10485   dynamic_linker=no
10486   ;;
10487 esac
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10489 $as_echo "$dynamic_linker" >&6; }
10490 test "$dynamic_linker" = no && can_build_shared=no
10491
10492 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10493 if test "$GCC" = yes; then
10494   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10495 fi
10496
10497 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10498   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10499 fi
10500 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10501   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10502 fi
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10596 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10597 hardcode_action=
10598 if test -n "$hardcode_libdir_flag_spec" ||
10599    test -n "$runpath_var" ||
10600    test "X$hardcode_automatic" = "Xyes" ; then
10601
10602   # We can hardcode non-existent directories.
10603   if test "$hardcode_direct" != no &&
10604      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10605      # have to relink, otherwise we might link with an installed library
10606      # when we should be linking with a yet-to-be-installed one
10607      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10608      test "$hardcode_minus_L" != no; then
10609     # Linking always hardcodes the temporary library directory.
10610     hardcode_action=relink
10611   else
10612     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10613     hardcode_action=immediate
10614   fi
10615 else
10616   # We cannot hardcode anything, or else we can only hardcode existing
10617   # directories.
10618   hardcode_action=unsupported
10619 fi
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10621 $as_echo "$hardcode_action" >&6; }
10622
10623 if test "$hardcode_action" = relink ||
10624    test "$inherit_rpath" = yes; then
10625   # Fast installation is not supported
10626   enable_fast_install=no
10627 elif test "$shlibpath_overrides_runpath" = yes ||
10628      test "$enable_shared" = no; then
10629   # Fast installation is not necessary
10630   enable_fast_install=needless
10631 fi
10632
10633
10634
10635
10636
10637
10638   if test "x$enable_dlopen" != xyes; then
10639   enable_dlopen=unknown
10640   enable_dlopen_self=unknown
10641   enable_dlopen_self_static=unknown
10642 else
10643   lt_cv_dlopen=no
10644   lt_cv_dlopen_libs=
10645
10646   case $host_os in
10647   beos*)
10648     lt_cv_dlopen="load_add_on"
10649     lt_cv_dlopen_libs=
10650     lt_cv_dlopen_self=yes
10651     ;;
10652
10653   mingw* | pw32* | cegcc*)
10654     lt_cv_dlopen="LoadLibrary"
10655     lt_cv_dlopen_libs=
10656     ;;
10657
10658   cygwin*)
10659     lt_cv_dlopen="dlopen"
10660     lt_cv_dlopen_libs=
10661     ;;
10662
10663   darwin*)
10664   # if libdl is installed we need to link against it
10665     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10666 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10667 if ${ac_cv_lib_dl_dlopen+:} false; then :
10668   $as_echo_n "(cached) " >&6
10669 else
10670   ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-ldl  $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h.  */
10674
10675 /* Override any GCC internal prototype to avoid an error.
10676    Use char because int might match the return type of a GCC
10677    builtin and then its argument prototype would still apply.  */
10678 #ifdef __cplusplus
10679 extern "C"
10680 #endif
10681 char dlopen ();
10682 int
10683 main ()
10684 {
10685 return dlopen ();
10686   ;
10687   return 0;
10688 }
10689 _ACEOF
10690 if ac_fn_c_try_link "$LINENO"; then :
10691   ac_cv_lib_dl_dlopen=yes
10692 else
10693   ac_cv_lib_dl_dlopen=no
10694 fi
10695 rm -f core conftest.err conftest.$ac_objext \
10696     conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10700 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10701 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10702   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10703 else
10704
10705     lt_cv_dlopen="dyld"
10706     lt_cv_dlopen_libs=
10707     lt_cv_dlopen_self=yes
10708
10709 fi
10710
10711     ;;
10712
10713   *)
10714     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10715 if test "x$ac_cv_func_shl_load" = xyes; then :
10716   lt_cv_dlopen="shl_load"
10717 else
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10719 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10720 if ${ac_cv_lib_dld_shl_load+:} false; then :
10721   $as_echo_n "(cached) " >&6
10722 else
10723   ac_check_lib_save_LIBS=$LIBS
10724 LIBS="-ldld  $LIBS"
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h.  */
10727
10728 /* Override any GCC internal prototype to avoid an error.
10729    Use char because int might match the return type of a GCC
10730    builtin and then its argument prototype would still apply.  */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char shl_load ();
10735 int
10736 main ()
10737 {
10738 return shl_load ();
10739   ;
10740   return 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_link "$LINENO"; then :
10744   ac_cv_lib_dld_shl_load=yes
10745 else
10746   ac_cv_lib_dld_shl_load=no
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext \
10749     conftest$ac_exeext conftest.$ac_ext
10750 LIBS=$ac_check_lib_save_LIBS
10751 fi
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10753 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10754 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10755   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10756 else
10757   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10758 if test "x$ac_cv_func_dlopen" = xyes; then :
10759   lt_cv_dlopen="dlopen"
10760 else
10761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10762 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10763 if ${ac_cv_lib_dl_dlopen+:} false; then :
10764   $as_echo_n "(cached) " >&6
10765 else
10766   ac_check_lib_save_LIBS=$LIBS
10767 LIBS="-ldl  $LIBS"
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h.  */
10770
10771 /* Override any GCC internal prototype to avoid an error.
10772    Use char because int might match the return type of a GCC
10773    builtin and then its argument prototype would still apply.  */
10774 #ifdef __cplusplus
10775 extern "C"
10776 #endif
10777 char dlopen ();
10778 int
10779 main ()
10780 {
10781 return dlopen ();
10782   ;
10783   return 0;
10784 }
10785 _ACEOF
10786 if ac_fn_c_try_link "$LINENO"; then :
10787   ac_cv_lib_dl_dlopen=yes
10788 else
10789   ac_cv_lib_dl_dlopen=no
10790 fi
10791 rm -f core conftest.err conftest.$ac_objext \
10792     conftest$ac_exeext conftest.$ac_ext
10793 LIBS=$ac_check_lib_save_LIBS
10794 fi
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10796 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10797 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10798   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10799 else
10800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10801 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10802 if ${ac_cv_lib_svld_dlopen+:} false; then :
10803   $as_echo_n "(cached) " >&6
10804 else
10805   ac_check_lib_save_LIBS=$LIBS
10806 LIBS="-lsvld  $LIBS"
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h.  */
10809
10810 /* Override any GCC internal prototype to avoid an error.
10811    Use char because int might match the return type of a GCC
10812    builtin and then its argument prototype would still apply.  */
10813 #ifdef __cplusplus
10814 extern "C"
10815 #endif
10816 char dlopen ();
10817 int
10818 main ()
10819 {
10820 return dlopen ();
10821   ;
10822   return 0;
10823 }
10824 _ACEOF
10825 if ac_fn_c_try_link "$LINENO"; then :
10826   ac_cv_lib_svld_dlopen=yes
10827 else
10828   ac_cv_lib_svld_dlopen=no
10829 fi
10830 rm -f core conftest.err conftest.$ac_objext \
10831     conftest$ac_exeext conftest.$ac_ext
10832 LIBS=$ac_check_lib_save_LIBS
10833 fi
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10835 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10836 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10837   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10838 else
10839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10840 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10841 if ${ac_cv_lib_dld_dld_link+:} false; then :
10842   $as_echo_n "(cached) " >&6
10843 else
10844   ac_check_lib_save_LIBS=$LIBS
10845 LIBS="-ldld  $LIBS"
10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847 /* end confdefs.h.  */
10848
10849 /* Override any GCC internal prototype to avoid an error.
10850    Use char because int might match the return type of a GCC
10851    builtin and then its argument prototype would still apply.  */
10852 #ifdef __cplusplus
10853 extern "C"
10854 #endif
10855 char dld_link ();
10856 int
10857 main ()
10858 {
10859 return dld_link ();
10860   ;
10861   return 0;
10862 }
10863 _ACEOF
10864 if ac_fn_c_try_link "$LINENO"; then :
10865   ac_cv_lib_dld_dld_link=yes
10866 else
10867   ac_cv_lib_dld_dld_link=no
10868 fi
10869 rm -f core conftest.err conftest.$ac_objext \
10870     conftest$ac_exeext conftest.$ac_ext
10871 LIBS=$ac_check_lib_save_LIBS
10872 fi
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10874 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10875 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10876   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10877 fi
10878
10879
10880 fi
10881
10882
10883 fi
10884
10885
10886 fi
10887
10888
10889 fi
10890
10891
10892 fi
10893
10894     ;;
10895   esac
10896
10897   if test "x$lt_cv_dlopen" != xno; then
10898     enable_dlopen=yes
10899   else
10900     enable_dlopen=no
10901   fi
10902
10903   case $lt_cv_dlopen in
10904   dlopen)
10905     save_CPPFLAGS="$CPPFLAGS"
10906     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10907
10908     save_LDFLAGS="$LDFLAGS"
10909     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10910
10911     save_LIBS="$LIBS"
10912     LIBS="$lt_cv_dlopen_libs $LIBS"
10913
10914     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10915 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10916 if ${lt_cv_dlopen_self+:} false; then :
10917   $as_echo_n "(cached) " >&6
10918 else
10919           if test "$cross_compiling" = yes; then :
10920   lt_cv_dlopen_self=cross
10921 else
10922   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10923   lt_status=$lt_dlunknown
10924   cat > conftest.$ac_ext <<_LT_EOF
10925 #line $LINENO "configure"
10926 #include "confdefs.h"
10927
10928 #if HAVE_DLFCN_H
10929 #include <dlfcn.h>
10930 #endif
10931
10932 #include <stdio.h>
10933
10934 #ifdef RTLD_GLOBAL
10935 #  define LT_DLGLOBAL           RTLD_GLOBAL
10936 #else
10937 #  ifdef DL_GLOBAL
10938 #    define LT_DLGLOBAL         DL_GLOBAL
10939 #  else
10940 #    define LT_DLGLOBAL         0
10941 #  endif
10942 #endif
10943
10944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10945    find out it does not work in some platform. */
10946 #ifndef LT_DLLAZY_OR_NOW
10947 #  ifdef RTLD_LAZY
10948 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10949 #  else
10950 #    ifdef DL_LAZY
10951 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10952 #    else
10953 #      ifdef RTLD_NOW
10954 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10955 #      else
10956 #        ifdef DL_NOW
10957 #          define LT_DLLAZY_OR_NOW      DL_NOW
10958 #        else
10959 #          define LT_DLLAZY_OR_NOW      0
10960 #        endif
10961 #      endif
10962 #    endif
10963 #  endif
10964 #endif
10965
10966 /* When -fvisbility=hidden is used, assume the code has been annotated
10967    correspondingly for the symbols needed.  */
10968 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10969 int fnord () __attribute__((visibility("default")));
10970 #endif
10971
10972 int fnord () { return 42; }
10973 int main ()
10974 {
10975   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10976   int status = $lt_dlunknown;
10977
10978   if (self)
10979     {
10980       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10981       else
10982         {
10983           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10984           else puts (dlerror ());
10985         }
10986       /* dlclose (self); */
10987     }
10988   else
10989     puts (dlerror ());
10990
10991   return status;
10992 }
10993 _LT_EOF
10994   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10995   (eval $ac_link) 2>&5
10996   ac_status=$?
10997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10998   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10999     (./conftest; exit; ) >&5 2>/dev/null
11000     lt_status=$?
11001     case x$lt_status in
11002       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11003       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11004       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11005     esac
11006   else :
11007     # compilation failed
11008     lt_cv_dlopen_self=no
11009   fi
11010 fi
11011 rm -fr conftest*
11012
11013
11014 fi
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11016 $as_echo "$lt_cv_dlopen_self" >&6; }
11017
11018     if test "x$lt_cv_dlopen_self" = xyes; then
11019       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11020       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11021 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11022 if ${lt_cv_dlopen_self_static+:} false; then :
11023   $as_echo_n "(cached) " >&6
11024 else
11025           if test "$cross_compiling" = yes; then :
11026   lt_cv_dlopen_self_static=cross
11027 else
11028   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11029   lt_status=$lt_dlunknown
11030   cat > conftest.$ac_ext <<_LT_EOF
11031 #line $LINENO "configure"
11032 #include "confdefs.h"
11033
11034 #if HAVE_DLFCN_H
11035 #include <dlfcn.h>
11036 #endif
11037
11038 #include <stdio.h>
11039
11040 #ifdef RTLD_GLOBAL
11041 #  define LT_DLGLOBAL           RTLD_GLOBAL
11042 #else
11043 #  ifdef DL_GLOBAL
11044 #    define LT_DLGLOBAL         DL_GLOBAL
11045 #  else
11046 #    define LT_DLGLOBAL         0
11047 #  endif
11048 #endif
11049
11050 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11051    find out it does not work in some platform. */
11052 #ifndef LT_DLLAZY_OR_NOW
11053 #  ifdef RTLD_LAZY
11054 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11055 #  else
11056 #    ifdef DL_LAZY
11057 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11058 #    else
11059 #      ifdef RTLD_NOW
11060 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11061 #      else
11062 #        ifdef DL_NOW
11063 #          define LT_DLLAZY_OR_NOW      DL_NOW
11064 #        else
11065 #          define LT_DLLAZY_OR_NOW      0
11066 #        endif
11067 #      endif
11068 #    endif
11069 #  endif
11070 #endif
11071
11072 /* When -fvisbility=hidden is used, assume the code has been annotated
11073    correspondingly for the symbols needed.  */
11074 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11075 int fnord () __attribute__((visibility("default")));
11076 #endif
11077
11078 int fnord () { return 42; }
11079 int main ()
11080 {
11081   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11082   int status = $lt_dlunknown;
11083
11084   if (self)
11085     {
11086       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11087       else
11088         {
11089           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11090           else puts (dlerror ());
11091         }
11092       /* dlclose (self); */
11093     }
11094   else
11095     puts (dlerror ());
11096
11097   return status;
11098 }
11099 _LT_EOF
11100   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11101   (eval $ac_link) 2>&5
11102   ac_status=$?
11103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11105     (./conftest; exit; ) >&5 2>/dev/null
11106     lt_status=$?
11107     case x$lt_status in
11108       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11109       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11110       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11111     esac
11112   else :
11113     # compilation failed
11114     lt_cv_dlopen_self_static=no
11115   fi
11116 fi
11117 rm -fr conftest*
11118
11119
11120 fi
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11122 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11123     fi
11124
11125     CPPFLAGS="$save_CPPFLAGS"
11126     LDFLAGS="$save_LDFLAGS"
11127     LIBS="$save_LIBS"
11128     ;;
11129   esac
11130
11131   case $lt_cv_dlopen_self in
11132   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11133   *) enable_dlopen_self=unknown ;;
11134   esac
11135
11136   case $lt_cv_dlopen_self_static in
11137   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11138   *) enable_dlopen_self_static=unknown ;;
11139   esac
11140 fi
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158 striplib=
11159 old_striplib=
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11161 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11162 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11163   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11164   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11166 $as_echo "yes" >&6; }
11167 else
11168 # FIXME - insert some real tests, host_os isn't really good enough
11169   case $host_os in
11170   darwin*)
11171     if test -n "$STRIP" ; then
11172       striplib="$STRIP -x"
11173       old_striplib="$STRIP -S"
11174       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11175 $as_echo "yes" >&6; }
11176     else
11177       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178 $as_echo "no" >&6; }
11179     fi
11180     ;;
11181   *)
11182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11184     ;;
11185   esac
11186 fi
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199   # Report which library types will actually be built
11200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11201 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11203 $as_echo "$can_build_shared" >&6; }
11204
11205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11206 $as_echo_n "checking whether to build shared libraries... " >&6; }
11207   test "$can_build_shared" = "no" && enable_shared=no
11208
11209   # On AIX, shared libraries and static libraries use the same namespace, and
11210   # are all built from PIC.
11211   case $host_os in
11212   aix3*)
11213     test "$enable_shared" = yes && enable_static=no
11214     if test -n "$RANLIB"; then
11215       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11216       postinstall_cmds='$RANLIB $lib'
11217     fi
11218     ;;
11219
11220   aix[4-9]*)
11221     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11222       test "$enable_shared" = yes && enable_static=no
11223     fi
11224     ;;
11225   esac
11226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11227 $as_echo "$enable_shared" >&6; }
11228
11229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11230 $as_echo_n "checking whether to build static libraries... " >&6; }
11231   # Make sure either enable_shared or enable_static is yes.
11232   test "$enable_shared" = yes || enable_static=yes
11233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11234 $as_echo "$enable_static" >&6; }
11235
11236
11237
11238
11239 fi
11240 ac_ext=c
11241 ac_cpp='$CPP $CPPFLAGS'
11242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11245
11246 CC="$lt_save_CC"
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260         ac_config_commands="$ac_config_commands libtool"
11261
11262
11263
11264
11265 # Only expand once:
11266
11267
11268
11269 #AX_PTHREAD
11270
11271 # Checks for programs.
11272 ac_ext=c
11273 ac_cpp='$CPP $CPPFLAGS'
11274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11277 if test -n "$ac_tool_prefix"; then
11278   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 $as_echo_n "checking for $ac_word... " >&6; }
11282 if ${ac_cv_prog_CC+:} false; then :
11283   $as_echo_n "(cached) " >&6
11284 else
11285   if test -n "$CC"; then
11286   ac_cv_prog_CC="$CC" # Let the user override the test.
11287 else
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in $PATH
11290 do
11291   IFS=$as_save_IFS
11292   test -z "$as_dir" && as_dir=.
11293     for ac_exec_ext in '' $ac_executable_extensions; do
11294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11295     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297     break 2
11298   fi
11299 done
11300   done
11301 IFS=$as_save_IFS
11302
11303 fi
11304 fi
11305 CC=$ac_cv_prog_CC
11306 if test -n "$CC"; then
11307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11308 $as_echo "$CC" >&6; }
11309 else
11310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311 $as_echo "no" >&6; }
11312 fi
11313
11314
11315 fi
11316 if test -z "$ac_cv_prog_CC"; then
11317   ac_ct_CC=$CC
11318   # Extract the first word of "gcc", so it can be a program name with args.
11319 set dummy gcc; ac_word=$2
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 $as_echo_n "checking for $ac_word... " >&6; }
11322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11323   $as_echo_n "(cached) " >&6
11324 else
11325   if test -n "$ac_ct_CC"; then
11326   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11327 else
11328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329 for as_dir in $PATH
11330 do
11331   IFS=$as_save_IFS
11332   test -z "$as_dir" && as_dir=.
11333     for ac_exec_ext in '' $ac_executable_extensions; do
11334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11335     ac_cv_prog_ac_ct_CC="gcc"
11336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337     break 2
11338   fi
11339 done
11340   done
11341 IFS=$as_save_IFS
11342
11343 fi
11344 fi
11345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11346 if test -n "$ac_ct_CC"; then
11347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11348 $as_echo "$ac_ct_CC" >&6; }
11349 else
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11352 fi
11353
11354   if test "x$ac_ct_CC" = x; then
11355     CC=""
11356   else
11357     case $cross_compiling:$ac_tool_warned in
11358 yes:)
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11361 ac_tool_warned=yes ;;
11362 esac
11363     CC=$ac_ct_CC
11364   fi
11365 else
11366   CC="$ac_cv_prog_CC"
11367 fi
11368
11369 if test -z "$CC"; then
11370           if test -n "$ac_tool_prefix"; then
11371     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11372 set dummy ${ac_tool_prefix}cc; ac_word=$2
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11374 $as_echo_n "checking for $ac_word... " >&6; }
11375 if ${ac_cv_prog_CC+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378   if test -n "$CC"; then
11379   ac_cv_prog_CC="$CC" # Let the user override the test.
11380 else
11381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11382 for as_dir in $PATH
11383 do
11384   IFS=$as_save_IFS
11385   test -z "$as_dir" && as_dir=.
11386     for ac_exec_ext in '' $ac_executable_extensions; do
11387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11388     ac_cv_prog_CC="${ac_tool_prefix}cc"
11389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11390     break 2
11391   fi
11392 done
11393   done
11394 IFS=$as_save_IFS
11395
11396 fi
11397 fi
11398 CC=$ac_cv_prog_CC
11399 if test -n "$CC"; then
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11401 $as_echo "$CC" >&6; }
11402 else
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 $as_echo "no" >&6; }
11405 fi
11406
11407
11408   fi
11409 fi
11410 if test -z "$CC"; then
11411   # Extract the first word of "cc", so it can be a program name with args.
11412 set dummy cc; ac_word=$2
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414 $as_echo_n "checking for $ac_word... " >&6; }
11415 if ${ac_cv_prog_CC+:} false; then :
11416   $as_echo_n "(cached) " >&6
11417 else
11418   if test -n "$CC"; then
11419   ac_cv_prog_CC="$CC" # Let the user override the test.
11420 else
11421   ac_prog_rejected=no
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11424 do
11425   IFS=$as_save_IFS
11426   test -z "$as_dir" && as_dir=.
11427     for ac_exec_ext in '' $ac_executable_extensions; do
11428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11429     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11430        ac_prog_rejected=yes
11431        continue
11432      fi
11433     ac_cv_prog_CC="cc"
11434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11435     break 2
11436   fi
11437 done
11438   done
11439 IFS=$as_save_IFS
11440
11441 if test $ac_prog_rejected = yes; then
11442   # We found a bogon in the path, so make sure we never use it.
11443   set dummy $ac_cv_prog_CC
11444   shift
11445   if test $# != 0; then
11446     # We chose a different compiler from the bogus one.
11447     # However, it has the same basename, so the bogon will be chosen
11448     # first if we set CC to just the basename; use the full file name.
11449     shift
11450     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11451   fi
11452 fi
11453 fi
11454 fi
11455 CC=$ac_cv_prog_CC
11456 if test -n "$CC"; then
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11458 $as_echo "$CC" >&6; }
11459 else
11460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 $as_echo "no" >&6; }
11462 fi
11463
11464
11465 fi
11466 if test -z "$CC"; then
11467   if test -n "$ac_tool_prefix"; then
11468   for ac_prog in cl.exe
11469   do
11470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473 $as_echo_n "checking for $ac_word... " >&6; }
11474 if ${ac_cv_prog_CC+:} false; then :
11475   $as_echo_n "(cached) " >&6
11476 else
11477   if test -n "$CC"; then
11478   ac_cv_prog_CC="$CC" # Let the user override the test.
11479 else
11480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH
11482 do
11483   IFS=$as_save_IFS
11484   test -z "$as_dir" && as_dir=.
11485     for ac_exec_ext in '' $ac_executable_extensions; do
11486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11487     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11489     break 2
11490   fi
11491 done
11492   done
11493 IFS=$as_save_IFS
11494
11495 fi
11496 fi
11497 CC=$ac_cv_prog_CC
11498 if test -n "$CC"; then
11499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11500 $as_echo "$CC" >&6; }
11501 else
11502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503 $as_echo "no" >&6; }
11504 fi
11505
11506
11507     test -n "$CC" && break
11508   done
11509 fi
11510 if test -z "$CC"; then
11511   ac_ct_CC=$CC
11512   for ac_prog in cl.exe
11513 do
11514   # Extract the first word of "$ac_prog", so it can be a program name with args.
11515 set dummy $ac_prog; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   if test -n "$ac_ct_CC"; then
11522   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11523 else
11524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527   IFS=$as_save_IFS
11528   test -z "$as_dir" && as_dir=.
11529     for ac_exec_ext in '' $ac_executable_extensions; do
11530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11531     ac_cv_prog_ac_ct_CC="$ac_prog"
11532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11533     break 2
11534   fi
11535 done
11536   done
11537 IFS=$as_save_IFS
11538
11539 fi
11540 fi
11541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11542 if test -n "$ac_ct_CC"; then
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11544 $as_echo "$ac_ct_CC" >&6; }
11545 else
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 $as_echo "no" >&6; }
11548 fi
11549
11550
11551   test -n "$ac_ct_CC" && break
11552 done
11553
11554   if test "x$ac_ct_CC" = x; then
11555     CC=""
11556   else
11557     case $cross_compiling:$ac_tool_warned in
11558 yes:)
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11561 ac_tool_warned=yes ;;
11562 esac
11563     CC=$ac_ct_CC
11564   fi
11565 fi
11566
11567 fi
11568
11569
11570 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11572 as_fn_error $? "no acceptable C compiler found in \$PATH
11573 See \`config.log' for more details" "$LINENO" 5; }
11574
11575 # Provide some information about the compiler.
11576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11577 set X $ac_compile
11578 ac_compiler=$2
11579 for ac_option in --version -v -V -qversion; do
11580   { { ac_try="$ac_compiler $ac_option >&5"
11581 case "(($ac_try" in
11582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583   *) ac_try_echo=$ac_try;;
11584 esac
11585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11586 $as_echo "$ac_try_echo"; } >&5
11587   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11588   ac_status=$?
11589   if test -s conftest.err; then
11590     sed '10a\
11591 ... rest of stderr output deleted ...
11592          10q' conftest.err >conftest.er1
11593     cat conftest.er1 >&5
11594   fi
11595   rm -f conftest.er1 conftest.err
11596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11597   test $ac_status = 0; }
11598 done
11599
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11601 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11602 if ${ac_cv_c_compiler_gnu+:} false; then :
11603   $as_echo_n "(cached) " >&6
11604 else
11605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h.  */
11607
11608 int
11609 main ()
11610 {
11611 #ifndef __GNUC__
11612        choke me
11613 #endif
11614
11615   ;
11616   return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_compile "$LINENO"; then :
11620   ac_compiler_gnu=yes
11621 else
11622   ac_compiler_gnu=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11626
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11629 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11630 if test $ac_compiler_gnu = yes; then
11631   GCC=yes
11632 else
11633   GCC=
11634 fi
11635 ac_test_CFLAGS=${CFLAGS+set}
11636 ac_save_CFLAGS=$CFLAGS
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11638 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11639 if ${ac_cv_prog_cc_g+:} false; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642   ac_save_c_werror_flag=$ac_c_werror_flag
11643    ac_c_werror_flag=yes
11644    ac_cv_prog_cc_g=no
11645    CFLAGS="-g"
11646    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h.  */
11648
11649 int
11650 main ()
11651 {
11652
11653   ;
11654   return 0;
11655 }
11656 _ACEOF
11657 if ac_fn_c_try_compile "$LINENO"; then :
11658   ac_cv_prog_cc_g=yes
11659 else
11660   CFLAGS=""
11661       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h.  */
11663
11664 int
11665 main ()
11666 {
11667
11668   ;
11669   return 0;
11670 }
11671 _ACEOF
11672 if ac_fn_c_try_compile "$LINENO"; then :
11673
11674 else
11675   ac_c_werror_flag=$ac_save_c_werror_flag
11676          CFLAGS="-g"
11677          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h.  */
11679
11680 int
11681 main ()
11682 {
11683
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_compile "$LINENO"; then :
11689   ac_cv_prog_cc_g=yes
11690 fi
11691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11694 fi
11695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696    ac_c_werror_flag=$ac_save_c_werror_flag
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11699 $as_echo "$ac_cv_prog_cc_g" >&6; }
11700 if test "$ac_test_CFLAGS" = set; then
11701   CFLAGS=$ac_save_CFLAGS
11702 elif test $ac_cv_prog_cc_g = yes; then
11703   if test "$GCC" = yes; then
11704     CFLAGS="-g -O2"
11705   else
11706     CFLAGS="-g"
11707   fi
11708 else
11709   if test "$GCC" = yes; then
11710     CFLAGS="-O2"
11711   else
11712     CFLAGS=
11713   fi
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11716 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11717 if ${ac_cv_prog_cc_c89+:} false; then :
11718   $as_echo_n "(cached) " >&6
11719 else
11720   ac_cv_prog_cc_c89=no
11721 ac_save_CC=$CC
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h.  */
11724 #include <stdarg.h>
11725 #include <stdio.h>
11726 #include <sys/types.h>
11727 #include <sys/stat.h>
11728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11729 struct buf { int x; };
11730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11731 static char *e (p, i)
11732      char **p;
11733      int i;
11734 {
11735   return p[i];
11736 }
11737 static char *f (char * (*g) (char **, int), char **p, ...)
11738 {
11739   char *s;
11740   va_list v;
11741   va_start (v,p);
11742   s = g (p, va_arg (v,int));
11743   va_end (v);
11744   return s;
11745 }
11746
11747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11748    function prototypes and stuff, but not '\xHH' hex character constants.
11749    These don't provoke an error unfortunately, instead are silently treated
11750    as 'x'.  The following induces an error, until -std is added to get
11751    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11752    array size at least.  It's necessary to write '\x00'==0 to get something
11753    that's true only with -std.  */
11754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11755
11756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11757    inside strings and character constants.  */
11758 #define FOO(x) 'x'
11759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11760
11761 int test (int i, double x);
11762 struct s1 {int (*f) (int a);};
11763 struct s2 {int (*f) (double a);};
11764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11765 int argc;
11766 char **argv;
11767 int
11768 main ()
11769 {
11770 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11771   ;
11772   return 0;
11773 }
11774 _ACEOF
11775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11776         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11777 do
11778   CC="$ac_save_CC $ac_arg"
11779   if ac_fn_c_try_compile "$LINENO"; then :
11780   ac_cv_prog_cc_c89=$ac_arg
11781 fi
11782 rm -f core conftest.err conftest.$ac_objext
11783   test "x$ac_cv_prog_cc_c89" != "xno" && break
11784 done
11785 rm -f conftest.$ac_ext
11786 CC=$ac_save_CC
11787
11788 fi
11789 # AC_CACHE_VAL
11790 case "x$ac_cv_prog_cc_c89" in
11791   x)
11792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11793 $as_echo "none needed" >&6; } ;;
11794   xno)
11795     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11796 $as_echo "unsupported" >&6; } ;;
11797   *)
11798     CC="$CC $ac_cv_prog_cc_c89"
11799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11800 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11801 esac
11802 if test "x$ac_cv_prog_cc_c89" != xno; then :
11803
11804 fi
11805
11806 ac_ext=c
11807 ac_cpp='$CPP $CPPFLAGS'
11808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11811
11812 depcc="$CC"   am_compiler_list=
11813
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11815 $as_echo_n "checking dependency style of $depcc... " >&6; }
11816 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11820   # We make a subdir and do the tests there.  Otherwise we can end up
11821   # making bogus files that we don't know about and never remove.  For
11822   # instance it was reported that on HP-UX the gcc test will end up
11823   # making a dummy file named `D' -- because `-MD' means `put the output
11824   # in D'.
11825   mkdir conftest.dir
11826   # Copy depcomp to subdir because otherwise we won't find it if we're
11827   # using a relative directory.
11828   cp "$am_depcomp" conftest.dir
11829   cd conftest.dir
11830   # We will build objects and dependencies in a subdirectory because
11831   # it helps to detect inapplicable dependency modes.  For instance
11832   # both Tru64's cc and ICC support -MD to output dependencies as a
11833   # side effect of compilation, but ICC will put the dependencies in
11834   # the current directory while Tru64 will put them in the object
11835   # directory.
11836   mkdir sub
11837
11838   am_cv_CC_dependencies_compiler_type=none
11839   if test "$am_compiler_list" = ""; then
11840      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11841   fi
11842   am__universal=false
11843   case " $depcc " in #(
11844      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11845      esac
11846
11847   for depmode in $am_compiler_list; do
11848     # Setup a source with many dependencies, because some compilers
11849     # like to wrap large dependency lists on column 80 (with \), and
11850     # we should not choose a depcomp mode which is confused by this.
11851     #
11852     # We need to recreate these files for each test, as the compiler may
11853     # overwrite some of them when testing with obscure command lines.
11854     # This happens at least with the AIX C compiler.
11855     : > sub/conftest.c
11856     for i in 1 2 3 4 5 6; do
11857       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11858       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11859       # Solaris 8's {/usr,}/bin/sh.
11860       touch sub/conftst$i.h
11861     done
11862     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11863
11864     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11865     # mode.  It turns out that the SunPro C++ compiler does not properly
11866     # handle `-M -o', and we need to detect this.  Also, some Intel
11867     # versions had trouble with output in subdirs
11868     am__obj=sub/conftest.${OBJEXT-o}
11869     am__minus_obj="-o $am__obj"
11870     case $depmode in
11871     gcc)
11872       # This depmode causes a compiler race in universal mode.
11873       test "$am__universal" = false || continue
11874       ;;
11875     nosideeffect)
11876       # after this tag, mechanisms are not by side-effect, so they'll
11877       # only be used when explicitly requested
11878       if test "x$enable_dependency_tracking" = xyes; then
11879         continue
11880       else
11881         break
11882       fi
11883       ;;
11884     msvisualcpp | msvcmsys)
11885       # This compiler won't grok `-c -o', but also, the minuso test has
11886       # not run yet.  These depmodes are late enough in the game, and
11887       # so weak that their functioning should not be impacted.
11888       am__obj=conftest.${OBJEXT-o}
11889       am__minus_obj=
11890       ;;
11891     none) break ;;
11892     esac
11893     if depmode=$depmode \
11894        source=sub/conftest.c object=$am__obj \
11895        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11896        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11897          >/dev/null 2>conftest.err &&
11898        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11899        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11900        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11901        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11902       # icc doesn't choke on unknown options, it will just issue warnings
11903       # or remarks (even with -Werror).  So we grep stderr for any message
11904       # that says an option was ignored or not supported.
11905       # When given -MP, icc 7.0 and 7.1 complain thusly:
11906       #   icc: Command line warning: ignoring option '-M'; no argument required
11907       # The diagnosis changed in icc 8.0:
11908       #   icc: Command line remark: option '-MP' not supported
11909       if (grep 'ignoring option' conftest.err ||
11910           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11911         am_cv_CC_dependencies_compiler_type=$depmode
11912         break
11913       fi
11914     fi
11915   done
11916
11917   cd ..
11918   rm -rf conftest.dir
11919 else
11920   am_cv_CC_dependencies_compiler_type=none
11921 fi
11922
11923 fi
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11925 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11926 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11927
11928  if
11929   test "x$enable_dependency_tracking" != xno \
11930   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11931   am__fastdepCC_TRUE=
11932   am__fastdepCC_FALSE='#'
11933 else
11934   am__fastdepCC_TRUE='#'
11935   am__fastdepCC_FALSE=
11936 fi
11937
11938
11939
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11942 set x ${MAKE-make}
11943 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11944 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11945   $as_echo_n "(cached) " >&6
11946 else
11947   cat >conftest.make <<\_ACEOF
11948 SHELL = /bin/sh
11949 all:
11950         @echo '@@@%%%=$(MAKE)=@@@%%%'
11951 _ACEOF
11952 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11953 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11954   *@@@%%%=?*=@@@%%%*)
11955     eval ac_cv_prog_make_${ac_make}_set=yes;;
11956   *)
11957     eval ac_cv_prog_make_${ac_make}_set=no;;
11958 esac
11959 rm -f conftest.make
11960 fi
11961 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11963 $as_echo "yes" >&6; }
11964   SET_MAKE=
11965 else
11966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11968   SET_MAKE="MAKE=${MAKE-make}"
11969 fi
11970
11971
11972
11973
11974 #
11975 #
11976 #
11977 # Check whether --enable-openssl was given.
11978 if test "${enable_openssl+set}" = set; then :
11979   enableval=$enable_openssl;  openssl=yes
11980
11981 fi
11982
11983
11984 if test "x$openssl" = "xyes" ; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
11986 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
11987 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
11988   $as_echo_n "(cached) " >&6
11989 else
11990   ac_check_lib_save_LIBS=$LIBS
11991 LIBS="-lssl  $LIBS"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h.  */
11994
11995 /* Override any GCC internal prototype to avoid an error.
11996    Use char because int might match the return type of a GCC
11997    builtin and then its argument prototype would still apply.  */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 char SSL_library_init ();
12002 int
12003 main ()
12004 {
12005 return SSL_library_init ();
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12011   ac_cv_lib_ssl_SSL_library_init=yes
12012 else
12013   ac_cv_lib_ssl_SSL_library_init=no
12014 fi
12015 rm -f core conftest.err conftest.$ac_objext \
12016     conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
12020 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
12021 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
12022   cat >>confdefs.h <<_ACEOF
12023 #define HAVE_LIBSSL 1
12024 _ACEOF
12025
12026   LIBS="-lssl $LIBS"
12027
12028 fi
12029
12030 CFLAGS="$CFLAGS -DLWS_OPENSSL_SUPPORT"
12031 fi
12032
12033 #
12034 #
12035 #
12036 # Check whether --enable-nofork was given.
12037 if test "${enable_nofork+set}" = set; then :
12038   enableval=$enable_nofork;  nofork=yes
12039
12040 fi
12041
12042
12043 if test "x$nofork" = "xyes" ; then
12044 CFLAGS="$CFLAGS -DLWS_NO_FORK"
12045 else
12046 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12047 if test "x$ac_cv_type_pid_t" = xyes; then :
12048
12049 else
12050
12051 cat >>confdefs.h <<_ACEOF
12052 #define pid_t int
12053 _ACEOF
12054
12055 fi
12056
12057 for ac_header in vfork.h
12058 do :
12059   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12060 if test "x$ac_cv_header_vfork_h" = xyes; then :
12061   cat >>confdefs.h <<_ACEOF
12062 #define HAVE_VFORK_H 1
12063 _ACEOF
12064
12065 fi
12066
12067 done
12068
12069 for ac_func in fork vfork
12070 do :
12071   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12072 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12073 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12074   cat >>confdefs.h <<_ACEOF
12075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12076 _ACEOF
12077
12078 fi
12079 done
12080
12081 if test "x$ac_cv_func_fork" = xyes; then
12082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12083 $as_echo_n "checking for working fork... " >&6; }
12084 if ${ac_cv_func_fork_works+:} false; then :
12085   $as_echo_n "(cached) " >&6
12086 else
12087   if test "$cross_compiling" = yes; then :
12088   ac_cv_func_fork_works=cross
12089 else
12090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h.  */
12092 $ac_includes_default
12093 int
12094 main ()
12095 {
12096
12097           /* By Ruediger Kuhlmann. */
12098           return fork () < 0;
12099
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 if ac_fn_c_try_run "$LINENO"; then :
12105   ac_cv_func_fork_works=yes
12106 else
12107   ac_cv_func_fork_works=no
12108 fi
12109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12110   conftest.$ac_objext conftest.beam conftest.$ac_ext
12111 fi
12112
12113 fi
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12115 $as_echo "$ac_cv_func_fork_works" >&6; }
12116
12117 else
12118   ac_cv_func_fork_works=$ac_cv_func_fork
12119 fi
12120 if test "x$ac_cv_func_fork_works" = xcross; then
12121   case $host in
12122     *-*-amigaos* | *-*-msdosdjgpp*)
12123       # Override, as these systems have only a dummy fork() stub
12124       ac_cv_func_fork_works=no
12125       ;;
12126     *)
12127       ac_cv_func_fork_works=yes
12128       ;;
12129   esac
12130   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12131 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12132 fi
12133 ac_cv_func_vfork_works=$ac_cv_func_vfork
12134 if test "x$ac_cv_func_vfork" = xyes; then
12135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12136 $as_echo_n "checking for working vfork... " >&6; }
12137 if ${ac_cv_func_vfork_works+:} false; then :
12138   $as_echo_n "(cached) " >&6
12139 else
12140   if test "$cross_compiling" = yes; then :
12141   ac_cv_func_vfork_works=cross
12142 else
12143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h.  */
12145 /* Thanks to Paul Eggert for this test.  */
12146 $ac_includes_default
12147 #include <sys/wait.h>
12148 #ifdef HAVE_VFORK_H
12149 # include <vfork.h>
12150 #endif
12151 /* On some sparc systems, changes by the child to local and incoming
12152    argument registers are propagated back to the parent.  The compiler
12153    is told about this with #include <vfork.h>, but some compilers
12154    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12155    static variable whose address is put into a register that is
12156    clobbered by the vfork.  */
12157 static void
12158 #ifdef __cplusplus
12159 sparc_address_test (int arg)
12160 # else
12161 sparc_address_test (arg) int arg;
12162 #endif
12163 {
12164   static pid_t child;
12165   if (!child) {
12166     child = vfork ();
12167     if (child < 0) {
12168       perror ("vfork");
12169       _exit(2);
12170     }
12171     if (!child) {
12172       arg = getpid();
12173       write(-1, "", 0);
12174       _exit (arg);
12175     }
12176   }
12177 }
12178
12179 int
12180 main ()
12181 {
12182   pid_t parent = getpid ();
12183   pid_t child;
12184
12185   sparc_address_test (0);
12186
12187   child = vfork ();
12188
12189   if (child == 0) {
12190     /* Here is another test for sparc vfork register problems.  This
12191        test uses lots of local variables, at least as many local
12192        variables as main has allocated so far including compiler
12193        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12194        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12195        reuse the register of parent for one of the local variables,
12196        since it will think that parent can't possibly be used any more
12197        in this routine.  Assigning to the local variable will thus
12198        munge parent in the parent process.  */
12199     pid_t
12200       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12201       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12202     /* Convince the compiler that p..p7 are live; otherwise, it might
12203        use the same hardware register for all 8 local variables.  */
12204     if (p != p1 || p != p2 || p != p3 || p != p4
12205         || p != p5 || p != p6 || p != p7)
12206       _exit(1);
12207
12208     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12209        from child file descriptors.  If the child closes a descriptor
12210        before it execs or exits, this munges the parent's descriptor
12211        as well.  Test for this by closing stdout in the child.  */
12212     _exit(close(fileno(stdout)) != 0);
12213   } else {
12214     int status;
12215     struct stat st;
12216
12217     while (wait(&status) != child)
12218       ;
12219     return (
12220          /* Was there some problem with vforking?  */
12221          child < 0
12222
12223          /* Did the child fail?  (This shouldn't happen.)  */
12224          || status
12225
12226          /* Did the vfork/compiler bug occur?  */
12227          || parent != getpid()
12228
12229          /* Did the file descriptor bug occur?  */
12230          || fstat(fileno(stdout), &st) != 0
12231          );
12232   }
12233 }
12234 _ACEOF
12235 if ac_fn_c_try_run "$LINENO"; then :
12236   ac_cv_func_vfork_works=yes
12237 else
12238   ac_cv_func_vfork_works=no
12239 fi
12240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12241   conftest.$ac_objext conftest.beam conftest.$ac_ext
12242 fi
12243
12244 fi
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12246 $as_echo "$ac_cv_func_vfork_works" >&6; }
12247
12248 fi;
12249 if test "x$ac_cv_func_fork_works" = xcross; then
12250   ac_cv_func_vfork_works=$ac_cv_func_vfork
12251   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12252 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12253 fi
12254
12255 if test "x$ac_cv_func_vfork_works" = xyes; then
12256
12257 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12258
12259 else
12260
12261 $as_echo "#define vfork fork" >>confdefs.h
12262
12263 fi
12264 if test "x$ac_cv_func_fork_works" = xyes; then
12265
12266 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12267
12268 fi
12269
12270 fi
12271
12272 #
12273 #
12274 #
12275 # Check whether --enable-libcrypto was given.
12276 if test "${enable_libcrypto+set}" = set; then :
12277   enableval=$enable_libcrypto;  libcrypto=yes
12278
12279 fi
12280
12281
12282 if test "x$libcrypto" = "xyes" ; then
12283 CFLAGS="$CFLAGS -DLWS_LIBCRYPTO"
12284 LDFLAGS="$LDFLAGS -lcrypto"
12285 fi
12286  if test x$libcrypto = xyes; then
12287   LIBCRYPTO_TRUE=
12288   LIBCRYPTO_FALSE='#'
12289 else
12290   LIBCRYPTO_TRUE='#'
12291   LIBCRYPTO_FALSE=
12292 fi
12293
12294
12295
12296 #
12297 #
12298 #
12299 # Check whether --enable-x-google-mux was given.
12300 if test "${enable_x_google_mux+set}" = set; then :
12301   enableval=$enable_x_google_mux;  x_google_mux=yes
12302
12303 fi
12304
12305 if test "x$x_google_mux" = "xyes" ; then
12306 CFLAGS="$CFLAGS -DLWS_EXT_GOOGLE_MUX"
12307 fi
12308  if test x$x_google_mux = xyes; then
12309   EXT_GOOGLE_MUX_TRUE=
12310   EXT_GOOGLE_MUX_FALSE='#'
12311 else
12312   EXT_GOOGLE_MUX_TRUE='#'
12313   EXT_GOOGLE_MUX_FALSE=
12314 fi
12315
12316
12317
12318 #
12319 #
12320 #
12321
12322 # Check whether --with-client-cert-dir was given.
12323 if test "${with_client_cert_dir+set}" = set; then :
12324   withval=$with_client_cert_dir; clientcertdir=$withval
12325 else
12326   clientcertdir=/etc/pki/tls/certs/
12327
12328 fi
12329
12330
12331
12332
12333
12334
12335 #
12336 #
12337 #
12338 # Check whether --enable-noping was given.
12339 if test "${enable_noping+set}" = set; then :
12340   enableval=$enable_noping;  noping=yes
12341
12342 fi
12343
12344
12345  if test x$noping = xyes; then
12346   NOPING_TRUE=
12347   NOPING_FALSE='#'
12348 else
12349   NOPING_TRUE='#'
12350   NOPING_FALSE=
12351 fi
12352
12353
12354
12355
12356 # Checks for header files.
12357 for ac_header in zlib.h fcntl.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h
12358 do :
12359   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12360 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12362   cat >>confdefs.h <<_ACEOF
12363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12364 _ACEOF
12365
12366 fi
12367
12368 done
12369
12370
12371 # Checks for typedefs, structures, and compiler characteristics.
12372 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12373 if test "x$ac_cv_type_size_t" = xyes; then :
12374
12375 else
12376
12377 cat >>confdefs.h <<_ACEOF
12378 #define size_t unsigned int
12379 _ACEOF
12380
12381 fi
12382
12383
12384 # Checks for library functions.
12385
12386 for ac_header in stdlib.h
12387 do :
12388   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12389 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12390   cat >>confdefs.h <<_ACEOF
12391 #define HAVE_STDLIB_H 1
12392 _ACEOF
12393
12394 fi
12395
12396 done
12397
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
12399 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
12400 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
12401   $as_echo_n "(cached) " >&6
12402 else
12403   if test "$cross_compiling" = yes; then :
12404   ac_cv_func_malloc_0_nonnull=no
12405 else
12406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h.  */
12408 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12409 # include <stdlib.h>
12410 #else
12411 char *malloc ();
12412 #endif
12413
12414 int
12415 main ()
12416 {
12417 return ! malloc (0);
12418   ;
12419   return 0;
12420 }
12421 _ACEOF
12422 if ac_fn_c_try_run "$LINENO"; then :
12423   ac_cv_func_malloc_0_nonnull=yes
12424 else
12425   ac_cv_func_malloc_0_nonnull=no
12426 fi
12427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12428   conftest.$ac_objext conftest.beam conftest.$ac_ext
12429 fi
12430
12431 fi
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12433 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
12434 if test $ac_cv_func_malloc_0_nonnull = yes; then :
12435
12436 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
12437
12438 else
12439   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
12440
12441    case " $LIBOBJS " in
12442   *" malloc.$ac_objext "* ) ;;
12443   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
12444  ;;
12445 esac
12446
12447
12448 $as_echo "#define malloc rpl_malloc" >>confdefs.h
12449
12450 fi
12451
12452
12453 for ac_header in stdlib.h
12454 do :
12455   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12456 if test "x$ac_cv_header_stdlib_h" = xyes; then :
12457   cat >>confdefs.h <<_ACEOF
12458 #define HAVE_STDLIB_H 1
12459 _ACEOF
12460
12461 fi
12462
12463 done
12464
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
12466 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
12467 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
12468   $as_echo_n "(cached) " >&6
12469 else
12470   if test "$cross_compiling" = yes; then :
12471   ac_cv_func_realloc_0_nonnull=no
12472 else
12473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h.  */
12475 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
12476 # include <stdlib.h>
12477 #else
12478 char *realloc ();
12479 #endif
12480
12481 int
12482 main ()
12483 {
12484 return ! realloc (0, 0);
12485   ;
12486   return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_run "$LINENO"; then :
12490   ac_cv_func_realloc_0_nonnull=yes
12491 else
12492   ac_cv_func_realloc_0_nonnull=no
12493 fi
12494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12495   conftest.$ac_objext conftest.beam conftest.$ac_ext
12496 fi
12497
12498 fi
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
12500 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
12501 if test $ac_cv_func_realloc_0_nonnull = yes; then :
12502
12503 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
12504
12505 else
12506   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
12507
12508    case " $LIBOBJS " in
12509   *" realloc.$ac_objext "* ) ;;
12510   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12511  ;;
12512 esac
12513
12514
12515 $as_echo "#define realloc rpl_realloc" >>confdefs.h
12516
12517 fi
12518
12519
12520 for ac_func in bzero memset socket strerror
12521 do :
12522   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12523 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12524 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12525   cat >>confdefs.h <<_ACEOF
12526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12527 _ACEOF
12528
12529 fi
12530 done
12531
12532
12533 ac_config_files="$ac_config_files Makefile lib/Makefile test-server/Makefile"
12534
12535
12536 cat >confcache <<\_ACEOF
12537 # This file is a shell script that caches the results of configure
12538 # tests run on this system so they can be shared between configure
12539 # scripts and configure runs, see configure's option --config-cache.
12540 # It is not useful on other systems.  If it contains results you don't
12541 # want to keep, you may remove or edit it.
12542 #
12543 # config.status only pays attention to the cache file if you give it
12544 # the --recheck option to rerun configure.
12545 #
12546 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12547 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12548 # following values.
12549
12550 _ACEOF
12551
12552 # The following way of writing the cache mishandles newlines in values,
12553 # but we know of no workaround that is simple, portable, and efficient.
12554 # So, we kill variables containing newlines.
12555 # Ultrix sh set writes to stderr and can't be redirected directly,
12556 # and sets the high bit in the cache file unless we assign to the vars.
12557 (
12558   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12559     eval ac_val=\$$ac_var
12560     case $ac_val in #(
12561     *${as_nl}*)
12562       case $ac_var in #(
12563       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12564 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12565       esac
12566       case $ac_var in #(
12567       _ | IFS | as_nl) ;; #(
12568       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12569       *) { eval $ac_var=; unset $ac_var;} ;;
12570       esac ;;
12571     esac
12572   done
12573
12574   (set) 2>&1 |
12575     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12576     *${as_nl}ac_space=\ *)
12577       # `set' does not quote correctly, so add quotes: double-quote
12578       # substitution turns \\\\ into \\, and sed turns \\ into \.
12579       sed -n \
12580         "s/'/'\\\\''/g;
12581           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12582       ;; #(
12583     *)
12584       # `set' quotes correctly as required by POSIX, so do not add quotes.
12585       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12586       ;;
12587     esac |
12588     sort
12589 ) |
12590   sed '
12591      /^ac_cv_env_/b end
12592      t clear
12593      :clear
12594      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12595      t end
12596      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12597      :end' >>confcache
12598 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12599   if test -w "$cache_file"; then
12600     if test "x$cache_file" != "x/dev/null"; then
12601       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12602 $as_echo "$as_me: updating cache $cache_file" >&6;}
12603       if test ! -f "$cache_file" || test -h "$cache_file"; then
12604         cat confcache >"$cache_file"
12605       else
12606         case $cache_file in #(
12607         */* | ?:*)
12608           mv -f confcache "$cache_file"$$ &&
12609           mv -f "$cache_file"$$ "$cache_file" ;; #(
12610         *)
12611           mv -f confcache "$cache_file" ;;
12612         esac
12613       fi
12614     fi
12615   else
12616     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12617 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12618   fi
12619 fi
12620 rm -f confcache
12621
12622 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12623 # Let make expand exec_prefix.
12624 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12625
12626 DEFS=-DHAVE_CONFIG_H
12627
12628 ac_libobjs=
12629 ac_ltlibobjs=
12630 U=
12631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12632   # 1. Remove the extension, and $U if already installed.
12633   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12634   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12635   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12636   #    will be set to the directory where LIBOBJS objects are built.
12637   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12638   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12639 done
12640 LIBOBJS=$ac_libobjs
12641
12642 LTLIBOBJS=$ac_ltlibobjs
12643
12644
12645  if test -n "$EXEEXT"; then
12646   am__EXEEXT_TRUE=
12647   am__EXEEXT_FALSE='#'
12648 else
12649   am__EXEEXT_TRUE='#'
12650   am__EXEEXT_FALSE=
12651 fi
12652
12653 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12654   as_fn_error $? "conditional \"AMDEP\" was never defined.
12655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12656 fi
12657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12658   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12660 fi
12661 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12662   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12664 fi
12665 if test -z "${LIBCRYPTO_TRUE}" && test -z "${LIBCRYPTO_FALSE}"; then
12666   as_fn_error $? "conditional \"LIBCRYPTO\" was never defined.
12667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12668 fi
12669 if test -z "${EXT_GOOGLE_MUX_TRUE}" && test -z "${EXT_GOOGLE_MUX_FALSE}"; then
12670   as_fn_error $? "conditional \"EXT_GOOGLE_MUX\" was never defined.
12671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12672 fi
12673 if test -z "${NOPING_TRUE}" && test -z "${NOPING_FALSE}"; then
12674   as_fn_error $? "conditional \"NOPING\" was never defined.
12675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12676 fi
12677
12678 : "${CONFIG_STATUS=./config.status}"
12679 ac_write_fail=0
12680 ac_clean_files_save=$ac_clean_files
12681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12683 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12684 as_write_fail=0
12685 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12686 #! $SHELL
12687 # Generated by $as_me.
12688 # Run this file to recreate the current configuration.
12689 # Compiler output produced by configure, useful for debugging
12690 # configure, is in config.log if it exists.
12691
12692 debug=false
12693 ac_cs_recheck=false
12694 ac_cs_silent=false
12695
12696 SHELL=\${CONFIG_SHELL-$SHELL}
12697 export SHELL
12698 _ASEOF
12699 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12700 ## -------------------- ##
12701 ## M4sh Initialization. ##
12702 ## -------------------- ##
12703
12704 # Be more Bourne compatible
12705 DUALCASE=1; export DUALCASE # for MKS sh
12706 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12707   emulate sh
12708   NULLCMD=:
12709   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12710   # is contrary to our usage.  Disable this feature.
12711   alias -g '${1+"$@"}'='"$@"'
12712   setopt NO_GLOB_SUBST
12713 else
12714   case `(set -o) 2>/dev/null` in #(
12715   *posix*) :
12716     set -o posix ;; #(
12717   *) :
12718      ;;
12719 esac
12720 fi
12721
12722
12723 as_nl='
12724 '
12725 export as_nl
12726 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12727 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12730 # Prefer a ksh shell builtin over an external printf program on Solaris,
12731 # but without wasting forks for bash or zsh.
12732 if test -z "$BASH_VERSION$ZSH_VERSION" \
12733     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12734   as_echo='print -r --'
12735   as_echo_n='print -rn --'
12736 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12737   as_echo='printf %s\n'
12738   as_echo_n='printf %s'
12739 else
12740   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12741     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12742     as_echo_n='/usr/ucb/echo -n'
12743   else
12744     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12745     as_echo_n_body='eval
12746       arg=$1;
12747       case $arg in #(
12748       *"$as_nl"*)
12749         expr "X$arg" : "X\\(.*\\)$as_nl";
12750         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12751       esac;
12752       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12753     '
12754     export as_echo_n_body
12755     as_echo_n='sh -c $as_echo_n_body as_echo'
12756   fi
12757   export as_echo_body
12758   as_echo='sh -c $as_echo_body as_echo'
12759 fi
12760
12761 # The user is always right.
12762 if test "${PATH_SEPARATOR+set}" != set; then
12763   PATH_SEPARATOR=:
12764   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12765     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12766       PATH_SEPARATOR=';'
12767   }
12768 fi
12769
12770
12771 # IFS
12772 # We need space, tab and new line, in precisely that order.  Quoting is
12773 # there to prevent editors from complaining about space-tab.
12774 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12775 # splitting by setting IFS to empty value.)
12776 IFS=" ""        $as_nl"
12777
12778 # Find who we are.  Look in the path if we contain no directory separator.
12779 as_myself=
12780 case $0 in #((
12781   *[\\/]* ) as_myself=$0 ;;
12782   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783 for as_dir in $PATH
12784 do
12785   IFS=$as_save_IFS
12786   test -z "$as_dir" && as_dir=.
12787     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12788   done
12789 IFS=$as_save_IFS
12790
12791      ;;
12792 esac
12793 # We did not find ourselves, most probably we were run as `sh COMMAND'
12794 # in which case we are not to be found in the path.
12795 if test "x$as_myself" = x; then
12796   as_myself=$0
12797 fi
12798 if test ! -f "$as_myself"; then
12799   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12800   exit 1
12801 fi
12802
12803 # Unset variables that we do not need and which cause bugs (e.g. in
12804 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12805 # suppresses any "Segmentation fault" message there.  '((' could
12806 # trigger a bug in pdksh 5.2.14.
12807 for as_var in BASH_ENV ENV MAIL MAILPATH
12808 do eval test x\${$as_var+set} = xset \
12809   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12810 done
12811 PS1='$ '
12812 PS2='> '
12813 PS4='+ '
12814
12815 # NLS nuisances.
12816 LC_ALL=C
12817 export LC_ALL
12818 LANGUAGE=C
12819 export LANGUAGE
12820
12821 # CDPATH.
12822 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12823
12824
12825 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12826 # ----------------------------------------
12827 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12828 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12829 # script with STATUS, using 1 if that was 0.
12830 as_fn_error ()
12831 {
12832   as_status=$1; test $as_status -eq 0 && as_status=1
12833   if test "$4"; then
12834     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12835     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12836   fi
12837   $as_echo "$as_me: error: $2" >&2
12838   as_fn_exit $as_status
12839 } # as_fn_error
12840
12841
12842 # as_fn_set_status STATUS
12843 # -----------------------
12844 # Set $? to STATUS, without forking.
12845 as_fn_set_status ()
12846 {
12847   return $1
12848 } # as_fn_set_status
12849
12850 # as_fn_exit STATUS
12851 # -----------------
12852 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12853 as_fn_exit ()
12854 {
12855   set +e
12856   as_fn_set_status $1
12857   exit $1
12858 } # as_fn_exit
12859
12860 # as_fn_unset VAR
12861 # ---------------
12862 # Portably unset VAR.
12863 as_fn_unset ()
12864 {
12865   { eval $1=; unset $1;}
12866 }
12867 as_unset=as_fn_unset
12868 # as_fn_append VAR VALUE
12869 # ----------------------
12870 # Append the text in VALUE to the end of the definition contained in VAR. Take
12871 # advantage of any shell optimizations that allow amortized linear growth over
12872 # repeated appends, instead of the typical quadratic growth present in naive
12873 # implementations.
12874 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12875   eval 'as_fn_append ()
12876   {
12877     eval $1+=\$2
12878   }'
12879 else
12880   as_fn_append ()
12881   {
12882     eval $1=\$$1\$2
12883   }
12884 fi # as_fn_append
12885
12886 # as_fn_arith ARG...
12887 # ------------------
12888 # Perform arithmetic evaluation on the ARGs, and store the result in the
12889 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12890 # must be portable across $(()) and expr.
12891 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12892   eval 'as_fn_arith ()
12893   {
12894     as_val=$(( $* ))
12895   }'
12896 else
12897   as_fn_arith ()
12898   {
12899     as_val=`expr "$@" || test $? -eq 1`
12900   }
12901 fi # as_fn_arith
12902
12903
12904 if expr a : '\(a\)' >/dev/null 2>&1 &&
12905    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12906   as_expr=expr
12907 else
12908   as_expr=false
12909 fi
12910
12911 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12912   as_basename=basename
12913 else
12914   as_basename=false
12915 fi
12916
12917 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12918   as_dirname=dirname
12919 else
12920   as_dirname=false
12921 fi
12922
12923 as_me=`$as_basename -- "$0" ||
12924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12925          X"$0" : 'X\(//\)$' \| \
12926          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12927 $as_echo X/"$0" |
12928     sed '/^.*\/\([^/][^/]*\)\/*$/{
12929             s//\1/
12930             q
12931           }
12932           /^X\/\(\/\/\)$/{
12933             s//\1/
12934             q
12935           }
12936           /^X\/\(\/\).*/{
12937             s//\1/
12938             q
12939           }
12940           s/.*/./; q'`
12941
12942 # Avoid depending upon Character Ranges.
12943 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12944 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12945 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12946 as_cr_digits='0123456789'
12947 as_cr_alnum=$as_cr_Letters$as_cr_digits
12948
12949 ECHO_C= ECHO_N= ECHO_T=
12950 case `echo -n x` in #(((((
12951 -n*)
12952   case `echo 'xy\c'` in
12953   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12954   xy)  ECHO_C='\c';;
12955   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12956        ECHO_T=' ';;
12957   esac;;
12958 *)
12959   ECHO_N='-n';;
12960 esac
12961
12962 rm -f conf$$ conf$$.exe conf$$.file
12963 if test -d conf$$.dir; then
12964   rm -f conf$$.dir/conf$$.file
12965 else
12966   rm -f conf$$.dir
12967   mkdir conf$$.dir 2>/dev/null
12968 fi
12969 if (echo >conf$$.file) 2>/dev/null; then
12970   if ln -s conf$$.file conf$$ 2>/dev/null; then
12971     as_ln_s='ln -s'
12972     # ... but there are two gotchas:
12973     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12974     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12975     # In both cases, we have to default to `cp -p'.
12976     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12977       as_ln_s='cp -p'
12978   elif ln conf$$.file conf$$ 2>/dev/null; then
12979     as_ln_s=ln
12980   else
12981     as_ln_s='cp -p'
12982   fi
12983 else
12984   as_ln_s='cp -p'
12985 fi
12986 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12987 rmdir conf$$.dir 2>/dev/null
12988
12989
12990 # as_fn_mkdir_p
12991 # -------------
12992 # Create "$as_dir" as a directory, including parents if necessary.
12993 as_fn_mkdir_p ()
12994 {
12995
12996   case $as_dir in #(
12997   -*) as_dir=./$as_dir;;
12998   esac
12999   test -d "$as_dir" || eval $as_mkdir_p || {
13000     as_dirs=
13001     while :; do
13002       case $as_dir in #(
13003       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13004       *) as_qdir=$as_dir;;
13005       esac
13006       as_dirs="'$as_qdir' $as_dirs"
13007       as_dir=`$as_dirname -- "$as_dir" ||
13008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13009          X"$as_dir" : 'X\(//\)[^/]' \| \
13010          X"$as_dir" : 'X\(//\)$' \| \
13011          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13012 $as_echo X"$as_dir" |
13013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13014             s//\1/
13015             q
13016           }
13017           /^X\(\/\/\)[^/].*/{
13018             s//\1/
13019             q
13020           }
13021           /^X\(\/\/\)$/{
13022             s//\1/
13023             q
13024           }
13025           /^X\(\/\).*/{
13026             s//\1/
13027             q
13028           }
13029           s/.*/./; q'`
13030       test -d "$as_dir" && break
13031     done
13032     test -z "$as_dirs" || eval "mkdir $as_dirs"
13033   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13034
13035
13036 } # as_fn_mkdir_p
13037 if mkdir -p . 2>/dev/null; then
13038   as_mkdir_p='mkdir -p "$as_dir"'
13039 else
13040   test -d ./-p && rmdir ./-p
13041   as_mkdir_p=false
13042 fi
13043
13044 if test -x / >/dev/null 2>&1; then
13045   as_test_x='test -x'
13046 else
13047   if ls -dL / >/dev/null 2>&1; then
13048     as_ls_L_option=L
13049   else
13050     as_ls_L_option=
13051   fi
13052   as_test_x='
13053     eval sh -c '\''
13054       if test -d "$1"; then
13055         test -d "$1/.";
13056       else
13057         case $1 in #(
13058         -*)set "./$1";;
13059         esac;
13060         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13061         ???[sx]*):;;*)false;;esac;fi
13062     '\'' sh
13063   '
13064 fi
13065 as_executable_p=$as_test_x
13066
13067 # Sed expression to map a string onto a valid CPP name.
13068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13069
13070 # Sed expression to map a string onto a valid variable name.
13071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13072
13073
13074 exec 6>&1
13075 ## ----------------------------------- ##
13076 ## Main body of $CONFIG_STATUS script. ##
13077 ## ----------------------------------- ##
13078 _ASEOF
13079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13080
13081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13082 # Save the log message, to keep $0 and so on meaningful, and to
13083 # report actual input values of CONFIG_FILES etc. instead of their
13084 # values after options handling.
13085 ac_log="
13086 This file was extended by libwebsockets $as_me 0.3, which was
13087 generated by GNU Autoconf 2.68.  Invocation command line was
13088
13089   CONFIG_FILES    = $CONFIG_FILES
13090   CONFIG_HEADERS  = $CONFIG_HEADERS
13091   CONFIG_LINKS    = $CONFIG_LINKS
13092   CONFIG_COMMANDS = $CONFIG_COMMANDS
13093   $ $0 $@
13094
13095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13096 "
13097
13098 _ACEOF
13099
13100 case $ac_config_files in *"
13101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13102 esac
13103
13104 case $ac_config_headers in *"
13105 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13106 esac
13107
13108
13109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13110 # Files that config.status was made for.
13111 config_files="$ac_config_files"
13112 config_headers="$ac_config_headers"
13113 config_commands="$ac_config_commands"
13114
13115 _ACEOF
13116
13117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13118 ac_cs_usage="\
13119 \`$as_me' instantiates files and other configuration actions
13120 from templates according to the current configuration.  Unless the files
13121 and actions are specified as TAGs, all are instantiated by default.
13122
13123 Usage: $0 [OPTION]... [TAG]...
13124
13125   -h, --help       print this help, then exit
13126   -V, --version    print version number and configuration settings, then exit
13127       --config     print configuration, then exit
13128   -q, --quiet, --silent
13129                    do not print progress messages
13130   -d, --debug      don't remove temporary files
13131       --recheck    update $as_me by reconfiguring in the same conditions
13132       --file=FILE[:TEMPLATE]
13133                    instantiate the configuration file FILE
13134       --header=FILE[:TEMPLATE]
13135                    instantiate the configuration header FILE
13136
13137 Configuration files:
13138 $config_files
13139
13140 Configuration headers:
13141 $config_headers
13142
13143 Configuration commands:
13144 $config_commands
13145
13146 Report bugs to <andy@warmcat.com>."
13147
13148 _ACEOF
13149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13150 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13151 ac_cs_version="\\
13152 libwebsockets config.status 0.3
13153 configured by $0, generated by GNU Autoconf 2.68,
13154   with options \\"\$ac_cs_config\\"
13155
13156 Copyright (C) 2010 Free Software Foundation, Inc.
13157 This config.status script is free software; the Free Software Foundation
13158 gives unlimited permission to copy, distribute and modify it."
13159
13160 ac_pwd='$ac_pwd'
13161 srcdir='$srcdir'
13162 INSTALL='$INSTALL'
13163 MKDIR_P='$MKDIR_P'
13164 AWK='$AWK'
13165 test -n "\$AWK" || AWK=awk
13166 _ACEOF
13167
13168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13169 # The default lists apply if the user does not specify any file.
13170 ac_need_defaults=:
13171 while test $# != 0
13172 do
13173   case $1 in
13174   --*=?*)
13175     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13176     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13177     ac_shift=:
13178     ;;
13179   --*=)
13180     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13181     ac_optarg=
13182     ac_shift=:
13183     ;;
13184   *)
13185     ac_option=$1
13186     ac_optarg=$2
13187     ac_shift=shift
13188     ;;
13189   esac
13190
13191   case $ac_option in
13192   # Handling of the options.
13193   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13194     ac_cs_recheck=: ;;
13195   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13196     $as_echo "$ac_cs_version"; exit ;;
13197   --config | --confi | --conf | --con | --co | --c )
13198     $as_echo "$ac_cs_config"; exit ;;
13199   --debug | --debu | --deb | --de | --d | -d )
13200     debug=: ;;
13201   --file | --fil | --fi | --f )
13202     $ac_shift
13203     case $ac_optarg in
13204     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13205     '') as_fn_error $? "missing file argument" ;;
13206     esac
13207     as_fn_append CONFIG_FILES " '$ac_optarg'"
13208     ac_need_defaults=false;;
13209   --header | --heade | --head | --hea )
13210     $ac_shift
13211     case $ac_optarg in
13212     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13213     esac
13214     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13215     ac_need_defaults=false;;
13216   --he | --h)
13217     # Conflict between --help and --header
13218     as_fn_error $? "ambiguous option: \`$1'
13219 Try \`$0 --help' for more information.";;
13220   --help | --hel | -h )
13221     $as_echo "$ac_cs_usage"; exit ;;
13222   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13223   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13224     ac_cs_silent=: ;;
13225
13226   # This is an error.
13227   -*) as_fn_error $? "unrecognized option: \`$1'
13228 Try \`$0 --help' for more information." ;;
13229
13230   *) as_fn_append ac_config_targets " $1"
13231      ac_need_defaults=false ;;
13232
13233   esac
13234   shift
13235 done
13236
13237 ac_configure_extra_args=
13238
13239 if $ac_cs_silent; then
13240   exec 6>/dev/null
13241   ac_configure_extra_args="$ac_configure_extra_args --silent"
13242 fi
13243
13244 _ACEOF
13245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13246 if \$ac_cs_recheck; then
13247   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13248   shift
13249   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13250   CONFIG_SHELL='$SHELL'
13251   export CONFIG_SHELL
13252   exec "\$@"
13253 fi
13254
13255 _ACEOF
13256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13257 exec 5>>config.log
13258 {
13259   echo
13260   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13261 ## Running $as_me. ##
13262 _ASBOX
13263   $as_echo "$ac_log"
13264 } >&5
13265
13266 _ACEOF
13267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13268 #
13269 # INIT-COMMANDS
13270 #
13271 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13272
13273
13274 # The HP-UX ksh and POSIX shell print the target directory to stdout
13275 # if CDPATH is set.
13276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13277
13278 sed_quote_subst='$sed_quote_subst'
13279 double_quote_subst='$double_quote_subst'
13280 delay_variable_subst='$delay_variable_subst'
13281 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13282 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13283 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13284 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13285 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13286 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13287 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13288 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13289 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13290 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13291 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13292 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13293 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13294 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13295 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13296 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13297 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13298 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13299 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13300 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13301 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13302 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13303 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13304 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13305 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13306 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13307 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13308 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13309 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13310 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13311 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13312 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13313 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13314 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13315 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13316 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13317 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13318 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13319 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13322 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13323 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13324 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13325 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13326 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13327 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13328 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13329 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13330 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13331 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13332 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13333 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13334 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13335 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13336 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"`'
13337 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13338 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13339 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13340 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13341 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13342 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13343 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13344 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13345 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13346 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13347 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13348 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13349 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13350 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13351 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13352 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13353 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13354 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13355 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13356 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13357 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13358 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13359 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13360 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13361 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13362 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13363 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13364 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13365 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13366 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13367 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13368 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13369 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13370 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13371 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13372 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13373 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13374 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13375 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13376 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13377 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13378 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13379 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13380 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13381 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13382 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13383 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13384 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13385 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13386 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13387 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13388 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13389 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13390 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13391 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13392 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13393 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13394 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13395 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13396 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13397 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13398 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13399 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13400 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13401 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13402 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13403 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13404 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13405 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13406 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13407 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13408 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13409 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13410 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13411
13412 LTCC='$LTCC'
13413 LTCFLAGS='$LTCFLAGS'
13414 compiler='$compiler_DEFAULT'
13415
13416 # A function that is used when there is no print builtin or printf.
13417 func_fallback_echo ()
13418 {
13419   eval 'cat <<_LTECHO_EOF
13420 \$1
13421 _LTECHO_EOF'
13422 }
13423
13424 # Quote evaled strings.
13425 for var in SHELL \
13426 ECHO \
13427 SED \
13428 GREP \
13429 EGREP \
13430 FGREP \
13431 LD \
13432 NM \
13433 LN_S \
13434 lt_SP2NL \
13435 lt_NL2SP \
13436 reload_flag \
13437 OBJDUMP \
13438 deplibs_check_method \
13439 file_magic_cmd \
13440 file_magic_glob \
13441 want_nocaseglob \
13442 DLLTOOL \
13443 sharedlib_from_linklib_cmd \
13444 AR \
13445 AR_FLAGS \
13446 archiver_list_spec \
13447 STRIP \
13448 RANLIB \
13449 CC \
13450 CFLAGS \
13451 compiler \
13452 lt_cv_sys_global_symbol_pipe \
13453 lt_cv_sys_global_symbol_to_cdecl \
13454 lt_cv_sys_global_symbol_to_c_name_address \
13455 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13456 nm_file_list_spec \
13457 lt_prog_compiler_no_builtin_flag \
13458 lt_prog_compiler_pic \
13459 lt_prog_compiler_wl \
13460 lt_prog_compiler_static \
13461 lt_cv_prog_compiler_c_o \
13462 need_locks \
13463 MANIFEST_TOOL \
13464 DSYMUTIL \
13465 NMEDIT \
13466 LIPO \
13467 OTOOL \
13468 OTOOL64 \
13469 shrext_cmds \
13470 export_dynamic_flag_spec \
13471 whole_archive_flag_spec \
13472 compiler_needs_object \
13473 with_gnu_ld \
13474 allow_undefined_flag \
13475 no_undefined_flag \
13476 hardcode_libdir_flag_spec \
13477 hardcode_libdir_flag_spec_ld \
13478 hardcode_libdir_separator \
13479 exclude_expsyms \
13480 include_expsyms \
13481 file_list_spec \
13482 variables_saved_for_relink \
13483 libname_spec \
13484 library_names_spec \
13485 soname_spec \
13486 install_override_mode \
13487 finish_eval \
13488 old_striplib \
13489 striplib; do
13490     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13491     *[\\\\\\\`\\"\\\$]*)
13492       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13493       ;;
13494     *)
13495       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13496       ;;
13497     esac
13498 done
13499
13500 # Double-quote double-evaled strings.
13501 for var in reload_cmds \
13502 old_postinstall_cmds \
13503 old_postuninstall_cmds \
13504 old_archive_cmds \
13505 extract_expsyms_cmds \
13506 old_archive_from_new_cmds \
13507 old_archive_from_expsyms_cmds \
13508 archive_cmds \
13509 archive_expsym_cmds \
13510 module_cmds \
13511 module_expsym_cmds \
13512 export_symbols_cmds \
13513 prelink_cmds \
13514 postlink_cmds \
13515 postinstall_cmds \
13516 postuninstall_cmds \
13517 finish_cmds \
13518 sys_lib_search_path_spec \
13519 sys_lib_dlsearch_path_spec; do
13520     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13521     *[\\\\\\\`\\"\\\$]*)
13522       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13523       ;;
13524     *)
13525       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13526       ;;
13527     esac
13528 done
13529
13530 ac_aux_dir='$ac_aux_dir'
13531 xsi_shell='$xsi_shell'
13532 lt_shell_append='$lt_shell_append'
13533
13534 # See if we are running on zsh, and set the options which allow our
13535 # commands through without removal of \ escapes INIT.
13536 if test -n "\${ZSH_VERSION+set}" ; then
13537    setopt NO_GLOB_SUBST
13538 fi
13539
13540
13541     PACKAGE='$PACKAGE'
13542     VERSION='$VERSION'
13543     TIMESTAMP='$TIMESTAMP'
13544     RM='$RM'
13545     ofile='$ofile'
13546
13547
13548
13549
13550 _ACEOF
13551
13552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13553
13554 # Handling of arguments.
13555 for ac_config_target in $ac_config_targets
13556 do
13557   case $ac_config_target in
13558     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13559     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13560     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13561     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13562     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13563     "test-server/Makefile") CONFIG_FILES="$CONFIG_FILES test-server/Makefile" ;;
13564
13565   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13566   esac
13567 done
13568
13569
13570 # If the user did not use the arguments to specify the items to instantiate,
13571 # then the envvar interface is used.  Set only those that are not.
13572 # We use the long form for the default assignment because of an extremely
13573 # bizarre bug on SunOS 4.1.3.
13574 if $ac_need_defaults; then
13575   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13576   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13577   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13578 fi
13579
13580 # Have a temporary directory for convenience.  Make it in the build tree
13581 # simply because there is no reason against having it here, and in addition,
13582 # creating and moving files from /tmp can sometimes cause problems.
13583 # Hook for its removal unless debugging.
13584 # Note that there is a small window in which the directory will not be cleaned:
13585 # after its creation but before its name has been assigned to `$tmp'.
13586 $debug ||
13587 {
13588   tmp= ac_tmp=
13589   trap 'exit_status=$?
13590   : "${ac_tmp:=$tmp}"
13591   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13592 ' 0
13593   trap 'as_fn_exit 1' 1 2 13 15
13594 }
13595 # Create a (secure) tmp directory for tmp files.
13596
13597 {
13598   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13599   test -d "$tmp"
13600 }  ||
13601 {
13602   tmp=./conf$$-$RANDOM
13603   (umask 077 && mkdir "$tmp")
13604 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13605 ac_tmp=$tmp
13606
13607 # Set up the scripts for CONFIG_FILES section.
13608 # No need to generate them if there are no CONFIG_FILES.
13609 # This happens for instance with `./config.status config.h'.
13610 if test -n "$CONFIG_FILES"; then
13611
13612
13613 ac_cr=`echo X | tr X '\015'`
13614 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13615 # But we know of no other shell where ac_cr would be empty at this
13616 # point, so we can use a bashism as a fallback.
13617 if test "x$ac_cr" = x; then
13618   eval ac_cr=\$\'\\r\'
13619 fi
13620 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13621 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13622   ac_cs_awk_cr='\\r'
13623 else
13624   ac_cs_awk_cr=$ac_cr
13625 fi
13626
13627 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13628 _ACEOF
13629
13630
13631 {
13632   echo "cat >conf$$subs.awk <<_ACEOF" &&
13633   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13634   echo "_ACEOF"
13635 } >conf$$subs.sh ||
13636   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13637 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13638 ac_delim='%!_!# '
13639 for ac_last_try in false false false false false :; do
13640   . ./conf$$subs.sh ||
13641     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13642
13643   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13644   if test $ac_delim_n = $ac_delim_num; then
13645     break
13646   elif $ac_last_try; then
13647     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13648   else
13649     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13650   fi
13651 done
13652 rm -f conf$$subs.sh
13653
13654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13655 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13656 _ACEOF
13657 sed -n '
13658 h
13659 s/^/S["/; s/!.*/"]=/
13660 p
13661 g
13662 s/^[^!]*!//
13663 :repl
13664 t repl
13665 s/'"$ac_delim"'$//
13666 t delim
13667 :nl
13668 h
13669 s/\(.\{148\}\)..*/\1/
13670 t more1
13671 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13672 p
13673 n
13674 b repl
13675 :more1
13676 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13677 p
13678 g
13679 s/.\{148\}//
13680 t nl
13681 :delim
13682 h
13683 s/\(.\{148\}\)..*/\1/
13684 t more2
13685 s/["\\]/\\&/g; s/^/"/; s/$/"/
13686 p
13687 b
13688 :more2
13689 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13690 p
13691 g
13692 s/.\{148\}//
13693 t delim
13694 ' <conf$$subs.awk | sed '
13695 /^[^""]/{
13696   N
13697   s/\n//
13698 }
13699 ' >>$CONFIG_STATUS || ac_write_fail=1
13700 rm -f conf$$subs.awk
13701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13702 _ACAWK
13703 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13704   for (key in S) S_is_set[key] = 1
13705   FS = "\a"
13706
13707 }
13708 {
13709   line = $ 0
13710   nfields = split(line, field, "@")
13711   substed = 0
13712   len = length(field[1])
13713   for (i = 2; i < nfields; i++) {
13714     key = field[i]
13715     keylen = length(key)
13716     if (S_is_set[key]) {
13717       value = S[key]
13718       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13719       len += length(value) + length(field[++i])
13720       substed = 1
13721     } else
13722       len += 1 + keylen
13723   }
13724
13725   print line
13726 }
13727
13728 _ACAWK
13729 _ACEOF
13730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13731 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13732   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13733 else
13734   cat
13735 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13736   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13737 _ACEOF
13738
13739 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13740 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13741 # trailing colons and then remove the whole line if VPATH becomes empty
13742 # (actually we leave an empty line to preserve line numbers).
13743 if test "x$srcdir" = x.; then
13744   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13745 h
13746 s///
13747 s/^/:/
13748 s/[      ]*$/:/
13749 s/:\$(srcdir):/:/g
13750 s/:\${srcdir}:/:/g
13751 s/:@srcdir@:/:/g
13752 s/^:*//
13753 s/:*$//
13754 x
13755 s/\(=[   ]*\).*/\1/
13756 G
13757 s/\n//
13758 s/^[^=]*=[       ]*$//
13759 }'
13760 fi
13761
13762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13763 fi # test -n "$CONFIG_FILES"
13764
13765 # Set up the scripts for CONFIG_HEADERS section.
13766 # No need to generate them if there are no CONFIG_HEADERS.
13767 # This happens for instance with `./config.status Makefile'.
13768 if test -n "$CONFIG_HEADERS"; then
13769 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13770 BEGIN {
13771 _ACEOF
13772
13773 # Transform confdefs.h into an awk script `defines.awk', embedded as
13774 # here-document in config.status, that substitutes the proper values into
13775 # config.h.in to produce config.h.
13776
13777 # Create a delimiter string that does not exist in confdefs.h, to ease
13778 # handling of long lines.
13779 ac_delim='%!_!# '
13780 for ac_last_try in false false :; do
13781   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13782   if test -z "$ac_tt"; then
13783     break
13784   elif $ac_last_try; then
13785     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13786   else
13787     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13788   fi
13789 done
13790
13791 # For the awk script, D is an array of macro values keyed by name,
13792 # likewise P contains macro parameters if any.  Preserve backslash
13793 # newline sequences.
13794
13795 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13796 sed -n '
13797 s/.\{148\}/&'"$ac_delim"'/g
13798 t rset
13799 :rset
13800 s/^[     ]*#[    ]*define[       ][      ]*/ /
13801 t def
13802 d
13803 :def
13804 s/\\$//
13805 t bsnl
13806 s/["\\]/\\&/g
13807 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13808 D["\1"]=" \3"/p
13809 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13810 d
13811 :bsnl
13812 s/["\\]/\\&/g
13813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13814 D["\1"]=" \3\\\\\\n"\\/p
13815 t cont
13816 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13817 t cont
13818 d
13819 :cont
13820 n
13821 s/.\{148\}/&'"$ac_delim"'/g
13822 t clear
13823 :clear
13824 s/\\$//
13825 t bsnlc
13826 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13827 d
13828 :bsnlc
13829 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13830 b cont
13831 ' <confdefs.h | sed '
13832 s/'"$ac_delim"'/"\\\
13833 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13834
13835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13836   for (key in D) D_is_set[key] = 1
13837   FS = "\a"
13838 }
13839 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13840   line = \$ 0
13841   split(line, arg, " ")
13842   if (arg[1] == "#") {
13843     defundef = arg[2]
13844     mac1 = arg[3]
13845   } else {
13846     defundef = substr(arg[1], 2)
13847     mac1 = arg[2]
13848   }
13849   split(mac1, mac2, "(") #)
13850   macro = mac2[1]
13851   prefix = substr(line, 1, index(line, defundef) - 1)
13852   if (D_is_set[macro]) {
13853     # Preserve the white space surrounding the "#".
13854     print prefix "define", macro P[macro] D[macro]
13855     next
13856   } else {
13857     # Replace #undef with comments.  This is necessary, for example,
13858     # in the case of _POSIX_SOURCE, which is predefined and required
13859     # on some systems where configure will not decide to define it.
13860     if (defundef == "undef") {
13861       print "/*", prefix defundef, macro, "*/"
13862       next
13863     }
13864   }
13865 }
13866 { print }
13867 _ACAWK
13868 _ACEOF
13869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13870   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13871 fi # test -n "$CONFIG_HEADERS"
13872
13873
13874 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13875 shift
13876 for ac_tag
13877 do
13878   case $ac_tag in
13879   :[FHLC]) ac_mode=$ac_tag; continue;;
13880   esac
13881   case $ac_mode$ac_tag in
13882   :[FHL]*:*);;
13883   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13884   :[FH]-) ac_tag=-:-;;
13885   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13886   esac
13887   ac_save_IFS=$IFS
13888   IFS=:
13889   set x $ac_tag
13890   IFS=$ac_save_IFS
13891   shift
13892   ac_file=$1
13893   shift
13894
13895   case $ac_mode in
13896   :L) ac_source=$1;;
13897   :[FH])
13898     ac_file_inputs=
13899     for ac_f
13900     do
13901       case $ac_f in
13902       -) ac_f="$ac_tmp/stdin";;
13903       *) # Look for the file first in the build tree, then in the source tree
13904          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13905          # because $ac_f cannot contain `:'.
13906          test -f "$ac_f" ||
13907            case $ac_f in
13908            [\\/$]*) false;;
13909            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13910            esac ||
13911            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13912       esac
13913       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13914       as_fn_append ac_file_inputs " '$ac_f'"
13915     done
13916
13917     # Let's still pretend it is `configure' which instantiates (i.e., don't
13918     # use $as_me), people would be surprised to read:
13919     #    /* config.h.  Generated by config.status.  */
13920     configure_input='Generated from '`
13921           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13922         `' by configure.'
13923     if test x"$ac_file" != x-; then
13924       configure_input="$ac_file.  $configure_input"
13925       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13926 $as_echo "$as_me: creating $ac_file" >&6;}
13927     fi
13928     # Neutralize special characters interpreted by sed in replacement strings.
13929     case $configure_input in #(
13930     *\&* | *\|* | *\\* )
13931        ac_sed_conf_input=`$as_echo "$configure_input" |
13932        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13933     *) ac_sed_conf_input=$configure_input;;
13934     esac
13935
13936     case $ac_tag in
13937     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13938       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13939     esac
13940     ;;
13941   esac
13942
13943   ac_dir=`$as_dirname -- "$ac_file" ||
13944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13945          X"$ac_file" : 'X\(//\)[^/]' \| \
13946          X"$ac_file" : 'X\(//\)$' \| \
13947          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13948 $as_echo X"$ac_file" |
13949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13950             s//\1/
13951             q
13952           }
13953           /^X\(\/\/\)[^/].*/{
13954             s//\1/
13955             q
13956           }
13957           /^X\(\/\/\)$/{
13958             s//\1/
13959             q
13960           }
13961           /^X\(\/\).*/{
13962             s//\1/
13963             q
13964           }
13965           s/.*/./; q'`
13966   as_dir="$ac_dir"; as_fn_mkdir_p
13967   ac_builddir=.
13968
13969 case "$ac_dir" in
13970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13971 *)
13972   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13973   # A ".." for each directory in $ac_dir_suffix.
13974   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13975   case $ac_top_builddir_sub in
13976   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13977   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13978   esac ;;
13979 esac
13980 ac_abs_top_builddir=$ac_pwd
13981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13982 # for backward compatibility:
13983 ac_top_builddir=$ac_top_build_prefix
13984
13985 case $srcdir in
13986   .)  # We are building in place.
13987     ac_srcdir=.
13988     ac_top_srcdir=$ac_top_builddir_sub
13989     ac_abs_top_srcdir=$ac_pwd ;;
13990   [\\/]* | ?:[\\/]* )  # Absolute name.
13991     ac_srcdir=$srcdir$ac_dir_suffix;
13992     ac_top_srcdir=$srcdir
13993     ac_abs_top_srcdir=$srcdir ;;
13994   *) # Relative name.
13995     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13996     ac_top_srcdir=$ac_top_build_prefix$srcdir
13997     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13998 esac
13999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14000
14001
14002   case $ac_mode in
14003   :F)
14004   #
14005   # CONFIG_FILE
14006   #
14007
14008   case $INSTALL in
14009   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14010   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14011   esac
14012   ac_MKDIR_P=$MKDIR_P
14013   case $MKDIR_P in
14014   [\\/$]* | ?:[\\/]* ) ;;
14015   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14016   esac
14017 _ACEOF
14018
14019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14020 # If the template does not know about datarootdir, expand it.
14021 # FIXME: This hack should be removed a few years after 2.60.
14022 ac_datarootdir_hack=; ac_datarootdir_seen=
14023 ac_sed_dataroot='
14024 /datarootdir/ {
14025   p
14026   q
14027 }
14028 /@datadir@/p
14029 /@docdir@/p
14030 /@infodir@/p
14031 /@localedir@/p
14032 /@mandir@/p'
14033 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14034 *datarootdir*) ac_datarootdir_seen=yes;;
14035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14036   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14037 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14038 _ACEOF
14039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14040   ac_datarootdir_hack='
14041   s&@datadir@&$datadir&g
14042   s&@docdir@&$docdir&g
14043   s&@infodir@&$infodir&g
14044   s&@localedir@&$localedir&g
14045   s&@mandir@&$mandir&g
14046   s&\\\${datarootdir}&$datarootdir&g' ;;
14047 esac
14048 _ACEOF
14049
14050 # Neutralize VPATH when `$srcdir' = `.'.
14051 # Shell code in configure.ac might set extrasub.
14052 # FIXME: do we really want to maintain this feature?
14053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054 ac_sed_extra="$ac_vpsub
14055 $extrasub
14056 _ACEOF
14057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14058 :t
14059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14060 s|@configure_input@|$ac_sed_conf_input|;t t
14061 s&@top_builddir@&$ac_top_builddir_sub&;t t
14062 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14063 s&@srcdir@&$ac_srcdir&;t t
14064 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14065 s&@top_srcdir@&$ac_top_srcdir&;t t
14066 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14067 s&@builddir@&$ac_builddir&;t t
14068 s&@abs_builddir@&$ac_abs_builddir&;t t
14069 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14070 s&@INSTALL@&$ac_INSTALL&;t t
14071 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14072 $ac_datarootdir_hack
14073 "
14074 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14075   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14076
14077 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14078   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14079   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14080       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14081   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14082 which seems to be undefined.  Please make sure it is defined" >&5
14083 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14084 which seems to be undefined.  Please make sure it is defined" >&2;}
14085
14086   rm -f "$ac_tmp/stdin"
14087   case $ac_file in
14088   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14089   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14090   esac \
14091   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14092  ;;
14093   :H)
14094   #
14095   # CONFIG_HEADER
14096   #
14097   if test x"$ac_file" != x-; then
14098     {
14099       $as_echo "/* $configure_input  */" \
14100       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14101     } >"$ac_tmp/config.h" \
14102       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14103     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14104       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14105 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14106     else
14107       rm -f "$ac_file"
14108       mv "$ac_tmp/config.h" "$ac_file" \
14109         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14110     fi
14111   else
14112     $as_echo "/* $configure_input  */" \
14113       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14114       || as_fn_error $? "could not create -" "$LINENO" 5
14115   fi
14116 # Compute "$ac_file"'s index in $config_headers.
14117 _am_arg="$ac_file"
14118 _am_stamp_count=1
14119 for _am_header in $config_headers :; do
14120   case $_am_header in
14121     $_am_arg | $_am_arg:* )
14122       break ;;
14123     * )
14124       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14125   esac
14126 done
14127 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14128 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14129          X"$_am_arg" : 'X\(//\)[^/]' \| \
14130          X"$_am_arg" : 'X\(//\)$' \| \
14131          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14132 $as_echo X"$_am_arg" |
14133     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14134             s//\1/
14135             q
14136           }
14137           /^X\(\/\/\)[^/].*/{
14138             s//\1/
14139             q
14140           }
14141           /^X\(\/\/\)$/{
14142             s//\1/
14143             q
14144           }
14145           /^X\(\/\).*/{
14146             s//\1/
14147             q
14148           }
14149           s/.*/./; q'`/stamp-h$_am_stamp_count
14150  ;;
14151
14152   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14153 $as_echo "$as_me: executing $ac_file commands" >&6;}
14154  ;;
14155   esac
14156
14157
14158   case $ac_file$ac_mode in
14159     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14160   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14161   # are listed without --file.  Let's play safe and only enable the eval
14162   # if we detect the quoting.
14163   case $CONFIG_FILES in
14164   *\'*) eval set x "$CONFIG_FILES" ;;
14165   *)   set x $CONFIG_FILES ;;
14166   esac
14167   shift
14168   for mf
14169   do
14170     # Strip MF so we end up with the name of the file.
14171     mf=`echo "$mf" | sed -e 's/:.*$//'`
14172     # Check whether this is an Automake generated Makefile or not.
14173     # We used to match only the files named `Makefile.in', but
14174     # some people rename them; so instead we look at the file content.
14175     # Grep'ing the first line is not enough: some people post-process
14176     # each Makefile.in and add a new line on top of each file to say so.
14177     # Grep'ing the whole file is not good either: AIX grep has a line
14178     # limit of 2048, but all sed's we know have understand at least 4000.
14179     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14180       dirpart=`$as_dirname -- "$mf" ||
14181 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14182          X"$mf" : 'X\(//\)[^/]' \| \
14183          X"$mf" : 'X\(//\)$' \| \
14184          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14185 $as_echo X"$mf" |
14186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14187             s//\1/
14188             q
14189           }
14190           /^X\(\/\/\)[^/].*/{
14191             s//\1/
14192             q
14193           }
14194           /^X\(\/\/\)$/{
14195             s//\1/
14196             q
14197           }
14198           /^X\(\/\).*/{
14199             s//\1/
14200             q
14201           }
14202           s/.*/./; q'`
14203     else
14204       continue
14205     fi
14206     # Extract the definition of DEPDIR, am__include, and am__quote
14207     # from the Makefile without running `make'.
14208     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14209     test -z "$DEPDIR" && continue
14210     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14211     test -z "am__include" && continue
14212     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14213     # When using ansi2knr, U may be empty or an underscore; expand it
14214     U=`sed -n 's/^U = //p' < "$mf"`
14215     # Find all dependency output files, they are included files with
14216     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14217     # simplest approach to changing $(DEPDIR) to its actual value in the
14218     # expansion.
14219     for file in `sed -n "
14220       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14221          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14222       # Make sure the directory exists.
14223       test -f "$dirpart/$file" && continue
14224       fdir=`$as_dirname -- "$file" ||
14225 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14226          X"$file" : 'X\(//\)[^/]' \| \
14227          X"$file" : 'X\(//\)$' \| \
14228          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14229 $as_echo X"$file" |
14230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14231             s//\1/
14232             q
14233           }
14234           /^X\(\/\/\)[^/].*/{
14235             s//\1/
14236             q
14237           }
14238           /^X\(\/\/\)$/{
14239             s//\1/
14240             q
14241           }
14242           /^X\(\/\).*/{
14243             s//\1/
14244             q
14245           }
14246           s/.*/./; q'`
14247       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14248       # echo "creating $dirpart/$file"
14249       echo '# dummy' > "$dirpart/$file"
14250     done
14251   done
14252 }
14253  ;;
14254     "libtool":C)
14255
14256     # See if we are running on zsh, and set the options which allow our
14257     # commands through without removal of \ escapes.
14258     if test -n "${ZSH_VERSION+set}" ; then
14259       setopt NO_GLOB_SUBST
14260     fi
14261
14262     cfgfile="${ofile}T"
14263     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14264     $RM "$cfgfile"
14265
14266     cat <<_LT_EOF >> "$cfgfile"
14267 #! $SHELL
14268
14269 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14270 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14272 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14273 #
14274 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14275 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14276 #                 Inc.
14277 #   Written by Gordon Matzigkeit, 1996
14278 #
14279 #   This file is part of GNU Libtool.
14280 #
14281 # GNU Libtool is free software; you can redistribute it and/or
14282 # modify it under the terms of the GNU General Public License as
14283 # published by the Free Software Foundation; either version 2 of
14284 # the License, or (at your option) any later version.
14285 #
14286 # As a special exception to the GNU General Public License,
14287 # if you distribute this file as part of a program or library that
14288 # is built using GNU Libtool, you may include this file under the
14289 # same distribution terms that you use for the rest of that program.
14290 #
14291 # GNU Libtool is distributed in the hope that it will be useful,
14292 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14293 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14294 # GNU General Public License for more details.
14295 #
14296 # You should have received a copy of the GNU General Public License
14297 # along with GNU Libtool; see the file COPYING.  If not, a copy
14298 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14299 # obtained by writing to the Free Software Foundation, Inc.,
14300 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14301
14302
14303 # The names of the tagged configurations supported by this script.
14304 available_tags=""
14305
14306 # ### BEGIN LIBTOOL CONFIG
14307
14308 # Which release of libtool.m4 was used?
14309 macro_version=$macro_version
14310 macro_revision=$macro_revision
14311
14312 # Whether or not to build shared libraries.
14313 build_libtool_libs=$enable_shared
14314
14315 # Whether or not to build static libraries.
14316 build_old_libs=$enable_static
14317
14318 # What type of objects to build.
14319 pic_mode=$pic_mode
14320
14321 # Whether or not to optimize for fast installation.
14322 fast_install=$enable_fast_install
14323
14324 # Shell to use when invoking shell scripts.
14325 SHELL=$lt_SHELL
14326
14327 # An echo program that protects backslashes.
14328 ECHO=$lt_ECHO
14329
14330 # The host system.
14331 host_alias=$host_alias
14332 host=$host
14333 host_os=$host_os
14334
14335 # The build system.
14336 build_alias=$build_alias
14337 build=$build
14338 build_os=$build_os
14339
14340 # A sed program that does not truncate output.
14341 SED=$lt_SED
14342
14343 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14344 Xsed="\$SED -e 1s/^X//"
14345
14346 # A grep program that handles long lines.
14347 GREP=$lt_GREP
14348
14349 # An ERE matcher.
14350 EGREP=$lt_EGREP
14351
14352 # A literal string matcher.
14353 FGREP=$lt_FGREP
14354
14355 # A BSD- or MS-compatible name lister.
14356 NM=$lt_NM
14357
14358 # Whether we need soft or hard links.
14359 LN_S=$lt_LN_S
14360
14361 # What is the maximum length of a command?
14362 max_cmd_len=$max_cmd_len
14363
14364 # Object file suffix (normally "o").
14365 objext=$ac_objext
14366
14367 # Executable file suffix (normally "").
14368 exeext=$exeext
14369
14370 # whether the shell understands "unset".
14371 lt_unset=$lt_unset
14372
14373 # turn spaces into newlines.
14374 SP2NL=$lt_lt_SP2NL
14375
14376 # turn newlines into spaces.
14377 NL2SP=$lt_lt_NL2SP
14378
14379 # convert \$build file names to \$host format.
14380 to_host_file_cmd=$lt_cv_to_host_file_cmd
14381
14382 # convert \$build files to toolchain format.
14383 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14384
14385 # An object symbol dumper.
14386 OBJDUMP=$lt_OBJDUMP
14387
14388 # Method to check whether dependent libraries are shared objects.
14389 deplibs_check_method=$lt_deplibs_check_method
14390
14391 # Command to use when deplibs_check_method = "file_magic".
14392 file_magic_cmd=$lt_file_magic_cmd
14393
14394 # How to find potential files when deplibs_check_method = "file_magic".
14395 file_magic_glob=$lt_file_magic_glob
14396
14397 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14398 want_nocaseglob=$lt_want_nocaseglob
14399
14400 # DLL creation program.
14401 DLLTOOL=$lt_DLLTOOL
14402
14403 # Command to associate shared and link libraries.
14404 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14405
14406 # The archiver.
14407 AR=$lt_AR
14408
14409 # Flags to create an archive.
14410 AR_FLAGS=$lt_AR_FLAGS
14411
14412 # How to feed a file listing to the archiver.
14413 archiver_list_spec=$lt_archiver_list_spec
14414
14415 # A symbol stripping program.
14416 STRIP=$lt_STRIP
14417
14418 # Commands used to install an old-style archive.
14419 RANLIB=$lt_RANLIB
14420 old_postinstall_cmds=$lt_old_postinstall_cmds
14421 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14422
14423 # Whether to use a lock for old archive extraction.
14424 lock_old_archive_extraction=$lock_old_archive_extraction
14425
14426 # A C compiler.
14427 LTCC=$lt_CC
14428
14429 # LTCC compiler flags.
14430 LTCFLAGS=$lt_CFLAGS
14431
14432 # Take the output of nm and produce a listing of raw symbols and C names.
14433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14434
14435 # Transform the output of nm in a proper C declaration.
14436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14437
14438 # Transform the output of nm in a C name address pair.
14439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14440
14441 # Transform the output of nm in a C name address pair when lib prefix is needed.
14442 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14443
14444 # Specify filename containing input files for \$NM.
14445 nm_file_list_spec=$lt_nm_file_list_spec
14446
14447 # The root where to search for dependent libraries,and in which our libraries should be installed.
14448 lt_sysroot=$lt_sysroot
14449
14450 # The name of the directory that contains temporary libtool files.
14451 objdir=$objdir
14452
14453 # Used to examine libraries when file_magic_cmd begins with "file".
14454 MAGIC_CMD=$MAGIC_CMD
14455
14456 # Must we lock files when doing compilation?
14457 need_locks=$lt_need_locks
14458
14459 # Manifest tool.
14460 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14461
14462 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14463 DSYMUTIL=$lt_DSYMUTIL
14464
14465 # Tool to change global to local symbols on Mac OS X.
14466 NMEDIT=$lt_NMEDIT
14467
14468 # Tool to manipulate fat objects and archives on Mac OS X.
14469 LIPO=$lt_LIPO
14470
14471 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14472 OTOOL=$lt_OTOOL
14473
14474 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14475 OTOOL64=$lt_OTOOL64
14476
14477 # Old archive suffix (normally "a").
14478 libext=$libext
14479
14480 # Shared library suffix (normally ".so").
14481 shrext_cmds=$lt_shrext_cmds
14482
14483 # The commands to extract the exported symbol list from a shared archive.
14484 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14485
14486 # Variables whose values should be saved in libtool wrapper scripts and
14487 # restored at link time.
14488 variables_saved_for_relink=$lt_variables_saved_for_relink
14489
14490 # Do we need the "lib" prefix for modules?
14491 need_lib_prefix=$need_lib_prefix
14492
14493 # Do we need a version for libraries?
14494 need_version=$need_version
14495
14496 # Library versioning type.
14497 version_type=$version_type
14498
14499 # Shared library runtime path variable.
14500 runpath_var=$runpath_var
14501
14502 # Shared library path variable.
14503 shlibpath_var=$shlibpath_var
14504
14505 # Is shlibpath searched before the hard-coded library search path?
14506 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14507
14508 # Format of library name prefix.
14509 libname_spec=$lt_libname_spec
14510
14511 # List of archive names.  First name is the real one, the rest are links.
14512 # The last name is the one that the linker finds with -lNAME
14513 library_names_spec=$lt_library_names_spec
14514
14515 # The coded name of the library, if different from the real name.
14516 soname_spec=$lt_soname_spec
14517
14518 # Permission mode override for installation of shared libraries.
14519 install_override_mode=$lt_install_override_mode
14520
14521 # Command to use after installation of a shared archive.
14522 postinstall_cmds=$lt_postinstall_cmds
14523
14524 # Command to use after uninstallation of a shared archive.
14525 postuninstall_cmds=$lt_postuninstall_cmds
14526
14527 # Commands used to finish a libtool library installation in a directory.
14528 finish_cmds=$lt_finish_cmds
14529
14530 # As "finish_cmds", except a single script fragment to be evaled but
14531 # not shown.
14532 finish_eval=$lt_finish_eval
14533
14534 # Whether we should hardcode library paths into libraries.
14535 hardcode_into_libs=$hardcode_into_libs
14536
14537 # Compile-time system search path for libraries.
14538 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14539
14540 # Run-time system search path for libraries.
14541 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14542
14543 # Whether dlopen is supported.
14544 dlopen_support=$enable_dlopen
14545
14546 # Whether dlopen of programs is supported.
14547 dlopen_self=$enable_dlopen_self
14548
14549 # Whether dlopen of statically linked programs is supported.
14550 dlopen_self_static=$enable_dlopen_self_static
14551
14552 # Commands to strip libraries.
14553 old_striplib=$lt_old_striplib
14554 striplib=$lt_striplib
14555
14556
14557 # The linker used to build libraries.
14558 LD=$lt_LD
14559
14560 # How to create reloadable object files.
14561 reload_flag=$lt_reload_flag
14562 reload_cmds=$lt_reload_cmds
14563
14564 # Commands used to build an old-style archive.
14565 old_archive_cmds=$lt_old_archive_cmds
14566
14567 # A language specific compiler.
14568 CC=$lt_compiler
14569
14570 # Is the compiler the GNU compiler?
14571 with_gcc=$GCC
14572
14573 # Compiler flag to turn off builtin functions.
14574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14575
14576 # Additional compiler flags for building library objects.
14577 pic_flag=$lt_lt_prog_compiler_pic
14578
14579 # How to pass a linker flag through the compiler.
14580 wl=$lt_lt_prog_compiler_wl
14581
14582 # Compiler flag to prevent dynamic linking.
14583 link_static_flag=$lt_lt_prog_compiler_static
14584
14585 # Does compiler simultaneously support -c and -o options?
14586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14587
14588 # Whether or not to add -lc for building shared libraries.
14589 build_libtool_need_lc=$archive_cmds_need_lc
14590
14591 # Whether or not to disallow shared libs when runtime libs are static.
14592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14593
14594 # Compiler flag to allow reflexive dlopens.
14595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14596
14597 # Compiler flag to generate shared objects directly from archives.
14598 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14599
14600 # Whether the compiler copes with passing no objects directly.
14601 compiler_needs_object=$lt_compiler_needs_object
14602
14603 # Create an old-style archive from a shared archive.
14604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14605
14606 # Create a temporary old-style archive to link instead of a shared archive.
14607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14608
14609 # Commands used to build a shared archive.
14610 archive_cmds=$lt_archive_cmds
14611 archive_expsym_cmds=$lt_archive_expsym_cmds
14612
14613 # Commands used to build a loadable module if different from building
14614 # a shared archive.
14615 module_cmds=$lt_module_cmds
14616 module_expsym_cmds=$lt_module_expsym_cmds
14617
14618 # Whether we are building with GNU ld or not.
14619 with_gnu_ld=$lt_with_gnu_ld
14620
14621 # Flag that allows shared libraries with undefined symbols to be built.
14622 allow_undefined_flag=$lt_allow_undefined_flag
14623
14624 # Flag that enforces no undefined symbols.
14625 no_undefined_flag=$lt_no_undefined_flag
14626
14627 # Flag to hardcode \$libdir into a binary during linking.
14628 # This must work even if \$libdir does not exist
14629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14630
14631 # If ld is used when linking, flag to hardcode \$libdir into a binary
14632 # during linking.  This must work even if \$libdir does not exist.
14633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14634
14635 # Whether we need a single "-rpath" flag with a separated argument.
14636 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14637
14638 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14639 # DIR into the resulting binary.
14640 hardcode_direct=$hardcode_direct
14641
14642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14643 # DIR into the resulting binary and the resulting library dependency is
14644 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14645 # library is relocated.
14646 hardcode_direct_absolute=$hardcode_direct_absolute
14647
14648 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14649 # into the resulting binary.
14650 hardcode_minus_L=$hardcode_minus_L
14651
14652 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14653 # into the resulting binary.
14654 hardcode_shlibpath_var=$hardcode_shlibpath_var
14655
14656 # Set to "yes" if building a shared library automatically hardcodes DIR
14657 # into the library and all subsequent libraries and executables linked
14658 # against it.
14659 hardcode_automatic=$hardcode_automatic
14660
14661 # Set to yes if linker adds runtime paths of dependent libraries
14662 # to runtime path list.
14663 inherit_rpath=$inherit_rpath
14664
14665 # Whether libtool must link a program against all its dependency libraries.
14666 link_all_deplibs=$link_all_deplibs
14667
14668 # Set to "yes" if exported symbols are required.
14669 always_export_symbols=$always_export_symbols
14670
14671 # The commands to list exported symbols.
14672 export_symbols_cmds=$lt_export_symbols_cmds
14673
14674 # Symbols that should not be listed in the preloaded symbols.
14675 exclude_expsyms=$lt_exclude_expsyms
14676
14677 # Symbols that must always be exported.
14678 include_expsyms=$lt_include_expsyms
14679
14680 # Commands necessary for linking programs (against libraries) with templates.
14681 prelink_cmds=$lt_prelink_cmds
14682
14683 # Commands necessary for finishing linking programs.
14684 postlink_cmds=$lt_postlink_cmds
14685
14686 # Specify filename containing input files.
14687 file_list_spec=$lt_file_list_spec
14688
14689 # How to hardcode a shared library path into an executable.
14690 hardcode_action=$hardcode_action
14691
14692 # ### END LIBTOOL CONFIG
14693
14694 _LT_EOF
14695
14696   case $host_os in
14697   aix3*)
14698     cat <<\_LT_EOF >> "$cfgfile"
14699 # AIX sometimes has problems with the GCC collect2 program.  For some
14700 # reason, if we set the COLLECT_NAMES environment variable, the problems
14701 # vanish in a puff of smoke.
14702 if test "X${COLLECT_NAMES+set}" != Xset; then
14703   COLLECT_NAMES=
14704   export COLLECT_NAMES
14705 fi
14706 _LT_EOF
14707     ;;
14708   esac
14709
14710
14711 ltmain="$ac_aux_dir/ltmain.sh"
14712
14713
14714   # We use sed instead of cat because bash on DJGPP gets confused if
14715   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14716   # text mode, it properly converts lines to CR/LF.  This bash problem
14717   # is reportedly fixed, but why not run on old versions too?
14718   sed '$q' "$ltmain" >> "$cfgfile" \
14719      || (rm -f "$cfgfile"; exit 1)
14720
14721   if test x"$xsi_shell" = xyes; then
14722   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14723 func_dirname ()\
14724 {\
14725 \    case ${1} in\
14726 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14727 \      *  ) func_dirname_result="${3}" ;;\
14728 \    esac\
14729 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14730   && mv -f "$cfgfile.tmp" "$cfgfile" \
14731     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14732 test 0 -eq $? || _lt_function_replace_fail=:
14733
14734
14735   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14736 func_basename ()\
14737 {\
14738 \    func_basename_result="${1##*/}"\
14739 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14740   && mv -f "$cfgfile.tmp" "$cfgfile" \
14741     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14742 test 0 -eq $? || _lt_function_replace_fail=:
14743
14744
14745   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14746 func_dirname_and_basename ()\
14747 {\
14748 \    case ${1} in\
14749 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14750 \      *  ) func_dirname_result="${3}" ;;\
14751 \    esac\
14752 \    func_basename_result="${1##*/}"\
14753 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14754   && mv -f "$cfgfile.tmp" "$cfgfile" \
14755     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14756 test 0 -eq $? || _lt_function_replace_fail=:
14757
14758
14759   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14760 func_stripname ()\
14761 {\
14762 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14763 \    # positional parameters, so assign one to ordinary parameter first.\
14764 \    func_stripname_result=${3}\
14765 \    func_stripname_result=${func_stripname_result#"${1}"}\
14766 \    func_stripname_result=${func_stripname_result%"${2}"}\
14767 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14768   && mv -f "$cfgfile.tmp" "$cfgfile" \
14769     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14770 test 0 -eq $? || _lt_function_replace_fail=:
14771
14772
14773   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14774 func_split_long_opt ()\
14775 {\
14776 \    func_split_long_opt_name=${1%%=*}\
14777 \    func_split_long_opt_arg=${1#*=}\
14778 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14779   && mv -f "$cfgfile.tmp" "$cfgfile" \
14780     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14781 test 0 -eq $? || _lt_function_replace_fail=:
14782
14783
14784   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14785 func_split_short_opt ()\
14786 {\
14787 \    func_split_short_opt_arg=${1#??}\
14788 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14789 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14790   && mv -f "$cfgfile.tmp" "$cfgfile" \
14791     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14792 test 0 -eq $? || _lt_function_replace_fail=:
14793
14794
14795   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14796 func_lo2o ()\
14797 {\
14798 \    case ${1} in\
14799 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14800 \      *)    func_lo2o_result=${1} ;;\
14801 \    esac\
14802 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14803   && mv -f "$cfgfile.tmp" "$cfgfile" \
14804     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14805 test 0 -eq $? || _lt_function_replace_fail=:
14806
14807
14808   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14809 func_xform ()\
14810 {\
14811     func_xform_result=${1%.*}.lo\
14812 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14813   && mv -f "$cfgfile.tmp" "$cfgfile" \
14814     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14815 test 0 -eq $? || _lt_function_replace_fail=:
14816
14817
14818   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14819 func_arith ()\
14820 {\
14821     func_arith_result=$(( $* ))\
14822 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14823   && mv -f "$cfgfile.tmp" "$cfgfile" \
14824     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14825 test 0 -eq $? || _lt_function_replace_fail=:
14826
14827
14828   sed -e '/^func_len ()$/,/^} # func_len /c\
14829 func_len ()\
14830 {\
14831     func_len_result=${#1}\
14832 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14833   && mv -f "$cfgfile.tmp" "$cfgfile" \
14834     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14835 test 0 -eq $? || _lt_function_replace_fail=:
14836
14837 fi
14838
14839 if test x"$lt_shell_append" = xyes; then
14840   sed -e '/^func_append ()$/,/^} # func_append /c\
14841 func_append ()\
14842 {\
14843     eval "${1}+=\\${2}"\
14844 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14845   && mv -f "$cfgfile.tmp" "$cfgfile" \
14846     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14847 test 0 -eq $? || _lt_function_replace_fail=:
14848
14849
14850   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14851 func_append_quoted ()\
14852 {\
14853 \    func_quote_for_eval "${2}"\
14854 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14855 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14856   && mv -f "$cfgfile.tmp" "$cfgfile" \
14857     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14858 test 0 -eq $? || _lt_function_replace_fail=:
14859
14860
14861   # Save a `func_append' function call where possible by direct use of '+='
14862   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14863     && mv -f "$cfgfile.tmp" "$cfgfile" \
14864       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14865   test 0 -eq $? || _lt_function_replace_fail=:
14866 else
14867   # Save a `func_append' function call even when '+=' is not available
14868   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14869     && mv -f "$cfgfile.tmp" "$cfgfile" \
14870       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14871   test 0 -eq $? || _lt_function_replace_fail=:
14872 fi
14873
14874 if test x"$_lt_function_replace_fail" = x":"; then
14875   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14876 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14877 fi
14878
14879
14880    mv -f "$cfgfile" "$ofile" ||
14881     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14882   chmod +x "$ofile"
14883
14884  ;;
14885
14886   esac
14887 done # for ac_tag
14888
14889
14890 as_fn_exit 0
14891 _ACEOF
14892 ac_clean_files=$ac_clean_files_save
14893
14894 test $ac_write_fail = 0 ||
14895   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14896
14897
14898 # configure is writing to config.log, and then calls config.status.
14899 # config.status does its own redirection, appending to config.log.
14900 # Unfortunately, on DOS this fails, as config.log is still kept open
14901 # by configure, so config.status won't be able to write to it; its
14902 # output is simply discarded.  So we exec the FD to /dev/null,
14903 # effectively closing config.log, so it can be properly (re)opened and
14904 # appended to by config.status.  When coming back to configure, we
14905 # need to make the FD available again.
14906 if test "$no_create" != yes; then
14907   ac_cs_success=:
14908   ac_config_status_args=
14909   test "$silent" = yes &&
14910     ac_config_status_args="$ac_config_status_args --quiet"
14911   exec 5>/dev/null
14912   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14913   exec 5>>config.log
14914   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14915   # would make configure fail if this is the last instruction.
14916   $ac_cs_success || as_fn_exit 1
14917 fi
14918 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14919   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14920 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14921 fi
14922