resetting manifest requested domain to floor
[platform/upstream/libasyncns.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libasyncns 0.8.
4 #
5 # Report bugs to <mznflapaf (at) 0pointer (dot) de>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_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 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616   if test "X${echo_test_string+set}" != Xset; then
617     # find a string as large as possible, as long as the shell can cope with it
618     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622       then
623         break
624       fi
625     done
626   fi
627
628   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630      test "X$echo_testing_string" = "X$echo_test_string"; then
631     :
632   else
633     # The Solaris, AIX, and Digital Unix default echo programs unquote
634     # backslashes.  This makes it impossible to quote backslashes using
635     #   echo "$something" | sed 's/\\/\\\\/g'
636     #
637     # So, first we look for a working echo in the user's PATH.
638
639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640     for dir in $PATH /usr/ucb; do
641       IFS="$lt_save_ifs"
642       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645          test "X$echo_testing_string" = "X$echo_test_string"; then
646         ECHO="$dir/echo"
647         break
648       fi
649     done
650     IFS="$lt_save_ifs"
651
652     if test "X$ECHO" = Xecho; then
653       # We didn't find a better echo, so look for alternatives.
654       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656          test "X$echo_testing_string" = "X$echo_test_string"; then
657         # This shell has a builtin print -r that does the trick.
658         ECHO='print -r'
659       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660            test "X$CONFIG_SHELL" != X/bin/ksh; then
661         # If we have ksh, try running configure again with it.
662         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663         export ORIGINAL_CONFIG_SHELL
664         CONFIG_SHELL=/bin/ksh
665         export CONFIG_SHELL
666         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667       else
668         # Try using printf.
669         ECHO='printf %s\n'
670         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673           # Cool, printf works
674           :
675         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676              test "X$echo_testing_string" = 'X\t' &&
677              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678              test "X$echo_testing_string" = "X$echo_test_string"; then
679           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680           export CONFIG_SHELL
681           SHELL="$CONFIG_SHELL"
682           export SHELL
683           ECHO="$CONFIG_SHELL $0 --fallback-echo"
684         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685              test "X$echo_testing_string" = 'X\t' &&
686              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687              test "X$echo_testing_string" = "X$echo_test_string"; then
688           ECHO="$CONFIG_SHELL $0 --fallback-echo"
689         else
690           # maybe with a smaller string...
691           prev=:
692
693           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695             then
696               break
697             fi
698             prev="$cmd"
699           done
700
701           if test "$prev" != 'sed 50q "$0"'; then
702             echo_test_string=`eval $prev`
703             export echo_test_string
704             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705           else
706             # Oops.  We lost completely, so just stick with echo.
707             ECHO=echo
708           fi
709         fi
710       fi
711     fi
712   fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libasyncns'
747 PACKAGE_TARNAME='libasyncns'
748 PACKAGE_VERSION='0.8'
749 PACKAGE_STRING='libasyncns 0.8'
750 PACKAGE_BUGREPORT='mznflapaf (at) 0pointer (dot) de'
751
752 ac_unique_file="libasyncns/asyncns.c"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 #  include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 #  include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 USE_LYNX_FALSE
793 USE_LYNX_TRUE
794 have_lynx
795 LDFLAGS_NOUNDEFINED
796 PTHREAD_CFLAGS
797 PTHREAD_LIBS
798 PTHREAD_CC
799 acx_pthread_config
800 LIBOBJS
801 OTOOL64
802 OTOOL
803 LIPO
804 NMEDIT
805 DSYMUTIL
806 lt_ECHO
807 RANLIB
808 AR
809 OBJDUMP
810 NM
811 ac_ct_DUMPBIN
812 DUMPBIN
813 LD
814 FGREP
815 SED
816 host_os
817 host_vendor
818 host_cpu
819 host
820 build_os
821 build_vendor
822 build_cpu
823 build
824 LIBTOOL
825 LN_S
826 EGREP
827 GREP
828 CPP
829 am__fastdepCC_FALSE
830 am__fastdepCC_TRUE
831 CCDEPMODE
832 AMDEPBACKSLASH
833 AMDEP_FALSE
834 AMDEP_TRUE
835 am__quote
836 am__include
837 DEPDIR
838 OBJEXT
839 EXEEXT
840 ac_ct_CC
841 CPPFLAGS
842 LDFLAGS
843 CFLAGS
844 CC
845 AM_BACKSLASH
846 AM_DEFAULT_VERBOSITY
847 LIBASYNCNS_VERSION_INFO
848 PACKAGE_URL
849 am__untar
850 am__tar
851 AMTAR
852 am__leading_dot
853 SET_MAKE
854 AWK
855 mkdir_p
856 MKDIR_P
857 INSTALL_STRIP_PROGRAM
858 STRIP
859 install_sh
860 MAKEINFO
861 AUTOHEADER
862 AUTOMAKE
863 AUTOCONF
864 ACLOCAL
865 VERSION
866 PACKAGE
867 CYGPATH_W
868 am__isrc
869 INSTALL_DATA
870 INSTALL_SCRIPT
871 INSTALL_PROGRAM
872 target_alias
873 host_alias
874 build_alias
875 LIBS
876 ECHO_T
877 ECHO_N
878 ECHO_C
879 DEFS
880 mandir
881 localedir
882 libdir
883 psdir
884 pdfdir
885 dvidir
886 htmldir
887 infodir
888 docdir
889 oldincludedir
890 includedir
891 localstatedir
892 sharedstatedir
893 sysconfdir
894 datadir
895 datarootdir
896 libexecdir
897 sbindir
898 bindir
899 program_transform_name
900 prefix
901 exec_prefix
902 PACKAGE_BUGREPORT
903 PACKAGE_STRING
904 PACKAGE_VERSION
905 PACKAGE_TARNAME
906 PACKAGE_NAME
907 PATH_SEPARATOR
908 SHELL'
909 ac_subst_files=''
910 ac_user_opts='
911 enable_option_checking
912 enable_silent_rules
913 enable_dependency_tracking
914 enable_shared
915 enable_static
916 with_pic
917 enable_fast_install
918 with_gnu_ld
919 enable_libtool_lock
920 enable_assert
921 enable_largefile
922 enable_lynx
923 '
924       ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CPP'
933
934
935 # Initialize some variables set by options.
936 ac_init_help=
937 ac_init_version=false
938 ac_unrecognized_opts=
939 ac_unrecognized_sep=
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
942 cache_file=/dev/null
943 exec_prefix=NONE
944 no_create=
945 no_recursion=
946 prefix=NONE
947 program_prefix=NONE
948 program_suffix=NONE
949 program_transform_name=s,x,x,
950 silent=
951 site=
952 srcdir=
953 verbose=
954 x_includes=NONE
955 x_libraries=NONE
956
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 includedir='${prefix}/include'
972 oldincludedir='/usr/include'
973 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974 infodir='${datarootdir}/info'
975 htmldir='${docdir}'
976 dvidir='${docdir}'
977 pdfdir='${docdir}'
978 psdir='${docdir}'
979 libdir='${exec_prefix}/lib'
980 localedir='${datarootdir}/locale'
981 mandir='${datarootdir}/man'
982
983 ac_prev=
984 ac_dashdash=
985 for ac_option
986 do
987   # If the previous option needs an argument, assign it.
988   if test -n "$ac_prev"; then
989     eval $ac_prev=\$ac_option
990     ac_prev=
991     continue
992   fi
993
994   case $ac_option in
995   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996   *)    ac_optarg=yes ;;
997   esac
998
999   # Accept the important Cygnus configure options, so we can diagnose typos.
1000
1001   case $ac_dashdash$ac_option in
1002   --)
1003     ac_dashdash=yes ;;
1004
1005   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1006     ac_prev=bindir ;;
1007   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1008     bindir=$ac_optarg ;;
1009
1010   -build | --build | --buil | --bui | --bu)
1011     ac_prev=build_alias ;;
1012   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1013     build_alias=$ac_optarg ;;
1014
1015   -cache-file | --cache-file | --cache-fil | --cache-fi \
1016   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1017     ac_prev=cache_file ;;
1018   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1019   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1020     cache_file=$ac_optarg ;;
1021
1022   --config-cache | -C)
1023     cache_file=config.cache ;;
1024
1025   -datadir | --datadir | --datadi | --datad)
1026     ac_prev=datadir ;;
1027   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1028     datadir=$ac_optarg ;;
1029
1030   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1031   | --dataroo | --dataro | --datar)
1032     ac_prev=datarootdir ;;
1033   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1034   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1035     datarootdir=$ac_optarg ;;
1036
1037   -disable-* | --disable-*)
1038     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1039     # Reject names that are not valid shell variable names.
1040     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1042    { (exit 1); exit 1; }; }
1043     ac_useropt_orig=$ac_useropt
1044     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045     case $ac_user_opts in
1046       *"
1047 "enable_$ac_useropt"
1048 "*) ;;
1049       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050          ac_unrecognized_sep=', ';;
1051     esac
1052     eval enable_$ac_useropt=no ;;
1053
1054   -docdir | --docdir | --docdi | --doc | --do)
1055     ac_prev=docdir ;;
1056   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057     docdir=$ac_optarg ;;
1058
1059   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060     ac_prev=dvidir ;;
1061   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062     dvidir=$ac_optarg ;;
1063
1064   -enable-* | --enable-*)
1065     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066     # Reject names that are not valid shell variable names.
1067     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069    { (exit 1); exit 1; }; }
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1274    { (exit 1); exit 1; }; }
1275     ac_useropt_orig=$ac_useropt
1276     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277     case $ac_user_opts in
1278       *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282          ac_unrecognized_sep=', ';;
1283     esac
1284     eval with_$ac_useropt=\$ac_optarg ;;
1285
1286   -without-* | --without-*)
1287     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288     # Reject names that are not valid shell variable names.
1289     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1291    { (exit 1); exit 1; }; }
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval with_$ac_useropt=no ;;
1302
1303   --x)
1304     # Obsolete; use --with-x.
1305     with_x=yes ;;
1306
1307   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308   | --x-incl | --x-inc | --x-in | --x-i)
1309     ac_prev=x_includes ;;
1310   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312     x_includes=$ac_optarg ;;
1313
1314   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316     ac_prev=x_libraries ;;
1317   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319     x_libraries=$ac_optarg ;;
1320
1321   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1322 Try \`$0 --help' for more information." >&2
1323    { (exit 1); exit 1; }; }
1324     ;;
1325
1326   *=*)
1327     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328     # Reject names that are not valid shell variable names.
1329     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1330       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1331    { (exit 1); exit 1; }; }
1332     eval $ac_envvar=\$ac_optarg
1333     export $ac_envvar ;;
1334
1335   *)
1336     # FIXME: should be removed in autoconf 3.0.
1337     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341     ;;
1342
1343   esac
1344 done
1345
1346 if test -n "$ac_prev"; then
1347   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1349    { (exit 1); exit 1; }; }
1350 fi
1351
1352 if test -n "$ac_unrecognized_opts"; then
1353   case $enable_option_checking in
1354     no) ;;
1355     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1356    { (exit 1); exit 1; }; } ;;
1357     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358   esac
1359 fi
1360
1361 # Check all directory arguments for consistency.
1362 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363                 datadir sysconfdir sharedstatedir localstatedir includedir \
1364                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365                 libdir localedir mandir
1366 do
1367   eval ac_val=\$$ac_var
1368   # Remove trailing slashes.
1369   case $ac_val in
1370     */ )
1371       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372       eval $ac_var=\$ac_val;;
1373   esac
1374   # Be sure to have absolute directory names.
1375   case $ac_val in
1376     [\\/$]* | ?:[\\/]* )  continue;;
1377     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378   esac
1379   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1380    { (exit 1); exit 1; }; }
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392   if test "x$build_alias" = x; then
1393     cross_compiling=maybe
1394     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1395     If a cross compiler is detected then cross compile mode will be used." >&2
1396   elif test "x$build_alias" != "x$host_alias"; then
1397     cross_compiling=yes
1398   fi
1399 fi
1400
1401 ac_tool_prefix=
1402 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1403
1404 test "$silent" = yes && exec 6>/dev/null
1405
1406
1407 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1408 ac_ls_di=`ls -di .` &&
1409 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1410   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1411    { (exit 1); exit 1; }; }
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1414    { (exit 1); exit 1; }; }
1415
1416
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419   ac_srcdir_defaulted=yes
1420   # Try the directory containing this script, then the parent directory.
1421   ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423          X"$as_myself" : 'X\(//\)[^/]' \| \
1424          X"$as_myself" : 'X\(//\)$' \| \
1425          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428             s//\1/
1429             q
1430           }
1431           /^X\(\/\/\)[^/].*/{
1432             s//\1/
1433             q
1434           }
1435           /^X\(\/\/\)$/{
1436             s//\1/
1437             q
1438           }
1439           /^X\(\/\).*/{
1440             s//\1/
1441             q
1442           }
1443           s/.*/./; q'`
1444   srcdir=$ac_confdir
1445   if test ! -r "$srcdir/$ac_unique_file"; then
1446     srcdir=..
1447   fi
1448 else
1449   ac_srcdir_defaulted=no
1450 fi
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1454    { (exit 1); exit 1; }; }
1455 fi
1456 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 ac_abs_confdir=`(
1458         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1459    { (exit 1); exit 1; }; }
1460         pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463   srcdir=.
1464 fi
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473   eval ac_env_${ac_var}_value=\$${ac_var}
1474   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1477
1478 #
1479 # Report the --help message.
1480 #
1481 if test "$ac_init_help" = "long"; then
1482   # Omit some internal or obsolete options to make the list less imposing.
1483   # This message is too long to be a string in the A/UX 3.1 sh.
1484   cat <<_ACEOF
1485 \`configure' configures libasyncns 0.8 to adapt to many kinds of systems.
1486
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492 Defaults for the options are specified in brackets.
1493
1494 Configuration:
1495   -h, --help              display this help and exit
1496       --help=short        display options specific to this package
1497       --help=recursive    display the short help of all the included packages
1498   -V, --version           display version information and exit
1499   -q, --quiet, --silent   do not print \`checking...' messages
1500       --cache-file=FILE   cache test results in FILE [disabled]
1501   -C, --config-cache      alias for \`--cache-file=config.cache'
1502   -n, --no-create         do not create output files
1503       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505 Installation directories:
1506   --prefix=PREFIX         install architecture-independent files in PREFIX
1507                           [$ac_default_prefix]
1508   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                           [PREFIX]
1510
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1515
1516 For better control, use the options below.
1517
1518 Fine tuning of the installation directories:
1519   --bindir=DIR            user executables [EPREFIX/bin]
1520   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521   --libexecdir=DIR        program executables [EPREFIX/libexec]
1522   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525   --libdir=DIR            object code libraries [EPREFIX/lib]
1526   --includedir=DIR        C header files [PREFIX/include]
1527   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530   --infodir=DIR           info documentation [DATAROOTDIR/info]
1531   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532   --mandir=DIR            man documentation [DATAROOTDIR/man]
1533   --docdir=DIR            documentation root [DATAROOTDIR/doc/libasyncns]
1534   --htmldir=DIR           html documentation [DOCDIR]
1535   --dvidir=DIR            dvi documentation [DOCDIR]
1536   --pdfdir=DIR            pdf documentation [DOCDIR]
1537   --psdir=DIR             ps documentation [DOCDIR]
1538 _ACEOF
1539
1540   cat <<\_ACEOF
1541
1542 Program names:
1543   --program-prefix=PREFIX            prepend PREFIX to installed program names
1544   --program-suffix=SUFFIX            append SUFFIX to installed program names
1545   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1546
1547 System types:
1548   --build=BUILD     configure for building on BUILD [guessed]
1549   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1551 fi
1552
1553 if test -n "$ac_init_help"; then
1554   case $ac_init_help in
1555      short | recursive ) echo "Configuration of libasyncns 0.8:";;
1556    esac
1557   cat <<\_ACEOF
1558
1559 Optional Features:
1560   --disable-option-checking  ignore unrecognized --enable/--with options
1561   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1562   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1563   --enable-silent-rules          less verbose build output (undo: `make V=1')
1564   --disable-silent-rules         verbose build output (undo: `make V=0')
1565   --disable-dependency-tracking  speeds up one-time build
1566   --enable-dependency-tracking   do not reject slow dependency extractors
1567   --enable-shared[=PKGS]  build shared libraries [default=yes]
1568   --enable-static[=PKGS]  build static libraries [default=yes]
1569   --enable-fast-install[=PKGS]
1570                           optimize for fast installation [default=yes]
1571   --disable-libtool-lock  avoid locking (might break parallel builds)
1572   --disable-assert        turn off assertions
1573   --disable-largefile     omit support for large files
1574   --disable-lynx          Turn off lynx usage for documentation generation
1575
1576 Optional Packages:
1577   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1578   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1579   --with-pic              try to use only PIC/non-PIC objects [default=use
1580                           both]
1581   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582
1583 Some influential environment variables:
1584   CC          C compiler command
1585   CFLAGS      C compiler flags
1586   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587               nonstandard directory <lib dir>
1588   LIBS        libraries to pass to the linker, e.g. -l<library>
1589   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590               you have headers in a nonstandard directory <include dir>
1591   CPP         C preprocessor
1592
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1595
1596 Report bugs to <mznflapaf (at) 0pointer (dot) de>.
1597 _ACEOF
1598 ac_status=$?
1599 fi
1600
1601 if test "$ac_init_help" = "recursive"; then
1602   # If there are subdirs, report their specific --help.
1603   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604     test -d "$ac_dir" ||
1605       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606       continue
1607     ac_builddir=.
1608
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *)
1612   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613   # A ".." for each directory in $ac_dir_suffix.
1614   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615   case $ac_top_builddir_sub in
1616   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618   esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1624
1625 case $srcdir in
1626   .)  # We are building in place.
1627     ac_srcdir=.
1628     ac_top_srcdir=$ac_top_builddir_sub
1629     ac_abs_top_srcdir=$ac_pwd ;;
1630   [\\/]* | ?:[\\/]* )  # Absolute name.
1631     ac_srcdir=$srcdir$ac_dir_suffix;
1632     ac_top_srcdir=$srcdir
1633     ac_abs_top_srcdir=$srcdir ;;
1634   *) # Relative name.
1635     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636     ac_top_srcdir=$ac_top_build_prefix$srcdir
1637     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640
1641     cd "$ac_dir" || { ac_status=$?; continue; }
1642     # Check for guested configure.
1643     if test -f "$ac_srcdir/configure.gnu"; then
1644       echo &&
1645       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646     elif test -f "$ac_srcdir/configure"; then
1647       echo &&
1648       $SHELL "$ac_srcdir/configure" --help=recursive
1649     else
1650       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651     fi || ac_status=$?
1652     cd "$ac_pwd" || { ac_status=$?; break; }
1653   done
1654 fi
1655
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658   cat <<\_ACEOF
1659 libasyncns configure 0.8
1660 generated by GNU Autoconf 2.63
1661
1662 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1663 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666 _ACEOF
1667   exit
1668 fi
1669 cat >config.log <<_ACEOF
1670 This file contains any messages produced by compilers while
1671 running configure, to aid debugging if configure makes a mistake.
1672
1673 It was created by libasyncns $as_me 0.8, which was
1674 generated by GNU Autoconf 2.63.  Invocation command line was
1675
1676   $ $0 $@
1677
1678 _ACEOF
1679 exec 5>>config.log
1680 {
1681 cat <<_ASUNAME
1682 ## --------- ##
1683 ## Platform. ##
1684 ## --------- ##
1685
1686 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1687 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1688 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1689 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1690 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1691
1692 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1693 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1694
1695 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1696 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1697 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1698 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1699 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1700 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1701 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1702
1703 _ASUNAME
1704
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   $as_echo "PATH: $as_dir"
1711 done
1712 IFS=$as_save_IFS
1713
1714 } >&5
1715
1716 cat >&5 <<_ACEOF
1717
1718
1719 ## ----------- ##
1720 ## Core tests. ##
1721 ## ----------- ##
1722
1723 _ACEOF
1724
1725
1726 # Keep a trace of the command line.
1727 # Strip out --no-create and --no-recursion so they do not pile up.
1728 # Strip out --silent because we don't want to record it for future runs.
1729 # Also quote any args containing shell meta-characters.
1730 # Make two passes to allow for proper duplicate-argument suppression.
1731 ac_configure_args=
1732 ac_configure_args0=
1733 ac_configure_args1=
1734 ac_must_keep_next=false
1735 for ac_pass in 1 2
1736 do
1737   for ac_arg
1738   do
1739     case $ac_arg in
1740     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1741     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1742     | -silent | --silent | --silen | --sile | --sil)
1743       continue ;;
1744     *\'*)
1745       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1746     esac
1747     case $ac_pass in
1748     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1749     2)
1750       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1751       if test $ac_must_keep_next = true; then
1752         ac_must_keep_next=false # Got value, back to normal.
1753       else
1754         case $ac_arg in
1755           *=* | --config-cache | -C | -disable-* | --disable-* \
1756           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1757           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1758           | -with-* | --with-* | -without-* | --without-* | --x)
1759             case "$ac_configure_args0 " in
1760               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1761             esac
1762             ;;
1763           -* ) ac_must_keep_next=true ;;
1764         esac
1765       fi
1766       ac_configure_args="$ac_configure_args '$ac_arg'"
1767       ;;
1768     esac
1769   done
1770 done
1771 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1772 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1773
1774 # When interrupted or exit'd, cleanup temporary files, and complete
1775 # config.log.  We remove comments because anyway the quotes in there
1776 # would cause problems or look ugly.
1777 # WARNING: Use '\'' to represent an apostrophe within the trap.
1778 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1779 trap 'exit_status=$?
1780   # Save into config.log some information that might help in debugging.
1781   {
1782     echo
1783
1784     cat <<\_ASBOX
1785 ## ---------------- ##
1786 ## Cache variables. ##
1787 ## ---------------- ##
1788 _ASBOX
1789     echo
1790     # The following way of writing the cache mishandles newlines in values,
1791 (
1792   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793     eval ac_val=\$$ac_var
1794     case $ac_val in #(
1795     *${as_nl}*)
1796       case $ac_var in #(
1797       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1798 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1799       esac
1800       case $ac_var in #(
1801       _ | IFS | as_nl) ;; #(
1802       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1803       *) $as_unset $ac_var ;;
1804       esac ;;
1805     esac
1806   done
1807   (set) 2>&1 |
1808     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809     *${as_nl}ac_space=\ *)
1810       sed -n \
1811         "s/'\''/'\''\\\\'\'''\''/g;
1812           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813       ;; #(
1814     *)
1815       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1816       ;;
1817     esac |
1818     sort
1819 )
1820     echo
1821
1822     cat <<\_ASBOX
1823 ## ----------------- ##
1824 ## Output variables. ##
1825 ## ----------------- ##
1826 _ASBOX
1827     echo
1828     for ac_var in $ac_subst_vars
1829     do
1830       eval ac_val=\$$ac_var
1831       case $ac_val in
1832       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833       esac
1834       $as_echo "$ac_var='\''$ac_val'\''"
1835     done | sort
1836     echo
1837
1838     if test -n "$ac_subst_files"; then
1839       cat <<\_ASBOX
1840 ## ------------------- ##
1841 ## File substitutions. ##
1842 ## ------------------- ##
1843 _ASBOX
1844       echo
1845       for ac_var in $ac_subst_files
1846       do
1847         eval ac_val=\$$ac_var
1848         case $ac_val in
1849         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850         esac
1851         $as_echo "$ac_var='\''$ac_val'\''"
1852       done | sort
1853       echo
1854     fi
1855
1856     if test -s confdefs.h; then
1857       cat <<\_ASBOX
1858 ## ----------- ##
1859 ## confdefs.h. ##
1860 ## ----------- ##
1861 _ASBOX
1862       echo
1863       cat confdefs.h
1864       echo
1865     fi
1866     test "$ac_signal" != 0 &&
1867       $as_echo "$as_me: caught signal $ac_signal"
1868     $as_echo "$as_me: exit $exit_status"
1869   } >&5
1870   rm -f core *.core core.conftest.* &&
1871     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1872     exit $exit_status
1873 ' 0
1874 for ac_signal in 1 2 13 15; do
1875   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876 done
1877 ac_signal=0
1878
1879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1880 rm -f -r conftest* confdefs.h
1881
1882 # Predefined preprocessor variables.
1883
1884 cat >>confdefs.h <<_ACEOF
1885 #define PACKAGE_NAME "$PACKAGE_NAME"
1886 _ACEOF
1887
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_STRING "$PACKAGE_STRING"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906 _ACEOF
1907
1908
1909 # Let the site file select an alternate cache file if it wants to.
1910 # Prefer an explicitly selected file to automatically selected ones.
1911 ac_site_file1=NONE
1912 ac_site_file2=NONE
1913 if test -n "$CONFIG_SITE"; then
1914   ac_site_file1=$CONFIG_SITE
1915 elif test "x$prefix" != xNONE; then
1916   ac_site_file1=$prefix/share/config.site
1917   ac_site_file2=$prefix/etc/config.site
1918 else
1919   ac_site_file1=$ac_default_prefix/share/config.site
1920   ac_site_file2=$ac_default_prefix/etc/config.site
1921 fi
1922 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1923 do
1924   test "x$ac_site_file" = xNONE && continue
1925   if test -r "$ac_site_file"; then
1926     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1927 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1928     sed 's/^/| /' "$ac_site_file" >&5
1929     . "$ac_site_file"
1930   fi
1931 done
1932
1933 if test -r "$cache_file"; then
1934   # Some versions of bash will fail to source /dev/null (special
1935   # files actually), so we avoid doing that.
1936   if test -f "$cache_file"; then
1937     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1938 $as_echo "$as_me: loading cache $cache_file" >&6;}
1939     case $cache_file in
1940       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1941       *)                      . "./$cache_file";;
1942     esac
1943   fi
1944 else
1945   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1946 $as_echo "$as_me: creating cache $cache_file" >&6;}
1947   >$cache_file
1948 fi
1949
1950 # Check that the precious variables saved in the cache have kept the same
1951 # value.
1952 ac_cache_corrupted=false
1953 for ac_var in $ac_precious_vars; do
1954   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1955   eval ac_new_set=\$ac_env_${ac_var}_set
1956   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1957   eval ac_new_val=\$ac_env_${ac_var}_value
1958   case $ac_old_set,$ac_new_set in
1959     set,)
1960       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1961 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1962       ac_cache_corrupted=: ;;
1963     ,set)
1964       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1965 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1966       ac_cache_corrupted=: ;;
1967     ,);;
1968     *)
1969       if test "x$ac_old_val" != "x$ac_new_val"; then
1970         # differences in whitespace do not lead to failure.
1971         ac_old_val_w=`echo x $ac_old_val`
1972         ac_new_val_w=`echo x $ac_new_val`
1973         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1974           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1975 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1976           ac_cache_corrupted=:
1977         else
1978           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1979 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1980           eval $ac_var=\$ac_old_val
1981         fi
1982         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1983 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1984         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1985 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1986       fi;;
1987   esac
1988   # Pass precious variables to config.status.
1989   if test "$ac_new_set" = set; then
1990     case $ac_new_val in
1991     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1992     *) ac_arg=$ac_var=$ac_new_val ;;
1993     esac
1994     case " $ac_configure_args " in
1995       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1996       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1997     esac
1998   fi
1999 done
2000 if $ac_cache_corrupted; then
2001   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2003   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2004 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2005   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2006 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2007    { (exit 1); exit 1; }; }
2008 fi
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034 ac_ext=c
2035 ac_cpp='$CPP $CPPFLAGS'
2036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2039
2040
2041
2042 ac_config_headers="$ac_config_headers config.h"
2043
2044
2045 am__api_version='1.11'
2046
2047 ac_aux_dir=
2048 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2049   if test -f "$ac_dir/install-sh"; then
2050     ac_aux_dir=$ac_dir
2051     ac_install_sh="$ac_aux_dir/install-sh -c"
2052     break
2053   elif test -f "$ac_dir/install.sh"; then
2054     ac_aux_dir=$ac_dir
2055     ac_install_sh="$ac_aux_dir/install.sh -c"
2056     break
2057   elif test -f "$ac_dir/shtool"; then
2058     ac_aux_dir=$ac_dir
2059     ac_install_sh="$ac_aux_dir/shtool install -c"
2060     break
2061   fi
2062 done
2063 if test -z "$ac_aux_dir"; then
2064   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2065 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2066    { (exit 1); exit 1; }; }
2067 fi
2068
2069 # These three variables are undocumented and unsupported,
2070 # and are intended to be withdrawn in a future Autoconf release.
2071 # They can cause serious problems if a builder's source tree is in a directory
2072 # whose full name contains unusual characters.
2073 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2074 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2075 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2076
2077
2078 # Find a good install program.  We prefer a C program (faster),
2079 # so one script is as good as another.  But avoid the broken or
2080 # incompatible versions:
2081 # SysV /etc/install, /usr/sbin/install
2082 # SunOS /usr/etc/install
2083 # IRIX /sbin/install
2084 # AIX /bin/install
2085 # AmigaOS /C/install, which installs bootblocks on floppy discs
2086 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2087 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2088 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2089 # OS/2's system install, which has a completely different semantic
2090 # ./install, which can be erroneously created by make from ./install.sh.
2091 # Reject install programs that cannot install multiple files.
2092 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2093 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2094 if test -z "$INSTALL"; then
2095 if test "${ac_cv_path_install+set}" = set; then
2096   $as_echo_n "(cached) " >&6
2097 else
2098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   # Account for people who put trailing slashes in PATH elements.
2104 case $as_dir/ in
2105   ./ | .// | /cC/* | \
2106   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2107   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2108   /usr/ucb/* ) ;;
2109   *)
2110     # OSF1 and SCO ODT 3.0 have their own names for install.
2111     # Don't use installbsd from OSF since it installs stuff as root
2112     # by default.
2113     for ac_prog in ginstall scoinst install; do
2114       for ac_exec_ext in '' $ac_executable_extensions; do
2115         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2116           if test $ac_prog = install &&
2117             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2118             # AIX install.  It has an incompatible calling convention.
2119             :
2120           elif test $ac_prog = install &&
2121             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2122             # program-specific install script used by HP pwplus--don't use.
2123             :
2124           else
2125             rm -rf conftest.one conftest.two conftest.dir
2126             echo one > conftest.one
2127             echo two > conftest.two
2128             mkdir conftest.dir
2129             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2130               test -s conftest.one && test -s conftest.two &&
2131               test -s conftest.dir/conftest.one &&
2132               test -s conftest.dir/conftest.two
2133             then
2134               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2135               break 3
2136             fi
2137           fi
2138         fi
2139       done
2140     done
2141     ;;
2142 esac
2143
2144 done
2145 IFS=$as_save_IFS
2146
2147 rm -rf conftest.one conftest.two conftest.dir
2148
2149 fi
2150   if test "${ac_cv_path_install+set}" = set; then
2151     INSTALL=$ac_cv_path_install
2152   else
2153     # As a last resort, use the slow shell script.  Don't cache a
2154     # value for INSTALL within a source directory, because that will
2155     # break other packages using the cache if that directory is
2156     # removed, or if the value is a relative name.
2157     INSTALL=$ac_install_sh
2158   fi
2159 fi
2160 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2161 $as_echo "$INSTALL" >&6; }
2162
2163 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2164 # It thinks the first close brace ends the variable substitution.
2165 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2166
2167 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2168
2169 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2170
2171 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2172 $as_echo_n "checking whether build environment is sane... " >&6; }
2173 # Just in case
2174 sleep 1
2175 echo timestamp > conftest.file
2176 # Reject unsafe characters in $srcdir or the absolute working directory
2177 # name.  Accept space and tab only in the latter.
2178 am_lf='
2179 '
2180 case `pwd` in
2181   *[\\\"\#\$\&\'\`$am_lf]*)
2182     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2183 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2184    { (exit 1); exit 1; }; };;
2185 esac
2186 case $srcdir in
2187   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2188     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2189 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2190    { (exit 1); exit 1; }; };;
2191 esac
2192
2193 # Do `set' in a subshell so we don't clobber the current shell's
2194 # arguments.  Must try -L first in case configure is actually a
2195 # symlink; some systems play weird games with the mod time of symlinks
2196 # (eg FreeBSD returns the mod time of the symlink's containing
2197 # directory).
2198 if (
2199    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2200    if test "$*" = "X"; then
2201       # -L didn't work.
2202       set X `ls -t "$srcdir/configure" conftest.file`
2203    fi
2204    rm -f conftest.file
2205    if test "$*" != "X $srcdir/configure conftest.file" \
2206       && test "$*" != "X conftest.file $srcdir/configure"; then
2207
2208       # If neither matched, then we have a broken ls.  This can happen
2209       # if, for instance, CONFIG_SHELL is bash and it inherits a
2210       # broken ls alias from the environment.  This has actually
2211       # happened.  Such a system could not be considered "sane".
2212       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2213 alias in your environment" >&5
2214 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2215 alias in your environment" >&2;}
2216    { (exit 1); exit 1; }; }
2217    fi
2218
2219    test "$2" = conftest.file
2220    )
2221 then
2222    # Ok.
2223    :
2224 else
2225    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2226 Check your system clock" >&5
2227 $as_echo "$as_me: error: newly created file is older than distributed files!
2228 Check your system clock" >&2;}
2229    { (exit 1); exit 1; }; }
2230 fi
2231 { $as_echo "$as_me:$LINENO: result: yes" >&5
2232 $as_echo "yes" >&6; }
2233 test "$program_prefix" != NONE &&
2234   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2235 # Use a double $ so make ignores it.
2236 test "$program_suffix" != NONE &&
2237   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2238 # Double any \ or $.
2239 # By default was `s,x,x', remove it if useless.
2240 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2241 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2242
2243 # expand $ac_aux_dir to an absolute path
2244 am_aux_dir=`cd $ac_aux_dir && pwd`
2245
2246 if test x"${MISSING+set}" != xset; then
2247   case $am_aux_dir in
2248   *\ * | *\     *)
2249     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2250   *)
2251     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2252   esac
2253 fi
2254 # Use eval to expand $SHELL
2255 if eval "$MISSING --run true"; then
2256   am_missing_run="$MISSING --run "
2257 else
2258   am_missing_run=
2259   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2260 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2261 fi
2262
2263 if test x"${install_sh}" != xset; then
2264   case $am_aux_dir in
2265   *\ * | *\     *)
2266     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2267   *)
2268     install_sh="\${SHELL} $am_aux_dir/install-sh"
2269   esac
2270 fi
2271
2272 # Installed binaries are usually stripped using `strip' when the user
2273 # run `make install-strip'.  However `strip' might not be the right
2274 # tool to use in cross-compilation environments, therefore Automake
2275 # will honor the `STRIP' environment variable to overrule this program.
2276 if test "$cross_compiling" != no; then
2277   if test -n "$ac_tool_prefix"; then
2278   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}strip; ac_word=$2
2280 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 $as_echo_n "checking for $ac_word... " >&6; }
2282 if test "${ac_cv_prog_STRIP+set}" = set; then
2283   $as_echo_n "(cached) " >&6
2284 else
2285   if test -n "$STRIP"; then
2286   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2296     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301 IFS=$as_save_IFS
2302
2303 fi
2304 fi
2305 STRIP=$ac_cv_prog_STRIP
2306 if test -n "$STRIP"; then
2307   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2308 $as_echo "$STRIP" >&6; }
2309 else
2310   { $as_echo "$as_me:$LINENO: result: no" >&5
2311 $as_echo "no" >&6; }
2312 fi
2313
2314
2315 fi
2316 if test -z "$ac_cv_prog_STRIP"; then
2317   ac_ct_STRIP=$STRIP
2318   # Extract the first word of "strip", so it can be a program name with args.
2319 set dummy strip; ac_word=$2
2320 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2323   $as_echo_n "(cached) " >&6
2324 else
2325   if test -n "$ac_ct_STRIP"; then
2326   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333   for ac_exec_ext in '' $ac_executable_extensions; do
2334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335     ac_cv_prog_ac_ct_STRIP="strip"
2336     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2346 if test -n "$ac_ct_STRIP"; then
2347   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2348 $as_echo "$ac_ct_STRIP" >&6; }
2349 else
2350   { $as_echo "$as_me:$LINENO: result: no" >&5
2351 $as_echo "no" >&6; }
2352 fi
2353
2354   if test "x$ac_ct_STRIP" = x; then
2355     STRIP=":"
2356   else
2357     case $cross_compiling:$ac_tool_warned in
2358 yes:)
2359 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2361 ac_tool_warned=yes ;;
2362 esac
2363     STRIP=$ac_ct_STRIP
2364   fi
2365 else
2366   STRIP="$ac_cv_prog_STRIP"
2367 fi
2368
2369 fi
2370 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2371
2372 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2373 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2374 if test -z "$MKDIR_P"; then
2375   if test "${ac_cv_path_mkdir+set}" = set; then
2376   $as_echo_n "(cached) " >&6
2377 else
2378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2380 do
2381   IFS=$as_save_IFS
2382   test -z "$as_dir" && as_dir=.
2383   for ac_prog in mkdir gmkdir; do
2384          for ac_exec_ext in '' $ac_executable_extensions; do
2385            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2386            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2387              'mkdir (GNU coreutils) '* | \
2388              'mkdir (coreutils) '* | \
2389              'mkdir (fileutils) '4.1*)
2390                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2391                break 3;;
2392            esac
2393          done
2394        done
2395 done
2396 IFS=$as_save_IFS
2397
2398 fi
2399
2400   if test "${ac_cv_path_mkdir+set}" = set; then
2401     MKDIR_P="$ac_cv_path_mkdir -p"
2402   else
2403     # As a last resort, use the slow shell script.  Don't cache a
2404     # value for MKDIR_P within a source directory, because that will
2405     # break other packages using the cache if that directory is
2406     # removed, or if the value is a relative name.
2407     test -d ./--version && rmdir ./--version
2408     MKDIR_P="$ac_install_sh -d"
2409   fi
2410 fi
2411 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2412 $as_echo "$MKDIR_P" >&6; }
2413
2414 mkdir_p="$MKDIR_P"
2415 case $mkdir_p in
2416   [\\/$]* | ?:[\\/]*) ;;
2417   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2418 esac
2419
2420 for ac_prog in gawk mawk nawk awk
2421 do
2422   # Extract the first word of "$ac_prog", so it can be a program name with args.
2423 set dummy $ac_prog; ac_word=$2
2424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if test "${ac_cv_prog_AWK+set}" = set; then
2427   $as_echo_n "(cached) " >&6
2428 else
2429   if test -n "$AWK"; then
2430   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_exec_ext in '' $ac_executable_extensions; do
2438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439     ac_cv_prog_AWK="$ac_prog"
2440     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441     break 2
2442   fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 fi
2448 fi
2449 AWK=$ac_cv_prog_AWK
2450 if test -n "$AWK"; then
2451   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2452 $as_echo "$AWK" >&6; }
2453 else
2454   { $as_echo "$as_me:$LINENO: result: no" >&5
2455 $as_echo "no" >&6; }
2456 fi
2457
2458
2459   test -n "$AWK" && break
2460 done
2461
2462 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2463 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2464 set x ${MAKE-make}
2465 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2466 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2467   $as_echo_n "(cached) " >&6
2468 else
2469   cat >conftest.make <<\_ACEOF
2470 SHELL = /bin/sh
2471 all:
2472         @echo '@@@%%%=$(MAKE)=@@@%%%'
2473 _ACEOF
2474 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2475 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2476   *@@@%%%=?*=@@@%%%*)
2477     eval ac_cv_prog_make_${ac_make}_set=yes;;
2478   *)
2479     eval ac_cv_prog_make_${ac_make}_set=no;;
2480 esac
2481 rm -f conftest.make
2482 fi
2483 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2484   { $as_echo "$as_me:$LINENO: result: yes" >&5
2485 $as_echo "yes" >&6; }
2486   SET_MAKE=
2487 else
2488   { $as_echo "$as_me:$LINENO: result: no" >&5
2489 $as_echo "no" >&6; }
2490   SET_MAKE="MAKE=${MAKE-make}"
2491 fi
2492
2493 rm -rf .tst 2>/dev/null
2494 mkdir .tst 2>/dev/null
2495 if test -d .tst; then
2496   am__leading_dot=.
2497 else
2498   am__leading_dot=_
2499 fi
2500 rmdir .tst 2>/dev/null
2501
2502 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2503   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2504   # is not polluted with repeated "-I."
2505   am__isrc=' -I$(srcdir)'
2506   # test to see if srcdir already configured
2507   if test -f $srcdir/config.status; then
2508     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2509 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2510    { (exit 1); exit 1; }; }
2511   fi
2512 fi
2513
2514 # test whether we have cygpath
2515 if test -z "$CYGPATH_W"; then
2516   if (cygpath --version) >/dev/null 2>/dev/null; then
2517     CYGPATH_W='cygpath -w'
2518   else
2519     CYGPATH_W=echo
2520   fi
2521 fi
2522
2523
2524 # Define the identity of the package.
2525  PACKAGE='libasyncns'
2526  VERSION='0.8'
2527
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE "$PACKAGE"
2531 _ACEOF
2532
2533
2534 cat >>confdefs.h <<_ACEOF
2535 #define VERSION "$VERSION"
2536 _ACEOF
2537
2538 # Some tools Automake needs.
2539
2540 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2541
2542
2543 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2544
2545
2546 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2547
2548
2549 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2550
2551
2552 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2553
2554 # We need awk for the "check" target.  The system "awk" is bad on
2555 # some platforms.
2556 # Always define AMTAR for backward compatibility.
2557
2558 AMTAR=${AMTAR-"${am_missing_run}tar"}
2559
2560 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2561
2562
2563
2564
2565
2566
2567 PACKAGE_URL=http://0pointer.de/lennart/projects/libasyncns/
2568
2569
2570 LIBASYNCNS_VERSION_INFO=3:1:3
2571
2572
2573 if type -p stow > /dev/null && test -d /usr/local/stow ; then
2574    { $as_echo "$as_me:$LINENO: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
2575 $as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
2576    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
2577 fi
2578
2579 # Check whether --enable-silent-rules was given.
2580 if test "${enable_silent_rules+set}" = set; then
2581   enableval=$enable_silent_rules;
2582 fi
2583
2584 case $enable_silent_rules in
2585 yes) AM_DEFAULT_VERBOSITY=0;;
2586 no)  AM_DEFAULT_VERBOSITY=1;;
2587 *)   AM_DEFAULT_VERBOSITY=0;;
2588 esac
2589 AM_BACKSLASH='\'
2590
2591
2592 ac_ext=c
2593 ac_cpp='$CPP $CPPFLAGS'
2594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2597 if test -n "$ac_tool_prefix"; then
2598   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2599 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if test "${ac_cv_prog_CC+set}" = set; then
2603   $as_echo_n "(cached) " >&6
2604 else
2605   if test -n "$CC"; then
2606   ac_cv_prog_CC="$CC" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2610 do
2611   IFS=$as_save_IFS
2612   test -z "$as_dir" && as_dir=.
2613   for ac_exec_ext in '' $ac_executable_extensions; do
2614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2616     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617     break 2
2618   fi
2619 done
2620 done
2621 IFS=$as_save_IFS
2622
2623 fi
2624 fi
2625 CC=$ac_cv_prog_CC
2626 if test -n "$CC"; then
2627   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2628 $as_echo "$CC" >&6; }
2629 else
2630   { $as_echo "$as_me:$LINENO: result: no" >&5
2631 $as_echo "no" >&6; }
2632 fi
2633
2634
2635 fi
2636 if test -z "$ac_cv_prog_CC"; then
2637   ac_ct_CC=$CC
2638   # Extract the first word of "gcc", so it can be a program name with args.
2639 set dummy gcc; ac_word=$2
2640 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2643   $as_echo_n "(cached) " >&6
2644 else
2645   if test -n "$ac_ct_CC"; then
2646   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653   for ac_exec_ext in '' $ac_executable_extensions; do
2654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655     ac_cv_prog_ac_ct_CC="gcc"
2656     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657     break 2
2658   fi
2659 done
2660 done
2661 IFS=$as_save_IFS
2662
2663 fi
2664 fi
2665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666 if test -n "$ac_ct_CC"; then
2667   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668 $as_echo "$ac_ct_CC" >&6; }
2669 else
2670   { $as_echo "$as_me:$LINENO: result: no" >&5
2671 $as_echo "no" >&6; }
2672 fi
2673
2674   if test "x$ac_ct_CC" = x; then
2675     CC=""
2676   else
2677     case $cross_compiling:$ac_tool_warned in
2678 yes:)
2679 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2681 ac_tool_warned=yes ;;
2682 esac
2683     CC=$ac_ct_CC
2684   fi
2685 else
2686   CC="$ac_cv_prog_CC"
2687 fi
2688
2689 if test -z "$CC"; then
2690           if test -n "$ac_tool_prefix"; then
2691     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2692 set dummy ${ac_tool_prefix}cc; ac_word=$2
2693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696   $as_echo_n "(cached) " >&6
2697 else
2698   if test -n "$CC"; then
2699   ac_cv_prog_CC="$CC" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704   IFS=$as_save_IFS
2705   test -z "$as_dir" && as_dir=.
2706   for ac_exec_ext in '' $ac_executable_extensions; do
2707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708     ac_cv_prog_CC="${ac_tool_prefix}cc"
2709     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710     break 2
2711   fi
2712 done
2713 done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 CC=$ac_cv_prog_CC
2719 if test -n "$CC"; then
2720   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2721 $as_echo "$CC" >&6; }
2722 else
2723   { $as_echo "$as_me:$LINENO: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727
2728   fi
2729 fi
2730 if test -z "$CC"; then
2731   # Extract the first word of "cc", so it can be a program name with args.
2732 set dummy cc; ac_word=$2
2733 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then
2736   $as_echo_n "(cached) " >&6
2737 else
2738   if test -n "$CC"; then
2739   ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741   ac_prog_rejected=no
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745   IFS=$as_save_IFS
2746   test -z "$as_dir" && as_dir=.
2747   for ac_exec_ext in '' $ac_executable_extensions; do
2748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2750        ac_prog_rejected=yes
2751        continue
2752      fi
2753     ac_cv_prog_CC="cc"
2754     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755     break 2
2756   fi
2757 done
2758 done
2759 IFS=$as_save_IFS
2760
2761 if test $ac_prog_rejected = yes; then
2762   # We found a bogon in the path, so make sure we never use it.
2763   set dummy $ac_cv_prog_CC
2764   shift
2765   if test $# != 0; then
2766     # We chose a different compiler from the bogus one.
2767     # However, it has the same basename, so the bogon will be chosen
2768     # first if we set CC to just the basename; use the full file name.
2769     shift
2770     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2771   fi
2772 fi
2773 fi
2774 fi
2775 CC=$ac_cv_prog_CC
2776 if test -n "$CC"; then
2777   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2778 $as_echo "$CC" >&6; }
2779 else
2780   { $as_echo "$as_me:$LINENO: result: no" >&5
2781 $as_echo "no" >&6; }
2782 fi
2783
2784
2785 fi
2786 if test -z "$CC"; then
2787   if test -n "$ac_tool_prefix"; then
2788   for ac_prog in cl.exe
2789   do
2790     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_CC+set}" = set; then
2795   $as_echo_n "(cached) " >&6
2796 else
2797   if test -n "$CC"; then
2798   ac_cv_prog_CC="$CC" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803   IFS=$as_save_IFS
2804   test -z "$as_dir" && as_dir=.
2805   for ac_exec_ext in '' $ac_executable_extensions; do
2806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2808     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809     break 2
2810   fi
2811 done
2812 done
2813 IFS=$as_save_IFS
2814
2815 fi
2816 fi
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2821 else
2822   { $as_echo "$as_me:$LINENO: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827     test -n "$CC" && break
2828   done
2829 fi
2830 if test -z "$CC"; then
2831   ac_ct_CC=$CC
2832   for ac_prog in cl.exe
2833 do
2834   # Extract the first word of "$ac_prog", so it can be a program name with args.
2835 set dummy $ac_prog; ac_word=$2
2836 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2839   $as_echo_n "(cached) " >&6
2840 else
2841   if test -n "$ac_ct_CC"; then
2842   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849   for ac_exec_ext in '' $ac_executable_extensions; do
2850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2851     ac_cv_prog_ac_ct_CC="$ac_prog"
2852     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2862 if test -n "$ac_ct_CC"; then
2863   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2864 $as_echo "$ac_ct_CC" >&6; }
2865 else
2866   { $as_echo "$as_me:$LINENO: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870
2871   test -n "$ac_ct_CC" && break
2872 done
2873
2874   if test "x$ac_ct_CC" = x; then
2875     CC=""
2876   else
2877     case $cross_compiling:$ac_tool_warned in
2878 yes:)
2879 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881 ac_tool_warned=yes ;;
2882 esac
2883     CC=$ac_ct_CC
2884   fi
2885 fi
2886
2887 fi
2888
2889
2890 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2892 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2893 See \`config.log' for more details." >&5
2894 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2895 See \`config.log' for more details." >&2;}
2896    { (exit 1); exit 1; }; }; }
2897
2898 # Provide some information about the compiler.
2899 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2900 set X $ac_compile
2901 ac_compiler=$2
2902 { (ac_try="$ac_compiler --version >&5"
2903 case "(($ac_try" in
2904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905   *) ac_try_echo=$ac_try;;
2906 esac
2907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2908 $as_echo "$ac_try_echo") >&5
2909   (eval "$ac_compiler --version >&5") 2>&5
2910   ac_status=$?
2911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }
2913 { (ac_try="$ac_compiler -v >&5"
2914 case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2919 $as_echo "$ac_try_echo") >&5
2920   (eval "$ac_compiler -v >&5") 2>&5
2921   ac_status=$?
2922   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); }
2924 { (ac_try="$ac_compiler -V >&5"
2925 case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2930 $as_echo "$ac_try_echo") >&5
2931   (eval "$ac_compiler -V >&5") 2>&5
2932   ac_status=$?
2933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934   (exit $ac_status); }
2935
2936 cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942
2943 int
2944 main ()
2945 {
2946
2947   ;
2948   return 0;
2949 }
2950 _ACEOF
2951 ac_clean_files_save=$ac_clean_files
2952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2953 # Try to create an executable without -o first, disregard a.out.
2954 # It will help us diagnose broken compilers, and finding out an intuition
2955 # of exeext.
2956 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2957 $as_echo_n "checking for C compiler default output file name... " >&6; }
2958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2959
2960 # The possible output files:
2961 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2962
2963 ac_rmfiles=
2964 for ac_file in $ac_files
2965 do
2966   case $ac_file in
2967     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2968     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2969   esac
2970 done
2971 rm -f $ac_rmfiles
2972
2973 if { (ac_try="$ac_link_default"
2974 case "(($ac_try" in
2975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976   *) ac_try_echo=$ac_try;;
2977 esac
2978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2979 $as_echo "$ac_try_echo") >&5
2980   (eval "$ac_link_default") 2>&5
2981   ac_status=$?
2982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; then
2984   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2985 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2986 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2987 # so that the user can short-circuit this test for compilers unknown to
2988 # Autoconf.
2989 for ac_file in $ac_files ''
2990 do
2991   test -f "$ac_file" || continue
2992   case $ac_file in
2993     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2994         ;;
2995     [ab].out )
2996         # We found the default executable, but exeext='' is most
2997         # certainly right.
2998         break;;
2999     *.* )
3000         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3001         then :; else
3002            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3003         fi
3004         # We set ac_cv_exeext here because the later test for it is not
3005         # safe: cross compilers may not add the suffix if given an `-o'
3006         # argument, so we may need to know it at that point already.
3007         # Even if this section looks crufty: it has the advantage of
3008         # actually working.
3009         break;;
3010     * )
3011         break;;
3012   esac
3013 done
3014 test "$ac_cv_exeext" = no && ac_cv_exeext=
3015
3016 else
3017   ac_file=''
3018 fi
3019
3020 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3021 $as_echo "$ac_file" >&6; }
3022 if test -z "$ac_file"; then
3023   $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3029 See \`config.log' for more details." >&5
3030 $as_echo "$as_me: error: C compiler cannot create executables
3031 See \`config.log' for more details." >&2;}
3032    { (exit 77); exit 77; }; }; }
3033 fi
3034
3035 ac_exeext=$ac_cv_exeext
3036
3037 # Check that the compiler produces executables we can run.  If not, either
3038 # the compiler is broken, or we cross compile.
3039 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3040 $as_echo_n "checking whether the C compiler works... " >&6; }
3041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3042 # If not cross compiling, check that we can run a simple program.
3043 if test "$cross_compiling" != yes; then
3044   if { ac_try='./$ac_file'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3050 $as_echo "$ac_try_echo") >&5
3051   (eval "$ac_try") 2>&5
3052   ac_status=$?
3053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055     cross_compiling=no
3056   else
3057     if test "$cross_compiling" = maybe; then
3058         cross_compiling=yes
3059     else
3060         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3063 If you meant to cross compile, use \`--host'.
3064 See \`config.log' for more details." >&5
3065 $as_echo "$as_me: error: cannot run C compiled programs.
3066 If you meant to cross compile, use \`--host'.
3067 See \`config.log' for more details." >&2;}
3068    { (exit 1); exit 1; }; }; }
3069     fi
3070   fi
3071 fi
3072 { $as_echo "$as_me:$LINENO: result: yes" >&5
3073 $as_echo "yes" >&6; }
3074
3075 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3076 ac_clean_files=$ac_clean_files_save
3077 # Check that the compiler produces executables we can run.  If not, either
3078 # the compiler is broken, or we cross compile.
3079 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3080 $as_echo_n "checking whether we are cross compiling... " >&6; }
3081 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3082 $as_echo "$cross_compiling" >&6; }
3083
3084 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3085 $as_echo_n "checking for suffix of executables... " >&6; }
3086 if { (ac_try="$ac_link"
3087 case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092 $as_echo "$ac_try_echo") >&5
3093   (eval "$ac_link") 2>&5
3094   ac_status=$?
3095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096   (exit $ac_status); }; then
3097   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3098 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3099 # work properly (i.e., refer to `conftest.exe'), while it won't with
3100 # `rm'.
3101 for ac_file in conftest.exe conftest conftest.*; do
3102   test -f "$ac_file" || continue
3103   case $ac_file in
3104     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3105     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106           break;;
3107     * ) break;;
3108   esac
3109 done
3110 else
3111   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3113 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3114 See \`config.log' for more details." >&5
3115 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3116 See \`config.log' for more details." >&2;}
3117    { (exit 1); exit 1; }; }; }
3118 fi
3119
3120 rm -f conftest$ac_cv_exeext
3121 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3122 $as_echo "$ac_cv_exeext" >&6; }
3123
3124 rm -f conftest.$ac_ext
3125 EXEEXT=$ac_cv_exeext
3126 ac_exeext=$EXEEXT
3127 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3128 $as_echo_n "checking for suffix of object files... " >&6; }
3129 if test "${ac_cv_objext+set}" = set; then
3130   $as_echo_n "(cached) " >&6
3131 else
3132   cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h.  */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h.  */
3138
3139 int
3140 main ()
3141 {
3142
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.o conftest.obj
3148 if { (ac_try="$ac_compile"
3149 case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155   (eval "$ac_compile") 2>&5
3156   ac_status=$?
3157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }; then
3159   for ac_file in conftest.o conftest.obj conftest.*; do
3160   test -f "$ac_file" || continue;
3161   case $ac_file in
3162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3163     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3164        break;;
3165   esac
3166 done
3167 else
3168   $as_echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3174 See \`config.log' for more details." >&5
3175 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3176 See \`config.log' for more details." >&2;}
3177    { (exit 1); exit 1; }; }; }
3178 fi
3179
3180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3181 fi
3182 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3183 $as_echo "$ac_cv_objext" >&6; }
3184 OBJEXT=$ac_cv_objext
3185 ac_objext=$OBJEXT
3186 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3187 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3188 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3189   $as_echo_n "(cached) " >&6
3190 else
3191   cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201 #ifndef __GNUC__
3202        choke me
3203 #endif
3204
3205   ;
3206   return 0;
3207 }
3208 _ACEOF
3209 rm -f conftest.$ac_objext
3210 if { (ac_try="$ac_compile"
3211 case "(($ac_try" in
3212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213   *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3216 $as_echo "$ac_try_echo") >&5
3217   (eval "$ac_compile") 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } && {
3224          test -z "$ac_c_werror_flag" ||
3225          test ! -s conftest.err
3226        } && test -s conftest.$ac_objext; then
3227   ac_compiler_gnu=yes
3228 else
3229   $as_echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3231
3232         ac_compiler_gnu=no
3233 fi
3234
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3237
3238 fi
3239 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3241 if test $ac_compiler_gnu = yes; then
3242   GCC=yes
3243 else
3244   GCC=
3245 fi
3246 ac_test_CFLAGS=${CFLAGS+set}
3247 ac_save_CFLAGS=$CFLAGS
3248 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3250 if test "${ac_cv_prog_cc_g+set}" = set; then
3251   $as_echo_n "(cached) " >&6
3252 else
3253   ac_save_c_werror_flag=$ac_c_werror_flag
3254    ac_c_werror_flag=yes
3255    ac_cv_prog_cc_g=no
3256    CFLAGS="-g"
3257    cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3279 $as_echo "$ac_try_echo") >&5
3280   (eval "$ac_compile") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } && {
3287          test -z "$ac_c_werror_flag" ||
3288          test ! -s conftest.err
3289        } && test -s conftest.$ac_objext; then
3290   ac_cv_prog_cc_g=yes
3291 else
3292   $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295         CFLAGS=""
3296       cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318 $as_echo "$ac_try_echo") >&5
3319   (eval "$ac_compile") 2>conftest.er1
3320   ac_status=$?
3321   grep -v '^ *+' conftest.er1 >conftest.err
3322   rm -f conftest.er1
3323   cat conftest.err >&5
3324   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325   (exit $ac_status); } && {
3326          test -z "$ac_c_werror_flag" ||
3327          test ! -s conftest.err
3328        } && test -s conftest.$ac_objext; then
3329   :
3330 else
3331   $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334         ac_c_werror_flag=$ac_save_c_werror_flag
3335          CFLAGS="-g"
3336          cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h.  */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h.  */
3342
3343 int
3344 main ()
3345 {
3346
3347   ;
3348   return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (ac_try="$ac_compile"
3353 case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3358 $as_echo "$ac_try_echo") >&5
3359   (eval "$ac_compile") 2>conftest.er1
3360   ac_status=$?
3361   grep -v '^ *+' conftest.er1 >conftest.err
3362   rm -f conftest.er1
3363   cat conftest.err >&5
3364   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); } && {
3366          test -z "$ac_c_werror_flag" ||
3367          test ! -s conftest.err
3368        } && test -s conftest.$ac_objext; then
3369   ac_cv_prog_cc_g=yes
3370 else
3371   $as_echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374
3375 fi
3376
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 fi
3379
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 fi
3382
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384    ac_c_werror_flag=$ac_save_c_werror_flag
3385 fi
3386 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3387 $as_echo "$ac_cv_prog_cc_g" >&6; }
3388 if test "$ac_test_CFLAGS" = set; then
3389   CFLAGS=$ac_save_CFLAGS
3390 elif test $ac_cv_prog_cc_g = yes; then
3391   if test "$GCC" = yes; then
3392     CFLAGS="-g -O2"
3393   else
3394     CFLAGS="-g"
3395   fi
3396 else
3397   if test "$GCC" = yes; then
3398     CFLAGS="-O2"
3399   else
3400     CFLAGS=
3401   fi
3402 fi
3403 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3404 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3405 if test "${ac_cv_prog_cc_c89+set}" = set; then
3406   $as_echo_n "(cached) " >&6
3407 else
3408   ac_cv_prog_cc_c89=no
3409 ac_save_CC=$CC
3410 cat >conftest.$ac_ext <<_ACEOF
3411 /* confdefs.h.  */
3412 _ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h.  */
3416 #include <stdarg.h>
3417 #include <stdio.h>
3418 #include <sys/types.h>
3419 #include <sys/stat.h>
3420 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3421 struct buf { int x; };
3422 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3423 static char *e (p, i)
3424      char **p;
3425      int i;
3426 {
3427   return p[i];
3428 }
3429 static char *f (char * (*g) (char **, int), char **p, ...)
3430 {
3431   char *s;
3432   va_list v;
3433   va_start (v,p);
3434   s = g (p, va_arg (v,int));
3435   va_end (v);
3436   return s;
3437 }
3438
3439 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3440    function prototypes and stuff, but not '\xHH' hex character constants.
3441    These don't provoke an error unfortunately, instead are silently treated
3442    as 'x'.  The following induces an error, until -std is added to get
3443    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3444    array size at least.  It's necessary to write '\x00'==0 to get something
3445    that's true only with -std.  */
3446 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3447
3448 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3449    inside strings and character constants.  */
3450 #define FOO(x) 'x'
3451 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3452
3453 int test (int i, double x);
3454 struct s1 {int (*f) (int a);};
3455 struct s2 {int (*f) (double a);};
3456 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3457 int argc;
3458 char **argv;
3459 int
3460 main ()
3461 {
3462 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3468         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3469 do
3470   CC="$ac_save_CC $ac_arg"
3471   rm -f conftest.$ac_objext
3472 if { (ac_try="$ac_compile"
3473 case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3478 $as_echo "$ac_try_echo") >&5
3479   (eval "$ac_compile") 2>conftest.er1
3480   ac_status=$?
3481   grep -v '^ *+' conftest.er1 >conftest.err
3482   rm -f conftest.er1
3483   cat conftest.err >&5
3484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); } && {
3486          test -z "$ac_c_werror_flag" ||
3487          test ! -s conftest.err
3488        } && test -s conftest.$ac_objext; then
3489   ac_cv_prog_cc_c89=$ac_arg
3490 else
3491   $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494
3495 fi
3496
3497 rm -f core conftest.err conftest.$ac_objext
3498   test "x$ac_cv_prog_cc_c89" != "xno" && break
3499 done
3500 rm -f conftest.$ac_ext
3501 CC=$ac_save_CC
3502
3503 fi
3504 # AC_CACHE_VAL
3505 case "x$ac_cv_prog_cc_c89" in
3506   x)
3507     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3508 $as_echo "none needed" >&6; } ;;
3509   xno)
3510     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3511 $as_echo "unsupported" >&6; } ;;
3512   *)
3513     CC="$CC $ac_cv_prog_cc_c89"
3514     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3516 esac
3517
3518
3519 ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524 DEPDIR="${am__leading_dot}deps"
3525
3526 ac_config_commands="$ac_config_commands depfiles"
3527
3528
3529 am_make=${MAKE-make}
3530 cat > confinc << 'END'
3531 am__doit:
3532         @echo this is the am__doit target
3533 .PHONY: am__doit
3534 END
3535 # If we don't find an include directive, just comment out the code.
3536 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3537 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3538 am__include="#"
3539 am__quote=
3540 _am_result=none
3541 # First try GNU make style include.
3542 echo "include confinc" > confmf
3543 # Ignore all kinds of additional output from `make'.
3544 case `$am_make -s -f confmf 2> /dev/null` in #(
3545 *the\ am__doit\ target*)
3546   am__include=include
3547   am__quote=
3548   _am_result=GNU
3549   ;;
3550 esac
3551 # Now try BSD make style include.
3552 if test "$am__include" = "#"; then
3553    echo '.include "confinc"' > confmf
3554    case `$am_make -s -f confmf 2> /dev/null` in #(
3555    *the\ am__doit\ target*)
3556      am__include=.include
3557      am__quote="\""
3558      _am_result=BSD
3559      ;;
3560    esac
3561 fi
3562
3563
3564 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3565 $as_echo "$_am_result" >&6; }
3566 rm -f confinc confmf
3567
3568 # Check whether --enable-dependency-tracking was given.
3569 if test "${enable_dependency_tracking+set}" = set; then
3570   enableval=$enable_dependency_tracking;
3571 fi
3572
3573 if test "x$enable_dependency_tracking" != xno; then
3574   am_depcomp="$ac_aux_dir/depcomp"
3575   AMDEPBACKSLASH='\'
3576 fi
3577  if test "x$enable_dependency_tracking" != xno; then
3578   AMDEP_TRUE=
3579   AMDEP_FALSE='#'
3580 else
3581   AMDEP_TRUE='#'
3582   AMDEP_FALSE=
3583 fi
3584
3585
3586
3587 depcc="$CC"   am_compiler_list=
3588
3589 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3590 $as_echo_n "checking dependency style of $depcc... " >&6; }
3591 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3592   $as_echo_n "(cached) " >&6
3593 else
3594   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3595   # We make a subdir and do the tests there.  Otherwise we can end up
3596   # making bogus files that we don't know about and never remove.  For
3597   # instance it was reported that on HP-UX the gcc test will end up
3598   # making a dummy file named `D' -- because `-MD' means `put the output
3599   # in D'.
3600   mkdir conftest.dir
3601   # Copy depcomp to subdir because otherwise we won't find it if we're
3602   # using a relative directory.
3603   cp "$am_depcomp" conftest.dir
3604   cd conftest.dir
3605   # We will build objects and dependencies in a subdirectory because
3606   # it helps to detect inapplicable dependency modes.  For instance
3607   # both Tru64's cc and ICC support -MD to output dependencies as a
3608   # side effect of compilation, but ICC will put the dependencies in
3609   # the current directory while Tru64 will put them in the object
3610   # directory.
3611   mkdir sub
3612
3613   am_cv_CC_dependencies_compiler_type=none
3614   if test "$am_compiler_list" = ""; then
3615      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3616   fi
3617   am__universal=false
3618   case " $depcc " in #(
3619      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3620      esac
3621
3622   for depmode in $am_compiler_list; do
3623     # Setup a source with many dependencies, because some compilers
3624     # like to wrap large dependency lists on column 80 (with \), and
3625     # we should not choose a depcomp mode which is confused by this.
3626     #
3627     # We need to recreate these files for each test, as the compiler may
3628     # overwrite some of them when testing with obscure command lines.
3629     # This happens at least with the AIX C compiler.
3630     : > sub/conftest.c
3631     for i in 1 2 3 4 5 6; do
3632       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3633       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3634       # Solaris 8's {/usr,}/bin/sh.
3635       touch sub/conftst$i.h
3636     done
3637     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3638
3639     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3640     # mode.  It turns out that the SunPro C++ compiler does not properly
3641     # handle `-M -o', and we need to detect this.  Also, some Intel
3642     # versions had trouble with output in subdirs
3643     am__obj=sub/conftest.${OBJEXT-o}
3644     am__minus_obj="-o $am__obj"
3645     case $depmode in
3646     gcc)
3647       # This depmode causes a compiler race in universal mode.
3648       test "$am__universal" = false || continue
3649       ;;
3650     nosideeffect)
3651       # after this tag, mechanisms are not by side-effect, so they'll
3652       # only be used when explicitly requested
3653       if test "x$enable_dependency_tracking" = xyes; then
3654         continue
3655       else
3656         break
3657       fi
3658       ;;
3659     msvisualcpp | msvcmsys)
3660       # This compiler won't grok `-c -o', but also, the minuso test has
3661       # not run yet.  These depmodes are late enough in the game, and
3662       # so weak that their functioning should not be impacted.
3663       am__obj=conftest.${OBJEXT-o}
3664       am__minus_obj=
3665       ;;
3666     none) break ;;
3667     esac
3668     if depmode=$depmode \
3669        source=sub/conftest.c object=$am__obj \
3670        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3671        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3672          >/dev/null 2>conftest.err &&
3673        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3674        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3675        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3676        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3677       # icc doesn't choke on unknown options, it will just issue warnings
3678       # or remarks (even with -Werror).  So we grep stderr for any message
3679       # that says an option was ignored or not supported.
3680       # When given -MP, icc 7.0 and 7.1 complain thusly:
3681       #   icc: Command line warning: ignoring option '-M'; no argument required
3682       # The diagnosis changed in icc 8.0:
3683       #   icc: Command line remark: option '-MP' not supported
3684       if (grep 'ignoring option' conftest.err ||
3685           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3686         am_cv_CC_dependencies_compiler_type=$depmode
3687         break
3688       fi
3689     fi
3690   done
3691
3692   cd ..
3693   rm -rf conftest.dir
3694 else
3695   am_cv_CC_dependencies_compiler_type=none
3696 fi
3697
3698 fi
3699 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3700 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3701 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3702
3703  if
3704   test "x$enable_dependency_tracking" != xno \
3705   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3706   am__fastdepCC_TRUE=
3707   am__fastdepCC_FALSE='#'
3708 else
3709   am__fastdepCC_TRUE='#'
3710   am__fastdepCC_FALSE=
3711 fi
3712
3713
3714    { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3715 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3716 if test "${ac_cv_prog_cc_c99+set}" = set; then
3717   $as_echo_n "(cached) " >&6
3718 else
3719   ac_cv_prog_cc_c99=no
3720 ac_save_CC=$CC
3721 cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h.  */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h.  */
3727 #include <stdarg.h>
3728 #include <stdbool.h>
3729 #include <stdlib.h>
3730 #include <wchar.h>
3731 #include <stdio.h>
3732
3733 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3734 #define debug(...) fprintf (stderr, __VA_ARGS__)
3735 #define showlist(...) puts (#__VA_ARGS__)
3736 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3737 static void
3738 test_varargs_macros (void)
3739 {
3740   int x = 1234;
3741   int y = 5678;
3742   debug ("Flag");
3743   debug ("X = %d\n", x);
3744   showlist (The first, second, and third items.);
3745   report (x>y, "x is %d but y is %d", x, y);
3746 }
3747
3748 // Check long long types.
3749 #define BIG64 18446744073709551615ull
3750 #define BIG32 4294967295ul
3751 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3752 #if !BIG_OK
3753   your preprocessor is broken;
3754 #endif
3755 #if BIG_OK
3756 #else
3757   your preprocessor is broken;
3758 #endif
3759 static long long int bignum = -9223372036854775807LL;
3760 static unsigned long long int ubignum = BIG64;
3761
3762 struct incomplete_array
3763 {
3764   int datasize;
3765   double data[];
3766 };
3767
3768 struct named_init {
3769   int number;
3770   const wchar_t *name;
3771   double average;
3772 };
3773
3774 typedef const char *ccp;
3775
3776 static inline int
3777 test_restrict (ccp restrict text)
3778 {
3779   // See if C++-style comments work.
3780   // Iterate through items via the restricted pointer.
3781   // Also check for declarations in for loops.
3782   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3783     continue;
3784   return 0;
3785 }
3786
3787 // Check varargs and va_copy.
3788 static void
3789 test_varargs (const char *format, ...)
3790 {
3791   va_list args;
3792   va_start (args, format);
3793   va_list args_copy;
3794   va_copy (args_copy, args);
3795
3796   const char *str;
3797   int number;
3798   float fnumber;
3799
3800   while (*format)
3801     {
3802       switch (*format++)
3803         {
3804         case 's': // string
3805           str = va_arg (args_copy, const char *);
3806           break;
3807         case 'd': // int
3808           number = va_arg (args_copy, int);
3809           break;
3810         case 'f': // float
3811           fnumber = va_arg (args_copy, double);
3812           break;
3813         default:
3814           break;
3815         }
3816     }
3817   va_end (args_copy);
3818   va_end (args);
3819 }
3820
3821 int
3822 main ()
3823 {
3824
3825   // Check bool.
3826   _Bool success = false;
3827
3828   // Check restrict.
3829   if (test_restrict ("String literal") == 0)
3830     success = true;
3831   char *restrict newvar = "Another string";
3832
3833   // Check varargs.
3834   test_varargs ("s, d' f .", "string", 65, 34.234);
3835   test_varargs_macros ();
3836
3837   // Check flexible array members.
3838   struct incomplete_array *ia =
3839     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3840   ia->datasize = 10;
3841   for (int i = 0; i < ia->datasize; ++i)
3842     ia->data[i] = i * 1.234;
3843
3844   // Check named initializers.
3845   struct named_init ni = {
3846     .number = 34,
3847     .name = L"Test wide string",
3848     .average = 543.34343,
3849   };
3850
3851   ni.number = 58;
3852
3853   int dynamic_array[ni.number];
3854   dynamic_array[ni.number - 1] = 543;
3855
3856   // work around unused variable warnings
3857   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3858           || dynamic_array[ni.number - 1] != 543);
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3865 do
3866   CC="$ac_save_CC $ac_arg"
3867   rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3869 case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3874 $as_echo "$ac_try_echo") >&5
3875   (eval "$ac_compile") 2>conftest.er1
3876   ac_status=$?
3877   grep -v '^ *+' conftest.er1 >conftest.err
3878   rm -f conftest.er1
3879   cat conftest.err >&5
3880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881   (exit $ac_status); } && {
3882          test -z "$ac_c_werror_flag" ||
3883          test ! -s conftest.err
3884        } && test -s conftest.$ac_objext; then
3885   ac_cv_prog_cc_c99=$ac_arg
3886 else
3887   $as_echo "$as_me: failed program was:" >&5
3888 sed 's/^/| /' conftest.$ac_ext >&5
3889
3890
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext
3894   test "x$ac_cv_prog_cc_c99" != "xno" && break
3895 done
3896 rm -f conftest.$ac_ext
3897 CC=$ac_save_CC
3898
3899 fi
3900 # AC_CACHE_VAL
3901 case "x$ac_cv_prog_cc_c99" in
3902   x)
3903     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3904 $as_echo "none needed" >&6; } ;;
3905   xno)
3906     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3907 $as_echo "unsupported" >&6; } ;;
3908   *)
3909     CC="$CC $ac_cv_prog_cc_c99"
3910     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3911 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3912 esac
3913
3914
3915
3916 if test "x$CC" != xcc; then
3917   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3918 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3919 else
3920   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3921 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3922 fi
3923 set dummy $CC; ac_cc=`$as_echo "$2" |
3924                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3925 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3926   $as_echo_n "(cached) " >&6
3927 else
3928   cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934
3935 int
3936 main ()
3937 {
3938
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 # Make sure it works both with $CC and with simple cc.
3944 # We do the test twice because some compilers refuse to overwrite an
3945 # existing .o file with -o, though they will create one.
3946 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3947 rm -f conftest2.*
3948 if { (case "(($ac_try" in
3949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950   *) ac_try_echo=$ac_try;;
3951 esac
3952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953 $as_echo "$ac_try_echo") >&5
3954   (eval "$ac_try") 2>&5
3955   ac_status=$?
3956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957   (exit $ac_status); } &&
3958    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960   *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3963 $as_echo "$ac_try_echo") >&5
3964   (eval "$ac_try") 2>&5
3965   ac_status=$?
3966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); };
3968 then
3969   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3970   if test "x$CC" != xcc; then
3971     # Test first that cc exists at all.
3972     if { ac_try='cc -c conftest.$ac_ext >&5'
3973   { (case "(($ac_try" in
3974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975   *) ac_try_echo=$ac_try;;
3976 esac
3977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3978 $as_echo "$ac_try_echo") >&5
3979   (eval "$ac_try") 2>&5
3980   ac_status=$?
3981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982   (exit $ac_status); }; }; then
3983       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3984       rm -f conftest2.*
3985       if { (case "(($ac_try" in
3986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987   *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3990 $as_echo "$ac_try_echo") >&5
3991   (eval "$ac_try") 2>&5
3992   ac_status=$?
3993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } &&
3995          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997   *) ac_try_echo=$ac_try;;
3998 esac
3999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4000 $as_echo "$ac_try_echo") >&5
4001   (eval "$ac_try") 2>&5
4002   ac_status=$?
4003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); };
4005       then
4006         # cc works too.
4007         :
4008       else
4009         # cc exists but doesn't like -o.
4010         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4011       fi
4012     fi
4013   fi
4014 else
4015   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4016 fi
4017 rm -f core conftest*
4018
4019 fi
4020 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4021   { $as_echo "$as_me:$LINENO: result: yes" >&5
4022 $as_echo "yes" >&6; }
4023 else
4024   { $as_echo "$as_me:$LINENO: result: no" >&5
4025 $as_echo "no" >&6; }
4026
4027 cat >>confdefs.h <<\_ACEOF
4028 #define NO_MINUS_C_MINUS_O 1
4029 _ACEOF
4030
4031 fi
4032
4033 # FIXME: we rely on the cache variable name because
4034 # there is no other way.
4035 set dummy $CC
4036 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4037 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4038 if test "$am_t" != yes; then
4039    # Losing compiler, so override with the script.
4040    # FIXME: It is wrong to rewrite CC.
4041    # But if we don't then we get into trouble of one sort or another.
4042    # A longer-term fix would be to have automake use am__CC in this case,
4043    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4044    CC="$am_aux_dir/compile $CC"
4045 fi
4046
4047
4048 ac_ext=c
4049 ac_cpp='$CPP $CPPFLAGS'
4050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4054 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4055 # On Suns, sometimes $CPP names a directory.
4056 if test -n "$CPP" && test -d "$CPP"; then
4057   CPP=
4058 fi
4059 if test -z "$CPP"; then
4060   if test "${ac_cv_prog_CPP+set}" = set; then
4061   $as_echo_n "(cached) " >&6
4062 else
4063       # Double quotes because CPP needs to be expanded
4064     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4065     do
4066       ac_preproc_ok=false
4067 for ac_c_preproc_warn_flag in '' yes
4068 do
4069   # Use a header file that comes with gcc, so configuring glibc
4070   # with a fresh cross-compiler works.
4071   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4072   # <limits.h> exists even on freestanding compilers.
4073   # On the NeXT, cc -E runs the code through the compiler's parser,
4074   # not just through cpp. "Syntax error" is here to catch this case.
4075   cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 #ifdef __STDC__
4082 # include <limits.h>
4083 #else
4084 # include <assert.h>
4085 #endif
4086                      Syntax error
4087 _ACEOF
4088 if { (ac_try="$ac_cpp conftest.$ac_ext"
4089 case "(($ac_try" in
4090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091   *) ac_try_echo=$ac_try;;
4092 esac
4093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4094 $as_echo "$ac_try_echo") >&5
4095   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4096   ac_status=$?
4097   grep -v '^ *+' conftest.er1 >conftest.err
4098   rm -f conftest.er1
4099   cat conftest.err >&5
4100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); } >/dev/null && {
4102          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4103          test ! -s conftest.err
4104        }; then
4105   :
4106 else
4107   $as_echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4109
4110   # Broken: fails on valid input.
4111 continue
4112 fi
4113
4114 rm -f conftest.err conftest.$ac_ext
4115
4116   # OK, works on sane cases.  Now check whether nonexistent headers
4117   # can be detected and how.
4118   cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h.  */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h.  */
4124 #include <ac_nonexistent.h>
4125 _ACEOF
4126 if { (ac_try="$ac_cpp conftest.$ac_ext"
4127 case "(($ac_try" in
4128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129   *) ac_try_echo=$ac_try;;
4130 esac
4131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4132 $as_echo "$ac_try_echo") >&5
4133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4134   ac_status=$?
4135   grep -v '^ *+' conftest.er1 >conftest.err
4136   rm -f conftest.er1
4137   cat conftest.err >&5
4138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); } >/dev/null && {
4140          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4141          test ! -s conftest.err
4142        }; then
4143   # Broken: success on invalid input.
4144 continue
4145 else
4146   $as_echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149   # Passes both tests.
4150 ac_preproc_ok=:
4151 break
4152 fi
4153
4154 rm -f conftest.err conftest.$ac_ext
4155
4156 done
4157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4158 rm -f conftest.err conftest.$ac_ext
4159 if $ac_preproc_ok; then
4160   break
4161 fi
4162
4163     done
4164     ac_cv_prog_CPP=$CPP
4165
4166 fi
4167   CPP=$ac_cv_prog_CPP
4168 else
4169   ac_cv_prog_CPP=$CPP
4170 fi
4171 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4172 $as_echo "$CPP" >&6; }
4173 ac_preproc_ok=false
4174 for ac_c_preproc_warn_flag in '' yes
4175 do
4176   # Use a header file that comes with gcc, so configuring glibc
4177   # with a fresh cross-compiler works.
4178   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4179   # <limits.h> exists even on freestanding compilers.
4180   # On the NeXT, cc -E runs the code through the compiler's parser,
4181   # not just through cpp. "Syntax error" is here to catch this case.
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #ifdef __STDC__
4189 # include <limits.h>
4190 #else
4191 # include <assert.h>
4192 #endif
4193                      Syntax error
4194 _ACEOF
4195 if { (ac_try="$ac_cpp conftest.$ac_ext"
4196 case "(($ac_try" in
4197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198   *) ac_try_echo=$ac_try;;
4199 esac
4200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4201 $as_echo "$ac_try_echo") >&5
4202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4203   ac_status=$?
4204   grep -v '^ *+' conftest.er1 >conftest.err
4205   rm -f conftest.er1
4206   cat conftest.err >&5
4207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); } >/dev/null && {
4209          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4210          test ! -s conftest.err
4211        }; then
4212   :
4213 else
4214   $as_echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217   # Broken: fails on valid input.
4218 continue
4219 fi
4220
4221 rm -f conftest.err conftest.$ac_ext
4222
4223   # OK, works on sane cases.  Now check whether nonexistent headers
4224   # can be detected and how.
4225   cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231 #include <ac_nonexistent.h>
4232 _ACEOF
4233 if { (ac_try="$ac_cpp conftest.$ac_ext"
4234 case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4239 $as_echo "$ac_try_echo") >&5
4240   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4241   ac_status=$?
4242   grep -v '^ *+' conftest.er1 >conftest.err
4243   rm -f conftest.er1
4244   cat conftest.err >&5
4245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246   (exit $ac_status); } >/dev/null && {
4247          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4248          test ! -s conftest.err
4249        }; then
4250   # Broken: success on invalid input.
4251 continue
4252 else
4253   $as_echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4255
4256   # Passes both tests.
4257 ac_preproc_ok=:
4258 break
4259 fi
4260
4261 rm -f conftest.err conftest.$ac_ext
4262
4263 done
4264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4265 rm -f conftest.err conftest.$ac_ext
4266 if $ac_preproc_ok; then
4267   :
4268 else
4269   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4271 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4272 See \`config.log' for more details." >&5
4273 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4274 See \`config.log' for more details." >&2;}
4275    { (exit 1); exit 1; }; }; }
4276 fi
4277
4278 ac_ext=c
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283
4284
4285
4286
4287 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4288 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4289 if test "${ac_cv_path_GREP+set}" = set; then
4290   $as_echo_n "(cached) " >&6
4291 else
4292   if test -z "$GREP"; then
4293   ac_path_GREP_found=false
4294   # Loop through the user's path and test for each of PROGNAME-LIST
4295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   for ac_prog in grep ggrep; do
4301     for ac_exec_ext in '' $ac_executable_extensions; do
4302       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4303       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4304 # Check for GNU ac_path_GREP and select it if it is found.
4305   # Check for GNU $ac_path_GREP
4306 case `"$ac_path_GREP" --version 2>&1` in
4307 *GNU*)
4308   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4309 *)
4310   ac_count=0
4311   $as_echo_n 0123456789 >"conftest.in"
4312   while :
4313   do
4314     cat "conftest.in" "conftest.in" >"conftest.tmp"
4315     mv "conftest.tmp" "conftest.in"
4316     cp "conftest.in" "conftest.nl"
4317     $as_echo 'GREP' >> "conftest.nl"
4318     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4319     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4320     ac_count=`expr $ac_count + 1`
4321     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4322       # Best one so far, save it but keep looking for a better one
4323       ac_cv_path_GREP="$ac_path_GREP"
4324       ac_path_GREP_max=$ac_count
4325     fi
4326     # 10*(2^10) chars as input seems more than enough
4327     test $ac_count -gt 10 && break
4328   done
4329   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4330 esac
4331
4332       $ac_path_GREP_found && break 3
4333     done
4334   done
4335 done
4336 IFS=$as_save_IFS
4337   if test -z "$ac_cv_path_GREP"; then
4338     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4339 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4340    { (exit 1); exit 1; }; }
4341   fi
4342 else
4343   ac_cv_path_GREP=$GREP
4344 fi
4345
4346 fi
4347 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4348 $as_echo "$ac_cv_path_GREP" >&6; }
4349  GREP="$ac_cv_path_GREP"
4350
4351
4352 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4353 $as_echo_n "checking for egrep... " >&6; }
4354 if test "${ac_cv_path_EGREP+set}" = set; then
4355   $as_echo_n "(cached) " >&6
4356 else
4357   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4358    then ac_cv_path_EGREP="$GREP -E"
4359    else
4360      if test -z "$EGREP"; then
4361   ac_path_EGREP_found=false
4362   # Loop through the user's path and test for each of PROGNAME-LIST
4363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368   for ac_prog in egrep; do
4369     for ac_exec_ext in '' $ac_executable_extensions; do
4370       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4371       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4372 # Check for GNU ac_path_EGREP and select it if it is found.
4373   # Check for GNU $ac_path_EGREP
4374 case `"$ac_path_EGREP" --version 2>&1` in
4375 *GNU*)
4376   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4377 *)
4378   ac_count=0
4379   $as_echo_n 0123456789 >"conftest.in"
4380   while :
4381   do
4382     cat "conftest.in" "conftest.in" >"conftest.tmp"
4383     mv "conftest.tmp" "conftest.in"
4384     cp "conftest.in" "conftest.nl"
4385     $as_echo 'EGREP' >> "conftest.nl"
4386     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388     ac_count=`expr $ac_count + 1`
4389     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4390       # Best one so far, save it but keep looking for a better one
4391       ac_cv_path_EGREP="$ac_path_EGREP"
4392       ac_path_EGREP_max=$ac_count
4393     fi
4394     # 10*(2^10) chars as input seems more than enough
4395     test $ac_count -gt 10 && break
4396   done
4397   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4398 esac
4399
4400       $ac_path_EGREP_found && break 3
4401     done
4402   done
4403 done
4404 IFS=$as_save_IFS
4405   if test -z "$ac_cv_path_EGREP"; then
4406     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4407 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4408    { (exit 1); exit 1; }; }
4409   fi
4410 else
4411   ac_cv_path_EGREP=$EGREP
4412 fi
4413
4414    fi
4415 fi
4416 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4417 $as_echo "$ac_cv_path_EGREP" >&6; }
4418  EGREP="$ac_cv_path_EGREP"
4419
4420
4421 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4422 $as_echo_n "checking for ANSI C header files... " >&6; }
4423 if test "${ac_cv_header_stdc+set}" = set; then
4424   $as_echo_n "(cached) " >&6
4425 else
4426   cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h.  */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h.  */
4432 #include <stdlib.h>
4433 #include <stdarg.h>
4434 #include <string.h>
4435 #include <float.h>
4436
4437 int
4438 main ()
4439 {
4440
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 rm -f conftest.$ac_objext
4446 if { (ac_try="$ac_compile"
4447 case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4452 $as_echo "$ac_try_echo") >&5
4453   (eval "$ac_compile") 2>conftest.er1
4454   ac_status=$?
4455   grep -v '^ *+' conftest.er1 >conftest.err
4456   rm -f conftest.er1
4457   cat conftest.err >&5
4458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); } && {
4460          test -z "$ac_c_werror_flag" ||
4461          test ! -s conftest.err
4462        } && test -s conftest.$ac_objext; then
4463   ac_cv_header_stdc=yes
4464 else
4465   $as_echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4467
4468         ac_cv_header_stdc=no
4469 fi
4470
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472
4473 if test $ac_cv_header_stdc = yes; then
4474   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4475   cat >conftest.$ac_ext <<_ACEOF
4476 /* confdefs.h.  */
4477 _ACEOF
4478 cat confdefs.h >>conftest.$ac_ext
4479 cat >>conftest.$ac_ext <<_ACEOF
4480 /* end confdefs.h.  */
4481 #include <string.h>
4482
4483 _ACEOF
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485   $EGREP "memchr" >/dev/null 2>&1; then
4486   :
4487 else
4488   ac_cv_header_stdc=no
4489 fi
4490 rm -f conftest*
4491
4492 fi
4493
4494 if test $ac_cv_header_stdc = yes; then
4495   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4496   cat >conftest.$ac_ext <<_ACEOF
4497 /* confdefs.h.  */
4498 _ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h.  */
4502 #include <stdlib.h>
4503
4504 _ACEOF
4505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506   $EGREP "free" >/dev/null 2>&1; then
4507   :
4508 else
4509   ac_cv_header_stdc=no
4510 fi
4511 rm -f conftest*
4512
4513 fi
4514
4515 if test $ac_cv_header_stdc = yes; then
4516   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4517   if test "$cross_compiling" = yes; then
4518   :
4519 else
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 #include <ctype.h>
4527 #include <stdlib.h>
4528 #if ((' ' & 0x0FF) == 0x020)
4529 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4530 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4531 #else
4532 # define ISLOWER(c) \
4533                    (('a' <= (c) && (c) <= 'i') \
4534                      || ('j' <= (c) && (c) <= 'r') \
4535                      || ('s' <= (c) && (c) <= 'z'))
4536 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4537 #endif
4538
4539 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4540 int
4541 main ()
4542 {
4543   int i;
4544   for (i = 0; i < 256; i++)
4545     if (XOR (islower (i), ISLOWER (i))
4546         || toupper (i) != TOUPPER (i))
4547       return 2;
4548   return 0;
4549 }
4550 _ACEOF
4551 rm -f conftest$ac_exeext
4552 if { (ac_try="$ac_link"
4553 case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4558 $as_echo "$ac_try_echo") >&5
4559   (eval "$ac_link") 2>&5
4560   ac_status=$?
4561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4563   { (case "(($ac_try" in
4564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565   *) ac_try_echo=$ac_try;;
4566 esac
4567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4568 $as_echo "$ac_try_echo") >&5
4569   (eval "$ac_try") 2>&5
4570   ac_status=$?
4571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; }; then
4573   :
4574 else
4575   $as_echo "$as_me: program exited with status $ac_status" >&5
4576 $as_echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 ( exit $ac_status )
4580 ac_cv_header_stdc=no
4581 fi
4582 rm -rf conftest.dSYM
4583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4584 fi
4585
4586
4587 fi
4588 fi
4589 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4590 $as_echo "$ac_cv_header_stdc" >&6; }
4591 if test $ac_cv_header_stdc = yes; then
4592
4593 cat >>confdefs.h <<\_ACEOF
4594 #define STDC_HEADERS 1
4595 _ACEOF
4596
4597 fi
4598
4599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4610                   inttypes.h stdint.h unistd.h
4611 do
4612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4613 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4614 $as_echo_n "checking for $ac_header... " >&6; }
4615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4616   $as_echo_n "(cached) " >&6
4617 else
4618   cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h.  */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h.  */
4624 $ac_includes_default
4625
4626 #include <$ac_header>
4627 _ACEOF
4628 rm -f conftest.$ac_objext
4629 if { (ac_try="$ac_compile"
4630 case "(($ac_try" in
4631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4632   *) ac_try_echo=$ac_try;;
4633 esac
4634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4635 $as_echo "$ac_try_echo") >&5
4636   (eval "$ac_compile") 2>conftest.er1
4637   ac_status=$?
4638   grep -v '^ *+' conftest.er1 >conftest.err
4639   rm -f conftest.er1
4640   cat conftest.err >&5
4641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642   (exit $ac_status); } && {
4643          test -z "$ac_c_werror_flag" ||
4644          test ! -s conftest.err
4645        } && test -s conftest.$ac_objext; then
4646   eval "$as_ac_Header=yes"
4647 else
4648   $as_echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651         eval "$as_ac_Header=no"
4652 fi
4653
4654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655 fi
4656 ac_res=`eval 'as_val=${'$as_ac_Header'}
4657                  $as_echo "$as_val"'`
4658                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4659 $as_echo "$ac_res" >&6; }
4660 as_val=`eval 'as_val=${'$as_ac_Header'}
4661                  $as_echo "$as_val"'`
4662    if test "x$as_val" = x""yes; then
4663   cat >>confdefs.h <<_ACEOF
4664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4665 _ACEOF
4666
4667 fi
4668
4669 done
4670
4671
4672
4673   if test "${ac_cv_header_minix_config_h+set}" = set; then
4674   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4675 $as_echo_n "checking for minix/config.h... " >&6; }
4676 if test "${ac_cv_header_minix_config_h+set}" = set; then
4677   $as_echo_n "(cached) " >&6
4678 fi
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4680 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4681 else
4682   # Is the header compilable?
4683 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4684 $as_echo_n "checking minix/config.h usability... " >&6; }
4685 cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h.  */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h.  */
4691 $ac_includes_default
4692 #include <minix/config.h>
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (ac_try="$ac_compile"
4696 case "(($ac_try" in
4697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698   *) ac_try_echo=$ac_try;;
4699 esac
4700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4701 $as_echo "$ac_try_echo") >&5
4702   (eval "$ac_compile") 2>conftest.er1
4703   ac_status=$?
4704   grep -v '^ *+' conftest.er1 >conftest.err
4705   rm -f conftest.er1
4706   cat conftest.err >&5
4707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); } && {
4709          test -z "$ac_c_werror_flag" ||
4710          test ! -s conftest.err
4711        } && test -s conftest.$ac_objext; then
4712   ac_header_compiler=yes
4713 else
4714   $as_echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4716
4717         ac_header_compiler=no
4718 fi
4719
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4722 $as_echo "$ac_header_compiler" >&6; }
4723
4724 # Is the header present?
4725 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4726 $as_echo_n "checking minix/config.h presence... " >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733 #include <minix/config.h>
4734 _ACEOF
4735 if { (ac_try="$ac_cpp conftest.$ac_ext"
4736 case "(($ac_try" in
4737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738   *) ac_try_echo=$ac_try;;
4739 esac
4740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4741 $as_echo "$ac_try_echo") >&5
4742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4743   ac_status=$?
4744   grep -v '^ *+' conftest.er1 >conftest.err
4745   rm -f conftest.er1
4746   cat conftest.err >&5
4747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); } >/dev/null && {
4749          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4750          test ! -s conftest.err
4751        }; then
4752   ac_header_preproc=yes
4753 else
4754   $as_echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757   ac_header_preproc=no
4758 fi
4759
4760 rm -f conftest.err conftest.$ac_ext
4761 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4762 $as_echo "$ac_header_preproc" >&6; }
4763
4764 # So?  What about this header?
4765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4766   yes:no: )
4767     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4768 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4769     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4770 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4771     ac_header_preproc=yes
4772     ;;
4773   no:yes:* )
4774     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4775 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4776     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4777 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4778     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4780     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4782     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4783 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4784     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4786     ( cat <<\_ASBOX
4787 ## ----------------------------------------------- ##
4788 ## Report this to mznflapaf (at) 0pointer (dot) de ##
4789 ## ----------------------------------------------- ##
4790 _ASBOX
4791      ) | sed "s/^/$as_me: WARNING:     /" >&2
4792     ;;
4793 esac
4794 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4795 $as_echo_n "checking for minix/config.h... " >&6; }
4796 if test "${ac_cv_header_minix_config_h+set}" = set; then
4797   $as_echo_n "(cached) " >&6
4798 else
4799   ac_cv_header_minix_config_h=$ac_header_preproc
4800 fi
4801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4802 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4803
4804 fi
4805 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4806   MINIX=yes
4807 else
4808   MINIX=
4809 fi
4810
4811
4812   if test "$MINIX" = yes; then
4813
4814 cat >>confdefs.h <<\_ACEOF
4815 #define _POSIX_SOURCE 1
4816 _ACEOF
4817
4818
4819 cat >>confdefs.h <<\_ACEOF
4820 #define _POSIX_1_SOURCE 2
4821 _ACEOF
4822
4823
4824 cat >>confdefs.h <<\_ACEOF
4825 #define _MINIX 1
4826 _ACEOF
4827
4828   fi
4829
4830
4831
4832   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4834 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4835   $as_echo_n "(cached) " >&6
4836 else
4837   cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h.  */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h.  */
4843
4844 #         define __EXTENSIONS__ 1
4845           $ac_includes_default
4846 int
4847 main ()
4848 {
4849
4850   ;
4851   return 0;
4852 }
4853 _ACEOF
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4856 case "(($ac_try" in
4857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858   *) ac_try_echo=$ac_try;;
4859 esac
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862   (eval "$ac_compile") 2>conftest.er1
4863   ac_status=$?
4864   grep -v '^ *+' conftest.er1 >conftest.err
4865   rm -f conftest.er1
4866   cat conftest.err >&5
4867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); } && {
4869          test -z "$ac_c_werror_flag" ||
4870          test ! -s conftest.err
4871        } && test -s conftest.$ac_objext; then
4872   ac_cv_safe_to_define___extensions__=yes
4873 else
4874   $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877         ac_cv_safe_to_define___extensions__=no
4878 fi
4879
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 fi
4882 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4883 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4884   test $ac_cv_safe_to_define___extensions__ = yes &&
4885     cat >>confdefs.h <<\_ACEOF
4886 #define __EXTENSIONS__ 1
4887 _ACEOF
4888
4889   cat >>confdefs.h <<\_ACEOF
4890 #define _ALL_SOURCE 1
4891 _ACEOF
4892
4893   cat >>confdefs.h <<\_ACEOF
4894 #define _GNU_SOURCE 1
4895 _ACEOF
4896
4897   cat >>confdefs.h <<\_ACEOF
4898 #define _POSIX_PTHREAD_SEMANTICS 1
4899 _ACEOF
4900
4901   cat >>confdefs.h <<\_ACEOF
4902 #define _TANDEM_SOURCE 1
4903 _ACEOF
4904
4905
4906
4907 # Find a good install program.  We prefer a C program (faster),
4908 # so one script is as good as another.  But avoid the broken or
4909 # incompatible versions:
4910 # SysV /etc/install, /usr/sbin/install
4911 # SunOS /usr/etc/install
4912 # IRIX /sbin/install
4913 # AIX /bin/install
4914 # AmigaOS /C/install, which installs bootblocks on floppy discs
4915 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4916 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4917 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4918 # OS/2's system install, which has a completely different semantic
4919 # ./install, which can be erroneously created by make from ./install.sh.
4920 # Reject install programs that cannot install multiple files.
4921 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4922 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4923 if test -z "$INSTALL"; then
4924 if test "${ac_cv_path_install+set}" = set; then
4925   $as_echo_n "(cached) " >&6
4926 else
4927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930   IFS=$as_save_IFS
4931   test -z "$as_dir" && as_dir=.
4932   # Account for people who put trailing slashes in PATH elements.
4933 case $as_dir/ in
4934   ./ | .// | /cC/* | \
4935   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4936   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4937   /usr/ucb/* ) ;;
4938   *)
4939     # OSF1 and SCO ODT 3.0 have their own names for install.
4940     # Don't use installbsd from OSF since it installs stuff as root
4941     # by default.
4942     for ac_prog in ginstall scoinst install; do
4943       for ac_exec_ext in '' $ac_executable_extensions; do
4944         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4945           if test $ac_prog = install &&
4946             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4947             # AIX install.  It has an incompatible calling convention.
4948             :
4949           elif test $ac_prog = install &&
4950             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4951             # program-specific install script used by HP pwplus--don't use.
4952             :
4953           else
4954             rm -rf conftest.one conftest.two conftest.dir
4955             echo one > conftest.one
4956             echo two > conftest.two
4957             mkdir conftest.dir
4958             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4959               test -s conftest.one && test -s conftest.two &&
4960               test -s conftest.dir/conftest.one &&
4961               test -s conftest.dir/conftest.two
4962             then
4963               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4964               break 3
4965             fi
4966           fi
4967         fi
4968       done
4969     done
4970     ;;
4971 esac
4972
4973 done
4974 IFS=$as_save_IFS
4975
4976 rm -rf conftest.one conftest.two conftest.dir
4977
4978 fi
4979   if test "${ac_cv_path_install+set}" = set; then
4980     INSTALL=$ac_cv_path_install
4981   else
4982     # As a last resort, use the slow shell script.  Don't cache a
4983     # value for INSTALL within a source directory, because that will
4984     # break other packages using the cache if that directory is
4985     # removed, or if the value is a relative name.
4986     INSTALL=$ac_install_sh
4987   fi
4988 fi
4989 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4990 $as_echo "$INSTALL" >&6; }
4991
4992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4993 # It thinks the first close brace ends the variable substitution.
4994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4995
4996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4997
4998 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4999
5000 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5001 $as_echo_n "checking whether ln -s works... " >&6; }
5002 LN_S=$as_ln_s
5003 if test "$LN_S" = "ln -s"; then
5004   { $as_echo "$as_me:$LINENO: result: yes" >&5
5005 $as_echo "yes" >&6; }
5006 else
5007   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5008 $as_echo "no, using $LN_S" >&6; }
5009 fi
5010
5011 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5012 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5013 set x ${MAKE-make}
5014 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5015 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5016   $as_echo_n "(cached) " >&6
5017 else
5018   cat >conftest.make <<\_ACEOF
5019 SHELL = /bin/sh
5020 all:
5021         @echo '@@@%%%=$(MAKE)=@@@%%%'
5022 _ACEOF
5023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5024 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5025   *@@@%%%=?*=@@@%%%*)
5026     eval ac_cv_prog_make_${ac_make}_set=yes;;
5027   *)
5028     eval ac_cv_prog_make_${ac_make}_set=no;;
5029 esac
5030 rm -f conftest.make
5031 fi
5032 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5033   { $as_echo "$as_me:$LINENO: result: yes" >&5
5034 $as_echo "yes" >&6; }
5035   SET_MAKE=
5036 else
5037   { $as_echo "$as_me:$LINENO: result: no" >&5
5038 $as_echo "no" >&6; }
5039   SET_MAKE="MAKE=${MAKE-make}"
5040 fi
5041
5042 case `pwd` in
5043   *\ * | *\     *)
5044     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5045 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5046 esac
5047
5048
5049
5050 macro_version='2.2.6'
5051 macro_revision='1.3012'
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065 ltmain="$ac_aux_dir/ltmain.sh"
5066
5067 # Make sure we can run config.sub.
5068 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5069   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5070 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5071    { (exit 1); exit 1; }; }
5072
5073 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5074 $as_echo_n "checking build system type... " >&6; }
5075 if test "${ac_cv_build+set}" = set; then
5076   $as_echo_n "(cached) " >&6
5077 else
5078   ac_build_alias=$build_alias
5079 test "x$ac_build_alias" = x &&
5080   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5081 test "x$ac_build_alias" = x &&
5082   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5083 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5084    { (exit 1); exit 1; }; }
5085 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5086   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5087 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5088    { (exit 1); exit 1; }; }
5089
5090 fi
5091 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5092 $as_echo "$ac_cv_build" >&6; }
5093 case $ac_cv_build in
5094 *-*-*) ;;
5095 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5096 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5097    { (exit 1); exit 1; }; };;
5098 esac
5099 build=$ac_cv_build
5100 ac_save_IFS=$IFS; IFS='-'
5101 set x $ac_cv_build
5102 shift
5103 build_cpu=$1
5104 build_vendor=$2
5105 shift; shift
5106 # Remember, the first character of IFS is used to create $*,
5107 # except with old shells:
5108 build_os=$*
5109 IFS=$ac_save_IFS
5110 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5111
5112
5113 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5114 $as_echo_n "checking host system type... " >&6; }
5115 if test "${ac_cv_host+set}" = set; then
5116   $as_echo_n "(cached) " >&6
5117 else
5118   if test "x$host_alias" = x; then
5119   ac_cv_host=$ac_cv_build
5120 else
5121   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5122     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5123 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5124    { (exit 1); exit 1; }; }
5125 fi
5126
5127 fi
5128 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5129 $as_echo "$ac_cv_host" >&6; }
5130 case $ac_cv_host in
5131 *-*-*) ;;
5132 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5133 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5134    { (exit 1); exit 1; }; };;
5135 esac
5136 host=$ac_cv_host
5137 ac_save_IFS=$IFS; IFS='-'
5138 set x $ac_cv_host
5139 shift
5140 host_cpu=$1
5141 host_vendor=$2
5142 shift; shift
5143 # Remember, the first character of IFS is used to create $*,
5144 # except with old shells:
5145 host_os=$*
5146 IFS=$ac_save_IFS
5147 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5148
5149
5150 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5151 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5152 if test "${ac_cv_path_SED+set}" = set; then
5153   $as_echo_n "(cached) " >&6
5154 else
5155             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5156      for ac_i in 1 2 3 4 5 6 7; do
5157        ac_script="$ac_script$as_nl$ac_script"
5158      done
5159      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5160      $as_unset ac_script || ac_script=
5161      if test -z "$SED"; then
5162   ac_path_SED_found=false
5163   # Loop through the user's path and test for each of PROGNAME-LIST
5164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169   for ac_prog in sed gsed; do
5170     for ac_exec_ext in '' $ac_executable_extensions; do
5171       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5172       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5173 # Check for GNU ac_path_SED and select it if it is found.
5174   # Check for GNU $ac_path_SED
5175 case `"$ac_path_SED" --version 2>&1` in
5176 *GNU*)
5177   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5178 *)
5179   ac_count=0
5180   $as_echo_n 0123456789 >"conftest.in"
5181   while :
5182   do
5183     cat "conftest.in" "conftest.in" >"conftest.tmp"
5184     mv "conftest.tmp" "conftest.in"
5185     cp "conftest.in" "conftest.nl"
5186     $as_echo '' >> "conftest.nl"
5187     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5188     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5189     ac_count=`expr $ac_count + 1`
5190     if test $ac_count -gt ${ac_path_SED_max-0}; then
5191       # Best one so far, save it but keep looking for a better one
5192       ac_cv_path_SED="$ac_path_SED"
5193       ac_path_SED_max=$ac_count
5194     fi
5195     # 10*(2^10) chars as input seems more than enough
5196     test $ac_count -gt 10 && break
5197   done
5198   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5199 esac
5200
5201       $ac_path_SED_found && break 3
5202     done
5203   done
5204 done
5205 IFS=$as_save_IFS
5206   if test -z "$ac_cv_path_SED"; then
5207     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5208 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5209    { (exit 1); exit 1; }; }
5210   fi
5211 else
5212   ac_cv_path_SED=$SED
5213 fi
5214
5215 fi
5216 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5217 $as_echo "$ac_cv_path_SED" >&6; }
5218  SED="$ac_cv_path_SED"
5219   rm -f conftest.sed
5220
5221 test -z "$SED" && SED=sed
5222 Xsed="$SED -e 1s/^X//"
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5235 $as_echo_n "checking for fgrep... " >&6; }
5236 if test "${ac_cv_path_FGREP+set}" = set; then
5237   $as_echo_n "(cached) " >&6
5238 else
5239   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5240    then ac_cv_path_FGREP="$GREP -F"
5241    else
5242      if test -z "$FGREP"; then
5243   ac_path_FGREP_found=false
5244   # Loop through the user's path and test for each of PROGNAME-LIST
5245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250   for ac_prog in fgrep; do
5251     for ac_exec_ext in '' $ac_executable_extensions; do
5252       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5253       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5254 # Check for GNU ac_path_FGREP and select it if it is found.
5255   # Check for GNU $ac_path_FGREP
5256 case `"$ac_path_FGREP" --version 2>&1` in
5257 *GNU*)
5258   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5259 *)
5260   ac_count=0
5261   $as_echo_n 0123456789 >"conftest.in"
5262   while :
5263   do
5264     cat "conftest.in" "conftest.in" >"conftest.tmp"
5265     mv "conftest.tmp" "conftest.in"
5266     cp "conftest.in" "conftest.nl"
5267     $as_echo 'FGREP' >> "conftest.nl"
5268     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5269     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5270     ac_count=`expr $ac_count + 1`
5271     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5272       # Best one so far, save it but keep looking for a better one
5273       ac_cv_path_FGREP="$ac_path_FGREP"
5274       ac_path_FGREP_max=$ac_count
5275     fi
5276     # 10*(2^10) chars as input seems more than enough
5277     test $ac_count -gt 10 && break
5278   done
5279   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5280 esac
5281
5282       $ac_path_FGREP_found && break 3
5283     done
5284   done
5285 done
5286 IFS=$as_save_IFS
5287   if test -z "$ac_cv_path_FGREP"; then
5288     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5289 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5290    { (exit 1); exit 1; }; }
5291   fi
5292 else
5293   ac_cv_path_FGREP=$FGREP
5294 fi
5295
5296    fi
5297 fi
5298 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5299 $as_echo "$ac_cv_path_FGREP" >&6; }
5300  FGREP="$ac_cv_path_FGREP"
5301
5302
5303 test -z "$GREP" && GREP=grep
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323 # Check whether --with-gnu-ld was given.
5324 if test "${with_gnu_ld+set}" = set; then
5325   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5326 else
5327   with_gnu_ld=no
5328 fi
5329
5330 ac_prog=ld
5331 if test "$GCC" = yes; then
5332   # Check if gcc -print-prog-name=ld gives a path.
5333   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5334 $as_echo_n "checking for ld used by $CC... " >&6; }
5335   case $host in
5336   *-*-mingw*)
5337     # gcc leaves a trailing carriage return which upsets mingw
5338     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5339   *)
5340     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5341   esac
5342   case $ac_prog in
5343     # Accept absolute paths.
5344     [\\/]* | ?:[\\/]*)
5345       re_direlt='/[^/][^/]*/\.\./'
5346       # Canonicalize the pathname of ld
5347       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5348       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5349         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5350       done
5351       test -z "$LD" && LD="$ac_prog"
5352       ;;
5353   "")
5354     # If it fails, then pretend we aren't using GCC.
5355     ac_prog=ld
5356     ;;
5357   *)
5358     # If it is relative, then search for the first ld in PATH.
5359     with_gnu_ld=unknown
5360     ;;
5361   esac
5362 elif test "$with_gnu_ld" = yes; then
5363   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5364 $as_echo_n "checking for GNU ld... " >&6; }
5365 else
5366   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5367 $as_echo_n "checking for non-GNU ld... " >&6; }
5368 fi
5369 if test "${lt_cv_path_LD+set}" = set; then
5370   $as_echo_n "(cached) " >&6
5371 else
5372   if test -z "$LD"; then
5373   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5374   for ac_dir in $PATH; do
5375     IFS="$lt_save_ifs"
5376     test -z "$ac_dir" && ac_dir=.
5377     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5378       lt_cv_path_LD="$ac_dir/$ac_prog"
5379       # Check to see if the program is GNU ld.  I'd rather use --version,
5380       # but apparently some variants of GNU ld only accept -v.
5381       # Break only if it was the GNU/non-GNU ld that we prefer.
5382       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5383       *GNU* | *'with BFD'*)
5384         test "$with_gnu_ld" != no && break
5385         ;;
5386       *)
5387         test "$with_gnu_ld" != yes && break
5388         ;;
5389       esac
5390     fi
5391   done
5392   IFS="$lt_save_ifs"
5393 else
5394   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5395 fi
5396 fi
5397
5398 LD="$lt_cv_path_LD"
5399 if test -n "$LD"; then
5400   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5401 $as_echo "$LD" >&6; }
5402 else
5403   { $as_echo "$as_me:$LINENO: result: no" >&5
5404 $as_echo "no" >&6; }
5405 fi
5406 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5407 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5408    { (exit 1); exit 1; }; }
5409 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5410 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5411 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5412   $as_echo_n "(cached) " >&6
5413 else
5414   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5415 case `$LD -v 2>&1 </dev/null` in
5416 *GNU* | *'with BFD'*)
5417   lt_cv_prog_gnu_ld=yes
5418   ;;
5419 *)
5420   lt_cv_prog_gnu_ld=no
5421   ;;
5422 esac
5423 fi
5424 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5425 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5426 with_gnu_ld=$lt_cv_prog_gnu_ld
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5437 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5438 if test "${lt_cv_path_NM+set}" = set; then
5439   $as_echo_n "(cached) " >&6
5440 else
5441   if test -n "$NM"; then
5442   # Let the user override the test.
5443   lt_cv_path_NM="$NM"
5444 else
5445   lt_nm_to_check="${ac_tool_prefix}nm"
5446   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5447     lt_nm_to_check="$lt_nm_to_check nm"
5448   fi
5449   for lt_tmp_nm in $lt_nm_to_check; do
5450     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5451     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5452       IFS="$lt_save_ifs"
5453       test -z "$ac_dir" && ac_dir=.
5454       tmp_nm="$ac_dir/$lt_tmp_nm"
5455       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5456         # Check to see if the nm accepts a BSD-compat flag.
5457         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5458         #   nm: unknown option "B" ignored
5459         # Tru64's nm complains that /dev/null is an invalid object file
5460         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5461         */dev/null* | *'Invalid file or object type'*)
5462           lt_cv_path_NM="$tmp_nm -B"
5463           break
5464           ;;
5465         *)
5466           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5467           */dev/null*)
5468             lt_cv_path_NM="$tmp_nm -p"
5469             break
5470             ;;
5471           *)
5472             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5473             continue # so that we can try to find one that supports BSD flags
5474             ;;
5475           esac
5476           ;;
5477         esac
5478       fi
5479     done
5480     IFS="$lt_save_ifs"
5481   done
5482   : ${lt_cv_path_NM=no}
5483 fi
5484 fi
5485 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5486 $as_echo "$lt_cv_path_NM" >&6; }
5487 if test "$lt_cv_path_NM" != "no"; then
5488   NM="$lt_cv_path_NM"
5489 else
5490   # Didn't find any BSD compatible name lister, look for dumpbin.
5491   if test -n "$ac_tool_prefix"; then
5492   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5493   do
5494     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if test -n "$DUMPBIN"; then
5502   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509   for ac_exec_ext in '' $ac_executable_extensions; do
5510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5512     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516 done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 DUMPBIN=$ac_cv_prog_DUMPBIN
5522 if test -n "$DUMPBIN"; then
5523   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5524 $as_echo "$DUMPBIN" >&6; }
5525 else
5526   { $as_echo "$as_me:$LINENO: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531     test -n "$DUMPBIN" && break
5532   done
5533 fi
5534 if test -z "$DUMPBIN"; then
5535   ac_ct_DUMPBIN=$DUMPBIN
5536   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5537 do
5538   # Extract the first word of "$ac_prog", so it can be a program name with args.
5539 set dummy $ac_prog; ac_word=$2
5540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5543   $as_echo_n "(cached) " >&6
5544 else
5545   if test -n "$ac_ct_DUMPBIN"; then
5546   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553   for ac_exec_ext in '' $ac_executable_extensions; do
5554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5556     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560 done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5566 if test -n "$ac_ct_DUMPBIN"; then
5567   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5568 $as_echo "$ac_ct_DUMPBIN" >&6; }
5569 else
5570   { $as_echo "$as_me:$LINENO: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574
5575   test -n "$ac_ct_DUMPBIN" && break
5576 done
5577
5578   if test "x$ac_ct_DUMPBIN" = x; then
5579     DUMPBIN=":"
5580   else
5581     case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587     DUMPBIN=$ac_ct_DUMPBIN
5588   fi
5589 fi
5590
5591
5592   if test "$DUMPBIN" != ":"; then
5593     NM="$DUMPBIN"
5594   fi
5595 fi
5596 test -z "$NM" && NM=nm
5597
5598
5599
5600
5601
5602
5603 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5604 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5605 if test "${lt_cv_nm_interface+set}" = set; then
5606   $as_echo_n "(cached) " >&6
5607 else
5608   lt_cv_nm_interface="BSD nm"
5609   echo "int some_variable = 0;" > conftest.$ac_ext
5610   (eval echo "\"\$as_me:5610: $ac_compile\"" >&5)
5611   (eval "$ac_compile" 2>conftest.err)
5612   cat conftest.err >&5
5613   (eval echo "\"\$as_me:5613: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5614   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5615   cat conftest.err >&5
5616   (eval echo "\"\$as_me:5616: output\"" >&5)
5617   cat conftest.out >&5
5618   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5619     lt_cv_nm_interface="MS dumpbin"
5620   fi
5621   rm -f conftest*
5622 fi
5623 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5624 $as_echo "$lt_cv_nm_interface" >&6; }
5625
5626 # find the maximum length of command line arguments
5627 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5628 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5629 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5630   $as_echo_n "(cached) " >&6
5631 else
5632     i=0
5633   teststring="ABCD"
5634
5635   case $build_os in
5636   msdosdjgpp*)
5637     # On DJGPP, this test can blow up pretty badly due to problems in libc
5638     # (any single argument exceeding 2000 bytes causes a buffer overrun
5639     # during glob expansion).  Even if it were fixed, the result of this
5640     # check would be larger than it should be.
5641     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5642     ;;
5643
5644   gnu*)
5645     # Under GNU Hurd, this test is not required because there is
5646     # no limit to the length of command line arguments.
5647     # Libtool will interpret -1 as no limit whatsoever
5648     lt_cv_sys_max_cmd_len=-1;
5649     ;;
5650
5651   cygwin* | mingw* | cegcc*)
5652     # On Win9x/ME, this test blows up -- it succeeds, but takes
5653     # about 5 minutes as the teststring grows exponentially.
5654     # Worse, since 9x/ME are not pre-emptively multitasking,
5655     # you end up with a "frozen" computer, even though with patience
5656     # the test eventually succeeds (with a max line length of 256k).
5657     # Instead, let's just punt: use the minimum linelength reported by
5658     # all of the supported platforms: 8192 (on NT/2K/XP).
5659     lt_cv_sys_max_cmd_len=8192;
5660     ;;
5661
5662   amigaos*)
5663     # On AmigaOS with pdksh, this test takes hours, literally.
5664     # So we just punt and use a minimum line length of 8192.
5665     lt_cv_sys_max_cmd_len=8192;
5666     ;;
5667
5668   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5669     # This has been around since 386BSD, at least.  Likely further.
5670     if test -x /sbin/sysctl; then
5671       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5672     elif test -x /usr/sbin/sysctl; then
5673       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5674     else
5675       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5676     fi
5677     # And add a safety zone
5678     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5679     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5680     ;;
5681
5682   interix*)
5683     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5684     lt_cv_sys_max_cmd_len=196608
5685     ;;
5686
5687   osf*)
5688     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5689     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5690     # nice to cause kernel panics so lets avoid the loop below.
5691     # First set a reasonable default.
5692     lt_cv_sys_max_cmd_len=16384
5693     #
5694     if test -x /sbin/sysconfig; then
5695       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5696         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5697       esac
5698     fi
5699     ;;
5700   sco3.2v5*)
5701     lt_cv_sys_max_cmd_len=102400
5702     ;;
5703   sysv5* | sco5v6* | sysv4.2uw2*)
5704     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5705     if test -n "$kargmax"; then
5706       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5707     else
5708       lt_cv_sys_max_cmd_len=32768
5709     fi
5710     ;;
5711   *)
5712     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5713     if test -n "$lt_cv_sys_max_cmd_len"; then
5714       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5715       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5716     else
5717       # Make teststring a little bigger before we do anything with it.
5718       # a 1K string should be a reasonable start.
5719       for i in 1 2 3 4 5 6 7 8 ; do
5720         teststring=$teststring$teststring
5721       done
5722       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5723       # If test is not a shell built-in, we'll probably end up computing a
5724       # maximum length that is only half of the actual maximum length, but
5725       # we can't tell.
5726       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5727                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5728               test $i != 17 # 1/2 MB should be enough
5729       do
5730         i=`expr $i + 1`
5731         teststring=$teststring$teststring
5732       done
5733       # Only check the string length outside the loop.
5734       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5735       teststring=
5736       # Add a significant safety factor because C++ compilers can tack on
5737       # massive amounts of additional arguments before passing them to the
5738       # linker.  It appears as though 1/2 is a usable value.
5739       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5740     fi
5741     ;;
5742   esac
5743
5744 fi
5745
5746 if test -n $lt_cv_sys_max_cmd_len ; then
5747   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5748 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5749 else
5750   { $as_echo "$as_me:$LINENO: result: none" >&5
5751 $as_echo "none" >&6; }
5752 fi
5753 max_cmd_len=$lt_cv_sys_max_cmd_len
5754
5755
5756
5757
5758
5759
5760 : ${CP="cp -f"}
5761 : ${MV="mv -f"}
5762 : ${RM="rm -f"}
5763
5764 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5765 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5766 # Try some XSI features
5767 xsi_shell=no
5768 ( _lt_dummy="a/b/c"
5769   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5770       = c,a/b,, \
5771     && eval 'test $(( 1 + 1 )) -eq 2 \
5772     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5773   && xsi_shell=yes
5774 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5775 $as_echo "$xsi_shell" >&6; }
5776
5777
5778 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5779 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5780 lt_shell_append=no
5781 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5782     >/dev/null 2>&1 \
5783   && lt_shell_append=yes
5784 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5785 $as_echo "$lt_shell_append" >&6; }
5786
5787
5788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5789   lt_unset=unset
5790 else
5791   lt_unset=false
5792 fi
5793
5794
5795
5796
5797
5798 # test EBCDIC or ASCII
5799 case `echo X|tr X '\101'` in
5800  A) # ASCII based system
5801     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5802   lt_SP2NL='tr \040 \012'
5803   lt_NL2SP='tr \015\012 \040\040'
5804   ;;
5805  *) # EBCDIC based system
5806   lt_SP2NL='tr \100 \n'
5807   lt_NL2SP='tr \r\n \100\100'
5808   ;;
5809 esac
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5820 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5821 if test "${lt_cv_ld_reload_flag+set}" = set; then
5822   $as_echo_n "(cached) " >&6
5823 else
5824   lt_cv_ld_reload_flag='-r'
5825 fi
5826 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5827 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5828 reload_flag=$lt_cv_ld_reload_flag
5829 case $reload_flag in
5830 "" | " "*) ;;
5831 *) reload_flag=" $reload_flag" ;;
5832 esac
5833 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5834 case $host_os in
5835   darwin*)
5836     if test "$GCC" = yes; then
5837       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5838     else
5839       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5840     fi
5841     ;;
5842 esac
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852 if test -n "$ac_tool_prefix"; then
5853   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5854 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5855 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5856 $as_echo_n "checking for $ac_word... " >&6; }
5857 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5858   $as_echo_n "(cached) " >&6
5859 else
5860   if test -n "$OBJDUMP"; then
5861   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5862 else
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866   IFS=$as_save_IFS
5867   test -z "$as_dir" && as_dir=.
5868   for ac_exec_ext in '' $ac_executable_extensions; do
5869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5870     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5871     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872     break 2
5873   fi
5874 done
5875 done
5876 IFS=$as_save_IFS
5877
5878 fi
5879 fi
5880 OBJDUMP=$ac_cv_prog_OBJDUMP
5881 if test -n "$OBJDUMP"; then
5882   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5883 $as_echo "$OBJDUMP" >&6; }
5884 else
5885   { $as_echo "$as_me:$LINENO: result: no" >&5
5886 $as_echo "no" >&6; }
5887 fi
5888
5889
5890 fi
5891 if test -z "$ac_cv_prog_OBJDUMP"; then
5892   ac_ct_OBJDUMP=$OBJDUMP
5893   # Extract the first word of "objdump", so it can be a program name with args.
5894 set dummy objdump; ac_word=$2
5895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5898   $as_echo_n "(cached) " >&6
5899 else
5900   if test -n "$ac_ct_OBJDUMP"; then
5901   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908   for ac_exec_ext in '' $ac_executable_extensions; do
5909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5911     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915 done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5921 if test -n "$ac_ct_OBJDUMP"; then
5922   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5923 $as_echo "$ac_ct_OBJDUMP" >&6; }
5924 else
5925   { $as_echo "$as_me:$LINENO: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929   if test "x$ac_ct_OBJDUMP" = x; then
5930     OBJDUMP="false"
5931   else
5932     case $cross_compiling:$ac_tool_warned in
5933 yes:)
5934 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5937 esac
5938     OBJDUMP=$ac_ct_OBJDUMP
5939   fi
5940 else
5941   OBJDUMP="$ac_cv_prog_OBJDUMP"
5942 fi
5943
5944 test -z "$OBJDUMP" && OBJDUMP=objdump
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5955 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5956 if test "${lt_cv_deplibs_check_method+set}" = set; then
5957   $as_echo_n "(cached) " >&6
5958 else
5959   lt_cv_file_magic_cmd='$MAGIC_CMD'
5960 lt_cv_file_magic_test_file=
5961 lt_cv_deplibs_check_method='unknown'
5962 # Need to set the preceding variable on all platforms that support
5963 # interlibrary dependencies.
5964 # 'none' -- dependencies not supported.
5965 # `unknown' -- same as none, but documents that we really don't know.
5966 # 'pass_all' -- all dependencies passed with no checks.
5967 # 'test_compile' -- check by making test program.
5968 # 'file_magic [[regex]]' -- check by looking for files in library path
5969 # which responds to the $file_magic_cmd with a given extended regex.
5970 # If you have `file' or equivalent on your system and you're not sure
5971 # whether `pass_all' will *always* work, you probably want this one.
5972
5973 case $host_os in
5974 aix[4-9]*)
5975   lt_cv_deplibs_check_method=pass_all
5976   ;;
5977
5978 beos*)
5979   lt_cv_deplibs_check_method=pass_all
5980   ;;
5981
5982 bsdi[45]*)
5983   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5984   lt_cv_file_magic_cmd='/usr/bin/file -L'
5985   lt_cv_file_magic_test_file=/shlib/libc.so
5986   ;;
5987
5988 cygwin*)
5989   # func_win32_libid is a shell function defined in ltmain.sh
5990   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5991   lt_cv_file_magic_cmd='func_win32_libid'
5992   ;;
5993
5994 mingw* | pw32*)
5995   # Base MSYS/MinGW do not provide the 'file' command needed by
5996   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5997   # unless we find 'file', for example because we are cross-compiling.
5998   if ( file / ) >/dev/null 2>&1; then
5999     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6000     lt_cv_file_magic_cmd='func_win32_libid'
6001   else
6002     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6003     lt_cv_file_magic_cmd='$OBJDUMP -f'
6004   fi
6005   ;;
6006
6007 cegcc)
6008   # use the weaker test based on 'objdump'. See mingw*.
6009   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6010   lt_cv_file_magic_cmd='$OBJDUMP -f'
6011   ;;
6012
6013 darwin* | rhapsody*)
6014   lt_cv_deplibs_check_method=pass_all
6015   ;;
6016
6017 freebsd* | dragonfly*)
6018   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6019     case $host_cpu in
6020     i*86 )
6021       # Not sure whether the presence of OpenBSD here was a mistake.
6022       # Let's accept both of them until this is cleared up.
6023       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6024       lt_cv_file_magic_cmd=/usr/bin/file
6025       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6026       ;;
6027     esac
6028   else
6029     lt_cv_deplibs_check_method=pass_all
6030   fi
6031   ;;
6032
6033 gnu*)
6034   lt_cv_deplibs_check_method=pass_all
6035   ;;
6036
6037 hpux10.20* | hpux11*)
6038   lt_cv_file_magic_cmd=/usr/bin/file
6039   case $host_cpu in
6040   ia64*)
6041     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6042     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6043     ;;
6044   hppa*64*)
6045     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6046     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6047     ;;
6048   *)
6049     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6050     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6051     ;;
6052   esac
6053   ;;
6054
6055 interix[3-9]*)
6056   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6057   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6058   ;;
6059
6060 irix5* | irix6* | nonstopux*)
6061   case $LD in
6062   *-32|*"-32 ") libmagic=32-bit;;
6063   *-n32|*"-n32 ") libmagic=N32;;
6064   *-64|*"-64 ") libmagic=64-bit;;
6065   *) libmagic=never-match;;
6066   esac
6067   lt_cv_deplibs_check_method=pass_all
6068   ;;
6069
6070 # This must be Linux ELF.
6071 linux* | k*bsd*-gnu)
6072   lt_cv_deplibs_check_method=pass_all
6073   ;;
6074
6075 netbsd*)
6076   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6077     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6078   else
6079     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6080   fi
6081   ;;
6082
6083 newos6*)
6084   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6085   lt_cv_file_magic_cmd=/usr/bin/file
6086   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6087   ;;
6088
6089 *nto* | *qnx*)
6090   lt_cv_deplibs_check_method=pass_all
6091   ;;
6092
6093 openbsd*)
6094   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6095     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6096   else
6097     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6098   fi
6099   ;;
6100
6101 osf3* | osf4* | osf5*)
6102   lt_cv_deplibs_check_method=pass_all
6103   ;;
6104
6105 rdos*)
6106   lt_cv_deplibs_check_method=pass_all
6107   ;;
6108
6109 solaris*)
6110   lt_cv_deplibs_check_method=pass_all
6111   ;;
6112
6113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6114   lt_cv_deplibs_check_method=pass_all
6115   ;;
6116
6117 sysv4 | sysv4.3*)
6118   case $host_vendor in
6119   motorola)
6120     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]'
6121     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6122     ;;
6123   ncr)
6124     lt_cv_deplibs_check_method=pass_all
6125     ;;
6126   sequent)
6127     lt_cv_file_magic_cmd='/bin/file'
6128     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6129     ;;
6130   sni)
6131     lt_cv_file_magic_cmd='/bin/file'
6132     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6133     lt_cv_file_magic_test_file=/lib/libc.so
6134     ;;
6135   siemens)
6136     lt_cv_deplibs_check_method=pass_all
6137     ;;
6138   pc)
6139     lt_cv_deplibs_check_method=pass_all
6140     ;;
6141   esac
6142   ;;
6143
6144 tpf*)
6145   lt_cv_deplibs_check_method=pass_all
6146   ;;
6147 esac
6148
6149 fi
6150 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6151 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6152 file_magic_cmd=$lt_cv_file_magic_cmd
6153 deplibs_check_method=$lt_cv_deplibs_check_method
6154 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167 if test -n "$ac_tool_prefix"; then
6168   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6169 set dummy ${ac_tool_prefix}ar; ac_word=$2
6170 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6171 $as_echo_n "checking for $ac_word... " >&6; }
6172 if test "${ac_cv_prog_AR+set}" = set; then
6173   $as_echo_n "(cached) " >&6
6174 else
6175   if test -n "$AR"; then
6176   ac_cv_prog_AR="$AR" # Let the user override the test.
6177 else
6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 for as_dir in $PATH
6180 do
6181   IFS=$as_save_IFS
6182   test -z "$as_dir" && as_dir=.
6183   for ac_exec_ext in '' $ac_executable_extensions; do
6184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185     ac_cv_prog_AR="${ac_tool_prefix}ar"
6186     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6187     break 2
6188   fi
6189 done
6190 done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 AR=$ac_cv_prog_AR
6196 if test -n "$AR"; then
6197   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6198 $as_echo "$AR" >&6; }
6199 else
6200   { $as_echo "$as_me:$LINENO: result: no" >&5
6201 $as_echo "no" >&6; }
6202 fi
6203
6204
6205 fi
6206 if test -z "$ac_cv_prog_AR"; then
6207   ac_ct_AR=$AR
6208   # Extract the first word of "ar", so it can be a program name with args.
6209 set dummy ar; ac_word=$2
6210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6213   $as_echo_n "(cached) " >&6
6214 else
6215   if test -n "$ac_ct_AR"; then
6216   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221   IFS=$as_save_IFS
6222   test -z "$as_dir" && as_dir=.
6223   for ac_exec_ext in '' $ac_executable_extensions; do
6224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225     ac_cv_prog_ac_ct_AR="ar"
6226     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227     break 2
6228   fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6236 if test -n "$ac_ct_AR"; then
6237   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6238 $as_echo "$ac_ct_AR" >&6; }
6239 else
6240   { $as_echo "$as_me:$LINENO: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243
6244   if test "x$ac_ct_AR" = x; then
6245     AR="false"
6246   else
6247     case $cross_compiling:$ac_tool_warned in
6248 yes:)
6249 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251 ac_tool_warned=yes ;;
6252 esac
6253     AR=$ac_ct_AR
6254   fi
6255 else
6256   AR="$ac_cv_prog_AR"
6257 fi
6258
6259 test -z "$AR" && AR=ar
6260 test -z "$AR_FLAGS" && AR_FLAGS=cru
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272 if test -n "$ac_tool_prefix"; then
6273   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}strip; ac_word=$2
6275 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if test "${ac_cv_prog_STRIP+set}" = set; then
6278   $as_echo_n "(cached) " >&6
6279 else
6280   if test -n "$STRIP"; then
6281   ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
6291     $as_echo "$as_me:$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 STRIP=$ac_cv_prog_STRIP
6301 if test -n "$STRIP"; then
6302   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6303 $as_echo "$STRIP" >&6; }
6304 else
6305   { $as_echo "$as_me:$LINENO: result: no" >&5
6306 $as_echo "no" >&6; }
6307 fi
6308
6309
6310 fi
6311 if test -z "$ac_cv_prog_STRIP"; then
6312   ac_ct_STRIP=$STRIP
6313   # Extract the first word of "strip", so it can be a program name with args.
6314 set dummy strip; ac_word=$2
6315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6318   $as_echo_n "(cached) " >&6
6319 else
6320   if test -n "$ac_ct_STRIP"; then
6321   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
6331     $as_echo "$as_me:$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_STRIP=$ac_cv_prog_ac_ct_STRIP
6341 if test -n "$ac_ct_STRIP"; then
6342   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6343 $as_echo "$ac_ct_STRIP" >&6; }
6344 else
6345   { $as_echo "$as_me:$LINENO: result: no" >&5
6346 $as_echo "no" >&6; }
6347 fi
6348
6349   if test "x$ac_ct_STRIP" = x; then
6350     STRIP=":"
6351   else
6352     case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { $as_echo "$as_me:$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     STRIP=$ac_ct_STRIP
6359   fi
6360 else
6361   STRIP="$ac_cv_prog_STRIP"
6362 fi
6363
6364 test -z "$STRIP" && STRIP=:
6365
6366
6367
6368
6369
6370
6371 if test -n "$ac_tool_prefix"; then
6372   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if test "${ac_cv_prog_RANLIB+set}" = set; then
6377   $as_echo_n "(cached) " >&6
6378 else
6379   if test -n "$RANLIB"; then
6380   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387   for ac_exec_ext in '' $ac_executable_extensions; do
6388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6390     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 RANLIB=$ac_cv_prog_RANLIB
6400 if test -n "$RANLIB"; then
6401   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6402 $as_echo "$RANLIB" >&6; }
6403 else
6404   { $as_echo "$as_me:$LINENO: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408
6409 fi
6410 if test -z "$ac_cv_prog_RANLIB"; then
6411   ac_ct_RANLIB=$RANLIB
6412   # Extract the first word of "ranlib", so it can be a program name with args.
6413 set dummy ranlib; ac_word=$2
6414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6417   $as_echo_n "(cached) " >&6
6418 else
6419   if test -n "$ac_ct_RANLIB"; then
6420   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427   for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_prog_ac_ct_RANLIB="ranlib"
6430     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6440 if test -n "$ac_ct_RANLIB"; then
6441   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6442 $as_echo "$ac_ct_RANLIB" >&6; }
6443 else
6444   { $as_echo "$as_me:$LINENO: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6447
6448   if test "x$ac_ct_RANLIB" = x; then
6449     RANLIB=":"
6450   else
6451     case $cross_compiling:$ac_tool_warned in
6452 yes:)
6453 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6455 ac_tool_warned=yes ;;
6456 esac
6457     RANLIB=$ac_ct_RANLIB
6458   fi
6459 else
6460   RANLIB="$ac_cv_prog_RANLIB"
6461 fi
6462
6463 test -z "$RANLIB" && RANLIB=:
6464
6465
6466
6467
6468
6469
6470 # Determine commands to create old-style static archives.
6471 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6472 old_postinstall_cmds='chmod 644 $oldlib'
6473 old_postuninstall_cmds=
6474
6475 if test -n "$RANLIB"; then
6476   case $host_os in
6477   openbsd*)
6478     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6479     ;;
6480   *)
6481     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6482     ;;
6483   esac
6484   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6485 fi
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520 # If no C compiler was specified, use CC.
6521 LTCC=${LTCC-"$CC"}
6522
6523 # If no C compiler flags were specified, use CFLAGS.
6524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6525
6526 # Allow CC to be a program name with arguments.
6527 compiler=$CC
6528
6529
6530 # Check for command to grab the raw symbol name followed by C symbol from nm.
6531 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6532 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6534   $as_echo_n "(cached) " >&6
6535 else
6536
6537 # These are sane defaults that work on at least a few old systems.
6538 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6539
6540 # Character class describing NM global symbol codes.
6541 symcode='[BCDEGRST]'
6542
6543 # Regexp to match symbols that can be accessed directly from C.
6544 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6545
6546 # Define system-specific variables.
6547 case $host_os in
6548 aix*)
6549   symcode='[BCDT]'
6550   ;;
6551 cygwin* | mingw* | pw32* | cegcc*)
6552   symcode='[ABCDGISTW]'
6553   ;;
6554 hpux*)
6555   if test "$host_cpu" = ia64; then
6556     symcode='[ABCDEGRST]'
6557   fi
6558   ;;
6559 irix* | nonstopux*)
6560   symcode='[BCDEGRST]'
6561   ;;
6562 osf*)
6563   symcode='[BCDEGQRST]'
6564   ;;
6565 solaris*)
6566   symcode='[BDRT]'
6567   ;;
6568 sco3.2v5*)
6569   symcode='[DT]'
6570   ;;
6571 sysv4.2uw2*)
6572   symcode='[DT]'
6573   ;;
6574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6575   symcode='[ABDT]'
6576   ;;
6577 sysv4)
6578   symcode='[DFNSTU]'
6579   ;;
6580 esac
6581
6582 # If we're using GNU nm, then use its standard symbol codes.
6583 case `$NM -V 2>&1` in
6584 *GNU* | *'with BFD'*)
6585   symcode='[ABCDGIRSTW]' ;;
6586 esac
6587
6588 # Transform an extracted symbol line into a proper C declaration.
6589 # Some systems (esp. on ia64) link data and code symbols differently,
6590 # so use this general approach.
6591 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6592
6593 # Transform an extracted symbol line into symbol name and symbol address
6594 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6595 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'"
6596
6597 # Handle CRLF in mingw tool chain
6598 opt_cr=
6599 case $build_os in
6600 mingw*)
6601   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6602   ;;
6603 esac
6604
6605 # Try without a prefix underscore, then with it.
6606 for ac_symprfx in "" "_"; do
6607
6608   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6609   symxfrm="\\1 $ac_symprfx\\2 \\2"
6610
6611   # Write the raw and C identifiers.
6612   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6613     # Fake it for dumpbin and say T for any non-static function
6614     # and D for any global variable.
6615     # Also find C++ and __fastcall symbols from MSVC++,
6616     # which start with @ or ?.
6617     lt_cv_sys_global_symbol_pipe="$AWK '"\
6618 "     {last_section=section; section=\$ 3};"\
6619 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6620 "     \$ 0!~/External *\|/{next};"\
6621 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6622 "     {if(hide[section]) next};"\
6623 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6624 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6625 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6626 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6627 "     ' prfx=^$ac_symprfx"
6628   else
6629     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6630   fi
6631
6632   # Check to see that the pipe works correctly.
6633   pipe_works=no
6634
6635   rm -f conftest*
6636   cat > conftest.$ac_ext <<_LT_EOF
6637 #ifdef __cplusplus
6638 extern "C" {
6639 #endif
6640 char nm_test_var;
6641 void nm_test_func(void);
6642 void nm_test_func(void){}
6643 #ifdef __cplusplus
6644 }
6645 #endif
6646 int main(){nm_test_var='a';nm_test_func();return(0);}
6647 _LT_EOF
6648
6649   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650   (eval $ac_compile) 2>&5
6651   ac_status=$?
6652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); }; then
6654     # Now try to grab the symbols.
6655     nlist=conftest.nm
6656     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6657   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6658   ac_status=$?
6659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } && test -s "$nlist"; then
6661       # Try sorting and uniquifying the output.
6662       if sort "$nlist" | uniq > "$nlist"T; then
6663         mv -f "$nlist"T "$nlist"
6664       else
6665         rm -f "$nlist"T
6666       fi
6667
6668       # Make sure that we snagged all the symbols we need.
6669       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6670         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6671           cat <<_LT_EOF > conftest.$ac_ext
6672 #ifdef __cplusplus
6673 extern "C" {
6674 #endif
6675
6676 _LT_EOF
6677           # Now generate the symbol file.
6678           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6679
6680           cat <<_LT_EOF >> conftest.$ac_ext
6681 /* The mapping between symbol names and symbols.  */
6682 const struct {
6683   const char *name;
6684   void       *address;
6685 }
6686 lt__PROGRAM__LTX_preloaded_symbols[] =
6687 {
6688   { "@PROGRAM@", (void *) 0 },
6689 _LT_EOF
6690           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6691           cat <<\_LT_EOF >> conftest.$ac_ext
6692   {0, (void *) 0}
6693 };
6694
6695 /* This works around a problem in FreeBSD linker */
6696 #ifdef FREEBSD_WORKAROUND
6697 static const void *lt_preloaded_setup() {
6698   return lt__PROGRAM__LTX_preloaded_symbols;
6699 }
6700 #endif
6701
6702 #ifdef __cplusplus
6703 }
6704 #endif
6705 _LT_EOF
6706           # Now try linking the two files.
6707           mv conftest.$ac_objext conftstm.$ac_objext
6708           lt_save_LIBS="$LIBS"
6709           lt_save_CFLAGS="$CFLAGS"
6710           LIBS="conftstm.$ac_objext"
6711           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6712           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713   (eval $ac_link) 2>&5
6714   ac_status=$?
6715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6717             pipe_works=yes
6718           fi
6719           LIBS="$lt_save_LIBS"
6720           CFLAGS="$lt_save_CFLAGS"
6721         else
6722           echo "cannot find nm_test_func in $nlist" >&5
6723         fi
6724       else
6725         echo "cannot find nm_test_var in $nlist" >&5
6726       fi
6727     else
6728       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6729     fi
6730   else
6731     echo "$progname: failed program was:" >&5
6732     cat conftest.$ac_ext >&5
6733   fi
6734   rm -rf conftest* conftst*
6735
6736   # Do not use the global_symbol_pipe unless it works.
6737   if test "$pipe_works" = yes; then
6738     break
6739   else
6740     lt_cv_sys_global_symbol_pipe=
6741   fi
6742 done
6743
6744 fi
6745
6746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6747   lt_cv_sys_global_symbol_to_cdecl=
6748 fi
6749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6750   { $as_echo "$as_me:$LINENO: result: failed" >&5
6751 $as_echo "failed" >&6; }
6752 else
6753   { $as_echo "$as_me:$LINENO: result: ok" >&5
6754 $as_echo "ok" >&6; }
6755 fi
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778 # Check whether --enable-libtool-lock was given.
6779 if test "${enable_libtool_lock+set}" = set; then
6780   enableval=$enable_libtool_lock;
6781 fi
6782
6783 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6784
6785 # Some flags need to be propagated to the compiler or linker for good
6786 # libtool support.
6787 case $host in
6788 ia64-*-hpux*)
6789   # Find out which ABI we are using.
6790   echo 'int i;' > conftest.$ac_ext
6791   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6792   (eval $ac_compile) 2>&5
6793   ac_status=$?
6794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795   (exit $ac_status); }; then
6796     case `/usr/bin/file conftest.$ac_objext` in
6797       *ELF-32*)
6798         HPUX_IA64_MODE="32"
6799         ;;
6800       *ELF-64*)
6801         HPUX_IA64_MODE="64"
6802         ;;
6803     esac
6804   fi
6805   rm -rf conftest*
6806   ;;
6807 *-*-irix6*)
6808   # Find out which ABI we are using.
6809   echo '#line 6809 "configure"' > conftest.$ac_ext
6810   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811   (eval $ac_compile) 2>&5
6812   ac_status=$?
6813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; then
6815     if test "$lt_cv_prog_gnu_ld" = yes; then
6816       case `/usr/bin/file conftest.$ac_objext` in
6817         *32-bit*)
6818           LD="${LD-ld} -melf32bsmip"
6819           ;;
6820         *N32*)
6821           LD="${LD-ld} -melf32bmipn32"
6822           ;;
6823         *64-bit*)
6824           LD="${LD-ld} -melf64bmip"
6825         ;;
6826       esac
6827     else
6828       case `/usr/bin/file conftest.$ac_objext` in
6829         *32-bit*)
6830           LD="${LD-ld} -32"
6831           ;;
6832         *N32*)
6833           LD="${LD-ld} -n32"
6834           ;;
6835         *64-bit*)
6836           LD="${LD-ld} -64"
6837           ;;
6838       esac
6839     fi
6840   fi
6841   rm -rf conftest*
6842   ;;
6843
6844 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6845 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6846   # Find out which ABI we are using.
6847   echo 'int i;' > conftest.$ac_ext
6848   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6849   (eval $ac_compile) 2>&5
6850   ac_status=$?
6851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); }; then
6853     case `/usr/bin/file conftest.o` in
6854       *32-bit*)
6855         case $host in
6856           x86_64-*kfreebsd*-gnu)
6857             LD="${LD-ld} -m elf_i386_fbsd"
6858             ;;
6859           x86_64-*linux*)
6860             LD="${LD-ld} -m elf_i386"
6861             ;;
6862           ppc64-*linux*|powerpc64-*linux*)
6863             LD="${LD-ld} -m elf32ppclinux"
6864             ;;
6865           s390x-*linux*)
6866             LD="${LD-ld} -m elf_s390"
6867             ;;
6868           sparc64-*linux*)
6869             LD="${LD-ld} -m elf32_sparc"
6870             ;;
6871         esac
6872         ;;
6873       *64-bit*)
6874         case $host in
6875           x86_64-*kfreebsd*-gnu)
6876             LD="${LD-ld} -m elf_x86_64_fbsd"
6877             ;;
6878           x86_64-*linux*)
6879             LD="${LD-ld} -m elf_x86_64"
6880             ;;
6881           ppc*-*linux*|powerpc*-*linux*)
6882             LD="${LD-ld} -m elf64ppc"
6883             ;;
6884           s390*-*linux*|s390*-*tpf*)
6885             LD="${LD-ld} -m elf64_s390"
6886             ;;
6887           sparc*-*linux*)
6888             LD="${LD-ld} -m elf64_sparc"
6889             ;;
6890         esac
6891         ;;
6892     esac
6893   fi
6894   rm -rf conftest*
6895   ;;
6896
6897 *-*-sco3.2v5*)
6898   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6899   SAVE_CFLAGS="$CFLAGS"
6900   CFLAGS="$CFLAGS -belf"
6901   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6902 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6903 if test "${lt_cv_cc_needs_belf+set}" = set; then
6904   $as_echo_n "(cached) " >&6
6905 else
6906   ac_ext=c
6907 ac_cpp='$CPP $CPPFLAGS'
6908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6911
6912      cat >conftest.$ac_ext <<_ACEOF
6913 /* confdefs.h.  */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h.  */
6918
6919 int
6920 main ()
6921 {
6922
6923   ;
6924   return 0;
6925 }
6926 _ACEOF
6927 rm -f conftest.$ac_objext conftest$ac_exeext
6928 if { (ac_try="$ac_link"
6929 case "(($ac_try" in
6930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931   *) ac_try_echo=$ac_try;;
6932 esac
6933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6934 $as_echo "$ac_try_echo") >&5
6935   (eval "$ac_link") 2>conftest.er1
6936   ac_status=$?
6937   grep -v '^ *+' conftest.er1 >conftest.err
6938   rm -f conftest.er1
6939   cat conftest.err >&5
6940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); } && {
6942          test -z "$ac_c_werror_flag" ||
6943          test ! -s conftest.err
6944        } && test -s conftest$ac_exeext && {
6945          test "$cross_compiling" = yes ||
6946          $as_test_x conftest$ac_exeext
6947        }; then
6948   lt_cv_cc_needs_belf=yes
6949 else
6950   $as_echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953         lt_cv_cc_needs_belf=no
6954 fi
6955
6956 rm -rf conftest.dSYM
6957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6958       conftest$ac_exeext conftest.$ac_ext
6959      ac_ext=c
6960 ac_cpp='$CPP $CPPFLAGS'
6961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964
6965 fi
6966 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6967 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6968   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6969     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6970     CFLAGS="$SAVE_CFLAGS"
6971   fi
6972   ;;
6973 sparc*-*solaris*)
6974   # Find out which ABI we are using.
6975   echo 'int i;' > conftest.$ac_ext
6976   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6977   (eval $ac_compile) 2>&5
6978   ac_status=$?
6979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); }; then
6981     case `/usr/bin/file conftest.o` in
6982     *64-bit*)
6983       case $lt_cv_prog_gnu_ld in
6984       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6985       *)
6986         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6987           LD="${LD-ld} -64"
6988         fi
6989         ;;
6990       esac
6991       ;;
6992     esac
6993   fi
6994   rm -rf conftest*
6995   ;;
6996 esac
6997
6998 need_locks="$enable_libtool_lock"
6999
7000
7001   case $host_os in
7002     rhapsody* | darwin*)
7003     if test -n "$ac_tool_prefix"; then
7004   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7009   $as_echo_n "(cached) " >&6
7010 else
7011   if test -n "$DSYMUTIL"; then
7012   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019   for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7022     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026 done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7032 if test -n "$DSYMUTIL"; then
7033   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7034 $as_echo "$DSYMUTIL" >&6; }
7035 else
7036   { $as_echo "$as_me:$LINENO: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040
7041 fi
7042 if test -z "$ac_cv_prog_DSYMUTIL"; then
7043   ac_ct_DSYMUTIL=$DSYMUTIL
7044   # Extract the first word of "dsymutil", so it can be a program name with args.
7045 set dummy dsymutil; ac_word=$2
7046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7049   $as_echo_n "(cached) " >&6
7050 else
7051   if test -n "$ac_ct_DSYMUTIL"; then
7052   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059   for ac_exec_ext in '' $ac_executable_extensions; do
7060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7062     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063     break 2
7064   fi
7065 done
7066 done
7067 IFS=$as_save_IFS
7068
7069 fi
7070 fi
7071 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7072 if test -n "$ac_ct_DSYMUTIL"; then
7073   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7074 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7075 else
7076   { $as_echo "$as_me:$LINENO: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079
7080   if test "x$ac_ct_DSYMUTIL" = x; then
7081     DSYMUTIL=":"
7082   else
7083     case $cross_compiling:$ac_tool_warned in
7084 yes:)
7085 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7087 ac_tool_warned=yes ;;
7088 esac
7089     DSYMUTIL=$ac_ct_DSYMUTIL
7090   fi
7091 else
7092   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7093 fi
7094
7095     if test -n "$ac_tool_prefix"; then
7096   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7097 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7101   $as_echo_n "(cached) " >&6
7102 else
7103   if test -n "$NMEDIT"; then
7104   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111   for ac_exec_ext in '' $ac_executable_extensions; do
7112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7114     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118 done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 NMEDIT=$ac_cv_prog_NMEDIT
7124 if test -n "$NMEDIT"; then
7125   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7126 $as_echo "$NMEDIT" >&6; }
7127 else
7128   { $as_echo "$as_me:$LINENO: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132
7133 fi
7134 if test -z "$ac_cv_prog_NMEDIT"; then
7135   ac_ct_NMEDIT=$NMEDIT
7136   # Extract the first word of "nmedit", so it can be a program name with args.
7137 set dummy nmedit; ac_word=$2
7138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7141   $as_echo_n "(cached) " >&6
7142 else
7143   if test -n "$ac_ct_NMEDIT"; then
7144   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149   IFS=$as_save_IFS
7150   test -z "$as_dir" && as_dir=.
7151   for ac_exec_ext in '' $ac_executable_extensions; do
7152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7154     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155     break 2
7156   fi
7157 done
7158 done
7159 IFS=$as_save_IFS
7160
7161 fi
7162 fi
7163 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7164 if test -n "$ac_ct_NMEDIT"; then
7165   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7166 $as_echo "$ac_ct_NMEDIT" >&6; }
7167 else
7168   { $as_echo "$as_me:$LINENO: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172   if test "x$ac_ct_NMEDIT" = x; then
7173     NMEDIT=":"
7174   else
7175     case $cross_compiling:$ac_tool_warned in
7176 yes:)
7177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179 ac_tool_warned=yes ;;
7180 esac
7181     NMEDIT=$ac_ct_NMEDIT
7182   fi
7183 else
7184   NMEDIT="$ac_cv_prog_NMEDIT"
7185 fi
7186
7187     if test -n "$ac_tool_prefix"; then
7188   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_LIPO+set}" = set; then
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$LIPO"; then
7196   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203   for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7206     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 LIPO=$ac_cv_prog_LIPO
7216 if test -n "$LIPO"; then
7217   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7218 $as_echo "$LIPO" >&6; }
7219 else
7220   { $as_echo "$as_me:$LINENO: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224
7225 fi
7226 if test -z "$ac_cv_prog_LIPO"; then
7227   ac_ct_LIPO=$LIPO
7228   # Extract the first word of "lipo", so it can be a program name with args.
7229 set dummy lipo; ac_word=$2
7230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7233   $as_echo_n "(cached) " >&6
7234 else
7235   if test -n "$ac_ct_LIPO"; then
7236   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243   for ac_exec_ext in '' $ac_executable_extensions; do
7244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245     ac_cv_prog_ac_ct_LIPO="lipo"
7246     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7256 if test -n "$ac_ct_LIPO"; then
7257   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7258 $as_echo "$ac_ct_LIPO" >&6; }
7259 else
7260   { $as_echo "$as_me:$LINENO: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264   if test "x$ac_ct_LIPO" = x; then
7265     LIPO=":"
7266   else
7267     case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273     LIPO=$ac_ct_LIPO
7274   fi
7275 else
7276   LIPO="$ac_cv_prog_LIPO"
7277 fi
7278
7279     if test -n "$ac_tool_prefix"; then
7280   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}otool; ac_word=$2
7282 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_OTOOL+set}" = set; then
7285   $as_echo_n "(cached) " >&6
7286 else
7287   if test -n "$OTOOL"; then
7288   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7298     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 OTOOL=$ac_cv_prog_OTOOL
7308 if test -n "$OTOOL"; then
7309   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7310 $as_echo "$OTOOL" >&6; }
7311 else
7312   { $as_echo "$as_me:$LINENO: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316
7317 fi
7318 if test -z "$ac_cv_prog_OTOOL"; then
7319   ac_ct_OTOOL=$OTOOL
7320   # Extract the first word of "otool", so it can be a program name with args.
7321 set dummy otool; ac_word=$2
7322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7325   $as_echo_n "(cached) " >&6
7326 else
7327   if test -n "$ac_ct_OTOOL"; then
7328   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_prog_ac_ct_OTOOL="otool"
7338     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7348 if test -n "$ac_ct_OTOOL"; then
7349   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7350 $as_echo "$ac_ct_OTOOL" >&6; }
7351 else
7352   { $as_echo "$as_me:$LINENO: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356   if test "x$ac_ct_OTOOL" = x; then
7357     OTOOL=":"
7358   else
7359     case $cross_compiling:$ac_tool_warned in
7360 yes:)
7361 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7363 ac_tool_warned=yes ;;
7364 esac
7365     OTOOL=$ac_ct_OTOOL
7366   fi
7367 else
7368   OTOOL="$ac_cv_prog_OTOOL"
7369 fi
7370
7371     if test -n "$ac_tool_prefix"; then
7372   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7373 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7377   $as_echo_n "(cached) " >&6
7378 else
7379   if test -n "$OTOOL64"; then
7380   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385   IFS=$as_save_IFS
7386   test -z "$as_dir" && as_dir=.
7387   for ac_exec_ext in '' $ac_executable_extensions; do
7388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7390     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391     break 2
7392   fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 OTOOL64=$ac_cv_prog_OTOOL64
7400 if test -n "$OTOOL64"; then
7401   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7402 $as_echo "$OTOOL64" >&6; }
7403 else
7404   { $as_echo "$as_me:$LINENO: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408
7409 fi
7410 if test -z "$ac_cv_prog_OTOOL64"; then
7411   ac_ct_OTOOL64=$OTOOL64
7412   # Extract the first word of "otool64", so it can be a program name with args.
7413 set dummy otool64; ac_word=$2
7414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7417   $as_echo_n "(cached) " >&6
7418 else
7419   if test -n "$ac_ct_OTOOL64"; then
7420   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_prog_ac_ct_OTOOL64="otool64"
7430     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7440 if test -n "$ac_ct_OTOOL64"; then
7441   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7442 $as_echo "$ac_ct_OTOOL64" >&6; }
7443 else
7444   { $as_echo "$as_me:$LINENO: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448   if test "x$ac_ct_OTOOL64" = x; then
7449     OTOOL64=":"
7450   else
7451     case $cross_compiling:$ac_tool_warned in
7452 yes:)
7453 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7455 ac_tool_warned=yes ;;
7456 esac
7457     OTOOL64=$ac_ct_OTOOL64
7458   fi
7459 else
7460   OTOOL64="$ac_cv_prog_OTOOL64"
7461 fi
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7490 $as_echo_n "checking for -single_module linker flag... " >&6; }
7491 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7492   $as_echo_n "(cached) " >&6
7493 else
7494   lt_cv_apple_cc_single_mod=no
7495       if test -z "${LT_MULTI_MODULE}"; then
7496         # By default we will add the -single_module flag. You can override
7497         # by either setting the environment variable LT_MULTI_MODULE
7498         # non-empty at configure time, or by adding -multi_module to the
7499         # link flags.
7500         rm -rf libconftest.dylib*
7501         echo "int foo(void){return 1;}" > conftest.c
7502         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7503 -dynamiclib -Wl,-single_module conftest.c" >&5
7504         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7505           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7506         _lt_result=$?
7507         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7508           lt_cv_apple_cc_single_mod=yes
7509         else
7510           cat conftest.err >&5
7511         fi
7512         rm -rf libconftest.dylib*
7513         rm -f conftest.*
7514       fi
7515 fi
7516 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7517 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7518     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7519 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7520 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7521   $as_echo_n "(cached) " >&6
7522 else
7523   lt_cv_ld_exported_symbols_list=no
7524       save_LDFLAGS=$LDFLAGS
7525       echo "_main" > conftest.sym
7526       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7527       cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h.  */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h.  */
7533
7534 int
7535 main ()
7536 {
7537
7538   ;
7539   return 0;
7540 }
7541 _ACEOF
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (ac_try="$ac_link"
7544 case "(($ac_try" in
7545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546   *) ac_try_echo=$ac_try;;
7547 esac
7548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7549 $as_echo "$ac_try_echo") >&5
7550   (eval "$ac_link") 2>conftest.er1
7551   ac_status=$?
7552   grep -v '^ *+' conftest.er1 >conftest.err
7553   rm -f conftest.er1
7554   cat conftest.err >&5
7555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556   (exit $ac_status); } && {
7557          test -z "$ac_c_werror_flag" ||
7558          test ! -s conftest.err
7559        } && test -s conftest$ac_exeext && {
7560          test "$cross_compiling" = yes ||
7561          $as_test_x conftest$ac_exeext
7562        }; then
7563   lt_cv_ld_exported_symbols_list=yes
7564 else
7565   $as_echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7567
7568         lt_cv_ld_exported_symbols_list=no
7569 fi
7570
7571 rm -rf conftest.dSYM
7572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7573       conftest$ac_exeext conftest.$ac_ext
7574         LDFLAGS="$save_LDFLAGS"
7575
7576 fi
7577 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7578 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7579     case $host_os in
7580     rhapsody* | darwin1.[012])
7581       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7582     darwin1.*)
7583       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7584     darwin*) # darwin 5.x on
7585       # if running on 10.5 or later, the deployment target defaults
7586       # to the OS version, if on x86, and 10.4, the deployment
7587       # target defaults to 10.4. Don't you love it?
7588       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7589         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7590           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7591         10.[012]*)
7592           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7593         10.*)
7594           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7595       esac
7596     ;;
7597   esac
7598     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7599       _lt_dar_single_mod='$single_module'
7600     fi
7601     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7602       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7603     else
7604       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7605     fi
7606     if test "$DSYMUTIL" != ":"; then
7607       _lt_dsymutil='~$DSYMUTIL $lib || :'
7608     else
7609       _lt_dsymutil=
7610     fi
7611     ;;
7612   esac
7613
7614
7615 for ac_header in dlfcn.h
7616 do
7617 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7618 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7619 $as_echo_n "checking for $ac_header... " >&6; }
7620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7621   $as_echo_n "(cached) " >&6
7622 else
7623   cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h.  */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h.  */
7629 $ac_includes_default
7630
7631 #include <$ac_header>
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (ac_try="$ac_compile"
7635 case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641   (eval "$ac_compile") 2>conftest.er1
7642   ac_status=$?
7643   grep -v '^ *+' conftest.er1 >conftest.err
7644   rm -f conftest.er1
7645   cat conftest.err >&5
7646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); } && {
7648          test -z "$ac_c_werror_flag" ||
7649          test ! -s conftest.err
7650        } && test -s conftest.$ac_objext; then
7651   eval "$as_ac_Header=yes"
7652 else
7653   $as_echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7655
7656         eval "$as_ac_Header=no"
7657 fi
7658
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 fi
7661 ac_res=`eval 'as_val=${'$as_ac_Header'}
7662                  $as_echo "$as_val"'`
7663                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7664 $as_echo "$ac_res" >&6; }
7665 as_val=`eval 'as_val=${'$as_ac_Header'}
7666                  $as_echo "$as_val"'`
7667    if test "x$as_val" = x""yes; then
7668   cat >>confdefs.h <<_ACEOF
7669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7670 _ACEOF
7671
7672 fi
7673
7674 done
7675
7676
7677
7678 # Set options
7679
7680
7681
7682         enable_dlopen=no
7683
7684
7685   enable_win32_dll=no
7686
7687
7688             # Check whether --enable-shared was given.
7689 if test "${enable_shared+set}" = set; then
7690   enableval=$enable_shared; p=${PACKAGE-default}
7691     case $enableval in
7692     yes) enable_shared=yes ;;
7693     no) enable_shared=no ;;
7694     *)
7695       enable_shared=no
7696       # Look at the argument we got.  We use all the common list separators.
7697       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7698       for pkg in $enableval; do
7699         IFS="$lt_save_ifs"
7700         if test "X$pkg" = "X$p"; then
7701           enable_shared=yes
7702         fi
7703       done
7704       IFS="$lt_save_ifs"
7705       ;;
7706     esac
7707 else
7708   enable_shared=yes
7709 fi
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719   # Check whether --enable-static was given.
7720 if test "${enable_static+set}" = set; then
7721   enableval=$enable_static; p=${PACKAGE-default}
7722     case $enableval in
7723     yes) enable_static=yes ;;
7724     no) enable_static=no ;;
7725     *)
7726      enable_static=no
7727       # Look at the argument we got.  We use all the common list separators.
7728       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7729       for pkg in $enableval; do
7730         IFS="$lt_save_ifs"
7731         if test "X$pkg" = "X$p"; then
7732           enable_static=yes
7733         fi
7734       done
7735       IFS="$lt_save_ifs"
7736       ;;
7737     esac
7738 else
7739   enable_static=yes
7740 fi
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751 # Check whether --with-pic was given.
7752 if test "${with_pic+set}" = set; then
7753   withval=$with_pic; pic_mode="$withval"
7754 else
7755   pic_mode=default
7756 fi
7757
7758
7759 test -z "$pic_mode" && pic_mode=default
7760
7761
7762
7763
7764
7765
7766
7767   # Check whether --enable-fast-install was given.
7768 if test "${enable_fast_install+set}" = set; then
7769   enableval=$enable_fast_install; p=${PACKAGE-default}
7770     case $enableval in
7771     yes) enable_fast_install=yes ;;
7772     no) enable_fast_install=no ;;
7773     *)
7774       enable_fast_install=no
7775       # Look at the argument we got.  We use all the common list separators.
7776       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7777       for pkg in $enableval; do
7778         IFS="$lt_save_ifs"
7779         if test "X$pkg" = "X$p"; then
7780           enable_fast_install=yes
7781         fi
7782       done
7783       IFS="$lt_save_ifs"
7784       ;;
7785     esac
7786 else
7787   enable_fast_install=yes
7788 fi
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800 # This can be used to rebuild libtool when needed
7801 LIBTOOL_DEPS="$ltmain"
7802
7803 # Always use our own libtool.
7804 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830 test -z "$LN_S" && LN_S="ln -s"
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 if test -n "${ZSH_VERSION+set}" ; then
7846    setopt NO_GLOB_SUBST
7847 fi
7848
7849 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7850 $as_echo_n "checking for objdir... " >&6; }
7851 if test "${lt_cv_objdir+set}" = set; then
7852   $as_echo_n "(cached) " >&6
7853 else
7854   rm -f .libs 2>/dev/null
7855 mkdir .libs 2>/dev/null
7856 if test -d .libs; then
7857   lt_cv_objdir=.libs
7858 else
7859   # MS-DOS does not allow filenames that begin with a dot.
7860   lt_cv_objdir=_libs
7861 fi
7862 rmdir .libs 2>/dev/null
7863 fi
7864 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7865 $as_echo "$lt_cv_objdir" >&6; }
7866 objdir=$lt_cv_objdir
7867
7868
7869
7870
7871
7872 cat >>confdefs.h <<_ACEOF
7873 #define LT_OBJDIR "$lt_cv_objdir/"
7874 _ACEOF
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892 case $host_os in
7893 aix3*)
7894   # AIX sometimes has problems with the GCC collect2 program.  For some
7895   # reason, if we set the COLLECT_NAMES environment variable, the problems
7896   # vanish in a puff of smoke.
7897   if test "X${COLLECT_NAMES+set}" != Xset; then
7898     COLLECT_NAMES=
7899     export COLLECT_NAMES
7900   fi
7901   ;;
7902 esac
7903
7904 # Sed substitution that helps us do robust quoting.  It backslashifies
7905 # metacharacters that are still active within double-quoted strings.
7906 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7907
7908 # Same as above, but do not quote variable references.
7909 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7910
7911 # Sed substitution to delay expansion of an escaped shell variable in a
7912 # double_quote_subst'ed string.
7913 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7914
7915 # Sed substitution to delay expansion of an escaped single quote.
7916 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7917
7918 # Sed substitution to avoid accidental globbing in evaled expressions
7919 no_glob_subst='s/\*/\\\*/g'
7920
7921 # Global variables:
7922 ofile=libtool
7923 can_build_shared=yes
7924
7925 # All known linkers require a `.a' archive for static linking (except MSVC,
7926 # which needs '.lib').
7927 libext=a
7928
7929 with_gnu_ld="$lt_cv_prog_gnu_ld"
7930
7931 old_CC="$CC"
7932 old_CFLAGS="$CFLAGS"
7933
7934 # Set sane defaults for various variables
7935 test -z "$CC" && CC=cc
7936 test -z "$LTCC" && LTCC=$CC
7937 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7938 test -z "$LD" && LD=ld
7939 test -z "$ac_objext" && ac_objext=o
7940
7941 for cc_temp in $compiler""; do
7942   case $cc_temp in
7943     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7944     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7945     \-*) ;;
7946     *) break;;
7947   esac
7948 done
7949 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7950
7951
7952 # Only perform the check for file, if the check method requires it
7953 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7954 case $deplibs_check_method in
7955 file_magic*)
7956   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7957     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7958 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7960   $as_echo_n "(cached) " >&6
7961 else
7962   case $MAGIC_CMD in
7963 [\\/*] |  ?:[\\/]*)
7964   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7965   ;;
7966 *)
7967   lt_save_MAGIC_CMD="$MAGIC_CMD"
7968   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7969   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7970   for ac_dir in $ac_dummy; do
7971     IFS="$lt_save_ifs"
7972     test -z "$ac_dir" && ac_dir=.
7973     if test -f $ac_dir/${ac_tool_prefix}file; then
7974       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7975       if test -n "$file_magic_test_file"; then
7976         case $deplibs_check_method in
7977         "file_magic "*)
7978           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7979           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7980           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7981             $EGREP "$file_magic_regex" > /dev/null; then
7982             :
7983           else
7984             cat <<_LT_EOF 1>&2
7985
7986 *** Warning: the command libtool uses to detect shared libraries,
7987 *** $file_magic_cmd, produces output that libtool cannot recognize.
7988 *** The result is that libtool may fail to recognize shared libraries
7989 *** as such.  This will affect the creation of libtool libraries that
7990 *** depend on shared libraries, but programs linked with such libtool
7991 *** libraries will work regardless of this problem.  Nevertheless, you
7992 *** may want to report the problem to your system manager and/or to
7993 *** bug-libtool@gnu.org
7994
7995 _LT_EOF
7996           fi ;;
7997         esac
7998       fi
7999       break
8000     fi
8001   done
8002   IFS="$lt_save_ifs"
8003   MAGIC_CMD="$lt_save_MAGIC_CMD"
8004   ;;
8005 esac
8006 fi
8007
8008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8009 if test -n "$MAGIC_CMD"; then
8010   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8011 $as_echo "$MAGIC_CMD" >&6; }
8012 else
8013   { $as_echo "$as_me:$LINENO: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017
8018
8019
8020
8021 if test -z "$lt_cv_path_MAGIC_CMD"; then
8022   if test -n "$ac_tool_prefix"; then
8023     { $as_echo "$as_me:$LINENO: checking for file" >&5
8024 $as_echo_n "checking for file... " >&6; }
8025 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8026   $as_echo_n "(cached) " >&6
8027 else
8028   case $MAGIC_CMD in
8029 [\\/*] |  ?:[\\/]*)
8030   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8031   ;;
8032 *)
8033   lt_save_MAGIC_CMD="$MAGIC_CMD"
8034   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8035   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8036   for ac_dir in $ac_dummy; do
8037     IFS="$lt_save_ifs"
8038     test -z "$ac_dir" && ac_dir=.
8039     if test -f $ac_dir/file; then
8040       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8041       if test -n "$file_magic_test_file"; then
8042         case $deplibs_check_method in
8043         "file_magic "*)
8044           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8045           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8046           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8047             $EGREP "$file_magic_regex" > /dev/null; then
8048             :
8049           else
8050             cat <<_LT_EOF 1>&2
8051
8052 *** Warning: the command libtool uses to detect shared libraries,
8053 *** $file_magic_cmd, produces output that libtool cannot recognize.
8054 *** The result is that libtool may fail to recognize shared libraries
8055 *** as such.  This will affect the creation of libtool libraries that
8056 *** depend on shared libraries, but programs linked with such libtool
8057 *** libraries will work regardless of this problem.  Nevertheless, you
8058 *** may want to report the problem to your system manager and/or to
8059 *** bug-libtool@gnu.org
8060
8061 _LT_EOF
8062           fi ;;
8063         esac
8064       fi
8065       break
8066     fi
8067   done
8068   IFS="$lt_save_ifs"
8069   MAGIC_CMD="$lt_save_MAGIC_CMD"
8070   ;;
8071 esac
8072 fi
8073
8074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8075 if test -n "$MAGIC_CMD"; then
8076   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8077 $as_echo "$MAGIC_CMD" >&6; }
8078 else
8079   { $as_echo "$as_me:$LINENO: result: no" >&5
8080 $as_echo "no" >&6; }
8081 fi
8082
8083
8084   else
8085     MAGIC_CMD=:
8086   fi
8087 fi
8088
8089   fi
8090   ;;
8091 esac
8092
8093 # Use C for the default configuration in the libtool script
8094
8095 lt_save_CC="$CC"
8096 ac_ext=c
8097 ac_cpp='$CPP $CPPFLAGS'
8098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8101
8102
8103 # Source file extension for C test sources.
8104 ac_ext=c
8105
8106 # Object file extension for compiled C test sources.
8107 objext=o
8108 objext=$objext
8109
8110 # Code to be used in simple compile tests
8111 lt_simple_compile_test_code="int some_variable = 0;"
8112
8113 # Code to be used in simple link tests
8114 lt_simple_link_test_code='int main(){return(0);}'
8115
8116
8117
8118
8119
8120
8121
8122 # If no C compiler was specified, use CC.
8123 LTCC=${LTCC-"$CC"}
8124
8125 # If no C compiler flags were specified, use CFLAGS.
8126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8127
8128 # Allow CC to be a program name with arguments.
8129 compiler=$CC
8130
8131 # Save the default compiler, since it gets overwritten when the other
8132 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8133 compiler_DEFAULT=$CC
8134
8135 # save warnings/boilerplate of simple test code
8136 ac_outfile=conftest.$ac_objext
8137 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8138 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8139 _lt_compiler_boilerplate=`cat conftest.err`
8140 $RM conftest*
8141
8142 ac_outfile=conftest.$ac_objext
8143 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8144 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8145 _lt_linker_boilerplate=`cat conftest.err`
8146 $RM -r conftest*
8147
8148
8149 ## CAVEAT EMPTOR:
8150 ## There is no encapsulation within the following macros, do not change
8151 ## the running order or otherwise move them around unless you know exactly
8152 ## what you are doing...
8153 if test -n "$compiler"; then
8154
8155 lt_prog_compiler_no_builtin_flag=
8156
8157 if test "$GCC" = yes; then
8158   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8159
8160   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8161 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8162 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8163   $as_echo_n "(cached) " >&6
8164 else
8165   lt_cv_prog_compiler_rtti_exceptions=no
8166    ac_outfile=conftest.$ac_objext
8167    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8168    lt_compiler_flag="-fno-rtti -fno-exceptions"
8169    # Insert the option either (1) after the last *FLAGS variable, or
8170    # (2) before a word containing "conftest.", or (3) at the end.
8171    # Note that $ac_compile itself does not contain backslashes and begins
8172    # with a dollar sign (not a hyphen), so the echo should work correctly.
8173    # The option is referenced via a variable to avoid confusing sed.
8174    lt_compile=`echo "$ac_compile" | $SED \
8175    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8176    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8177    -e 's:$: $lt_compiler_flag:'`
8178    (eval echo "\"\$as_me:8178: $lt_compile\"" >&5)
8179    (eval "$lt_compile" 2>conftest.err)
8180    ac_status=$?
8181    cat conftest.err >&5
8182    echo "$as_me:8182: \$? = $ac_status" >&5
8183    if (exit $ac_status) && test -s "$ac_outfile"; then
8184      # The compiler can only warn and ignore the option if not recognized
8185      # So say no if there are warnings other than the usual output.
8186      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8187      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8188      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8189        lt_cv_prog_compiler_rtti_exceptions=yes
8190      fi
8191    fi
8192    $RM conftest*
8193
8194 fi
8195 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8196 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8197
8198 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8199     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8200 else
8201     :
8202 fi
8203
8204 fi
8205
8206
8207
8208
8209
8210
8211   lt_prog_compiler_wl=
8212 lt_prog_compiler_pic=
8213 lt_prog_compiler_static=
8214
8215 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8216 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8217
8218   if test "$GCC" = yes; then
8219     lt_prog_compiler_wl='-Wl,'
8220     lt_prog_compiler_static='-static'
8221
8222     case $host_os in
8223       aix*)
8224       # All AIX code is PIC.
8225       if test "$host_cpu" = ia64; then
8226         # AIX 5 now supports IA64 processor
8227         lt_prog_compiler_static='-Bstatic'
8228       fi
8229       ;;
8230
8231     amigaos*)
8232       case $host_cpu in
8233       powerpc)
8234             # see comment about AmigaOS4 .so support
8235             lt_prog_compiler_pic='-fPIC'
8236         ;;
8237       m68k)
8238             # FIXME: we need at least 68020 code to build shared libraries, but
8239             # adding the `-m68020' flag to GCC prevents building anything better,
8240             # like `-m68040'.
8241             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8242         ;;
8243       esac
8244       ;;
8245
8246     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8247       # PIC is the default for these OSes.
8248       ;;
8249
8250     mingw* | cygwin* | pw32* | os2* | cegcc*)
8251       # This hack is so that the source file can tell whether it is being
8252       # built for inclusion in a dll (and should export symbols for example).
8253       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8254       # (--disable-auto-import) libraries
8255       lt_prog_compiler_pic='-DDLL_EXPORT'
8256       ;;
8257
8258     darwin* | rhapsody*)
8259       # PIC is the default on this platform
8260       # Common symbols not allowed in MH_DYLIB files
8261       lt_prog_compiler_pic='-fno-common'
8262       ;;
8263
8264     hpux*)
8265       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8266       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8267       # sets the default TLS model and affects inlining.
8268       case $host_cpu in
8269       hppa*64*)
8270         # +Z the default
8271         ;;
8272       *)
8273         lt_prog_compiler_pic='-fPIC'
8274         ;;
8275       esac
8276       ;;
8277
8278     interix[3-9]*)
8279       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8280       # Instead, we relocate shared libraries at runtime.
8281       ;;
8282
8283     msdosdjgpp*)
8284       # Just because we use GCC doesn't mean we suddenly get shared libraries
8285       # on systems that don't support them.
8286       lt_prog_compiler_can_build_shared=no
8287       enable_shared=no
8288       ;;
8289
8290     *nto* | *qnx*)
8291       # QNX uses GNU C++, but need to define -shared option too, otherwise
8292       # it will coredump.
8293       lt_prog_compiler_pic='-fPIC -shared'
8294       ;;
8295
8296     sysv4*MP*)
8297       if test -d /usr/nec; then
8298         lt_prog_compiler_pic=-Kconform_pic
8299       fi
8300       ;;
8301
8302     *)
8303       lt_prog_compiler_pic='-fPIC'
8304       ;;
8305     esac
8306   else
8307     # PORTME Check for flag to pass linker flags through the system compiler.
8308     case $host_os in
8309     aix*)
8310       lt_prog_compiler_wl='-Wl,'
8311       if test "$host_cpu" = ia64; then
8312         # AIX 5 now supports IA64 processor
8313         lt_prog_compiler_static='-Bstatic'
8314       else
8315         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8316       fi
8317       ;;
8318
8319     mingw* | cygwin* | pw32* | os2* | cegcc*)
8320       # This hack is so that the source file can tell whether it is being
8321       # built for inclusion in a dll (and should export symbols for example).
8322       lt_prog_compiler_pic='-DDLL_EXPORT'
8323       ;;
8324
8325     hpux9* | hpux10* | hpux11*)
8326       lt_prog_compiler_wl='-Wl,'
8327       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8328       # not for PA HP-UX.
8329       case $host_cpu in
8330       hppa*64*|ia64*)
8331         # +Z the default
8332         ;;
8333       *)
8334         lt_prog_compiler_pic='+Z'
8335         ;;
8336       esac
8337       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8338       lt_prog_compiler_static='${wl}-a ${wl}archive'
8339       ;;
8340
8341     irix5* | irix6* | nonstopux*)
8342       lt_prog_compiler_wl='-Wl,'
8343       # PIC (with -KPIC) is the default.
8344       lt_prog_compiler_static='-non_shared'
8345       ;;
8346
8347     linux* | k*bsd*-gnu)
8348       case $cc_basename in
8349       # old Intel for x86_64 which still supported -KPIC.
8350       ecc*)
8351         lt_prog_compiler_wl='-Wl,'
8352         lt_prog_compiler_pic='-KPIC'
8353         lt_prog_compiler_static='-static'
8354         ;;
8355       # icc used to be incompatible with GCC.
8356       # ICC 10 doesn't accept -KPIC any more.
8357       icc* | ifort*)
8358         lt_prog_compiler_wl='-Wl,'
8359         lt_prog_compiler_pic='-fPIC'
8360         lt_prog_compiler_static='-static'
8361         ;;
8362       # Lahey Fortran 8.1.
8363       lf95*)
8364         lt_prog_compiler_wl='-Wl,'
8365         lt_prog_compiler_pic='--shared'
8366         lt_prog_compiler_static='--static'
8367         ;;
8368       pgcc* | pgf77* | pgf90* | pgf95*)
8369         # Portland Group compilers (*not* the Pentium gcc compiler,
8370         # which looks to be a dead project)
8371         lt_prog_compiler_wl='-Wl,'
8372         lt_prog_compiler_pic='-fpic'
8373         lt_prog_compiler_static='-Bstatic'
8374         ;;
8375       ccc*)
8376         lt_prog_compiler_wl='-Wl,'
8377         # All Alpha code is PIC.
8378         lt_prog_compiler_static='-non_shared'
8379         ;;
8380       xl*)
8381         # IBM XL C 8.0/Fortran 10.1 on PPC
8382         lt_prog_compiler_wl='-Wl,'
8383         lt_prog_compiler_pic='-qpic'
8384         lt_prog_compiler_static='-qstaticlink'
8385         ;;
8386       *)
8387         case `$CC -V 2>&1 | sed 5q` in
8388         *Sun\ C*)
8389           # Sun C 5.9
8390           lt_prog_compiler_pic='-KPIC'
8391           lt_prog_compiler_static='-Bstatic'
8392           lt_prog_compiler_wl='-Wl,'
8393           ;;
8394         *Sun\ F*)
8395           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8396           lt_prog_compiler_pic='-KPIC'
8397           lt_prog_compiler_static='-Bstatic'
8398           lt_prog_compiler_wl=''
8399           ;;
8400         esac
8401         ;;
8402       esac
8403       ;;
8404
8405     newsos6)
8406       lt_prog_compiler_pic='-KPIC'
8407       lt_prog_compiler_static='-Bstatic'
8408       ;;
8409
8410     *nto* | *qnx*)
8411       # QNX uses GNU C++, but need to define -shared option too, otherwise
8412       # it will coredump.
8413       lt_prog_compiler_pic='-fPIC -shared'
8414       ;;
8415
8416     osf3* | osf4* | osf5*)
8417       lt_prog_compiler_wl='-Wl,'
8418       # All OSF/1 code is PIC.
8419       lt_prog_compiler_static='-non_shared'
8420       ;;
8421
8422     rdos*)
8423       lt_prog_compiler_static='-non_shared'
8424       ;;
8425
8426     solaris*)
8427       lt_prog_compiler_pic='-KPIC'
8428       lt_prog_compiler_static='-Bstatic'
8429       case $cc_basename in
8430       f77* | f90* | f95*)
8431         lt_prog_compiler_wl='-Qoption ld ';;
8432       *)
8433         lt_prog_compiler_wl='-Wl,';;
8434       esac
8435       ;;
8436
8437     sunos4*)
8438       lt_prog_compiler_wl='-Qoption ld '
8439       lt_prog_compiler_pic='-PIC'
8440       lt_prog_compiler_static='-Bstatic'
8441       ;;
8442
8443     sysv4 | sysv4.2uw2* | sysv4.3*)
8444       lt_prog_compiler_wl='-Wl,'
8445       lt_prog_compiler_pic='-KPIC'
8446       lt_prog_compiler_static='-Bstatic'
8447       ;;
8448
8449     sysv4*MP*)
8450       if test -d /usr/nec ;then
8451         lt_prog_compiler_pic='-Kconform_pic'
8452         lt_prog_compiler_static='-Bstatic'
8453       fi
8454       ;;
8455
8456     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8457       lt_prog_compiler_wl='-Wl,'
8458       lt_prog_compiler_pic='-KPIC'
8459       lt_prog_compiler_static='-Bstatic'
8460       ;;
8461
8462     unicos*)
8463       lt_prog_compiler_wl='-Wl,'
8464       lt_prog_compiler_can_build_shared=no
8465       ;;
8466
8467     uts4*)
8468       lt_prog_compiler_pic='-pic'
8469       lt_prog_compiler_static='-Bstatic'
8470       ;;
8471
8472     *)
8473       lt_prog_compiler_can_build_shared=no
8474       ;;
8475     esac
8476   fi
8477
8478 case $host_os in
8479   # For platforms which do not support PIC, -DPIC is meaningless:
8480   *djgpp*)
8481     lt_prog_compiler_pic=
8482     ;;
8483   *)
8484     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8485     ;;
8486 esac
8487 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8488 $as_echo "$lt_prog_compiler_pic" >&6; }
8489
8490
8491
8492
8493
8494
8495 #
8496 # Check to make sure the PIC flag actually works.
8497 #
8498 if test -n "$lt_prog_compiler_pic"; then
8499   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8500 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8501 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8502   $as_echo_n "(cached) " >&6
8503 else
8504   lt_cv_prog_compiler_pic_works=no
8505    ac_outfile=conftest.$ac_objext
8506    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8507    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8508    # Insert the option either (1) after the last *FLAGS variable, or
8509    # (2) before a word containing "conftest.", or (3) at the end.
8510    # Note that $ac_compile itself does not contain backslashes and begins
8511    # with a dollar sign (not a hyphen), so the echo should work correctly.
8512    # The option is referenced via a variable to avoid confusing sed.
8513    lt_compile=`echo "$ac_compile" | $SED \
8514    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8516    -e 's:$: $lt_compiler_flag:'`
8517    (eval echo "\"\$as_me:8517: $lt_compile\"" >&5)
8518    (eval "$lt_compile" 2>conftest.err)
8519    ac_status=$?
8520    cat conftest.err >&5
8521    echo "$as_me:8521: \$? = $ac_status" >&5
8522    if (exit $ac_status) && test -s "$ac_outfile"; then
8523      # The compiler can only warn and ignore the option if not recognized
8524      # So say no if there are warnings other than the usual output.
8525      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8526      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8527      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8528        lt_cv_prog_compiler_pic_works=yes
8529      fi
8530    fi
8531    $RM conftest*
8532
8533 fi
8534 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8535 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8536
8537 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8538     case $lt_prog_compiler_pic in
8539      "" | " "*) ;;
8540      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8541      esac
8542 else
8543     lt_prog_compiler_pic=
8544      lt_prog_compiler_can_build_shared=no
8545 fi
8546
8547 fi
8548
8549
8550
8551
8552
8553
8554 #
8555 # Check to make sure the static flag actually works.
8556 #
8557 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8558 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8559 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8560 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8561   $as_echo_n "(cached) " >&6
8562 else
8563   lt_cv_prog_compiler_static_works=no
8564    save_LDFLAGS="$LDFLAGS"
8565    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8566    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8567    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8568      # The linker can only warn and ignore the option if not recognized
8569      # So say no if there are warnings
8570      if test -s conftest.err; then
8571        # Append any errors to the config.log.
8572        cat conftest.err 1>&5
8573        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8574        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8575        if diff conftest.exp conftest.er2 >/dev/null; then
8576          lt_cv_prog_compiler_static_works=yes
8577        fi
8578      else
8579        lt_cv_prog_compiler_static_works=yes
8580      fi
8581    fi
8582    $RM -r conftest*
8583    LDFLAGS="$save_LDFLAGS"
8584
8585 fi
8586 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8587 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8588
8589 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8590     :
8591 else
8592     lt_prog_compiler_static=
8593 fi
8594
8595
8596
8597
8598
8599
8600
8601   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8603 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8604   $as_echo_n "(cached) " >&6
8605 else
8606   lt_cv_prog_compiler_c_o=no
8607    $RM -r conftest 2>/dev/null
8608    mkdir conftest
8609    cd conftest
8610    mkdir out
8611    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612
8613    lt_compiler_flag="-o out/conftest2.$ac_objext"
8614    # Insert the option either (1) after the last *FLAGS variable, or
8615    # (2) before a word containing "conftest.", or (3) at the end.
8616    # Note that $ac_compile itself does not contain backslashes and begins
8617    # with a dollar sign (not a hyphen), so the echo should work correctly.
8618    lt_compile=`echo "$ac_compile" | $SED \
8619    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621    -e 's:$: $lt_compiler_flag:'`
8622    (eval echo "\"\$as_me:8622: $lt_compile\"" >&5)
8623    (eval "$lt_compile" 2>out/conftest.err)
8624    ac_status=$?
8625    cat out/conftest.err >&5
8626    echo "$as_me:8626: \$? = $ac_status" >&5
8627    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8628    then
8629      # The compiler can only warn and ignore the option if not recognized
8630      # So say no if there are warnings
8631      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8632      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8633      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8634        lt_cv_prog_compiler_c_o=yes
8635      fi
8636    fi
8637    chmod u+w . 2>&5
8638    $RM conftest*
8639    # SGI C++ compiler will create directory out/ii_files/ for
8640    # template instantiation
8641    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8642    $RM out/* && rmdir out
8643    cd ..
8644    $RM -r conftest
8645    $RM conftest*
8646
8647 fi
8648 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8649 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8650
8651
8652
8653
8654
8655
8656   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8657 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8658 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8659   $as_echo_n "(cached) " >&6
8660 else
8661   lt_cv_prog_compiler_c_o=no
8662    $RM -r conftest 2>/dev/null
8663    mkdir conftest
8664    cd conftest
8665    mkdir out
8666    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8667
8668    lt_compiler_flag="-o out/conftest2.$ac_objext"
8669    # Insert the option either (1) after the last *FLAGS variable, or
8670    # (2) before a word containing "conftest.", or (3) at the end.
8671    # Note that $ac_compile itself does not contain backslashes and begins
8672    # with a dollar sign (not a hyphen), so the echo should work correctly.
8673    lt_compile=`echo "$ac_compile" | $SED \
8674    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8675    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8676    -e 's:$: $lt_compiler_flag:'`
8677    (eval echo "\"\$as_me:8677: $lt_compile\"" >&5)
8678    (eval "$lt_compile" 2>out/conftest.err)
8679    ac_status=$?
8680    cat out/conftest.err >&5
8681    echo "$as_me:8681: \$? = $ac_status" >&5
8682    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8683    then
8684      # The compiler can only warn and ignore the option if not recognized
8685      # So say no if there are warnings
8686      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8687      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8688      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8689        lt_cv_prog_compiler_c_o=yes
8690      fi
8691    fi
8692    chmod u+w . 2>&5
8693    $RM conftest*
8694    # SGI C++ compiler will create directory out/ii_files/ for
8695    # template instantiation
8696    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8697    $RM out/* && rmdir out
8698    cd ..
8699    $RM -r conftest
8700    $RM conftest*
8701
8702 fi
8703 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8704 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8705
8706
8707
8708
8709 hard_links="nottested"
8710 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8711   # do not overwrite the value of need_locks provided by the user
8712   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8713 $as_echo_n "checking if we can lock with hard links... " >&6; }
8714   hard_links=yes
8715   $RM conftest*
8716   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8717   touch conftest.a
8718   ln conftest.a conftest.b 2>&5 || hard_links=no
8719   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8720   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8721 $as_echo "$hard_links" >&6; }
8722   if test "$hard_links" = no; then
8723     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8724 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8725     need_locks=warn
8726   fi
8727 else
8728   need_locks=no
8729 fi
8730
8731
8732
8733
8734
8735
8736   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8737 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8738
8739   runpath_var=
8740   allow_undefined_flag=
8741   always_export_symbols=no
8742   archive_cmds=
8743   archive_expsym_cmds=
8744   compiler_needs_object=no
8745   enable_shared_with_static_runtimes=no
8746   export_dynamic_flag_spec=
8747   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8748   hardcode_automatic=no
8749   hardcode_direct=no
8750   hardcode_direct_absolute=no
8751   hardcode_libdir_flag_spec=
8752   hardcode_libdir_flag_spec_ld=
8753   hardcode_libdir_separator=
8754   hardcode_minus_L=no
8755   hardcode_shlibpath_var=unsupported
8756   inherit_rpath=no
8757   link_all_deplibs=unknown
8758   module_cmds=
8759   module_expsym_cmds=
8760   old_archive_from_new_cmds=
8761   old_archive_from_expsyms_cmds=
8762   thread_safe_flag_spec=
8763   whole_archive_flag_spec=
8764   # include_expsyms should be a list of space-separated symbols to be *always*
8765   # included in the symbol list
8766   include_expsyms=
8767   # exclude_expsyms can be an extended regexp of symbols to exclude
8768   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8769   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8770   # as well as any symbol that contains `d'.
8771   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8772   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8773   # platforms (ab)use it in PIC code, but their linkers get confused if
8774   # the symbol is explicitly referenced.  Since portable code cannot
8775   # rely on this symbol name, it's probably fine to never include it in
8776   # preloaded symbol tables.
8777   # Exclude shared library initialization/finalization symbols.
8778   extract_expsyms_cmds=
8779
8780   case $host_os in
8781   cygwin* | mingw* | pw32* | cegcc*)
8782     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8783     # When not using gcc, we currently assume that we are using
8784     # Microsoft Visual C++.
8785     if test "$GCC" != yes; then
8786       with_gnu_ld=no
8787     fi
8788     ;;
8789   interix*)
8790     # we just hope/assume this is gcc and not c89 (= MSVC++)
8791     with_gnu_ld=yes
8792     ;;
8793   openbsd*)
8794     with_gnu_ld=no
8795     ;;
8796   esac
8797
8798   ld_shlibs=yes
8799   if test "$with_gnu_ld" = yes; then
8800     # If archive_cmds runs LD, not CC, wlarc should be empty
8801     wlarc='${wl}'
8802
8803     # Set some defaults for GNU ld with shared library support. These
8804     # are reset later if shared libraries are not supported. Putting them
8805     # here allows them to be overridden if necessary.
8806     runpath_var=LD_RUN_PATH
8807     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808     export_dynamic_flag_spec='${wl}--export-dynamic'
8809     # ancient GNU ld didn't support --whole-archive et. al.
8810     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8811       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8812     else
8813       whole_archive_flag_spec=
8814     fi
8815     supports_anon_versioning=no
8816     case `$LD -v 2>&1` in
8817       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8818       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8819       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8820       *\ 2.11.*) ;; # other 2.11 versions
8821       *) supports_anon_versioning=yes ;;
8822     esac
8823
8824     # See if GNU ld supports shared libraries.
8825     case $host_os in
8826     aix[3-9]*)
8827       # On AIX/PPC, the GNU linker is very broken
8828       if test "$host_cpu" != ia64; then
8829         ld_shlibs=no
8830         cat <<_LT_EOF 1>&2
8831
8832 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8833 *** to be unable to reliably create shared libraries on AIX.
8834 *** Therefore, libtool is disabling shared libraries support.  If you
8835 *** really care for shared libraries, you may want to modify your PATH
8836 *** so that a non-GNU linker is found, and then restart.
8837
8838 _LT_EOF
8839       fi
8840       ;;
8841
8842     amigaos*)
8843       case $host_cpu in
8844       powerpc)
8845             # see comment about AmigaOS4 .so support
8846             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8847             archive_expsym_cmds=''
8848         ;;
8849       m68k)
8850             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)'
8851             hardcode_libdir_flag_spec='-L$libdir'
8852             hardcode_minus_L=yes
8853         ;;
8854       esac
8855       ;;
8856
8857     beos*)
8858       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8859         allow_undefined_flag=unsupported
8860         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8861         # support --undefined.  This deserves some investigation.  FIXME
8862         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863       else
8864         ld_shlibs=no
8865       fi
8866       ;;
8867
8868     cygwin* | mingw* | pw32* | cegcc*)
8869       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8870       # as there is no search path for DLLs.
8871       hardcode_libdir_flag_spec='-L$libdir'
8872       allow_undefined_flag=unsupported
8873       always_export_symbols=no
8874       enable_shared_with_static_runtimes=yes
8875       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8876
8877       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8878         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8879         # If the export-symbols file already is a .def file (1st line
8880         # is EXPORTS), use it as is; otherwise, prepend...
8881         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8882           cp $export_symbols $output_objdir/$soname.def;
8883         else
8884           echo EXPORTS > $output_objdir/$soname.def;
8885           cat $export_symbols >> $output_objdir/$soname.def;
8886         fi~
8887         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8888       else
8889         ld_shlibs=no
8890       fi
8891       ;;
8892
8893     interix[3-9]*)
8894       hardcode_direct=no
8895       hardcode_shlibpath_var=no
8896       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8897       export_dynamic_flag_spec='${wl}-E'
8898       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8899       # Instead, shared libraries are loaded at an image base (0x10000000 by
8900       # default) and relocated if they conflict, which is a slow very memory
8901       # consuming and fragmenting process.  To avoid this, we pick a random,
8902       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8903       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8904       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8905       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'
8906       ;;
8907
8908     gnu* | linux* | tpf* | k*bsd*-gnu)
8909       tmp_diet=no
8910       if test "$host_os" = linux-dietlibc; then
8911         case $cc_basename in
8912           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8913         esac
8914       fi
8915       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8916          && test "$tmp_diet" = no
8917       then
8918         tmp_addflag=
8919         tmp_sharedflag='-shared'
8920         case $cc_basename,$host_cpu in
8921         pgcc*)                          # Portland Group C compiler
8922           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8923           tmp_addflag=' $pic_flag'
8924           ;;
8925         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8926           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8927           tmp_addflag=' $pic_flag -Mnomain' ;;
8928         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8929           tmp_addflag=' -i_dynamic' ;;
8930         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8931           tmp_addflag=' -i_dynamic -nofor_main' ;;
8932         ifc* | ifort*)                  # Intel Fortran compiler
8933           tmp_addflag=' -nofor_main' ;;
8934         lf95*)                          # Lahey Fortran 8.1
8935           whole_archive_flag_spec=
8936           tmp_sharedflag='--shared' ;;
8937         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8938           tmp_sharedflag='-qmkshrobj'
8939           tmp_addflag= ;;
8940         esac
8941         case `$CC -V 2>&1 | sed 5q` in
8942         *Sun\ C*)                       # Sun C 5.9
8943           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8944           compiler_needs_object=yes
8945           tmp_sharedflag='-G' ;;
8946         *Sun\ F*)                       # Sun Fortran 8.3
8947           tmp_sharedflag='-G' ;;
8948         esac
8949         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8950
8951         if test "x$supports_anon_versioning" = xyes; then
8952           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8953             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8954             echo "local: *; };" >> $output_objdir/$libname.ver~
8955             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8956         fi
8957
8958         case $cc_basename in
8959         xlf*)
8960           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8961           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8962           hardcode_libdir_flag_spec=
8963           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8964           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8965           if test "x$supports_anon_versioning" = xyes; then
8966             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8967               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8968               echo "local: *; };" >> $output_objdir/$libname.ver~
8969               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8970           fi
8971           ;;
8972         esac
8973       else
8974         ld_shlibs=no
8975       fi
8976       ;;
8977
8978     netbsd*)
8979       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8980         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8981         wlarc=
8982       else
8983         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8985       fi
8986       ;;
8987
8988     solaris*)
8989       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8990         ld_shlibs=no
8991         cat <<_LT_EOF 1>&2
8992
8993 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8994 *** create shared libraries on Solaris systems.  Therefore, libtool
8995 *** is disabling shared libraries support.  We urge you to upgrade GNU
8996 *** binutils to release 2.9.1 or newer.  Another option is to modify
8997 *** your PATH or compiler configuration so that the native linker is
8998 *** used, and then restart.
8999
9000 _LT_EOF
9001       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9002         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9003         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004       else
9005         ld_shlibs=no
9006       fi
9007       ;;
9008
9009     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9010       case `$LD -v 2>&1` in
9011         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9012         ld_shlibs=no
9013         cat <<_LT_EOF 1>&2
9014
9015 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9016 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9017 *** is disabling shared libraries support.  We urge you to upgrade GNU
9018 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9019 *** your PATH or compiler configuration so that the native linker is
9020 *** used, and then restart.
9021
9022 _LT_EOF
9023         ;;
9024         *)
9025           # For security reasons, it is highly recommended that you always
9026           # use absolute paths for naming shared libraries, and exclude the
9027           # DT_RUNPATH tag from executables and libraries.  But doing so
9028           # requires that you compile everything twice, which is a pain.
9029           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9031             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9033           else
9034             ld_shlibs=no
9035           fi
9036         ;;
9037       esac
9038       ;;
9039
9040     sunos4*)
9041       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9042       wlarc=
9043       hardcode_direct=yes
9044       hardcode_shlibpath_var=no
9045       ;;
9046
9047     *)
9048       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9049         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9050         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9051       else
9052         ld_shlibs=no
9053       fi
9054       ;;
9055     esac
9056
9057     if test "$ld_shlibs" = no; then
9058       runpath_var=
9059       hardcode_libdir_flag_spec=
9060       export_dynamic_flag_spec=
9061       whole_archive_flag_spec=
9062     fi
9063   else
9064     # PORTME fill in a description of your system's linker (not GNU ld)
9065     case $host_os in
9066     aix3*)
9067       allow_undefined_flag=unsupported
9068       always_export_symbols=yes
9069       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'
9070       # Note: this linker hardcodes the directories in LIBPATH if there
9071       # are no directories specified by -L.
9072       hardcode_minus_L=yes
9073       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9074         # Neither direct hardcoding nor static linking is supported with a
9075         # broken collect2.
9076         hardcode_direct=unsupported
9077       fi
9078       ;;
9079
9080     aix[4-9]*)
9081       if test "$host_cpu" = ia64; then
9082         # On IA64, the linker does run time linking by default, so we don't
9083         # have to do anything special.
9084         aix_use_runtimelinking=no
9085         exp_sym_flag='-Bexport'
9086         no_entry_flag=""
9087       else
9088         # If we're using GNU nm, then we don't want the "-C" option.
9089         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9090         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9091           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9092         else
9093           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'
9094         fi
9095         aix_use_runtimelinking=no
9096
9097         # Test if we are trying to use run time linking or normal
9098         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9099         # need to do runtime linking.
9100         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9101           for ld_flag in $LDFLAGS; do
9102           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9103             aix_use_runtimelinking=yes
9104             break
9105           fi
9106           done
9107           ;;
9108         esac
9109
9110         exp_sym_flag='-bexport'
9111         no_entry_flag='-bnoentry'
9112       fi
9113
9114       # When large executables or shared objects are built, AIX ld can
9115       # have problems creating the table of contents.  If linking a library
9116       # or program results in "error TOC overflow" add -mminimal-toc to
9117       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9118       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9119
9120       archive_cmds=''
9121       hardcode_direct=yes
9122       hardcode_direct_absolute=yes
9123       hardcode_libdir_separator=':'
9124       link_all_deplibs=yes
9125       file_list_spec='${wl}-f,'
9126
9127       if test "$GCC" = yes; then
9128         case $host_os in aix4.[012]|aix4.[012].*)
9129         # We only want to do this on AIX 4.2 and lower, the check
9130         # below for broken collect2 doesn't work under 4.3+
9131           collect2name=`${CC} -print-prog-name=collect2`
9132           if test -f "$collect2name" &&
9133            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9134           then
9135           # We have reworked collect2
9136           :
9137           else
9138           # We have old collect2
9139           hardcode_direct=unsupported
9140           # It fails to find uninstalled libraries when the uninstalled
9141           # path is not listed in the libpath.  Setting hardcode_minus_L
9142           # to unsupported forces relinking
9143           hardcode_minus_L=yes
9144           hardcode_libdir_flag_spec='-L$libdir'
9145           hardcode_libdir_separator=
9146           fi
9147           ;;
9148         esac
9149         shared_flag='-shared'
9150         if test "$aix_use_runtimelinking" = yes; then
9151           shared_flag="$shared_flag "'${wl}-G'
9152         fi
9153       else
9154         # not using gcc
9155         if test "$host_cpu" = ia64; then
9156         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9157         # chokes on -Wl,-G. The following line is correct:
9158           shared_flag='-G'
9159         else
9160           if test "$aix_use_runtimelinking" = yes; then
9161             shared_flag='${wl}-G'
9162           else
9163             shared_flag='${wl}-bM:SRE'
9164           fi
9165         fi
9166       fi
9167
9168       export_dynamic_flag_spec='${wl}-bexpall'
9169       # It seems that -bexpall does not export symbols beginning with
9170       # underscore (_), so it is better to generate a list of symbols to export.
9171       always_export_symbols=yes
9172       if test "$aix_use_runtimelinking" = yes; then
9173         # Warning - without using the other runtime loading flags (-brtl),
9174         # -berok will link without error, but may produce a broken library.
9175         allow_undefined_flag='-berok'
9176         # Determine the default libpath from the value encoded in an
9177         # empty executable.
9178         cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h.  */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h.  */
9184
9185 int
9186 main ()
9187 {
9188
9189   ;
9190   return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (ac_try="$ac_link"
9195 case "(($ac_try" in
9196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197   *) ac_try_echo=$ac_try;;
9198 esac
9199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9200 $as_echo "$ac_try_echo") >&5
9201   (eval "$ac_link") 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } && {
9208          test -z "$ac_c_werror_flag" ||
9209          test ! -s conftest.err
9210        } && test -s conftest$ac_exeext && {
9211          test "$cross_compiling" = yes ||
9212          $as_test_x conftest$ac_exeext
9213        }; then
9214
9215 lt_aix_libpath_sed='
9216     /Import File Strings/,/^$/ {
9217         /^0/ {
9218             s/^0  *\(.*\)$/\1/
9219             p
9220         }
9221     }'
9222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9223 # Check for a 64-bit object if we didn't find anything.
9224 if test -z "$aix_libpath"; then
9225   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226 fi
9227 else
9228   $as_echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231
9232 fi
9233
9234 rm -rf conftest.dSYM
9235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9236       conftest$ac_exeext conftest.$ac_ext
9237 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9238
9239         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9240         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9241       else
9242         if test "$host_cpu" = ia64; then
9243           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9244           allow_undefined_flag="-z nodefs"
9245           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"
9246         else
9247          # Determine the default libpath from the value encoded in an
9248          # empty executable.
9249          cat >conftest.$ac_ext <<_ACEOF
9250 /* confdefs.h.  */
9251 _ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h.  */
9255
9256 int
9257 main ()
9258 {
9259
9260   ;
9261   return 0;
9262 }
9263 _ACEOF
9264 rm -f conftest.$ac_objext conftest$ac_exeext
9265 if { (ac_try="$ac_link"
9266 case "(($ac_try" in
9267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268   *) ac_try_echo=$ac_try;;
9269 esac
9270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9271 $as_echo "$ac_try_echo") >&5
9272   (eval "$ac_link") 2>conftest.er1
9273   ac_status=$?
9274   grep -v '^ *+' conftest.er1 >conftest.err
9275   rm -f conftest.er1
9276   cat conftest.err >&5
9277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); } && {
9279          test -z "$ac_c_werror_flag" ||
9280          test ! -s conftest.err
9281        } && test -s conftest$ac_exeext && {
9282          test "$cross_compiling" = yes ||
9283          $as_test_x conftest$ac_exeext
9284        }; then
9285
9286 lt_aix_libpath_sed='
9287     /Import File Strings/,/^$/ {
9288         /^0/ {
9289             s/^0  *\(.*\)$/\1/
9290             p
9291         }
9292     }'
9293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9294 # Check for a 64-bit object if we didn't find anything.
9295 if test -z "$aix_libpath"; then
9296   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9297 fi
9298 else
9299   $as_echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302
9303 fi
9304
9305 rm -rf conftest.dSYM
9306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9307       conftest$ac_exeext conftest.$ac_ext
9308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9309
9310          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9311           # Warning - without using the other run time loading flags,
9312           # -berok will link without error, but may produce a broken library.
9313           no_undefined_flag=' ${wl}-bernotok'
9314           allow_undefined_flag=' ${wl}-berok'
9315           # Exported symbols can be pulled into shared objects from archives
9316           whole_archive_flag_spec='$convenience'
9317           archive_cmds_need_lc=yes
9318           # This is similar to how AIX traditionally builds its shared libraries.
9319           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'
9320         fi
9321       fi
9322       ;;
9323
9324     amigaos*)
9325       case $host_cpu in
9326       powerpc)
9327             # see comment about AmigaOS4 .so support
9328             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9329             archive_expsym_cmds=''
9330         ;;
9331       m68k)
9332             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)'
9333             hardcode_libdir_flag_spec='-L$libdir'
9334             hardcode_minus_L=yes
9335         ;;
9336       esac
9337       ;;
9338
9339     bsdi[45]*)
9340       export_dynamic_flag_spec=-rdynamic
9341       ;;
9342
9343     cygwin* | mingw* | pw32* | cegcc*)
9344       # When not using gcc, we currently assume that we are using
9345       # Microsoft Visual C++.
9346       # hardcode_libdir_flag_spec is actually meaningless, as there is
9347       # no search path for DLLs.
9348       hardcode_libdir_flag_spec=' '
9349       allow_undefined_flag=unsupported
9350       # Tell ltmain to make .lib files, not .a files.
9351       libext=lib
9352       # Tell ltmain to make .dll files, not .so files.
9353       shrext_cmds=".dll"
9354       # FIXME: Setting linknames here is a bad hack.
9355       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9356       # The linker will automatically build a .lib file if we build a DLL.
9357       old_archive_from_new_cmds='true'
9358       # FIXME: Should let the user specify the lib program.
9359       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9360       fix_srcfile_path='`cygpath -w "$srcfile"`'
9361       enable_shared_with_static_runtimes=yes
9362       ;;
9363
9364     darwin* | rhapsody*)
9365
9366
9367   archive_cmds_need_lc=no
9368   hardcode_direct=no
9369   hardcode_automatic=yes
9370   hardcode_shlibpath_var=unsupported
9371   whole_archive_flag_spec=''
9372   link_all_deplibs=yes
9373   allow_undefined_flag="$_lt_dar_allow_undefined"
9374   case $cc_basename in
9375      ifort*) _lt_dar_can_shared=yes ;;
9376      *) _lt_dar_can_shared=$GCC ;;
9377   esac
9378   if test "$_lt_dar_can_shared" = "yes"; then
9379     output_verbose_link_cmd=echo
9380     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9381     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9382     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}"
9383     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}"
9384
9385   else
9386   ld_shlibs=no
9387   fi
9388
9389       ;;
9390
9391     dgux*)
9392       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9393       hardcode_libdir_flag_spec='-L$libdir'
9394       hardcode_shlibpath_var=no
9395       ;;
9396
9397     freebsd1*)
9398       ld_shlibs=no
9399       ;;
9400
9401     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9402     # support.  Future versions do this automatically, but an explicit c++rt0.o
9403     # does not break anything, and helps significantly (at the cost of a little
9404     # extra space).
9405     freebsd2.2*)
9406       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9407       hardcode_libdir_flag_spec='-R$libdir'
9408       hardcode_direct=yes
9409       hardcode_shlibpath_var=no
9410       ;;
9411
9412     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9413     freebsd2*)
9414       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9415       hardcode_direct=yes
9416       hardcode_minus_L=yes
9417       hardcode_shlibpath_var=no
9418       ;;
9419
9420     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9421     freebsd* | dragonfly*)
9422       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9423       hardcode_libdir_flag_spec='-R$libdir'
9424       hardcode_direct=yes
9425       hardcode_shlibpath_var=no
9426       ;;
9427
9428     hpux9*)
9429       if test "$GCC" = yes; then
9430         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9431       else
9432         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'
9433       fi
9434       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435       hardcode_libdir_separator=:
9436       hardcode_direct=yes
9437
9438       # hardcode_minus_L: Not really in the search PATH,
9439       # but as the default location of the library.
9440       hardcode_minus_L=yes
9441       export_dynamic_flag_spec='${wl}-E'
9442       ;;
9443
9444     hpux10*)
9445       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9446         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9447       else
9448         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9449       fi
9450       if test "$with_gnu_ld" = no; then
9451         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9452         hardcode_libdir_flag_spec_ld='+b $libdir'
9453         hardcode_libdir_separator=:
9454         hardcode_direct=yes
9455         hardcode_direct_absolute=yes
9456         export_dynamic_flag_spec='${wl}-E'
9457         # hardcode_minus_L: Not really in the search PATH,
9458         # but as the default location of the library.
9459         hardcode_minus_L=yes
9460       fi
9461       ;;
9462
9463     hpux11*)
9464       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9465         case $host_cpu in
9466         hppa*64*)
9467           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9468           ;;
9469         ia64*)
9470           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9471           ;;
9472         *)
9473           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9474           ;;
9475         esac
9476       else
9477         case $host_cpu in
9478         hppa*64*)
9479           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9480           ;;
9481         ia64*)
9482           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9483           ;;
9484         *)
9485           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9486           ;;
9487         esac
9488       fi
9489       if test "$with_gnu_ld" = no; then
9490         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9491         hardcode_libdir_separator=:
9492
9493         case $host_cpu in
9494         hppa*64*|ia64*)
9495           hardcode_direct=no
9496           hardcode_shlibpath_var=no
9497           ;;
9498         *)
9499           hardcode_direct=yes
9500           hardcode_direct_absolute=yes
9501           export_dynamic_flag_spec='${wl}-E'
9502
9503           # hardcode_minus_L: Not really in the search PATH,
9504           # but as the default location of the library.
9505           hardcode_minus_L=yes
9506           ;;
9507         esac
9508       fi
9509       ;;
9510
9511     irix5* | irix6* | nonstopux*)
9512       if test "$GCC" = yes; then
9513         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9514         # Try to use the -exported_symbol ld option, if it does not
9515         # work, assume that -exports_file does not work either and
9516         # implicitly export all symbols.
9517         save_LDFLAGS="$LDFLAGS"
9518         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9519         cat >conftest.$ac_ext <<_ACEOF
9520 int foo(void) {}
9521 _ACEOF
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (ac_try="$ac_link"
9524 case "(($ac_try" in
9525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526   *) ac_try_echo=$ac_try;;
9527 esac
9528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9529 $as_echo "$ac_try_echo") >&5
9530   (eval "$ac_link") 2>conftest.er1
9531   ac_status=$?
9532   grep -v '^ *+' conftest.er1 >conftest.err
9533   rm -f conftest.er1
9534   cat conftest.err >&5
9535   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } && {
9537          test -z "$ac_c_werror_flag" ||
9538          test ! -s conftest.err
9539        } && test -s conftest$ac_exeext && {
9540          test "$cross_compiling" = yes ||
9541          $as_test_x conftest$ac_exeext
9542        }; then
9543   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9544
9545 else
9546   $as_echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9548
9549
9550 fi
9551
9552 rm -rf conftest.dSYM
9553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9554       conftest$ac_exeext conftest.$ac_ext
9555         LDFLAGS="$save_LDFLAGS"
9556       else
9557         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9558         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9559       fi
9560       archive_cmds_need_lc='no'
9561       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9562       hardcode_libdir_separator=:
9563       inherit_rpath=yes
9564       link_all_deplibs=yes
9565       ;;
9566
9567     netbsd*)
9568       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9569         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9570       else
9571         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9572       fi
9573       hardcode_libdir_flag_spec='-R$libdir'
9574       hardcode_direct=yes
9575       hardcode_shlibpath_var=no
9576       ;;
9577
9578     newsos6)
9579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580       hardcode_direct=yes
9581       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9582       hardcode_libdir_separator=:
9583       hardcode_shlibpath_var=no
9584       ;;
9585
9586     *nto* | *qnx*)
9587       ;;
9588
9589     openbsd*)
9590       if test -f /usr/libexec/ld.so; then
9591         hardcode_direct=yes
9592         hardcode_shlibpath_var=no
9593         hardcode_direct_absolute=yes
9594         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9595           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9597           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9598           export_dynamic_flag_spec='${wl}-E'
9599         else
9600           case $host_os in
9601            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9602              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9603              hardcode_libdir_flag_spec='-R$libdir'
9604              ;;
9605            *)
9606              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9607              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9608              ;;
9609           esac
9610         fi
9611       else
9612         ld_shlibs=no
9613       fi
9614       ;;
9615
9616     os2*)
9617       hardcode_libdir_flag_spec='-L$libdir'
9618       hardcode_minus_L=yes
9619       allow_undefined_flag=unsupported
9620       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'
9621       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9622       ;;
9623
9624     osf3*)
9625       if test "$GCC" = yes; then
9626         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9627         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9628       else
9629         allow_undefined_flag=' -expect_unresolved \*'
9630         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9631       fi
9632       archive_cmds_need_lc='no'
9633       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9634       hardcode_libdir_separator=:
9635       ;;
9636
9637     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9638       if test "$GCC" = yes; then
9639         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9640         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9641         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9642       else
9643         allow_undefined_flag=' -expect_unresolved \*'
9644         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9645         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~
9646         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9647
9648         # Both c and cxx compiler support -rpath directly
9649         hardcode_libdir_flag_spec='-rpath $libdir'
9650       fi
9651       archive_cmds_need_lc='no'
9652       hardcode_libdir_separator=:
9653       ;;
9654
9655     solaris*)
9656       no_undefined_flag=' -z defs'
9657       if test "$GCC" = yes; then
9658         wlarc='${wl}'
9659         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9660         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9661           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9662       else
9663         case `$CC -V 2>&1` in
9664         *"Compilers 5.0"*)
9665           wlarc=''
9666           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9668           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9669           ;;
9670         *)
9671           wlarc='${wl}'
9672           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9673           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9674           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9675           ;;
9676         esac
9677       fi
9678       hardcode_libdir_flag_spec='-R$libdir'
9679       hardcode_shlibpath_var=no
9680       case $host_os in
9681       solaris2.[0-5] | solaris2.[0-5].*) ;;
9682       *)
9683         # The compiler driver will combine and reorder linker options,
9684         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9685         # but is careful enough not to reorder.
9686         # Supported since Solaris 2.6 (maybe 2.5.1?)
9687         if test "$GCC" = yes; then
9688           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9689         else
9690           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9691         fi
9692         ;;
9693       esac
9694       link_all_deplibs=yes
9695       ;;
9696
9697     sunos4*)
9698       if test "x$host_vendor" = xsequent; then
9699         # Use $CC to link under sequent, because it throws in some extra .o
9700         # files that make .init and .fini sections work.
9701         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9702       else
9703         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9704       fi
9705       hardcode_libdir_flag_spec='-L$libdir'
9706       hardcode_direct=yes
9707       hardcode_minus_L=yes
9708       hardcode_shlibpath_var=no
9709       ;;
9710
9711     sysv4)
9712       case $host_vendor in
9713         sni)
9714           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9715           hardcode_direct=yes # is this really true???
9716         ;;
9717         siemens)
9718           ## LD is ld it makes a PLAMLIB
9719           ## CC just makes a GrossModule.
9720           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9721           reload_cmds='$CC -r -o $output$reload_objs'
9722           hardcode_direct=no
9723         ;;
9724         motorola)
9725           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9727         ;;
9728       esac
9729       runpath_var='LD_RUN_PATH'
9730       hardcode_shlibpath_var=no
9731       ;;
9732
9733     sysv4.3*)
9734       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735       hardcode_shlibpath_var=no
9736       export_dynamic_flag_spec='-Bexport'
9737       ;;
9738
9739     sysv4*MP*)
9740       if test -d /usr/nec; then
9741         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742         hardcode_shlibpath_var=no
9743         runpath_var=LD_RUN_PATH
9744         hardcode_runpath_var=yes
9745         ld_shlibs=yes
9746       fi
9747       ;;
9748
9749     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9750       no_undefined_flag='${wl}-z,text'
9751       archive_cmds_need_lc=no
9752       hardcode_shlibpath_var=no
9753       runpath_var='LD_RUN_PATH'
9754
9755       if test "$GCC" = yes; then
9756         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758       else
9759         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9761       fi
9762       ;;
9763
9764     sysv5* | sco3.2v5* | sco5v6*)
9765       # Note: We can NOT use -z defs as we might desire, because we do not
9766       # link with -lc, and that would cause any symbols used from libc to
9767       # always be unresolved, which means just about no library would
9768       # ever link correctly.  If we're not using GNU ld we use -z text
9769       # though, which does catch some bad symbols but isn't as heavy-handed
9770       # as -z defs.
9771       no_undefined_flag='${wl}-z,text'
9772       allow_undefined_flag='${wl}-z,nodefs'
9773       archive_cmds_need_lc=no
9774       hardcode_shlibpath_var=no
9775       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9776       hardcode_libdir_separator=':'
9777       link_all_deplibs=yes
9778       export_dynamic_flag_spec='${wl}-Bexport'
9779       runpath_var='LD_RUN_PATH'
9780
9781       if test "$GCC" = yes; then
9782         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9784       else
9785         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9786         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9787       fi
9788       ;;
9789
9790     uts4*)
9791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792       hardcode_libdir_flag_spec='-L$libdir'
9793       hardcode_shlibpath_var=no
9794       ;;
9795
9796     *)
9797       ld_shlibs=no
9798       ;;
9799     esac
9800
9801     if test x$host_vendor = xsni; then
9802       case $host in
9803       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9804         export_dynamic_flag_spec='${wl}-Blargedynsym'
9805         ;;
9806       esac
9807     fi
9808   fi
9809
9810 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9811 $as_echo "$ld_shlibs" >&6; }
9812 test "$ld_shlibs" = no && can_build_shared=no
9813
9814 with_gnu_ld=$with_gnu_ld
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830 #
9831 # Do we need to explicitly link libc?
9832 #
9833 case "x$archive_cmds_need_lc" in
9834 x|xyes)
9835   # Assume -lc should be added
9836   archive_cmds_need_lc=yes
9837
9838   if test "$enable_shared" = yes && test "$GCC" = yes; then
9839     case $archive_cmds in
9840     *'~'*)
9841       # FIXME: we may have to deal with multi-command sequences.
9842       ;;
9843     '$CC '*)
9844       # Test whether the compiler implicitly links with -lc since on some
9845       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9846       # to ld, don't add -lc before -lgcc.
9847       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9848 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9849       $RM conftest*
9850       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9851
9852       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9853   (eval $ac_compile) 2>&5
9854   ac_status=$?
9855   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } 2>conftest.err; then
9857         soname=conftest
9858         lib=conftest
9859         libobjs=conftest.$ac_objext
9860         deplibs=
9861         wl=$lt_prog_compiler_wl
9862         pic_flag=$lt_prog_compiler_pic
9863         compiler_flags=-v
9864         linker_flags=-v
9865         verstring=
9866         output_objdir=.
9867         libname=conftest
9868         lt_save_allow_undefined_flag=$allow_undefined_flag
9869         allow_undefined_flag=
9870         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9871   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9872   ac_status=$?
9873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }
9875         then
9876           archive_cmds_need_lc=no
9877         else
9878           archive_cmds_need_lc=yes
9879         fi
9880         allow_undefined_flag=$lt_save_allow_undefined_flag
9881       else
9882         cat conftest.err 1>&5
9883       fi
9884       $RM conftest*
9885       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9886 $as_echo "$archive_cmds_need_lc" >&6; }
9887       ;;
9888     esac
9889   fi
9890   ;;
9891 esac
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10050 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10051
10052 if test "$GCC" = yes; then
10053   case $host_os in
10054     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10055     *) lt_awk_arg="/^libraries:/" ;;
10056   esac
10057   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10058   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10059     # if the path contains ";" then we assume it to be the separator
10060     # otherwise default to the standard path separator (i.e. ":") - it is
10061     # assumed that no part of a normal pathname contains ";" but that should
10062     # okay in the real world where ";" in dirpaths is itself problematic.
10063     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10064   else
10065     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10066   fi
10067   # Ok, now we have the path, separated by spaces, we can step through it
10068   # and add multilib dir if necessary.
10069   lt_tmp_lt_search_path_spec=
10070   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10071   for lt_sys_path in $lt_search_path_spec; do
10072     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10073       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10074     else
10075       test -d "$lt_sys_path" && \
10076         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10077     fi
10078   done
10079   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10080 BEGIN {RS=" "; FS="/|\n";} {
10081   lt_foo="";
10082   lt_count=0;
10083   for (lt_i = NF; lt_i > 0; lt_i--) {
10084     if ($lt_i != "" && $lt_i != ".") {
10085       if ($lt_i == "..") {
10086         lt_count++;
10087       } else {
10088         if (lt_count == 0) {
10089           lt_foo="/" $lt_i lt_foo;
10090         } else {
10091           lt_count--;
10092         }
10093       }
10094     }
10095   }
10096   if (lt_foo != "") { lt_freq[lt_foo]++; }
10097   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10098 }'`
10099   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10100 else
10101   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10102 fi
10103 library_names_spec=
10104 libname_spec='lib$name'
10105 soname_spec=
10106 shrext_cmds=".so"
10107 postinstall_cmds=
10108 postuninstall_cmds=
10109 finish_cmds=
10110 finish_eval=
10111 shlibpath_var=
10112 shlibpath_overrides_runpath=unknown
10113 version_type=none
10114 dynamic_linker="$host_os ld.so"
10115 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10116 need_lib_prefix=unknown
10117 hardcode_into_libs=no
10118
10119 # when you set need_version to no, make sure it does not cause -set_version
10120 # flags to be left without arguments
10121 need_version=unknown
10122
10123 case $host_os in
10124 aix3*)
10125   version_type=linux
10126   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10127   shlibpath_var=LIBPATH
10128
10129   # AIX 3 has no versioning support, so we append a major version to the name.
10130   soname_spec='${libname}${release}${shared_ext}$major'
10131   ;;
10132
10133 aix[4-9]*)
10134   version_type=linux
10135   need_lib_prefix=no
10136   need_version=no
10137   hardcode_into_libs=yes
10138   if test "$host_cpu" = ia64; then
10139     # AIX 5 supports IA64
10140     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10141     shlibpath_var=LD_LIBRARY_PATH
10142   else
10143     # With GCC up to 2.95.x, collect2 would create an import file
10144     # for dependence libraries.  The import file would start with
10145     # the line `#! .'.  This would cause the generated library to
10146     # depend on `.', always an invalid library.  This was fixed in
10147     # development snapshots of GCC prior to 3.0.
10148     case $host_os in
10149       aix4 | aix4.[01] | aix4.[01].*)
10150       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10151            echo ' yes '
10152            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10153         :
10154       else
10155         can_build_shared=no
10156       fi
10157       ;;
10158     esac
10159     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10160     # soname into executable. Probably we can add versioning support to
10161     # collect2, so additional links can be useful in future.
10162     if test "$aix_use_runtimelinking" = yes; then
10163       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10164       # instead of lib<name>.a to let people know that these are not
10165       # typical AIX shared libraries.
10166       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167     else
10168       # We preserve .a as extension for shared libraries through AIX4.2
10169       # and later when we are not doing run time linking.
10170       library_names_spec='${libname}${release}.a $libname.a'
10171       soname_spec='${libname}${release}${shared_ext}$major'
10172     fi
10173     shlibpath_var=LIBPATH
10174   fi
10175   ;;
10176
10177 amigaos*)
10178   case $host_cpu in
10179   powerpc)
10180     # Since July 2007 AmigaOS4 officially supports .so libraries.
10181     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183     ;;
10184   m68k)
10185     library_names_spec='$libname.ixlibrary $libname.a'
10186     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10187     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10188     ;;
10189   esac
10190   ;;
10191
10192 beos*)
10193   library_names_spec='${libname}${shared_ext}'
10194   dynamic_linker="$host_os ld.so"
10195   shlibpath_var=LIBRARY_PATH
10196   ;;
10197
10198 bsdi[45]*)
10199   version_type=linux
10200   need_version=no
10201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202   soname_spec='${libname}${release}${shared_ext}$major'
10203   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10204   shlibpath_var=LD_LIBRARY_PATH
10205   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10206   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10207   # the default ld.so.conf also contains /usr/contrib/lib and
10208   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10209   # libtool to hard-code these into programs
10210   ;;
10211
10212 cygwin* | mingw* | pw32* | cegcc*)
10213   version_type=windows
10214   shrext_cmds=".dll"
10215   need_version=no
10216   need_lib_prefix=no
10217
10218   case $GCC,$host_os in
10219   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10220     library_names_spec='$libname.dll.a'
10221     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10222     postinstall_cmds='base_file=`basename \${file}`~
10223       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10224       dldir=$destdir/`dirname \$dlpath`~
10225       test -d \$dldir || mkdir -p \$dldir~
10226       $install_prog $dir/$dlname \$dldir/$dlname~
10227       chmod a+x \$dldir/$dlname~
10228       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10229         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10230       fi'
10231     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10232       dlpath=$dir/\$dldll~
10233        $RM \$dlpath'
10234     shlibpath_overrides_runpath=yes
10235
10236     case $host_os in
10237     cygwin*)
10238       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10239       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10240       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10241       ;;
10242     mingw* | cegcc*)
10243       # MinGW DLLs use traditional 'lib' prefix
10244       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10245       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10246       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10247         # It is most probably a Windows format PATH printed by
10248         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10249         # path with ; separators, and with drive letters. We can handle the
10250         # drive letters (cygwin fileutils understands them), so leave them,
10251         # especially as we might pass files found there to a mingw objdump,
10252         # which wouldn't understand a cygwinified path. Ahh.
10253         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10254       else
10255         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10256       fi
10257       ;;
10258     pw32*)
10259       # pw32 DLLs use 'pw' prefix rather than 'lib'
10260       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10261       ;;
10262     esac
10263     ;;
10264
10265   *)
10266     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10267     ;;
10268   esac
10269   dynamic_linker='Win32 ld.exe'
10270   # FIXME: first we should search . and the directory the executable is in
10271   shlibpath_var=PATH
10272   ;;
10273
10274 darwin* | rhapsody*)
10275   dynamic_linker="$host_os dyld"
10276   version_type=darwin
10277   need_lib_prefix=no
10278   need_version=no
10279   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10280   soname_spec='${libname}${release}${major}$shared_ext'
10281   shlibpath_overrides_runpath=yes
10282   shlibpath_var=DYLD_LIBRARY_PATH
10283   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10284
10285   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10286   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10287   ;;
10288
10289 dgux*)
10290   version_type=linux
10291   need_lib_prefix=no
10292   need_version=no
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10294   soname_spec='${libname}${release}${shared_ext}$major'
10295   shlibpath_var=LD_LIBRARY_PATH
10296   ;;
10297
10298 freebsd1*)
10299   dynamic_linker=no
10300   ;;
10301
10302 freebsd* | dragonfly*)
10303   # DragonFly does not have aout.  When/if they implement a new
10304   # versioning mechanism, adjust this.
10305   if test -x /usr/bin/objformat; then
10306     objformat=`/usr/bin/objformat`
10307   else
10308     case $host_os in
10309     freebsd[123]*) objformat=aout ;;
10310     *) objformat=elf ;;
10311     esac
10312   fi
10313   version_type=freebsd-$objformat
10314   case $version_type in
10315     freebsd-elf*)
10316       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10317       need_version=no
10318       need_lib_prefix=no
10319       ;;
10320     freebsd-*)
10321       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10322       need_version=yes
10323       ;;
10324   esac
10325   shlibpath_var=LD_LIBRARY_PATH
10326   case $host_os in
10327   freebsd2*)
10328     shlibpath_overrides_runpath=yes
10329     ;;
10330   freebsd3.[01]* | freebsdelf3.[01]*)
10331     shlibpath_overrides_runpath=yes
10332     hardcode_into_libs=yes
10333     ;;
10334   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10335   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10336     shlibpath_overrides_runpath=no
10337     hardcode_into_libs=yes
10338     ;;
10339   *) # from 4.6 on, and DragonFly
10340     shlibpath_overrides_runpath=yes
10341     hardcode_into_libs=yes
10342     ;;
10343   esac
10344   ;;
10345
10346 gnu*)
10347   version_type=linux
10348   need_lib_prefix=no
10349   need_version=no
10350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10351   soname_spec='${libname}${release}${shared_ext}$major'
10352   shlibpath_var=LD_LIBRARY_PATH
10353   hardcode_into_libs=yes
10354   ;;
10355
10356 hpux9* | hpux10* | hpux11*)
10357   # Give a soname corresponding to the major version so that dld.sl refuses to
10358   # link against other versions.
10359   version_type=sunos
10360   need_lib_prefix=no
10361   need_version=no
10362   case $host_cpu in
10363   ia64*)
10364     shrext_cmds='.so'
10365     hardcode_into_libs=yes
10366     dynamic_linker="$host_os dld.so"
10367     shlibpath_var=LD_LIBRARY_PATH
10368     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370     soname_spec='${libname}${release}${shared_ext}$major'
10371     if test "X$HPUX_IA64_MODE" = X32; then
10372       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10373     else
10374       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10375     fi
10376     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10377     ;;
10378   hppa*64*)
10379     shrext_cmds='.sl'
10380     hardcode_into_libs=yes
10381     dynamic_linker="$host_os dld.sl"
10382     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10383     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385     soname_spec='${libname}${release}${shared_ext}$major'
10386     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10387     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10388     ;;
10389   *)
10390     shrext_cmds='.sl'
10391     dynamic_linker="$host_os dld.sl"
10392     shlibpath_var=SHLIB_PATH
10393     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10394     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395     soname_spec='${libname}${release}${shared_ext}$major'
10396     ;;
10397   esac
10398   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10399   postinstall_cmds='chmod 555 $lib'
10400   ;;
10401
10402 interix[3-9]*)
10403   version_type=linux
10404   need_lib_prefix=no
10405   need_version=no
10406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10407   soname_spec='${libname}${release}${shared_ext}$major'
10408   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10409   shlibpath_var=LD_LIBRARY_PATH
10410   shlibpath_overrides_runpath=no
10411   hardcode_into_libs=yes
10412   ;;
10413
10414 irix5* | irix6* | nonstopux*)
10415   case $host_os in
10416     nonstopux*) version_type=nonstopux ;;
10417     *)
10418         if test "$lt_cv_prog_gnu_ld" = yes; then
10419                 version_type=linux
10420         else
10421                 version_type=irix
10422         fi ;;
10423   esac
10424   need_lib_prefix=no
10425   need_version=no
10426   soname_spec='${libname}${release}${shared_ext}$major'
10427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10428   case $host_os in
10429   irix5* | nonstopux*)
10430     libsuff= shlibsuff=
10431     ;;
10432   *)
10433     case $LD in # libtool.m4 will add one of these switches to LD
10434     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10435       libsuff= shlibsuff= libmagic=32-bit;;
10436     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10437       libsuff=32 shlibsuff=N32 libmagic=N32;;
10438     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10439       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10440     *) libsuff= shlibsuff= libmagic=never-match;;
10441     esac
10442     ;;
10443   esac
10444   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10445   shlibpath_overrides_runpath=no
10446   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10447   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10448   hardcode_into_libs=yes
10449   ;;
10450
10451 # No shared lib support for Linux oldld, aout, or coff.
10452 linux*oldld* | linux*aout* | linux*coff*)
10453   dynamic_linker=no
10454   ;;
10455
10456 # This must be Linux ELF.
10457 linux* | k*bsd*-gnu)
10458   version_type=linux
10459   need_lib_prefix=no
10460   need_version=no
10461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462   soname_spec='${libname}${release}${shared_ext}$major'
10463   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10464   shlibpath_var=LD_LIBRARY_PATH
10465   shlibpath_overrides_runpath=no
10466   # Some binutils ld are patched to set DT_RUNPATH
10467   save_LDFLAGS=$LDFLAGS
10468   save_libdir=$libdir
10469   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10470        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10471   cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477
10478 int
10479 main ()
10480 {
10481
10482   ;
10483   return 0;
10484 }
10485 _ACEOF
10486 rm -f conftest.$ac_objext conftest$ac_exeext
10487 if { (ac_try="$ac_link"
10488 case "(($ac_try" in
10489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10490   *) ac_try_echo=$ac_try;;
10491 esac
10492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10493 $as_echo "$ac_try_echo") >&5
10494   (eval "$ac_link") 2>conftest.er1
10495   ac_status=$?
10496   grep -v '^ *+' conftest.er1 >conftest.err
10497   rm -f conftest.er1
10498   cat conftest.err >&5
10499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); } && {
10501          test -z "$ac_c_werror_flag" ||
10502          test ! -s conftest.err
10503        } && test -s conftest$ac_exeext && {
10504          test "$cross_compiling" = yes ||
10505          $as_test_x conftest$ac_exeext
10506        }; then
10507   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10508   shlibpath_overrides_runpath=yes
10509 fi
10510
10511 else
10512   $as_echo "$as_me: failed program was:" >&5
10513 sed 's/^/| /' conftest.$ac_ext >&5
10514
10515
10516 fi
10517
10518 rm -rf conftest.dSYM
10519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10520       conftest$ac_exeext conftest.$ac_ext
10521   LDFLAGS=$save_LDFLAGS
10522   libdir=$save_libdir
10523
10524   # This implies no fast_install, which is unacceptable.
10525   # Some rework will be needed to allow for fast_install
10526   # before this can be enabled.
10527   hardcode_into_libs=yes
10528
10529   # Add ABI-specific directories to the system library path.
10530   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10531
10532   # Append ld.so.conf contents to the search path
10533   if test -f /etc/ld.so.conf; then
10534     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;/^$/d' | tr '\n' ' '`
10535     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10536   fi
10537
10538   # We used to test for /lib/ld.so.1 and disable shared libraries on
10539   # powerpc, because MkLinux only supported shared libraries with the
10540   # GNU dynamic linker.  Since this was broken with cross compilers,
10541   # most powerpc-linux boxes support dynamic linking these days and
10542   # people can always --disable-shared, the test was removed, and we
10543   # assume the GNU/Linux dynamic linker is in use.
10544   dynamic_linker='GNU/Linux ld.so'
10545   ;;
10546
10547 netbsd*)
10548   version_type=sunos
10549   need_lib_prefix=no
10550   need_version=no
10551   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10552     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10553     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10554     dynamic_linker='NetBSD (a.out) ld.so'
10555   else
10556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10557     soname_spec='${libname}${release}${shared_ext}$major'
10558     dynamic_linker='NetBSD ld.elf_so'
10559   fi
10560   shlibpath_var=LD_LIBRARY_PATH
10561   shlibpath_overrides_runpath=yes
10562   hardcode_into_libs=yes
10563   ;;
10564
10565 newsos6)
10566   version_type=linux
10567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568   shlibpath_var=LD_LIBRARY_PATH
10569   shlibpath_overrides_runpath=yes
10570   ;;
10571
10572 *nto* | *qnx*)
10573   version_type=qnx
10574   need_lib_prefix=no
10575   need_version=no
10576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577   soname_spec='${libname}${release}${shared_ext}$major'
10578   shlibpath_var=LD_LIBRARY_PATH
10579   shlibpath_overrides_runpath=no
10580   hardcode_into_libs=yes
10581   dynamic_linker='ldqnx.so'
10582   ;;
10583
10584 openbsd*)
10585   version_type=sunos
10586   sys_lib_dlsearch_path_spec="/usr/lib"
10587   need_lib_prefix=no
10588   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10589   case $host_os in
10590     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10591     *)                          need_version=no  ;;
10592   esac
10593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10594   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10595   shlibpath_var=LD_LIBRARY_PATH
10596   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10597     case $host_os in
10598       openbsd2.[89] | openbsd2.[89].*)
10599         shlibpath_overrides_runpath=no
10600         ;;
10601       *)
10602         shlibpath_overrides_runpath=yes
10603         ;;
10604       esac
10605   else
10606     shlibpath_overrides_runpath=yes
10607   fi
10608   ;;
10609
10610 os2*)
10611   libname_spec='$name'
10612   shrext_cmds=".dll"
10613   need_lib_prefix=no
10614   library_names_spec='$libname${shared_ext} $libname.a'
10615   dynamic_linker='OS/2 ld.exe'
10616   shlibpath_var=LIBPATH
10617   ;;
10618
10619 osf3* | osf4* | osf5*)
10620   version_type=osf
10621   need_lib_prefix=no
10622   need_version=no
10623   soname_spec='${libname}${release}${shared_ext}$major'
10624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625   shlibpath_var=LD_LIBRARY_PATH
10626   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10627   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10628   ;;
10629
10630 rdos*)
10631   dynamic_linker=no
10632   ;;
10633
10634 solaris*)
10635   version_type=linux
10636   need_lib_prefix=no
10637   need_version=no
10638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639   soname_spec='${libname}${release}${shared_ext}$major'
10640   shlibpath_var=LD_LIBRARY_PATH
10641   shlibpath_overrides_runpath=yes
10642   hardcode_into_libs=yes
10643   # ldd complains unless libraries are executable
10644   postinstall_cmds='chmod +x $lib'
10645   ;;
10646
10647 sunos4*)
10648   version_type=sunos
10649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10650   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10651   shlibpath_var=LD_LIBRARY_PATH
10652   shlibpath_overrides_runpath=yes
10653   if test "$with_gnu_ld" = yes; then
10654     need_lib_prefix=no
10655   fi
10656   need_version=yes
10657   ;;
10658
10659 sysv4 | sysv4.3*)
10660   version_type=linux
10661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662   soname_spec='${libname}${release}${shared_ext}$major'
10663   shlibpath_var=LD_LIBRARY_PATH
10664   case $host_vendor in
10665     sni)
10666       shlibpath_overrides_runpath=no
10667       need_lib_prefix=no
10668       runpath_var=LD_RUN_PATH
10669       ;;
10670     siemens)
10671       need_lib_prefix=no
10672       ;;
10673     motorola)
10674       need_lib_prefix=no
10675       need_version=no
10676       shlibpath_overrides_runpath=no
10677       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10678       ;;
10679   esac
10680   ;;
10681
10682 sysv4*MP*)
10683   if test -d /usr/nec ;then
10684     version_type=linux
10685     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10686     soname_spec='$libname${shared_ext}.$major'
10687     shlibpath_var=LD_LIBRARY_PATH
10688   fi
10689   ;;
10690
10691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10692   version_type=freebsd-elf
10693   need_lib_prefix=no
10694   need_version=no
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10696   soname_spec='${libname}${release}${shared_ext}$major'
10697   shlibpath_var=LD_LIBRARY_PATH
10698   shlibpath_overrides_runpath=yes
10699   hardcode_into_libs=yes
10700   if test "$with_gnu_ld" = yes; then
10701     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10702   else
10703     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10704     case $host_os in
10705       sco3.2v5*)
10706         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10707         ;;
10708     esac
10709   fi
10710   sys_lib_dlsearch_path_spec='/usr/lib'
10711   ;;
10712
10713 tpf*)
10714   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10715   version_type=linux
10716   need_lib_prefix=no
10717   need_version=no
10718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719   shlibpath_var=LD_LIBRARY_PATH
10720   shlibpath_overrides_runpath=no
10721   hardcode_into_libs=yes
10722   ;;
10723
10724 uts4*)
10725   version_type=linux
10726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727   soname_spec='${libname}${release}${shared_ext}$major'
10728   shlibpath_var=LD_LIBRARY_PATH
10729   ;;
10730
10731 *)
10732   dynamic_linker=no
10733   ;;
10734 esac
10735 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10736 $as_echo "$dynamic_linker" >&6; }
10737 test "$dynamic_linker" = no && can_build_shared=no
10738
10739 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10740 if test "$GCC" = yes; then
10741   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10742 fi
10743
10744 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10745   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10746 fi
10747 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10748   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10749 fi
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10838 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10839 hardcode_action=
10840 if test -n "$hardcode_libdir_flag_spec" ||
10841    test -n "$runpath_var" ||
10842    test "X$hardcode_automatic" = "Xyes" ; then
10843
10844   # We can hardcode non-existent directories.
10845   if test "$hardcode_direct" != no &&
10846      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10847      # have to relink, otherwise we might link with an installed library
10848      # when we should be linking with a yet-to-be-installed one
10849      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10850      test "$hardcode_minus_L" != no; then
10851     # Linking always hardcodes the temporary library directory.
10852     hardcode_action=relink
10853   else
10854     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10855     hardcode_action=immediate
10856   fi
10857 else
10858   # We cannot hardcode anything, or else we can only hardcode existing
10859   # directories.
10860   hardcode_action=unsupported
10861 fi
10862 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10863 $as_echo "$hardcode_action" >&6; }
10864
10865 if test "$hardcode_action" = relink ||
10866    test "$inherit_rpath" = yes; then
10867   # Fast installation is not supported
10868   enable_fast_install=no
10869 elif test "$shlibpath_overrides_runpath" = yes ||
10870      test "$enable_shared" = no; then
10871   # Fast installation is not necessary
10872   enable_fast_install=needless
10873 fi
10874
10875
10876
10877
10878
10879
10880   if test "x$enable_dlopen" != xyes; then
10881   enable_dlopen=unknown
10882   enable_dlopen_self=unknown
10883   enable_dlopen_self_static=unknown
10884 else
10885   lt_cv_dlopen=no
10886   lt_cv_dlopen_libs=
10887
10888   case $host_os in
10889   beos*)
10890     lt_cv_dlopen="load_add_on"
10891     lt_cv_dlopen_libs=
10892     lt_cv_dlopen_self=yes
10893     ;;
10894
10895   mingw* | pw32* | cegcc*)
10896     lt_cv_dlopen="LoadLibrary"
10897     lt_cv_dlopen_libs=
10898     ;;
10899
10900   cygwin*)
10901     lt_cv_dlopen="dlopen"
10902     lt_cv_dlopen_libs=
10903     ;;
10904
10905   darwin*)
10906   # if libdl is installed we need to link against it
10907     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10908 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10909 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10910   $as_echo_n "(cached) " >&6
10911 else
10912   ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-ldl  $LIBS"
10914 cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h.  */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h.  */
10920
10921 /* Override any GCC internal prototype to avoid an error.
10922    Use char because int might match the return type of a GCC
10923    builtin and then its argument prototype would still apply.  */
10924 #ifdef __cplusplus
10925 extern "C"
10926 #endif
10927 char dlopen ();
10928 int
10929 main ()
10930 {
10931 return dlopen ();
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (ac_try="$ac_link"
10938 case "(($ac_try" in
10939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940   *) ac_try_echo=$ac_try;;
10941 esac
10942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10943 $as_echo "$ac_try_echo") >&5
10944   (eval "$ac_link") 2>conftest.er1
10945   ac_status=$?
10946   grep -v '^ *+' conftest.er1 >conftest.err
10947   rm -f conftest.er1
10948   cat conftest.err >&5
10949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } && {
10951          test -z "$ac_c_werror_flag" ||
10952          test ! -s conftest.err
10953        } && test -s conftest$ac_exeext && {
10954          test "$cross_compiling" = yes ||
10955          $as_test_x conftest$ac_exeext
10956        }; then
10957   ac_cv_lib_dl_dlopen=yes
10958 else
10959   $as_echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962         ac_cv_lib_dl_dlopen=no
10963 fi
10964
10965 rm -rf conftest.dSYM
10966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10967       conftest$ac_exeext conftest.$ac_ext
10968 LIBS=$ac_check_lib_save_LIBS
10969 fi
10970 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10971 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10972 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10973   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10974 else
10975
10976     lt_cv_dlopen="dyld"
10977     lt_cv_dlopen_libs=
10978     lt_cv_dlopen_self=yes
10979
10980 fi
10981
10982     ;;
10983
10984   *)
10985     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10986 $as_echo_n "checking for shl_load... " >&6; }
10987 if test "${ac_cv_func_shl_load+set}" = set; then
10988   $as_echo_n "(cached) " >&6
10989 else
10990   cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10998 #define shl_load innocuous_shl_load
10999
11000 /* System header to define __stub macros and hopefully few prototypes,
11001     which can conflict with char shl_load (); below.
11002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11003     <limits.h> exists even on freestanding compilers.  */
11004
11005 #ifdef __STDC__
11006 # include <limits.h>
11007 #else
11008 # include <assert.h>
11009 #endif
11010
11011 #undef shl_load
11012
11013 /* Override any GCC internal prototype to avoid an error.
11014    Use char because int might match the return type of a GCC
11015    builtin and then its argument prototype would still apply.  */
11016 #ifdef __cplusplus
11017 extern "C"
11018 #endif
11019 char shl_load ();
11020 /* The GNU C library defines this for functions which it implements
11021     to always fail with ENOSYS.  Some functions are actually named
11022     something starting with __ and the normal name is an alias.  */
11023 #if defined __stub_shl_load || defined __stub___shl_load
11024 choke me
11025 #endif
11026
11027 int
11028 main ()
11029 {
11030 return shl_load ();
11031   ;
11032   return 0;
11033 }
11034 _ACEOF
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (ac_try="$ac_link"
11037 case "(($ac_try" in
11038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039   *) ac_try_echo=$ac_try;;
11040 esac
11041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11042 $as_echo "$ac_try_echo") >&5
11043   (eval "$ac_link") 2>conftest.er1
11044   ac_status=$?
11045   grep -v '^ *+' conftest.er1 >conftest.err
11046   rm -f conftest.er1
11047   cat conftest.err >&5
11048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); } && {
11050          test -z "$ac_c_werror_flag" ||
11051          test ! -s conftest.err
11052        } && test -s conftest$ac_exeext && {
11053          test "$cross_compiling" = yes ||
11054          $as_test_x conftest$ac_exeext
11055        }; then
11056   ac_cv_func_shl_load=yes
11057 else
11058   $as_echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11060
11061         ac_cv_func_shl_load=no
11062 fi
11063
11064 rm -rf conftest.dSYM
11065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11066       conftest$ac_exeext conftest.$ac_ext
11067 fi
11068 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11069 $as_echo "$ac_cv_func_shl_load" >&6; }
11070 if test "x$ac_cv_func_shl_load" = x""yes; then
11071   lt_cv_dlopen="shl_load"
11072 else
11073   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11074 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11075 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11076   $as_echo_n "(cached) " >&6
11077 else
11078   ac_check_lib_save_LIBS=$LIBS
11079 LIBS="-ldld  $LIBS"
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h.  */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h.  */
11086
11087 /* Override any GCC internal prototype to avoid an error.
11088    Use char because int might match the return type of a GCC
11089    builtin and then its argument prototype would still apply.  */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 char shl_load ();
11094 int
11095 main ()
11096 {
11097 return shl_load ();
11098   ;
11099   return 0;
11100 }
11101 _ACEOF
11102 rm -f conftest.$ac_objext conftest$ac_exeext
11103 if { (ac_try="$ac_link"
11104 case "(($ac_try" in
11105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106   *) ac_try_echo=$ac_try;;
11107 esac
11108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11109 $as_echo "$ac_try_echo") >&5
11110   (eval "$ac_link") 2>conftest.er1
11111   ac_status=$?
11112   grep -v '^ *+' conftest.er1 >conftest.err
11113   rm -f conftest.er1
11114   cat conftest.err >&5
11115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); } && {
11117          test -z "$ac_c_werror_flag" ||
11118          test ! -s conftest.err
11119        } && test -s conftest$ac_exeext && {
11120          test "$cross_compiling" = yes ||
11121          $as_test_x conftest$ac_exeext
11122        }; then
11123   ac_cv_lib_dld_shl_load=yes
11124 else
11125   $as_echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11127
11128         ac_cv_lib_dld_shl_load=no
11129 fi
11130
11131 rm -rf conftest.dSYM
11132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11133       conftest$ac_exeext conftest.$ac_ext
11134 LIBS=$ac_check_lib_save_LIBS
11135 fi
11136 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11137 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11138 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11139   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11140 else
11141   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11142 $as_echo_n "checking for dlopen... " >&6; }
11143 if test "${ac_cv_func_dlopen+set}" = set; then
11144   $as_echo_n "(cached) " >&6
11145 else
11146   cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h.  */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h.  */
11152 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11154 #define dlopen innocuous_dlopen
11155
11156 /* System header to define __stub macros and hopefully few prototypes,
11157     which can conflict with char dlopen (); below.
11158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11159     <limits.h> exists even on freestanding compilers.  */
11160
11161 #ifdef __STDC__
11162 # include <limits.h>
11163 #else
11164 # include <assert.h>
11165 #endif
11166
11167 #undef dlopen
11168
11169 /* Override any GCC internal prototype to avoid an error.
11170    Use char because int might match the return type of a GCC
11171    builtin and then its argument prototype would still apply.  */
11172 #ifdef __cplusplus
11173 extern "C"
11174 #endif
11175 char dlopen ();
11176 /* The GNU C library defines this for functions which it implements
11177     to always fail with ENOSYS.  Some functions are actually named
11178     something starting with __ and the normal name is an alias.  */
11179 #if defined __stub_dlopen || defined __stub___dlopen
11180 choke me
11181 #endif
11182
11183 int
11184 main ()
11185 {
11186 return dlopen ();
11187   ;
11188   return 0;
11189 }
11190 _ACEOF
11191 rm -f conftest.$ac_objext conftest$ac_exeext
11192 if { (ac_try="$ac_link"
11193 case "(($ac_try" in
11194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195   *) ac_try_echo=$ac_try;;
11196 esac
11197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11198 $as_echo "$ac_try_echo") >&5
11199   (eval "$ac_link") 2>conftest.er1
11200   ac_status=$?
11201   grep -v '^ *+' conftest.er1 >conftest.err
11202   rm -f conftest.er1
11203   cat conftest.err >&5
11204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); } && {
11206          test -z "$ac_c_werror_flag" ||
11207          test ! -s conftest.err
11208        } && test -s conftest$ac_exeext && {
11209          test "$cross_compiling" = yes ||
11210          $as_test_x conftest$ac_exeext
11211        }; then
11212   ac_cv_func_dlopen=yes
11213 else
11214   $as_echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217         ac_cv_func_dlopen=no
11218 fi
11219
11220 rm -rf conftest.dSYM
11221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11222       conftest$ac_exeext conftest.$ac_ext
11223 fi
11224 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11225 $as_echo "$ac_cv_func_dlopen" >&6; }
11226 if test "x$ac_cv_func_dlopen" = x""yes; then
11227   lt_cv_dlopen="dlopen"
11228 else
11229   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11230 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11231 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11232   $as_echo_n "(cached) " >&6
11233 else
11234   ac_check_lib_save_LIBS=$LIBS
11235 LIBS="-ldl  $LIBS"
11236 cat >conftest.$ac_ext <<_ACEOF
11237 /* confdefs.h.  */
11238 _ACEOF
11239 cat confdefs.h >>conftest.$ac_ext
11240 cat >>conftest.$ac_ext <<_ACEOF
11241 /* end confdefs.h.  */
11242
11243 /* Override any GCC internal prototype to avoid an error.
11244    Use char because int might match the return type of a GCC
11245    builtin and then its argument prototype would still apply.  */
11246 #ifdef __cplusplus
11247 extern "C"
11248 #endif
11249 char dlopen ();
11250 int
11251 main ()
11252 {
11253 return dlopen ();
11254   ;
11255   return 0;
11256 }
11257 _ACEOF
11258 rm -f conftest.$ac_objext conftest$ac_exeext
11259 if { (ac_try="$ac_link"
11260 case "(($ac_try" in
11261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262   *) ac_try_echo=$ac_try;;
11263 esac
11264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11265 $as_echo "$ac_try_echo") >&5
11266   (eval "$ac_link") 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } && {
11273          test -z "$ac_c_werror_flag" ||
11274          test ! -s conftest.err
11275        } && test -s conftest$ac_exeext && {
11276          test "$cross_compiling" = yes ||
11277          $as_test_x conftest$ac_exeext
11278        }; then
11279   ac_cv_lib_dl_dlopen=yes
11280 else
11281   $as_echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284         ac_cv_lib_dl_dlopen=no
11285 fi
11286
11287 rm -rf conftest.dSYM
11288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11289       conftest$ac_exeext conftest.$ac_ext
11290 LIBS=$ac_check_lib_save_LIBS
11291 fi
11292 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11293 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11294 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11295   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11296 else
11297   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11298 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11299 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11300   $as_echo_n "(cached) " >&6
11301 else
11302   ac_check_lib_save_LIBS=$LIBS
11303 LIBS="-lsvld  $LIBS"
11304 cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h.  */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h.  */
11310
11311 /* Override any GCC internal prototype to avoid an error.
11312    Use char because int might match the return type of a GCC
11313    builtin and then its argument prototype would still apply.  */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char dlopen ();
11318 int
11319 main ()
11320 {
11321 return dlopen ();
11322   ;
11323   return 0;
11324 }
11325 _ACEOF
11326 rm -f conftest.$ac_objext conftest$ac_exeext
11327 if { (ac_try="$ac_link"
11328 case "(($ac_try" in
11329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330   *) ac_try_echo=$ac_try;;
11331 esac
11332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11333 $as_echo "$ac_try_echo") >&5
11334   (eval "$ac_link") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } && {
11341          test -z "$ac_c_werror_flag" ||
11342          test ! -s conftest.err
11343        } && test -s conftest$ac_exeext && {
11344          test "$cross_compiling" = yes ||
11345          $as_test_x conftest$ac_exeext
11346        }; then
11347   ac_cv_lib_svld_dlopen=yes
11348 else
11349   $as_echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352         ac_cv_lib_svld_dlopen=no
11353 fi
11354
11355 rm -rf conftest.dSYM
11356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11357       conftest$ac_exeext conftest.$ac_ext
11358 LIBS=$ac_check_lib_save_LIBS
11359 fi
11360 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11361 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11362 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11363   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11364 else
11365   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11366 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11367 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11368   $as_echo_n "(cached) " >&6
11369 else
11370   ac_check_lib_save_LIBS=$LIBS
11371 LIBS="-ldld  $LIBS"
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h.  */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h.  */
11378
11379 /* Override any GCC internal prototype to avoid an error.
11380    Use char because int might match the return type of a GCC
11381    builtin and then its argument prototype would still apply.  */
11382 #ifdef __cplusplus
11383 extern "C"
11384 #endif
11385 char dld_link ();
11386 int
11387 main ()
11388 {
11389 return dld_link ();
11390   ;
11391   return 0;
11392 }
11393 _ACEOF
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (ac_try="$ac_link"
11396 case "(($ac_try" in
11397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398   *) ac_try_echo=$ac_try;;
11399 esac
11400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11401 $as_echo "$ac_try_echo") >&5
11402   (eval "$ac_link") 2>conftest.er1
11403   ac_status=$?
11404   grep -v '^ *+' conftest.er1 >conftest.err
11405   rm -f conftest.er1
11406   cat conftest.err >&5
11407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); } && {
11409          test -z "$ac_c_werror_flag" ||
11410          test ! -s conftest.err
11411        } && test -s conftest$ac_exeext && {
11412          test "$cross_compiling" = yes ||
11413          $as_test_x conftest$ac_exeext
11414        }; then
11415   ac_cv_lib_dld_dld_link=yes
11416 else
11417   $as_echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420         ac_cv_lib_dld_dld_link=no
11421 fi
11422
11423 rm -rf conftest.dSYM
11424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11425       conftest$ac_exeext conftest.$ac_ext
11426 LIBS=$ac_check_lib_save_LIBS
11427 fi
11428 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11429 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11430 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11431   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11432 fi
11433
11434
11435 fi
11436
11437
11438 fi
11439
11440
11441 fi
11442
11443
11444 fi
11445
11446
11447 fi
11448
11449     ;;
11450   esac
11451
11452   if test "x$lt_cv_dlopen" != xno; then
11453     enable_dlopen=yes
11454   else
11455     enable_dlopen=no
11456   fi
11457
11458   case $lt_cv_dlopen in
11459   dlopen)
11460     save_CPPFLAGS="$CPPFLAGS"
11461     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11462
11463     save_LDFLAGS="$LDFLAGS"
11464     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11465
11466     save_LIBS="$LIBS"
11467     LIBS="$lt_cv_dlopen_libs $LIBS"
11468
11469     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11470 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11471 if test "${lt_cv_dlopen_self+set}" = set; then
11472   $as_echo_n "(cached) " >&6
11473 else
11474           if test "$cross_compiling" = yes; then :
11475   lt_cv_dlopen_self=cross
11476 else
11477   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11478   lt_status=$lt_dlunknown
11479   cat > conftest.$ac_ext <<_LT_EOF
11480 #line 11480 "configure"
11481 #include "confdefs.h"
11482
11483 #if HAVE_DLFCN_H
11484 #include <dlfcn.h>
11485 #endif
11486
11487 #include <stdio.h>
11488
11489 #ifdef RTLD_GLOBAL
11490 #  define LT_DLGLOBAL           RTLD_GLOBAL
11491 #else
11492 #  ifdef DL_GLOBAL
11493 #    define LT_DLGLOBAL         DL_GLOBAL
11494 #  else
11495 #    define LT_DLGLOBAL         0
11496 #  endif
11497 #endif
11498
11499 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11500    find out it does not work in some platform. */
11501 #ifndef LT_DLLAZY_OR_NOW
11502 #  ifdef RTLD_LAZY
11503 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11504 #  else
11505 #    ifdef DL_LAZY
11506 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11507 #    else
11508 #      ifdef RTLD_NOW
11509 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11510 #      else
11511 #        ifdef DL_NOW
11512 #          define LT_DLLAZY_OR_NOW      DL_NOW
11513 #        else
11514 #          define LT_DLLAZY_OR_NOW      0
11515 #        endif
11516 #      endif
11517 #    endif
11518 #  endif
11519 #endif
11520
11521 void fnord() { int i=42;}
11522 int main ()
11523 {
11524   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11525   int status = $lt_dlunknown;
11526
11527   if (self)
11528     {
11529       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11530       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11531       /* dlclose (self); */
11532     }
11533   else
11534     puts (dlerror ());
11535
11536   return status;
11537 }
11538 _LT_EOF
11539   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11540   (eval $ac_link) 2>&5
11541   ac_status=$?
11542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11544     (./conftest; exit; ) >&5 2>/dev/null
11545     lt_status=$?
11546     case x$lt_status in
11547       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11548       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11549       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11550     esac
11551   else :
11552     # compilation failed
11553     lt_cv_dlopen_self=no
11554   fi
11555 fi
11556 rm -fr conftest*
11557
11558
11559 fi
11560 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11561 $as_echo "$lt_cv_dlopen_self" >&6; }
11562
11563     if test "x$lt_cv_dlopen_self" = xyes; then
11564       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11565       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11566 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11567 if test "${lt_cv_dlopen_self_static+set}" = set; then
11568   $as_echo_n "(cached) " >&6
11569 else
11570           if test "$cross_compiling" = yes; then :
11571   lt_cv_dlopen_self_static=cross
11572 else
11573   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11574   lt_status=$lt_dlunknown
11575   cat > conftest.$ac_ext <<_LT_EOF
11576 #line 11576 "configure"
11577 #include "confdefs.h"
11578
11579 #if HAVE_DLFCN_H
11580 #include <dlfcn.h>
11581 #endif
11582
11583 #include <stdio.h>
11584
11585 #ifdef RTLD_GLOBAL
11586 #  define LT_DLGLOBAL           RTLD_GLOBAL
11587 #else
11588 #  ifdef DL_GLOBAL
11589 #    define LT_DLGLOBAL         DL_GLOBAL
11590 #  else
11591 #    define LT_DLGLOBAL         0
11592 #  endif
11593 #endif
11594
11595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11596    find out it does not work in some platform. */
11597 #ifndef LT_DLLAZY_OR_NOW
11598 #  ifdef RTLD_LAZY
11599 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11600 #  else
11601 #    ifdef DL_LAZY
11602 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11603 #    else
11604 #      ifdef RTLD_NOW
11605 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11606 #      else
11607 #        ifdef DL_NOW
11608 #          define LT_DLLAZY_OR_NOW      DL_NOW
11609 #        else
11610 #          define LT_DLLAZY_OR_NOW      0
11611 #        endif
11612 #      endif
11613 #    endif
11614 #  endif
11615 #endif
11616
11617 void fnord() { int i=42;}
11618 int main ()
11619 {
11620   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11621   int status = $lt_dlunknown;
11622
11623   if (self)
11624     {
11625       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11626       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11627       /* dlclose (self); */
11628     }
11629   else
11630     puts (dlerror ());
11631
11632   return status;
11633 }
11634 _LT_EOF
11635   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636   (eval $ac_link) 2>&5
11637   ac_status=$?
11638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11640     (./conftest; exit; ) >&5 2>/dev/null
11641     lt_status=$?
11642     case x$lt_status in
11643       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11644       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11645       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11646     esac
11647   else :
11648     # compilation failed
11649     lt_cv_dlopen_self_static=no
11650   fi
11651 fi
11652 rm -fr conftest*
11653
11654
11655 fi
11656 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11657 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11658     fi
11659
11660     CPPFLAGS="$save_CPPFLAGS"
11661     LDFLAGS="$save_LDFLAGS"
11662     LIBS="$save_LIBS"
11663     ;;
11664   esac
11665
11666   case $lt_cv_dlopen_self in
11667   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11668   *) enable_dlopen_self=unknown ;;
11669   esac
11670
11671   case $lt_cv_dlopen_self_static in
11672   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11673   *) enable_dlopen_self_static=unknown ;;
11674   esac
11675 fi
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693 striplib=
11694 old_striplib=
11695 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11696 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11697 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11698   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11699   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11700   { $as_echo "$as_me:$LINENO: result: yes" >&5
11701 $as_echo "yes" >&6; }
11702 else
11703 # FIXME - insert some real tests, host_os isn't really good enough
11704   case $host_os in
11705   darwin*)
11706     if test -n "$STRIP" ; then
11707       striplib="$STRIP -x"
11708       old_striplib="$STRIP -S"
11709       { $as_echo "$as_me:$LINENO: result: yes" >&5
11710 $as_echo "yes" >&6; }
11711     else
11712       { $as_echo "$as_me:$LINENO: result: no" >&5
11713 $as_echo "no" >&6; }
11714     fi
11715     ;;
11716   *)
11717     { $as_echo "$as_me:$LINENO: result: no" >&5
11718 $as_echo "no" >&6; }
11719     ;;
11720   esac
11721 fi
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734   # Report which library types will actually be built
11735   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11736 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11737   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11738 $as_echo "$can_build_shared" >&6; }
11739
11740   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11741 $as_echo_n "checking whether to build shared libraries... " >&6; }
11742   test "$can_build_shared" = "no" && enable_shared=no
11743
11744   # On AIX, shared libraries and static libraries use the same namespace, and
11745   # are all built from PIC.
11746   case $host_os in
11747   aix3*)
11748     test "$enable_shared" = yes && enable_static=no
11749     if test -n "$RANLIB"; then
11750       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11751       postinstall_cmds='$RANLIB $lib'
11752     fi
11753     ;;
11754
11755   aix[4-9]*)
11756     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11757       test "$enable_shared" = yes && enable_static=no
11758     fi
11759     ;;
11760   esac
11761   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11762 $as_echo "$enable_shared" >&6; }
11763
11764   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11765 $as_echo_n "checking whether to build static libraries... " >&6; }
11766   # Make sure either enable_shared or enable_static is yes.
11767   test "$enable_shared" = yes || enable_static=yes
11768   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11769 $as_echo "$enable_static" >&6; }
11770
11771
11772
11773
11774 fi
11775 ac_ext=c
11776 ac_cpp='$CPP $CPPFLAGS'
11777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11780
11781 CC="$lt_save_CC"
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795         ac_config_commands="$ac_config_commands libtool"
11796
11797
11798
11799
11800 # Only expand once:
11801
11802
11803
11804
11805   for flag in -pipe -Wall -W -Wextra -pedantic -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -Wstrict-aliasing; do
11806
11807   { $as_echo "$as_me:$LINENO: checking if $CC supports $flag flag" >&5
11808 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
11809 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
11810   $as_echo_n "(cached) " >&6
11811 else
11812
11813   if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
11814   $as_echo_n "(cached) " >&6
11815 else
11816   ac_save_CFLAGS="$CFLAGS"
11817      CFLAGS="$CFLAGS $flag"
11818      cat >conftest.$ac_ext <<_ACEOF
11819 int a;
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (ac_try="$ac_compile"
11823 case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11828 $as_echo "$ac_try_echo") >&5
11829   (eval "$ac_compile") 2>conftest.er1
11830   ac_status=$?
11831   grep -v '^ *+' conftest.er1 >conftest.err
11832   rm -f conftest.er1
11833   cat conftest.err >&5
11834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); } && {
11836          test -z "$ac_c_werror_flag" ||
11837          test ! -s conftest.err
11838        } && test -s conftest.$ac_objext; then
11839   eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
11840 else
11841   $as_echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11843
11844         eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
11845 fi
11846
11847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11848      CFLAGS="$ac_save_CFLAGS"
11849
11850 fi
11851
11852
11853
11854
11855 fi
11856 ac_res=`eval 'as_val=${'\`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh\`'}
11857                  $as_echo "$as_val"'`
11858                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11859 $as_echo "$ac_res" >&6; }
11860
11861   if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then
11862   CFLAGS="$CFLAGS $flag";
11863 fi
11864
11865
11866   done
11867
11868
11869
11870   { $as_echo "$as_me:$LINENO: checking whether to enable assertions" >&5
11871 $as_echo_n "checking whether to enable assertions... " >&6; }
11872   # Check whether --enable-assert was given.
11873 if test "${enable_assert+set}" = set; then
11874   enableval=$enable_assert; { $as_echo "$as_me:$LINENO: result: no" >&5
11875 $as_echo "no" >&6; }
11876
11877 cat >>confdefs.h <<\_ACEOF
11878 #define NDEBUG 1
11879 _ACEOF
11880
11881 else
11882   { $as_echo "$as_me:$LINENO: result: yes" >&5
11883 $as_echo "yes" >&6; }
11884 fi
11885
11886
11887 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11888 $as_echo_n "checking for ANSI C header files... " >&6; }
11889 if test "${ac_cv_header_stdc+set}" = set; then
11890   $as_echo_n "(cached) " >&6
11891 else
11892   cat >conftest.$ac_ext <<_ACEOF
11893 /* confdefs.h.  */
11894 _ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h.  */
11898 #include <stdlib.h>
11899 #include <stdarg.h>
11900 #include <string.h>
11901 #include <float.h>
11902
11903 int
11904 main ()
11905 {
11906
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (ac_try="$ac_compile"
11913 case "(($ac_try" in
11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915   *) ac_try_echo=$ac_try;;
11916 esac
11917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11918 $as_echo "$ac_try_echo") >&5
11919   (eval "$ac_compile") 2>conftest.er1
11920   ac_status=$?
11921   grep -v '^ *+' conftest.er1 >conftest.err
11922   rm -f conftest.er1
11923   cat conftest.err >&5
11924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } && {
11926          test -z "$ac_c_werror_flag" ||
11927          test ! -s conftest.err
11928        } && test -s conftest.$ac_objext; then
11929   ac_cv_header_stdc=yes
11930 else
11931   $as_echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934         ac_cv_header_stdc=no
11935 fi
11936
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11938
11939 if test $ac_cv_header_stdc = yes; then
11940   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11941   cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947 #include <string.h>
11948
11949 _ACEOF
11950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11951   $EGREP "memchr" >/dev/null 2>&1; then
11952   :
11953 else
11954   ac_cv_header_stdc=no
11955 fi
11956 rm -f conftest*
11957
11958 fi
11959
11960 if test $ac_cv_header_stdc = yes; then
11961   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11962   cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h.  */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h.  */
11968 #include <stdlib.h>
11969
11970 _ACEOF
11971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11972   $EGREP "free" >/dev/null 2>&1; then
11973   :
11974 else
11975   ac_cv_header_stdc=no
11976 fi
11977 rm -f conftest*
11978
11979 fi
11980
11981 if test $ac_cv_header_stdc = yes; then
11982   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11983   if test "$cross_compiling" = yes; then
11984   :
11985 else
11986   cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11992 #include <ctype.h>
11993 #include <stdlib.h>
11994 #if ((' ' & 0x0FF) == 0x020)
11995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11997 #else
11998 # define ISLOWER(c) \
11999                    (('a' <= (c) && (c) <= 'i') \
12000                      || ('j' <= (c) && (c) <= 'r') \
12001                      || ('s' <= (c) && (c) <= 'z'))
12002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12003 #endif
12004
12005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12006 int
12007 main ()
12008 {
12009   int i;
12010   for (i = 0; i < 256; i++)
12011     if (XOR (islower (i), ISLOWER (i))
12012         || toupper (i) != TOUPPER (i))
12013       return 2;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest$ac_exeext
12018 if { (ac_try="$ac_link"
12019 case "(($ac_try" in
12020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12021   *) ac_try_echo=$ac_try;;
12022 esac
12023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12024 $as_echo "$ac_try_echo") >&5
12025   (eval "$ac_link") 2>&5
12026   ac_status=$?
12027   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12029   { (case "(($ac_try" in
12030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031   *) ac_try_echo=$ac_try;;
12032 esac
12033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12034 $as_echo "$ac_try_echo") >&5
12035   (eval "$ac_try") 2>&5
12036   ac_status=$?
12037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; }; then
12039   :
12040 else
12041   $as_echo "$as_me: program exited with status $ac_status" >&5
12042 $as_echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12044
12045 ( exit $ac_status )
12046 ac_cv_header_stdc=no
12047 fi
12048 rm -rf conftest.dSYM
12049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12050 fi
12051
12052
12053 fi
12054 fi
12055 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12056 $as_echo "$ac_cv_header_stdc" >&6; }
12057 if test $ac_cv_header_stdc = yes; then
12058
12059 cat >>confdefs.h <<\_ACEOF
12060 #define STDC_HEADERS 1
12061 _ACEOF
12062
12063 fi
12064
12065 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12066 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12067 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12068   $as_echo_n "(cached) " >&6
12069 else
12070   cat >conftest.$ac_ext <<_ACEOF
12071 /* confdefs.h.  */
12072 _ACEOF
12073 cat confdefs.h >>conftest.$ac_ext
12074 cat >>conftest.$ac_ext <<_ACEOF
12075 /* end confdefs.h.  */
12076 #include <sys/types.h>
12077 #include <sys/wait.h>
12078 #ifndef WEXITSTATUS
12079 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12080 #endif
12081 #ifndef WIFEXITED
12082 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12083 #endif
12084
12085 int
12086 main ()
12087 {
12088   int s;
12089   wait (&s);
12090   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12091   ;
12092   return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext
12096 if { (ac_try="$ac_compile"
12097 case "(($ac_try" in
12098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099   *) ac_try_echo=$ac_try;;
12100 esac
12101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12102 $as_echo "$ac_try_echo") >&5
12103   (eval "$ac_compile") 2>conftest.er1
12104   ac_status=$?
12105   grep -v '^ *+' conftest.er1 >conftest.err
12106   rm -f conftest.er1
12107   cat conftest.err >&5
12108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } && {
12110          test -z "$ac_c_werror_flag" ||
12111          test ! -s conftest.err
12112        } && test -s conftest.$ac_objext; then
12113   ac_cv_header_sys_wait_h=yes
12114 else
12115   $as_echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12117
12118         ac_cv_header_sys_wait_h=no
12119 fi
12120
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 fi
12123 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12124 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12125 if test $ac_cv_header_sys_wait_h = yes; then
12126
12127 cat >>confdefs.h <<\_ACEOF
12128 #define HAVE_SYS_WAIT_H 1
12129 _ACEOF
12130
12131 fi
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143 for ac_header in arpa/inet.h fcntl.h netdb.h stdlib.h string.h sys/socket.h unistd.h sys/prctl.h netinet/in.h arpa/nameser_compat.h
12144 do
12145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12147   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12148 $as_echo_n "checking for $ac_header... " >&6; }
12149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12150   $as_echo_n "(cached) " >&6
12151 fi
12152 ac_res=`eval 'as_val=${'$as_ac_Header'}
12153                  $as_echo "$as_val"'`
12154                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12155 $as_echo "$ac_res" >&6; }
12156 else
12157   # Is the header compilable?
12158 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12159 $as_echo_n "checking $ac_header usability... " >&6; }
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h.  */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h.  */
12166 $ac_includes_default
12167 #include <$ac_header>
12168 _ACEOF
12169 rm -f conftest.$ac_objext
12170 if { (ac_try="$ac_compile"
12171 case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12176 $as_echo "$ac_try_echo") >&5
12177   (eval "$ac_compile") 2>conftest.er1
12178   ac_status=$?
12179   grep -v '^ *+' conftest.er1 >conftest.err
12180   rm -f conftest.er1
12181   cat conftest.err >&5
12182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); } && {
12184          test -z "$ac_c_werror_flag" ||
12185          test ! -s conftest.err
12186        } && test -s conftest.$ac_objext; then
12187   ac_header_compiler=yes
12188 else
12189   $as_echo "$as_me: failed program was:" >&5
12190 sed 's/^/| /' conftest.$ac_ext >&5
12191
12192         ac_header_compiler=no
12193 fi
12194
12195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12196 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12197 $as_echo "$ac_header_compiler" >&6; }
12198
12199 # Is the header present?
12200 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12201 $as_echo_n "checking $ac_header presence... " >&6; }
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h.  */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h.  */
12208 #include <$ac_header>
12209 _ACEOF
12210 if { (ac_try="$ac_cpp conftest.$ac_ext"
12211 case "(($ac_try" in
12212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213   *) ac_try_echo=$ac_try;;
12214 esac
12215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12216 $as_echo "$ac_try_echo") >&5
12217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } >/dev/null && {
12224          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12225          test ! -s conftest.err
12226        }; then
12227   ac_header_preproc=yes
12228 else
12229   $as_echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232   ac_header_preproc=no
12233 fi
12234
12235 rm -f conftest.err conftest.$ac_ext
12236 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12237 $as_echo "$ac_header_preproc" >&6; }
12238
12239 # So?  What about this header?
12240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12241   yes:no: )
12242     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12243 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12244     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12246     ac_header_preproc=yes
12247     ;;
12248   no:yes:* )
12249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12250 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12251     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12252 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12253     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12255     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12256 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12257     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12259     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12260 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12261     ( cat <<\_ASBOX
12262 ## ----------------------------------------------- ##
12263 ## Report this to mznflapaf (at) 0pointer (dot) de ##
12264 ## ----------------------------------------------- ##
12265 _ASBOX
12266      ) | sed "s/^/$as_me: WARNING:     /" >&2
12267     ;;
12268 esac
12269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12270 $as_echo_n "checking for $ac_header... " >&6; }
12271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12272   $as_echo_n "(cached) " >&6
12273 else
12274   eval "$as_ac_Header=\$ac_header_preproc"
12275 fi
12276 ac_res=`eval 'as_val=${'$as_ac_Header'}
12277                  $as_echo "$as_val"'`
12278                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12279 $as_echo "$ac_res" >&6; }
12280
12281 fi
12282 as_val=`eval 'as_val=${'$as_ac_Header'}
12283                  $as_echo "$as_val"'`
12284    if test "x$as_val" = x""yes; then
12285   cat >>confdefs.h <<_ACEOF
12286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12287 _ACEOF
12288
12289 fi
12290
12291 done
12292
12293
12294 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12295 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12296 if test "${ac_cv_c_const+set}" = set; then
12297   $as_echo_n "(cached) " >&6
12298 else
12299   cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h.  */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h.  */
12305
12306 int
12307 main ()
12308 {
12309 /* FIXME: Include the comments suggested by Paul. */
12310 #ifndef __cplusplus
12311   /* Ultrix mips cc rejects this.  */
12312   typedef int charset[2];
12313   const charset cs;
12314   /* SunOS 4.1.1 cc rejects this.  */
12315   char const *const *pcpcc;
12316   char **ppc;
12317   /* NEC SVR4.0.2 mips cc rejects this.  */
12318   struct point {int x, y;};
12319   static struct point const zero = {0,0};
12320   /* AIX XL C 1.02.0.0 rejects this.
12321      It does not let you subtract one const X* pointer from another in
12322      an arm of an if-expression whose if-part is not a constant
12323      expression */
12324   const char *g = "string";
12325   pcpcc = &g + (g ? g-g : 0);
12326   /* HPUX 7.0 cc rejects these. */
12327   ++pcpcc;
12328   ppc = (char**) pcpcc;
12329   pcpcc = (char const *const *) ppc;
12330   { /* SCO 3.2v4 cc rejects this.  */
12331     char *t;
12332     char const *s = 0 ? (char *) 0 : (char const *) 0;
12333
12334     *t++ = 0;
12335     if (s) return 0;
12336   }
12337   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12338     int x[] = {25, 17};
12339     const int *foo = &x[0];
12340     ++foo;
12341   }
12342   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12343     typedef const int *iptr;
12344     iptr p = 0;
12345     ++p;
12346   }
12347   { /* AIX XL C 1.02.0.0 rejects this saying
12348        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12349     struct s { int j; const int *ap[3]; };
12350     struct s *b; b->j = 5;
12351   }
12352   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12353     const int foo = 10;
12354     if (!foo) return 0;
12355   }
12356   return !cs[0] && !zero.x;
12357 #endif
12358
12359   ;
12360   return 0;
12361 }
12362 _ACEOF
12363 rm -f conftest.$ac_objext
12364 if { (ac_try="$ac_compile"
12365 case "(($ac_try" in
12366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367   *) ac_try_echo=$ac_try;;
12368 esac
12369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12370 $as_echo "$ac_try_echo") >&5
12371   (eval "$ac_compile") 2>conftest.er1
12372   ac_status=$?
12373   grep -v '^ *+' conftest.er1 >conftest.err
12374   rm -f conftest.er1
12375   cat conftest.err >&5
12376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } && {
12378          test -z "$ac_c_werror_flag" ||
12379          test ! -s conftest.err
12380        } && test -s conftest.$ac_objext; then
12381   ac_cv_c_const=yes
12382 else
12383   $as_echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12385
12386         ac_cv_c_const=no
12387 fi
12388
12389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12390 fi
12391 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12392 $as_echo "$ac_cv_c_const" >&6; }
12393 if test $ac_cv_c_const = no; then
12394
12395 cat >>confdefs.h <<\_ACEOF
12396 #define const /**/
12397 _ACEOF
12398
12399 fi
12400
12401 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12402 $as_echo_n "checking for pid_t... " >&6; }
12403 if test "${ac_cv_type_pid_t+set}" = set; then
12404   $as_echo_n "(cached) " >&6
12405 else
12406   ac_cv_type_pid_t=no
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h.  */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h.  */
12413 $ac_includes_default
12414 int
12415 main ()
12416 {
12417 if (sizeof (pid_t))
12418        return 0;
12419   ;
12420   return 0;
12421 }
12422 _ACEOF
12423 rm -f conftest.$ac_objext
12424 if { (ac_try="$ac_compile"
12425 case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12430 $as_echo "$ac_try_echo") >&5
12431   (eval "$ac_compile") 2>conftest.er1
12432   ac_status=$?
12433   grep -v '^ *+' conftest.er1 >conftest.err
12434   rm -f conftest.er1
12435   cat conftest.err >&5
12436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); } && {
12438          test -z "$ac_c_werror_flag" ||
12439          test ! -s conftest.err
12440        } && test -s conftest.$ac_objext; then
12441   cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h.  */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h.  */
12447 $ac_includes_default
12448 int
12449 main ()
12450 {
12451 if (sizeof ((pid_t)))
12452           return 0;
12453   ;
12454   return 0;
12455 }
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (ac_try="$ac_compile"
12459 case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12464 $as_echo "$ac_try_echo") >&5
12465   (eval "$ac_compile") 2>conftest.er1
12466   ac_status=$?
12467   grep -v '^ *+' conftest.er1 >conftest.err
12468   rm -f conftest.er1
12469   cat conftest.err >&5
12470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); } && {
12472          test -z "$ac_c_werror_flag" ||
12473          test ! -s conftest.err
12474        } && test -s conftest.$ac_objext; then
12475   :
12476 else
12477   $as_echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12479
12480         ac_cv_type_pid_t=yes
12481 fi
12482
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 else
12485   $as_echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488
12489 fi
12490
12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12492 fi
12493 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12494 $as_echo "$ac_cv_type_pid_t" >&6; }
12495 if test "x$ac_cv_type_pid_t" = x""yes; then
12496   :
12497 else
12498
12499 cat >>confdefs.h <<_ACEOF
12500 #define pid_t int
12501 _ACEOF
12502
12503 fi
12504
12505 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
12506 $as_echo_n "checking for size_t... " >&6; }
12507 if test "${ac_cv_type_size_t+set}" = set; then
12508   $as_echo_n "(cached) " >&6
12509 else
12510   ac_cv_type_size_t=no
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517 $ac_includes_default
12518 int
12519 main ()
12520 {
12521 if (sizeof (size_t))
12522        return 0;
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext
12528 if { (ac_try="$ac_compile"
12529 case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12534 $as_echo "$ac_try_echo") >&5
12535   (eval "$ac_compile") 2>conftest.er1
12536   ac_status=$?
12537   grep -v '^ *+' conftest.er1 >conftest.err
12538   rm -f conftest.er1
12539   cat conftest.err >&5
12540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541   (exit $ac_status); } && {
12542          test -z "$ac_c_werror_flag" ||
12543          test ! -s conftest.err
12544        } && test -s conftest.$ac_objext; then
12545   cat >conftest.$ac_ext <<_ACEOF
12546 /* confdefs.h.  */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h.  */
12551 $ac_includes_default
12552 int
12553 main ()
12554 {
12555 if (sizeof ((size_t)))
12556           return 0;
12557   ;
12558   return 0;
12559 }
12560 _ACEOF
12561 rm -f conftest.$ac_objext
12562 if { (ac_try="$ac_compile"
12563 case "(($ac_try" in
12564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565   *) ac_try_echo=$ac_try;;
12566 esac
12567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12568 $as_echo "$ac_try_echo") >&5
12569   (eval "$ac_compile") 2>conftest.er1
12570   ac_status=$?
12571   grep -v '^ *+' conftest.er1 >conftest.err
12572   rm -f conftest.er1
12573   cat conftest.err >&5
12574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); } && {
12576          test -z "$ac_c_werror_flag" ||
12577          test ! -s conftest.err
12578        } && test -s conftest.$ac_objext; then
12579   :
12580 else
12581   $as_echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12583
12584         ac_cv_type_size_t=yes
12585 fi
12586
12587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12588 else
12589   $as_echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592
12593 fi
12594
12595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596 fi
12597 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12598 $as_echo "$ac_cv_type_size_t" >&6; }
12599 if test "x$ac_cv_type_size_t" = x""yes; then
12600   :
12601 else
12602
12603 cat >>confdefs.h <<_ACEOF
12604 #define size_t unsigned int
12605 _ACEOF
12606
12607 fi
12608
12609 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
12610 $as_echo_n "checking for ssize_t... " >&6; }
12611 if test "${ac_cv_type_ssize_t+set}" = set; then
12612   $as_echo_n "(cached) " >&6
12613 else
12614   ac_cv_type_ssize_t=no
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h.  */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h.  */
12621 $ac_includes_default
12622 int
12623 main ()
12624 {
12625 if (sizeof (ssize_t))
12626        return 0;
12627   ;
12628   return 0;
12629 }
12630 _ACEOF
12631 rm -f conftest.$ac_objext
12632 if { (ac_try="$ac_compile"
12633 case "(($ac_try" in
12634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635   *) ac_try_echo=$ac_try;;
12636 esac
12637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12638 $as_echo "$ac_try_echo") >&5
12639   (eval "$ac_compile") 2>conftest.er1
12640   ac_status=$?
12641   grep -v '^ *+' conftest.er1 >conftest.err
12642   rm -f conftest.er1
12643   cat conftest.err >&5
12644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); } && {
12646          test -z "$ac_c_werror_flag" ||
12647          test ! -s conftest.err
12648        } && test -s conftest.$ac_objext; then
12649   cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h.  */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h.  */
12655 $ac_includes_default
12656 int
12657 main ()
12658 {
12659 if (sizeof ((ssize_t)))
12660           return 0;
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext
12666 if { (ac_try="$ac_compile"
12667 case "(($ac_try" in
12668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669   *) ac_try_echo=$ac_try;;
12670 esac
12671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12672 $as_echo "$ac_try_echo") >&5
12673   (eval "$ac_compile") 2>conftest.er1
12674   ac_status=$?
12675   grep -v '^ *+' conftest.er1 >conftest.err
12676   rm -f conftest.er1
12677   cat conftest.err >&5
12678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); } && {
12680          test -z "$ac_c_werror_flag" ||
12681          test ! -s conftest.err
12682        } && test -s conftest.$ac_objext; then
12683   :
12684 else
12685   $as_echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688         ac_cv_type_ssize_t=yes
12689 fi
12690
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692 else
12693   $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696
12697 fi
12698
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700 fi
12701 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12702 $as_echo "$ac_cv_type_ssize_t" >&6; }
12703 if test "x$ac_cv_type_ssize_t" = x""yes; then
12704   :
12705 else
12706
12707 cat >>confdefs.h <<_ACEOF
12708 #define ssize_t int
12709 _ACEOF
12710
12711 fi
12712
12713
12714   { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
12715 $as_echo_n "checking for uint16_t... " >&6; }
12716 if test "${ac_cv_c_uint16_t+set}" = set; then
12717   $as_echo_n "(cached) " >&6
12718 else
12719   ac_cv_c_uint16_t=no
12720      for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
12721          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
12722        cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h.  */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h.  */
12728 $ac_includes_default
12729 int
12730 main ()
12731 {
12732 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
12733 test_array [0] = 0
12734
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 rm -f conftest.$ac_objext
12740 if { (ac_try="$ac_compile"
12741 case "(($ac_try" in
12742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743   *) ac_try_echo=$ac_try;;
12744 esac
12745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12746 $as_echo "$ac_try_echo") >&5
12747   (eval "$ac_compile") 2>conftest.er1
12748   ac_status=$?
12749   grep -v '^ *+' conftest.er1 >conftest.err
12750   rm -f conftest.er1
12751   cat conftest.err >&5
12752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753   (exit $ac_status); } && {
12754          test -z "$ac_c_werror_flag" ||
12755          test ! -s conftest.err
12756        } && test -s conftest.$ac_objext; then
12757   case $ac_type in
12758   uint16_t) ac_cv_c_uint16_t=yes ;;
12759   *) ac_cv_c_uint16_t=$ac_type ;;
12760 esac
12761
12762 else
12763   $as_echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.$ac_ext >&5
12765
12766
12767 fi
12768
12769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12770        test "$ac_cv_c_uint16_t" != no && break
12771      done
12772 fi
12773 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
12774 $as_echo "$ac_cv_c_uint16_t" >&6; }
12775   case $ac_cv_c_uint16_t in #(
12776   no|yes) ;; #(
12777   *)
12778
12779
12780 cat >>confdefs.h <<_ACEOF
12781 #define uint16_t $ac_cv_c_uint16_t
12782 _ACEOF
12783 ;;
12784   esac
12785
12786
12787   { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
12788 $as_echo_n "checking for uint8_t... " >&6; }
12789 if test "${ac_cv_c_uint8_t+set}" = set; then
12790   $as_echo_n "(cached) " >&6
12791 else
12792   ac_cv_c_uint8_t=no
12793      for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
12794          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
12795        cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801 $ac_includes_default
12802 int
12803 main ()
12804 {
12805 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
12806 test_array [0] = 0
12807
12808   ;
12809   return 0;
12810 }
12811 _ACEOF
12812 rm -f conftest.$ac_objext
12813 if { (ac_try="$ac_compile"
12814 case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820   (eval "$ac_compile") 2>conftest.er1
12821   ac_status=$?
12822   grep -v '^ *+' conftest.er1 >conftest.err
12823   rm -f conftest.er1
12824   cat conftest.err >&5
12825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } && {
12827          test -z "$ac_c_werror_flag" ||
12828          test ! -s conftest.err
12829        } && test -s conftest.$ac_objext; then
12830   case $ac_type in
12831   uint8_t) ac_cv_c_uint8_t=yes ;;
12832   *) ac_cv_c_uint8_t=$ac_type ;;
12833 esac
12834
12835 else
12836   $as_echo "$as_me: failed program was:" >&5
12837 sed 's/^/| /' conftest.$ac_ext >&5
12838
12839
12840 fi
12841
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843        test "$ac_cv_c_uint8_t" != no && break
12844      done
12845 fi
12846 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
12847 $as_echo "$ac_cv_c_uint8_t" >&6; }
12848   case $ac_cv_c_uint8_t in #(
12849   no|yes) ;; #(
12850   *)
12851
12852 cat >>confdefs.h <<\_ACEOF
12853 #define _UINT8_T 1
12854 _ACEOF
12855
12856
12857 cat >>confdefs.h <<_ACEOF
12858 #define uint8_t $ac_cv_c_uint8_t
12859 _ACEOF
12860 ;;
12861   esac
12862
12863 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12864 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12865 if test "${ac_cv_header_time+set}" = set; then
12866   $as_echo_n "(cached) " >&6
12867 else
12868   cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h.  */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h.  */
12874 #include <sys/types.h>
12875 #include <sys/time.h>
12876 #include <time.h>
12877
12878 int
12879 main ()
12880 {
12881 if ((struct tm *) 0)
12882 return 0;
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 rm -f conftest.$ac_objext
12888 if { (ac_try="$ac_compile"
12889 case "(($ac_try" in
12890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891   *) ac_try_echo=$ac_try;;
12892 esac
12893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12894 $as_echo "$ac_try_echo") >&5
12895   (eval "$ac_compile") 2>conftest.er1
12896   ac_status=$?
12897   grep -v '^ *+' conftest.er1 >conftest.err
12898   rm -f conftest.er1
12899   cat conftest.err >&5
12900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); } && {
12902          test -z "$ac_c_werror_flag" ||
12903          test ! -s conftest.err
12904        } && test -s conftest.$ac_objext; then
12905   ac_cv_header_time=yes
12906 else
12907   $as_echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910         ac_cv_header_time=no
12911 fi
12912
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914 fi
12915 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12916 $as_echo "$ac_cv_header_time" >&6; }
12917 if test $ac_cv_header_time = yes; then
12918
12919 cat >>confdefs.h <<\_ACEOF
12920 #define TIME_WITH_SYS_TIME 1
12921 _ACEOF
12922
12923 fi
12924
12925
12926
12927 for ac_header in vfork.h
12928 do
12929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12931   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12932 $as_echo_n "checking for $ac_header... " >&6; }
12933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12934   $as_echo_n "(cached) " >&6
12935 fi
12936 ac_res=`eval 'as_val=${'$as_ac_Header'}
12937                  $as_echo "$as_val"'`
12938                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12939 $as_echo "$ac_res" >&6; }
12940 else
12941   # Is the header compilable?
12942 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12943 $as_echo_n "checking $ac_header usability... " >&6; }
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h.  */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h.  */
12950 $ac_includes_default
12951 #include <$ac_header>
12952 _ACEOF
12953 rm -f conftest.$ac_objext
12954 if { (ac_try="$ac_compile"
12955 case "(($ac_try" in
12956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957   *) ac_try_echo=$ac_try;;
12958 esac
12959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12960 $as_echo "$ac_try_echo") >&5
12961   (eval "$ac_compile") 2>conftest.er1
12962   ac_status=$?
12963   grep -v '^ *+' conftest.er1 >conftest.err
12964   rm -f conftest.er1
12965   cat conftest.err >&5
12966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } && {
12968          test -z "$ac_c_werror_flag" ||
12969          test ! -s conftest.err
12970        } && test -s conftest.$ac_objext; then
12971   ac_header_compiler=yes
12972 else
12973   $as_echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976         ac_header_compiler=no
12977 fi
12978
12979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12980 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12981 $as_echo "$ac_header_compiler" >&6; }
12982
12983 # Is the header present?
12984 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12985 $as_echo_n "checking $ac_header presence... " >&6; }
12986 cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h.  */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h.  */
12992 #include <$ac_header>
12993 _ACEOF
12994 if { (ac_try="$ac_cpp conftest.$ac_ext"
12995 case "(($ac_try" in
12996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997   *) ac_try_echo=$ac_try;;
12998 esac
12999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13000 $as_echo "$ac_try_echo") >&5
13001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13002   ac_status=$?
13003   grep -v '^ *+' conftest.er1 >conftest.err
13004   rm -f conftest.er1
13005   cat conftest.err >&5
13006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007   (exit $ac_status); } >/dev/null && {
13008          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13009          test ! -s conftest.err
13010        }; then
13011   ac_header_preproc=yes
13012 else
13013   $as_echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016   ac_header_preproc=no
13017 fi
13018
13019 rm -f conftest.err conftest.$ac_ext
13020 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13021 $as_echo "$ac_header_preproc" >&6; }
13022
13023 # So?  What about this header?
13024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13025   yes:no: )
13026     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13027 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13028     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13030     ac_header_preproc=yes
13031     ;;
13032   no:yes:* )
13033     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13034 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13035     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13036 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13037     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13038 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13039     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13040 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13041     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13042 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13044 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13045     ( cat <<\_ASBOX
13046 ## ----------------------------------------------- ##
13047 ## Report this to mznflapaf (at) 0pointer (dot) de ##
13048 ## ----------------------------------------------- ##
13049 _ASBOX
13050      ) | sed "s/^/$as_me: WARNING:     /" >&2
13051     ;;
13052 esac
13053 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13054 $as_echo_n "checking for $ac_header... " >&6; }
13055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13056   $as_echo_n "(cached) " >&6
13057 else
13058   eval "$as_ac_Header=\$ac_header_preproc"
13059 fi
13060 ac_res=`eval 'as_val=${'$as_ac_Header'}
13061                  $as_echo "$as_val"'`
13062                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13063 $as_echo "$ac_res" >&6; }
13064
13065 fi
13066 as_val=`eval 'as_val=${'$as_ac_Header'}
13067                  $as_echo "$as_val"'`
13068    if test "x$as_val" = x""yes; then
13069   cat >>confdefs.h <<_ACEOF
13070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13071 _ACEOF
13072
13073 fi
13074
13075 done
13076
13077
13078
13079 for ac_func in fork vfork
13080 do
13081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13082 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13083 $as_echo_n "checking for $ac_func... " >&6; }
13084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13085   $as_echo_n "(cached) " >&6
13086 else
13087   cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h.  */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h.  */
13093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13095 #define $ac_func innocuous_$ac_func
13096
13097 /* System header to define __stub macros and hopefully few prototypes,
13098     which can conflict with char $ac_func (); below.
13099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13100     <limits.h> exists even on freestanding compilers.  */
13101
13102 #ifdef __STDC__
13103 # include <limits.h>
13104 #else
13105 # include <assert.h>
13106 #endif
13107
13108 #undef $ac_func
13109
13110 /* Override any GCC internal prototype to avoid an error.
13111    Use char because int might match the return type of a GCC
13112    builtin and then its argument prototype would still apply.  */
13113 #ifdef __cplusplus
13114 extern "C"
13115 #endif
13116 char $ac_func ();
13117 /* The GNU C library defines this for functions which it implements
13118     to always fail with ENOSYS.  Some functions are actually named
13119     something starting with __ and the normal name is an alias.  */
13120 #if defined __stub_$ac_func || defined __stub___$ac_func
13121 choke me
13122 #endif
13123
13124 int
13125 main ()
13126 {
13127 return $ac_func ();
13128   ;
13129   return 0;
13130 }
13131 _ACEOF
13132 rm -f conftest.$ac_objext conftest$ac_exeext
13133 if { (ac_try="$ac_link"
13134 case "(($ac_try" in
13135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136   *) ac_try_echo=$ac_try;;
13137 esac
13138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13139 $as_echo "$ac_try_echo") >&5
13140   (eval "$ac_link") 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } && {
13147          test -z "$ac_c_werror_flag" ||
13148          test ! -s conftest.err
13149        } && test -s conftest$ac_exeext && {
13150          test "$cross_compiling" = yes ||
13151          $as_test_x conftest$ac_exeext
13152        }; then
13153   eval "$as_ac_var=yes"
13154 else
13155   $as_echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.$ac_ext >&5
13157
13158         eval "$as_ac_var=no"
13159 fi
13160
13161 rm -rf conftest.dSYM
13162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13163       conftest$ac_exeext conftest.$ac_ext
13164 fi
13165 ac_res=`eval 'as_val=${'$as_ac_var'}
13166                  $as_echo "$as_val"'`
13167                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13168 $as_echo "$ac_res" >&6; }
13169 as_val=`eval 'as_val=${'$as_ac_var'}
13170                  $as_echo "$as_val"'`
13171    if test "x$as_val" = x""yes; then
13172   cat >>confdefs.h <<_ACEOF
13173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13174 _ACEOF
13175
13176 fi
13177 done
13178
13179 if test "x$ac_cv_func_fork" = xyes; then
13180   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
13181 $as_echo_n "checking for working fork... " >&6; }
13182 if test "${ac_cv_func_fork_works+set}" = set; then
13183   $as_echo_n "(cached) " >&6
13184 else
13185   if test "$cross_compiling" = yes; then
13186   ac_cv_func_fork_works=cross
13187 else
13188   cat >conftest.$ac_ext <<_ACEOF
13189 /* confdefs.h.  */
13190 _ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h.  */
13194 $ac_includes_default
13195 int
13196 main ()
13197 {
13198
13199           /* By Ruediger Kuhlmann. */
13200           return fork () < 0;
13201
13202   ;
13203   return 0;
13204 }
13205 _ACEOF
13206 rm -f conftest$ac_exeext
13207 if { (ac_try="$ac_link"
13208 case "(($ac_try" in
13209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210   *) ac_try_echo=$ac_try;;
13211 esac
13212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13213 $as_echo "$ac_try_echo") >&5
13214   (eval "$ac_link") 2>&5
13215   ac_status=$?
13216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13218   { (case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13223 $as_echo "$ac_try_echo") >&5
13224   (eval "$ac_try") 2>&5
13225   ac_status=$?
13226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); }; }; then
13228   ac_cv_func_fork_works=yes
13229 else
13230   $as_echo "$as_me: program exited with status $ac_status" >&5
13231 $as_echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234 ( exit $ac_status )
13235 ac_cv_func_fork_works=no
13236 fi
13237 rm -rf conftest.dSYM
13238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13239 fi
13240
13241
13242 fi
13243 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13244 $as_echo "$ac_cv_func_fork_works" >&6; }
13245
13246 else
13247   ac_cv_func_fork_works=$ac_cv_func_fork
13248 fi
13249 if test "x$ac_cv_func_fork_works" = xcross; then
13250   case $host in
13251     *-*-amigaos* | *-*-msdosdjgpp*)
13252       # Override, as these systems have only a dummy fork() stub
13253       ac_cv_func_fork_works=no
13254       ;;
13255     *)
13256       ac_cv_func_fork_works=yes
13257       ;;
13258   esac
13259   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13260 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13261 fi
13262 ac_cv_func_vfork_works=$ac_cv_func_vfork
13263 if test "x$ac_cv_func_vfork" = xyes; then
13264   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
13265 $as_echo_n "checking for working vfork... " >&6; }
13266 if test "${ac_cv_func_vfork_works+set}" = set; then
13267   $as_echo_n "(cached) " >&6
13268 else
13269   if test "$cross_compiling" = yes; then
13270   ac_cv_func_vfork_works=cross
13271 else
13272   cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h.  */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h.  */
13278 /* Thanks to Paul Eggert for this test.  */
13279 $ac_includes_default
13280 #include <sys/wait.h>
13281 #ifdef HAVE_VFORK_H
13282 # include <vfork.h>
13283 #endif
13284 /* On some sparc systems, changes by the child to local and incoming
13285    argument registers are propagated back to the parent.  The compiler
13286    is told about this with #include <vfork.h>, but some compilers
13287    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
13288    static variable whose address is put into a register that is
13289    clobbered by the vfork.  */
13290 static void
13291 #ifdef __cplusplus
13292 sparc_address_test (int arg)
13293 # else
13294 sparc_address_test (arg) int arg;
13295 #endif
13296 {
13297   static pid_t child;
13298   if (!child) {
13299     child = vfork ();
13300     if (child < 0) {
13301       perror ("vfork");
13302       _exit(2);
13303     }
13304     if (!child) {
13305       arg = getpid();
13306       write(-1, "", 0);
13307       _exit (arg);
13308     }
13309   }
13310 }
13311
13312 int
13313 main ()
13314 {
13315   pid_t parent = getpid ();
13316   pid_t child;
13317
13318   sparc_address_test (0);
13319
13320   child = vfork ();
13321
13322   if (child == 0) {
13323     /* Here is another test for sparc vfork register problems.  This
13324        test uses lots of local variables, at least as many local
13325        variables as main has allocated so far including compiler
13326        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
13327        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
13328        reuse the register of parent for one of the local variables,
13329        since it will think that parent can't possibly be used any more
13330        in this routine.  Assigning to the local variable will thus
13331        munge parent in the parent process.  */
13332     pid_t
13333       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13334       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13335     /* Convince the compiler that p..p7 are live; otherwise, it might
13336        use the same hardware register for all 8 local variables.  */
13337     if (p != p1 || p != p2 || p != p3 || p != p4
13338         || p != p5 || p != p6 || p != p7)
13339       _exit(1);
13340
13341     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13342        from child file descriptors.  If the child closes a descriptor
13343        before it execs or exits, this munges the parent's descriptor
13344        as well.  Test for this by closing stdout in the child.  */
13345     _exit(close(fileno(stdout)) != 0);
13346   } else {
13347     int status;
13348     struct stat st;
13349
13350     while (wait(&status) != child)
13351       ;
13352     return (
13353          /* Was there some problem with vforking?  */
13354          child < 0
13355
13356          /* Did the child fail?  (This shouldn't happen.)  */
13357          || status
13358
13359          /* Did the vfork/compiler bug occur?  */
13360          || parent != getpid()
13361
13362          /* Did the file descriptor bug occur?  */
13363          || fstat(fileno(stdout), &st) != 0
13364          );
13365   }
13366 }
13367 _ACEOF
13368 rm -f conftest$ac_exeext
13369 if { (ac_try="$ac_link"
13370 case "(($ac_try" in
13371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372   *) ac_try_echo=$ac_try;;
13373 esac
13374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13375 $as_echo "$ac_try_echo") >&5
13376   (eval "$ac_link") 2>&5
13377   ac_status=$?
13378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13380   { (case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13385 $as_echo "$ac_try_echo") >&5
13386   (eval "$ac_try") 2>&5
13387   ac_status=$?
13388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; }; then
13390   ac_cv_func_vfork_works=yes
13391 else
13392   $as_echo "$as_me: program exited with status $ac_status" >&5
13393 $as_echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 ( exit $ac_status )
13397 ac_cv_func_vfork_works=no
13398 fi
13399 rm -rf conftest.dSYM
13400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13401 fi
13402
13403
13404 fi
13405 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13406 $as_echo "$ac_cv_func_vfork_works" >&6; }
13407
13408 fi;
13409 if test "x$ac_cv_func_fork_works" = xcross; then
13410   ac_cv_func_vfork_works=$ac_cv_func_vfork
13411   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13412 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13413 fi
13414
13415 if test "x$ac_cv_func_vfork_works" = xyes; then
13416
13417 cat >>confdefs.h <<\_ACEOF
13418 #define HAVE_WORKING_VFORK 1
13419 _ACEOF
13420
13421 else
13422
13423 cat >>confdefs.h <<\_ACEOF
13424 #define vfork fork
13425 _ACEOF
13426
13427 fi
13428 if test "x$ac_cv_func_fork_works" = xyes; then
13429
13430 cat >>confdefs.h <<\_ACEOF
13431 #define HAVE_WORKING_FORK 1
13432 _ACEOF
13433
13434 fi
13435
13436
13437 for ac_header in stdlib.h
13438 do
13439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13441   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13442 $as_echo_n "checking for $ac_header... " >&6; }
13443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13444   $as_echo_n "(cached) " >&6
13445 fi
13446 ac_res=`eval 'as_val=${'$as_ac_Header'}
13447                  $as_echo "$as_val"'`
13448                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13449 $as_echo "$ac_res" >&6; }
13450 else
13451   # Is the header compilable?
13452 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13453 $as_echo_n "checking $ac_header usability... " >&6; }
13454 cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h.  */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h.  */
13460 $ac_includes_default
13461 #include <$ac_header>
13462 _ACEOF
13463 rm -f conftest.$ac_objext
13464 if { (ac_try="$ac_compile"
13465 case "(($ac_try" in
13466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467   *) ac_try_echo=$ac_try;;
13468 esac
13469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13470 $as_echo "$ac_try_echo") >&5
13471   (eval "$ac_compile") 2>conftest.er1
13472   ac_status=$?
13473   grep -v '^ *+' conftest.er1 >conftest.err
13474   rm -f conftest.er1
13475   cat conftest.err >&5
13476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } && {
13478          test -z "$ac_c_werror_flag" ||
13479          test ! -s conftest.err
13480        } && test -s conftest.$ac_objext; then
13481   ac_header_compiler=yes
13482 else
13483   $as_echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13485
13486         ac_header_compiler=no
13487 fi
13488
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13491 $as_echo "$ac_header_compiler" >&6; }
13492
13493 # Is the header present?
13494 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13495 $as_echo_n "checking $ac_header presence... " >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13497 /* confdefs.h.  */
13498 _ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h.  */
13502 #include <$ac_header>
13503 _ACEOF
13504 if { (ac_try="$ac_cpp conftest.$ac_ext"
13505 case "(($ac_try" in
13506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13507   *) ac_try_echo=$ac_try;;
13508 esac
13509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13510 $as_echo "$ac_try_echo") >&5
13511   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } >/dev/null && {
13518          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13519          test ! -s conftest.err
13520        }; then
13521   ac_header_preproc=yes
13522 else
13523   $as_echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526   ac_header_preproc=no
13527 fi
13528
13529 rm -f conftest.err conftest.$ac_ext
13530 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13531 $as_echo "$ac_header_preproc" >&6; }
13532
13533 # So?  What about this header?
13534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13535   yes:no: )
13536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13537 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13538     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13539 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13540     ac_header_preproc=yes
13541     ;;
13542   no:yes:* )
13543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13544 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13546 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13548 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13550 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13553     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13554 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13555     ( cat <<\_ASBOX
13556 ## ----------------------------------------------- ##
13557 ## Report this to mznflapaf (at) 0pointer (dot) de ##
13558 ## ----------------------------------------------- ##
13559 _ASBOX
13560      ) | sed "s/^/$as_me: WARNING:     /" >&2
13561     ;;
13562 esac
13563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13564 $as_echo_n "checking for $ac_header... " >&6; }
13565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13566   $as_echo_n "(cached) " >&6
13567 else
13568   eval "$as_ac_Header=\$ac_header_preproc"
13569 fi
13570 ac_res=`eval 'as_val=${'$as_ac_Header'}
13571                  $as_echo "$as_val"'`
13572                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13573 $as_echo "$ac_res" >&6; }
13574
13575 fi
13576 as_val=`eval 'as_val=${'$as_ac_Header'}
13577                  $as_echo "$as_val"'`
13578    if test "x$as_val" = x""yes; then
13579   cat >>confdefs.h <<_ACEOF
13580 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13581 _ACEOF
13582
13583 fi
13584
13585 done
13586
13587 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
13588 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13589 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
13590   $as_echo_n "(cached) " >&6
13591 else
13592   if test "$cross_compiling" = yes; then
13593   ac_cv_func_malloc_0_nonnull=no
13594 else
13595   cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h.  */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h.  */
13601 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13602 # include <stdlib.h>
13603 #else
13604 char *malloc ();
13605 #endif
13606
13607 int
13608 main ()
13609 {
13610 return ! malloc (0);
13611   ;
13612   return 0;
13613 }
13614 _ACEOF
13615 rm -f conftest$ac_exeext
13616 if { (ac_try="$ac_link"
13617 case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13622 $as_echo "$ac_try_echo") >&5
13623   (eval "$ac_link") 2>&5
13624   ac_status=$?
13625   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13627   { (case "(($ac_try" in
13628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13629   *) ac_try_echo=$ac_try;;
13630 esac
13631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13632 $as_echo "$ac_try_echo") >&5
13633   (eval "$ac_try") 2>&5
13634   ac_status=$?
13635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); }; }; then
13637   ac_cv_func_malloc_0_nonnull=yes
13638 else
13639   $as_echo "$as_me: program exited with status $ac_status" >&5
13640 $as_echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 ( exit $ac_status )
13644 ac_cv_func_malloc_0_nonnull=no
13645 fi
13646 rm -rf conftest.dSYM
13647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13648 fi
13649
13650
13651 fi
13652 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
13653 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13654 if test $ac_cv_func_malloc_0_nonnull = yes; then
13655
13656 cat >>confdefs.h <<\_ACEOF
13657 #define HAVE_MALLOC 1
13658 _ACEOF
13659
13660 else
13661   cat >>confdefs.h <<\_ACEOF
13662 #define HAVE_MALLOC 0
13663 _ACEOF
13664
13665    case " $LIBOBJS " in
13666   *" malloc.$ac_objext "* ) ;;
13667   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13668  ;;
13669 esac
13670
13671
13672 cat >>confdefs.h <<\_ACEOF
13673 #define malloc rpl_malloc
13674 _ACEOF
13675
13676 fi
13677
13678
13679
13680
13681
13682 for ac_header in sys/select.h sys/socket.h
13683 do
13684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13686   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13687 $as_echo_n "checking for $ac_header... " >&6; }
13688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13689   $as_echo_n "(cached) " >&6
13690 fi
13691 ac_res=`eval 'as_val=${'$as_ac_Header'}
13692                  $as_echo "$as_val"'`
13693                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13694 $as_echo "$ac_res" >&6; }
13695 else
13696   # Is the header compilable?
13697 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13698 $as_echo_n "checking $ac_header usability... " >&6; }
13699 cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705 $ac_includes_default
13706 #include <$ac_header>
13707 _ACEOF
13708 rm -f conftest.$ac_objext
13709 if { (ac_try="$ac_compile"
13710 case "(($ac_try" in
13711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712   *) ac_try_echo=$ac_try;;
13713 esac
13714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13715 $as_echo "$ac_try_echo") >&5
13716   (eval "$ac_compile") 2>conftest.er1
13717   ac_status=$?
13718   grep -v '^ *+' conftest.er1 >conftest.err
13719   rm -f conftest.er1
13720   cat conftest.err >&5
13721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722   (exit $ac_status); } && {
13723          test -z "$ac_c_werror_flag" ||
13724          test ! -s conftest.err
13725        } && test -s conftest.$ac_objext; then
13726   ac_header_compiler=yes
13727 else
13728   $as_echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731         ac_header_compiler=no
13732 fi
13733
13734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13736 $as_echo "$ac_header_compiler" >&6; }
13737
13738 # Is the header present?
13739 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13740 $as_echo_n "checking $ac_header presence... " >&6; }
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747 #include <$ac_header>
13748 _ACEOF
13749 if { (ac_try="$ac_cpp conftest.$ac_ext"
13750 case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13755 $as_echo "$ac_try_echo") >&5
13756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13757   ac_status=$?
13758   grep -v '^ *+' conftest.er1 >conftest.err
13759   rm -f conftest.er1
13760   cat conftest.err >&5
13761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); } >/dev/null && {
13763          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13764          test ! -s conftest.err
13765        }; then
13766   ac_header_preproc=yes
13767 else
13768   $as_echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13770
13771   ac_header_preproc=no
13772 fi
13773
13774 rm -f conftest.err conftest.$ac_ext
13775 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13776 $as_echo "$ac_header_preproc" >&6; }
13777
13778 # So?  What about this header?
13779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13780   yes:no: )
13781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13782 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13785     ac_header_preproc=yes
13786     ;;
13787   no:yes:* )
13788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13789 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13790     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13791 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13792     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13793 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13794     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13795 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13796     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13797 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13798     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13799 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13800     ( cat <<\_ASBOX
13801 ## ----------------------------------------------- ##
13802 ## Report this to mznflapaf (at) 0pointer (dot) de ##
13803 ## ----------------------------------------------- ##
13804 _ASBOX
13805      ) | sed "s/^/$as_me: WARNING:     /" >&2
13806     ;;
13807 esac
13808 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13809 $as_echo_n "checking for $ac_header... " >&6; }
13810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13811   $as_echo_n "(cached) " >&6
13812 else
13813   eval "$as_ac_Header=\$ac_header_preproc"
13814 fi
13815 ac_res=`eval 'as_val=${'$as_ac_Header'}
13816                  $as_echo "$as_val"'`
13817                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13818 $as_echo "$ac_res" >&6; }
13819
13820 fi
13821 as_val=`eval 'as_val=${'$as_ac_Header'}
13822                  $as_echo "$as_val"'`
13823    if test "x$as_val" = x""yes; then
13824   cat >>confdefs.h <<_ACEOF
13825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13826 _ACEOF
13827
13828 fi
13829
13830 done
13831
13832 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
13833 $as_echo_n "checking types of arguments for select... " >&6; }
13834 if test "${ac_cv_func_select_args+set}" = set; then
13835   $as_echo_n "(cached) " >&6
13836 else
13837   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13838  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13839   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13840    cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 $ac_includes_default
13847 #ifdef HAVE_SYS_SELECT_H
13848 # include <sys/select.h>
13849 #endif
13850 #ifdef HAVE_SYS_SOCKET_H
13851 # include <sys/socket.h>
13852 #endif
13853
13854 int
13855 main ()
13856 {
13857 extern int select ($ac_arg1,
13858                                             $ac_arg234, $ac_arg234, $ac_arg234,
13859                                             $ac_arg5);
13860   ;
13861   return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext
13865 if { (ac_try="$ac_compile"
13866 case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13871 $as_echo "$ac_try_echo") >&5
13872   (eval "$ac_compile") 2>conftest.er1
13873   ac_status=$?
13874   grep -v '^ *+' conftest.er1 >conftest.err
13875   rm -f conftest.er1
13876   cat conftest.err >&5
13877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } && {
13879          test -z "$ac_c_werror_flag" ||
13880          test ! -s conftest.err
13881        } && test -s conftest.$ac_objext; then
13882   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13883 else
13884   $as_echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887
13888 fi
13889
13890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13891   done
13892  done
13893 done
13894 # Provide a safe default value.
13895 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13896
13897 fi
13898 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
13899 $as_echo "$ac_cv_func_select_args" >&6; }
13900 ac_save_IFS=$IFS; IFS=','
13901 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13902 IFS=$ac_save_IFS
13903 shift
13904
13905 cat >>confdefs.h <<_ACEOF
13906 #define SELECT_TYPE_ARG1 $1
13907 _ACEOF
13908
13909
13910 cat >>confdefs.h <<_ACEOF
13911 #define SELECT_TYPE_ARG234 ($2)
13912 _ACEOF
13913
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define SELECT_TYPE_ARG5 ($3)
13917 _ACEOF
13918
13919 rm -f conftest*
13920
13921 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13922 $as_echo_n "checking return type of signal handlers... " >&6; }
13923 if test "${ac_cv_type_signal+set}" = set; then
13924   $as_echo_n "(cached) " >&6
13925 else
13926   cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h.  */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h.  */
13932 #include <sys/types.h>
13933 #include <signal.h>
13934
13935 int
13936 main ()
13937 {
13938 return *(signal (0, 0)) (0) == 1;
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 rm -f conftest.$ac_objext
13944 if { (ac_try="$ac_compile"
13945 case "(($ac_try" in
13946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947   *) ac_try_echo=$ac_try;;
13948 esac
13949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13950 $as_echo "$ac_try_echo") >&5
13951   (eval "$ac_compile") 2>conftest.er1
13952   ac_status=$?
13953   grep -v '^ *+' conftest.er1 >conftest.err
13954   rm -f conftest.er1
13955   cat conftest.err >&5
13956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957   (exit $ac_status); } && {
13958          test -z "$ac_c_werror_flag" ||
13959          test ! -s conftest.err
13960        } && test -s conftest.$ac_objext; then
13961   ac_cv_type_signal=int
13962 else
13963   $as_echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966         ac_cv_type_signal=void
13967 fi
13968
13969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13970 fi
13971 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13972 $as_echo "$ac_cv_type_signal" >&6; }
13973
13974 cat >>confdefs.h <<_ACEOF
13975 #define RETSIGTYPE $ac_cv_type_signal
13976 _ACEOF
13977
13978
13979
13980
13981
13982
13983
13984
13985 for ac_func in memset select strndup setresuid setreuid strerror
13986 do
13987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13988 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13989 $as_echo_n "checking for $ac_func... " >&6; }
13990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13991   $as_echo_n "(cached) " >&6
13992 else
13993   cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h.  */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h.  */
13999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14001 #define $ac_func innocuous_$ac_func
14002
14003 /* System header to define __stub macros and hopefully few prototypes,
14004     which can conflict with char $ac_func (); below.
14005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14006     <limits.h> exists even on freestanding compilers.  */
14007
14008 #ifdef __STDC__
14009 # include <limits.h>
14010 #else
14011 # include <assert.h>
14012 #endif
14013
14014 #undef $ac_func
14015
14016 /* Override any GCC internal prototype to avoid an error.
14017    Use char because int might match the return type of a GCC
14018    builtin and then its argument prototype would still apply.  */
14019 #ifdef __cplusplus
14020 extern "C"
14021 #endif
14022 char $ac_func ();
14023 /* The GNU C library defines this for functions which it implements
14024     to always fail with ENOSYS.  Some functions are actually named
14025     something starting with __ and the normal name is an alias.  */
14026 #if defined __stub_$ac_func || defined __stub___$ac_func
14027 choke me
14028 #endif
14029
14030 int
14031 main ()
14032 {
14033 return $ac_func ();
14034   ;
14035   return 0;
14036 }
14037 _ACEOF
14038 rm -f conftest.$ac_objext conftest$ac_exeext
14039 if { (ac_try="$ac_link"
14040 case "(($ac_try" in
14041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042   *) ac_try_echo=$ac_try;;
14043 esac
14044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14045 $as_echo "$ac_try_echo") >&5
14046   (eval "$ac_link") 2>conftest.er1
14047   ac_status=$?
14048   grep -v '^ *+' conftest.er1 >conftest.err
14049   rm -f conftest.er1
14050   cat conftest.err >&5
14051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); } && {
14053          test -z "$ac_c_werror_flag" ||
14054          test ! -s conftest.err
14055        } && test -s conftest$ac_exeext && {
14056          test "$cross_compiling" = yes ||
14057          $as_test_x conftest$ac_exeext
14058        }; then
14059   eval "$as_ac_var=yes"
14060 else
14061   $as_echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064         eval "$as_ac_var=no"
14065 fi
14066
14067 rm -rf conftest.dSYM
14068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14069       conftest$ac_exeext conftest.$ac_ext
14070 fi
14071 ac_res=`eval 'as_val=${'$as_ac_var'}
14072                  $as_echo "$as_val"'`
14073                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14074 $as_echo "$ac_res" >&6; }
14075 as_val=`eval 'as_val=${'$as_ac_var'}
14076                  $as_echo "$as_val"'`
14077    if test "x$as_val" = x""yes; then
14078   cat >>confdefs.h <<_ACEOF
14079 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14080 _ACEOF
14081
14082 fi
14083 done
14084
14085
14086 # Check whether --enable-largefile was given.
14087 if test "${enable_largefile+set}" = set; then
14088   enableval=$enable_largefile;
14089 fi
14090
14091 if test "$enable_largefile" != no; then
14092
14093   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
14094 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
14095 if test "${ac_cv_sys_largefile_CC+set}" = set; then
14096   $as_echo_n "(cached) " >&6
14097 else
14098   ac_cv_sys_largefile_CC=no
14099      if test "$GCC" != yes; then
14100        ac_save_CC=$CC
14101        while :; do
14102          # IRIX 6.2 and later do not support large files by default,
14103          # so use the C compiler's -n32 option if that helps.
14104          cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h.  */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h.  */
14110 #include <sys/types.h>
14111  /* Check that off_t can represent 2**63 - 1 correctly.
14112     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14113     since some C++ compilers masquerading as C compilers
14114     incorrectly reject 9223372036854775807.  */
14115 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14116   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14117                        && LARGE_OFF_T % 2147483647 == 1)
14118                       ? 1 : -1];
14119 int
14120 main ()
14121 {
14122
14123   ;
14124   return 0;
14125 }
14126 _ACEOF
14127          rm -f conftest.$ac_objext
14128 if { (ac_try="$ac_compile"
14129 case "(($ac_try" in
14130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131   *) ac_try_echo=$ac_try;;
14132 esac
14133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14134 $as_echo "$ac_try_echo") >&5
14135   (eval "$ac_compile") 2>conftest.er1
14136   ac_status=$?
14137   grep -v '^ *+' conftest.er1 >conftest.err
14138   rm -f conftest.er1
14139   cat conftest.err >&5
14140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); } && {
14142          test -z "$ac_c_werror_flag" ||
14143          test ! -s conftest.err
14144        } && test -s conftest.$ac_objext; then
14145   break
14146 else
14147   $as_echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150
14151 fi
14152
14153 rm -f core conftest.err conftest.$ac_objext
14154          CC="$CC -n32"
14155          rm -f conftest.$ac_objext
14156 if { (ac_try="$ac_compile"
14157 case "(($ac_try" in
14158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159   *) ac_try_echo=$ac_try;;
14160 esac
14161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14162 $as_echo "$ac_try_echo") >&5
14163   (eval "$ac_compile") 2>conftest.er1
14164   ac_status=$?
14165   grep -v '^ *+' conftest.er1 >conftest.err
14166   rm -f conftest.er1
14167   cat conftest.err >&5
14168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169   (exit $ac_status); } && {
14170          test -z "$ac_c_werror_flag" ||
14171          test ! -s conftest.err
14172        } && test -s conftest.$ac_objext; then
14173   ac_cv_sys_largefile_CC=' -n32'; break
14174 else
14175   $as_echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14177
14178
14179 fi
14180
14181 rm -f core conftest.err conftest.$ac_objext
14182          break
14183        done
14184        CC=$ac_save_CC
14185        rm -f conftest.$ac_ext
14186     fi
14187 fi
14188 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
14189 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
14190   if test "$ac_cv_sys_largefile_CC" != no; then
14191     CC=$CC$ac_cv_sys_largefile_CC
14192   fi
14193
14194   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14195 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14196 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
14197   $as_echo_n "(cached) " >&6
14198 else
14199   while :; do
14200   cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h.  */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h.  */
14206 #include <sys/types.h>
14207  /* Check that off_t can represent 2**63 - 1 correctly.
14208     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14209     since some C++ compilers masquerading as C compilers
14210     incorrectly reject 9223372036854775807.  */
14211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14212   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14213                        && LARGE_OFF_T % 2147483647 == 1)
14214                       ? 1 : -1];
14215 int
14216 main ()
14217 {
14218
14219   ;
14220   return 0;
14221 }
14222 _ACEOF
14223 rm -f conftest.$ac_objext
14224 if { (ac_try="$ac_compile"
14225 case "(($ac_try" in
14226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227   *) ac_try_echo=$ac_try;;
14228 esac
14229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14230 $as_echo "$ac_try_echo") >&5
14231   (eval "$ac_compile") 2>conftest.er1
14232   ac_status=$?
14233   grep -v '^ *+' conftest.er1 >conftest.err
14234   rm -f conftest.er1
14235   cat conftest.err >&5
14236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); } && {
14238          test -z "$ac_c_werror_flag" ||
14239          test ! -s conftest.err
14240        } && test -s conftest.$ac_objext; then
14241   ac_cv_sys_file_offset_bits=no; break
14242 else
14243   $as_echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246
14247 fi
14248
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250   cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256 #define _FILE_OFFSET_BITS 64
14257 #include <sys/types.h>
14258  /* Check that off_t can represent 2**63 - 1 correctly.
14259     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14260     since some C++ compilers masquerading as C compilers
14261     incorrectly reject 9223372036854775807.  */
14262 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14263   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14264                        && LARGE_OFF_T % 2147483647 == 1)
14265                       ? 1 : -1];
14266 int
14267 main ()
14268 {
14269
14270   ;
14271   return 0;
14272 }
14273 _ACEOF
14274 rm -f conftest.$ac_objext
14275 if { (ac_try="$ac_compile"
14276 case "(($ac_try" in
14277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278   *) ac_try_echo=$ac_try;;
14279 esac
14280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14281 $as_echo "$ac_try_echo") >&5
14282   (eval "$ac_compile") 2>conftest.er1
14283   ac_status=$?
14284   grep -v '^ *+' conftest.er1 >conftest.err
14285   rm -f conftest.er1
14286   cat conftest.err >&5
14287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } && {
14289          test -z "$ac_c_werror_flag" ||
14290          test ! -s conftest.err
14291        } && test -s conftest.$ac_objext; then
14292   ac_cv_sys_file_offset_bits=64; break
14293 else
14294   $as_echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297
14298 fi
14299
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301   ac_cv_sys_file_offset_bits=unknown
14302   break
14303 done
14304 fi
14305 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
14306 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14307 case $ac_cv_sys_file_offset_bits in #(
14308   no | unknown) ;;
14309   *)
14310 cat >>confdefs.h <<_ACEOF
14311 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14312 _ACEOF
14313 ;;
14314 esac
14315 rm -rf conftest*
14316   if test $ac_cv_sys_file_offset_bits = unknown; then
14317     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
14318 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14319 if test "${ac_cv_sys_large_files+set}" = set; then
14320   $as_echo_n "(cached) " >&6
14321 else
14322   while :; do
14323   cat >conftest.$ac_ext <<_ACEOF
14324 /* confdefs.h.  */
14325 _ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h.  */
14329 #include <sys/types.h>
14330  /* Check that off_t can represent 2**63 - 1 correctly.
14331     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14332     since some C++ compilers masquerading as C compilers
14333     incorrectly reject 9223372036854775807.  */
14334 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14335   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14336                        && LARGE_OFF_T % 2147483647 == 1)
14337                       ? 1 : -1];
14338 int
14339 main ()
14340 {
14341
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (ac_try="$ac_compile"
14348 case "(($ac_try" in
14349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350   *) ac_try_echo=$ac_try;;
14351 esac
14352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14353 $as_echo "$ac_try_echo") >&5
14354   (eval "$ac_compile") 2>conftest.er1
14355   ac_status=$?
14356   grep -v '^ *+' conftest.er1 >conftest.err
14357   rm -f conftest.er1
14358   cat conftest.err >&5
14359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } && {
14361          test -z "$ac_c_werror_flag" ||
14362          test ! -s conftest.err
14363        } && test -s conftest.$ac_objext; then
14364   ac_cv_sys_large_files=no; break
14365 else
14366   $as_echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369
14370 fi
14371
14372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373   cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h.  */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h.  */
14379 #define _LARGE_FILES 1
14380 #include <sys/types.h>
14381  /* Check that off_t can represent 2**63 - 1 correctly.
14382     We can't simply define LARGE_OFF_T to be 9223372036854775807,
14383     since some C++ compilers masquerading as C compilers
14384     incorrectly reject 9223372036854775807.  */
14385 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14386   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14387                        && LARGE_OFF_T % 2147483647 == 1)
14388                       ? 1 : -1];
14389 int
14390 main ()
14391 {
14392
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 rm -f conftest.$ac_objext
14398 if { (ac_try="$ac_compile"
14399 case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14404 $as_echo "$ac_try_echo") >&5
14405   (eval "$ac_compile") 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } && {
14412          test -z "$ac_c_werror_flag" ||
14413          test ! -s conftest.err
14414        } && test -s conftest.$ac_objext; then
14415   ac_cv_sys_large_files=1; break
14416 else
14417   $as_echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14419
14420
14421 fi
14422
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424   ac_cv_sys_large_files=unknown
14425   break
14426 done
14427 fi
14428 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
14429 $as_echo "$ac_cv_sys_large_files" >&6; }
14430 case $ac_cv_sys_large_files in #(
14431   no | unknown) ;;
14432   *)
14433 cat >>confdefs.h <<_ACEOF
14434 #define _LARGE_FILES $ac_cv_sys_large_files
14435 _ACEOF
14436 ;;
14437 esac
14438 rm -rf conftest*
14439   fi
14440 fi
14441
14442
14443
14444 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
14445 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
14446 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
14447   $as_echo_n "(cached) " >&6
14448 else
14449   ac_check_lib_save_LIBS=$LIBS
14450 LIBS="-lnsl  $LIBS"
14451 cat >conftest.$ac_ext <<_ACEOF
14452 /* confdefs.h.  */
14453 _ACEOF
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h.  */
14457
14458 /* Override any GCC internal prototype to avoid an error.
14459    Use char because int might match the return type of a GCC
14460    builtin and then its argument prototype would still apply.  */
14461 #ifdef __cplusplus
14462 extern "C"
14463 #endif
14464 char gethostbyname ();
14465 int
14466 main ()
14467 {
14468 return gethostbyname ();
14469   ;
14470   return 0;
14471 }
14472 _ACEOF
14473 rm -f conftest.$ac_objext conftest$ac_exeext
14474 if { (ac_try="$ac_link"
14475 case "(($ac_try" in
14476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14477   *) ac_try_echo=$ac_try;;
14478 esac
14479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14480 $as_echo "$ac_try_echo") >&5
14481   (eval "$ac_link") 2>conftest.er1
14482   ac_status=$?
14483   grep -v '^ *+' conftest.er1 >conftest.err
14484   rm -f conftest.er1
14485   cat conftest.err >&5
14486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); } && {
14488          test -z "$ac_c_werror_flag" ||
14489          test ! -s conftest.err
14490        } && test -s conftest$ac_exeext && {
14491          test "$cross_compiling" = yes ||
14492          $as_test_x conftest$ac_exeext
14493        }; then
14494   ac_cv_lib_nsl_gethostbyname=yes
14495 else
14496   $as_echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499         ac_cv_lib_nsl_gethostbyname=no
14500 fi
14501
14502 rm -rf conftest.dSYM
14503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14504       conftest$ac_exeext conftest.$ac_ext
14505 LIBS=$ac_check_lib_save_LIBS
14506 fi
14507 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
14508 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
14509 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
14510   cat >>confdefs.h <<_ACEOF
14511 #define HAVE_LIBNSL 1
14512 _ACEOF
14513
14514   LIBS="-lnsl $LIBS"
14515
14516 fi
14517
14518
14519 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
14520 $as_echo_n "checking for connect in -lsocket... " >&6; }
14521 if test "${ac_cv_lib_socket_connect+set}" = set; then
14522   $as_echo_n "(cached) " >&6
14523 else
14524   ac_check_lib_save_LIBS=$LIBS
14525 LIBS="-lsocket  $LIBS"
14526 cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h.  */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h.  */
14532
14533 /* Override any GCC internal prototype to avoid an error.
14534    Use char because int might match the return type of a GCC
14535    builtin and then its argument prototype would still apply.  */
14536 #ifdef __cplusplus
14537 extern "C"
14538 #endif
14539 char connect ();
14540 int
14541 main ()
14542 {
14543 return connect ();
14544   ;
14545   return 0;
14546 }
14547 _ACEOF
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552   *) ac_try_echo=$ac_try;;
14553 esac
14554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14555 $as_echo "$ac_try_echo") >&5
14556   (eval "$ac_link") 2>conftest.er1
14557   ac_status=$?
14558   grep -v '^ *+' conftest.er1 >conftest.err
14559   rm -f conftest.er1
14560   cat conftest.err >&5
14561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562   (exit $ac_status); } && {
14563          test -z "$ac_c_werror_flag" ||
14564          test ! -s conftest.err
14565        } && test -s conftest$ac_exeext && {
14566          test "$cross_compiling" = yes ||
14567          $as_test_x conftest$ac_exeext
14568        }; then
14569   ac_cv_lib_socket_connect=yes
14570 else
14571   $as_echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14573
14574         ac_cv_lib_socket_connect=no
14575 fi
14576
14577 rm -rf conftest.dSYM
14578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14579       conftest$ac_exeext conftest.$ac_ext
14580 LIBS=$ac_check_lib_save_LIBS
14581 fi
14582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
14583 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14584 if test "x$ac_cv_lib_socket_connect" = x""yes; then
14585   cat >>confdefs.h <<_ACEOF
14586 #define HAVE_LIBSOCKET 1
14587 _ACEOF
14588
14589   LIBS="-lsocket $LIBS"
14590
14591 fi
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601   { $as_echo "$as_me:$LINENO: checking for library containing res_query" >&5
14602 $as_echo_n "checking for library containing res_query... " >&6; }
14603 if test "${acf_cv_library_res_query+set}" = set; then
14604   $as_echo_n "(cached) " >&6
14605 else
14606   while true; do
14607
14608          save_libs=$LIBS
14609          LIBS="$LIBS "
14610          cat >conftest.$ac_ext <<_ACEOF
14611
14612     /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617
14618       #include <resolv.h>
14619
14620 int
14621 main ()
14622 {
14623 res_query(0, 0, 0, 0, 0);
14624   ;
14625   return 0;
14626 }
14627
14628
14629 _ACEOF
14630 rm -f conftest.$ac_objext conftest$ac_exeext
14631 if { (ac_try="$ac_link"
14632 case "(($ac_try" in
14633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634   *) ac_try_echo=$ac_try;;
14635 esac
14636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14637 $as_echo "$ac_try_echo") >&5
14638   (eval "$ac_link") 2>conftest.er1
14639   ac_status=$?
14640   grep -v '^ *+' conftest.er1 >conftest.err
14641   rm -f conftest.er1
14642   cat conftest.err >&5
14643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); } && {
14645          test -z "$ac_c_werror_flag" ||
14646          test ! -s conftest.err
14647        } && test -s conftest$ac_exeext && {
14648          test "$cross_compiling" = yes ||
14649          $as_test_x conftest$ac_exeext
14650        }; then
14651   acf_cv_library_res_query=" "
14652 else
14653   $as_echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656
14657 fi
14658
14659 rm -rf conftest.dSYM
14660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14661       conftest$ac_exeext conftest.$ac_ext
14662          LIBS=$save_libs
14663          if test -n "$acf_cv_library_res_query"; then
14664   break
14665 fi
14666
14667
14668          save_libs=$LIBS
14669          LIBS="$LIBS -lresolv"
14670          cat >conftest.$ac_ext <<_ACEOF
14671
14672     /* confdefs.h.  */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h.  */
14677
14678       #include <resolv.h>
14679
14680 int
14681 main ()
14682 {
14683 res_query(0, 0, 0, 0, 0);
14684   ;
14685   return 0;
14686 }
14687
14688
14689 _ACEOF
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (ac_try="$ac_link"
14692 case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14697 $as_echo "$ac_try_echo") >&5
14698   (eval "$ac_link") 2>conftest.er1
14699   ac_status=$?
14700   grep -v '^ *+' conftest.er1 >conftest.err
14701   rm -f conftest.er1
14702   cat conftest.err >&5
14703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704   (exit $ac_status); } && {
14705          test -z "$ac_c_werror_flag" ||
14706          test ! -s conftest.err
14707        } && test -s conftest$ac_exeext && {
14708          test "$cross_compiling" = yes ||
14709          $as_test_x conftest$ac_exeext
14710        }; then
14711   acf_cv_library_res_query=" -lresolv"
14712 else
14713   $as_echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14715
14716
14717 fi
14718
14719 rm -rf conftest.dSYM
14720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14721       conftest$ac_exeext conftest.$ac_ext
14722          LIBS=$save_libs
14723          if test -n "$acf_cv_library_res_query"; then
14724   break
14725 fi
14726
14727
14728          save_libs=$LIBS
14729          LIBS="$LIBS -lbind"
14730          cat >conftest.$ac_ext <<_ACEOF
14731
14732     /* confdefs.h.  */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h.  */
14737
14738       #include <resolv.h>
14739
14740 int
14741 main ()
14742 {
14743 res_query(0, 0, 0, 0, 0);
14744   ;
14745   return 0;
14746 }
14747
14748
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (ac_try="$ac_link"
14752 case "(($ac_try" in
14753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754   *) ac_try_echo=$ac_try;;
14755 esac
14756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14757 $as_echo "$ac_try_echo") >&5
14758   (eval "$ac_link") 2>conftest.er1
14759   ac_status=$?
14760   grep -v '^ *+' conftest.er1 >conftest.err
14761   rm -f conftest.er1
14762   cat conftest.err >&5
14763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764   (exit $ac_status); } && {
14765          test -z "$ac_c_werror_flag" ||
14766          test ! -s conftest.err
14767        } && test -s conftest$ac_exeext && {
14768          test "$cross_compiling" = yes ||
14769          $as_test_x conftest$ac_exeext
14770        }; then
14771   acf_cv_library_res_query=" -lbind"
14772 else
14773   $as_echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776
14777 fi
14778
14779 rm -rf conftest.dSYM
14780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14781       conftest$ac_exeext conftest.$ac_ext
14782          LIBS=$save_libs
14783          if test -n "$acf_cv_library_res_query"; then
14784   break
14785 fi
14786
14787
14788        break
14789      done
14790
14791 fi
14792 { $as_echo "$as_me:$LINENO: result: $acf_cv_library_res_query" >&5
14793 $as_echo "$acf_cv_library_res_query" >&6; }
14794
14795
14796
14797   if test -n "$acf_cv_library_res_query"; then
14798   LIBS="$LIBS $acf_cv_library_res_query"
14799
14800 else
14801   { { $as_echo "$as_me:$LINENO: error: res_query not found" >&5
14802 $as_echo "$as_me: error: res_query not found" >&2;}
14803    { (exit 1); exit 1; }; }
14804
14805
14806 fi
14807
14808
14809
14810
14811
14812
14813
14814
14815 ac_ext=c
14816 ac_cpp='$CPP $CPPFLAGS'
14817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14820
14821 acx_pthread_ok=no
14822
14823 # We used to check for pthread.h first, but this fails if pthread.h
14824 # requires special compiler flags (e.g. on True64 or Sequent).
14825 # It gets checked for in the link test anyway.
14826
14827 # First of all, check if the user has set any of the PTHREAD_LIBS,
14828 # etcetera environment variables, and if threads linking works using
14829 # them:
14830 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
14831         save_CFLAGS="$CFLAGS"
14832         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14833         save_LIBS="$LIBS"
14834         LIBS="$PTHREAD_LIBS $LIBS"
14835         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
14836 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
14837         cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843
14844 /* Override any GCC internal prototype to avoid an error.
14845    Use char because int might match the return type of a GCC
14846    builtin and then its argument prototype would still apply.  */
14847 #ifdef __cplusplus
14848 extern "C"
14849 #endif
14850 char pthread_join ();
14851 int
14852 main ()
14853 {
14854 return pthread_join ();
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest.$ac_objext conftest$ac_exeext
14860 if { (ac_try="$ac_link"
14861 case "(($ac_try" in
14862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863   *) ac_try_echo=$ac_try;;
14864 esac
14865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14866 $as_echo "$ac_try_echo") >&5
14867   (eval "$ac_link") 2>conftest.er1
14868   ac_status=$?
14869   grep -v '^ *+' conftest.er1 >conftest.err
14870   rm -f conftest.er1
14871   cat conftest.err >&5
14872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); } && {
14874          test -z "$ac_c_werror_flag" ||
14875          test ! -s conftest.err
14876        } && test -s conftest$ac_exeext && {
14877          test "$cross_compiling" = yes ||
14878          $as_test_x conftest$ac_exeext
14879        }; then
14880   acx_pthread_ok=yes
14881 else
14882   $as_echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885
14886 fi
14887
14888 rm -rf conftest.dSYM
14889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14890       conftest$ac_exeext conftest.$ac_ext
14891         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
14892 $as_echo "$acx_pthread_ok" >&6; }
14893         if test x"$acx_pthread_ok" = xno; then
14894                 PTHREAD_LIBS=""
14895                 PTHREAD_CFLAGS=""
14896         fi
14897         LIBS="$save_LIBS"
14898         CFLAGS="$save_CFLAGS"
14899 fi
14900
14901 # We must check for the threads library under a number of different
14902 # names; the ordering is very important because some systems
14903 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14904 # libraries is broken (non-POSIX).
14905
14906 # Create a list of thread flags to try.  Items starting with a "-" are
14907 # C compiler flags, and other items are library names, except for "none"
14908 # which indicates that we try without any flags at all, and "pthread-config"
14909 # which is a program returning the flags for the Pth emulation library.
14910
14911 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14912
14913 # The ordering *is* (sometimes) important.  Some notes on the
14914 # individual items follow:
14915
14916 # pthreads: AIX (must check this before -lpthread)
14917 # none: in case threads are in libc; should be tried before -Kthread and
14918 #       other compiler flags to prevent continual compiler warnings
14919 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14920 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14921 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14922 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14923 # -pthreads: Solaris/gcc
14924 # -mthreads: Mingw32/gcc, Lynx/gcc
14925 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14926 #      doesn't hurt to check since this sometimes defines pthreads too;
14927 #      also defines -D_REENTRANT)
14928 # pthread: Linux, etcetera
14929 # --thread-safe: KAI C++
14930 # pthread-config: use pthread-config program (for GNU Pth library)
14931
14932 case "${host_cpu}-${host_os}" in
14933         *solaris*)
14934
14935         # On Solaris (at least, for some versions), libc contains stubbed
14936         # (non-functional) versions of the pthreads routines, so link-based
14937         # tests will erroneously succeed.  (We need to link with -pthread or
14938         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
14939         # a function called by this macro, so we could check for that, but
14940         # who knows whether they'll stub that too in a future libc.)  So,
14941         # we'll just look for -pthreads and -lpthread first:
14942
14943         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
14944         ;;
14945 esac
14946
14947 if test x"$acx_pthread_ok" = xno; then
14948 for flag in $acx_pthread_flags; do
14949
14950         case $flag in
14951                 none)
14952                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
14953 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14954                 ;;
14955
14956                 -*)
14957                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
14958 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14959                 PTHREAD_CFLAGS="$flag"
14960                 ;;
14961
14962                 pthread-config)
14963                 # Extract the first word of "pthread-config", so it can be a program name with args.
14964 set dummy pthread-config; ac_word=$2
14965 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14966 $as_echo_n "checking for $ac_word... " >&6; }
14967 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
14968   $as_echo_n "(cached) " >&6
14969 else
14970   if test -n "$acx_pthread_config"; then
14971   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
14972 else
14973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14974 for as_dir in $PATH
14975 do
14976   IFS=$as_save_IFS
14977   test -z "$as_dir" && as_dir=.
14978   for ac_exec_ext in '' $ac_executable_extensions; do
14979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14980     ac_cv_prog_acx_pthread_config="yes"
14981     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14982     break 2
14983   fi
14984 done
14985 done
14986 IFS=$as_save_IFS
14987
14988   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
14989 fi
14990 fi
14991 acx_pthread_config=$ac_cv_prog_acx_pthread_config
14992 if test -n "$acx_pthread_config"; then
14993   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
14994 $as_echo "$acx_pthread_config" >&6; }
14995 else
14996   { $as_echo "$as_me:$LINENO: result: no" >&5
14997 $as_echo "no" >&6; }
14998 fi
14999
15000
15001                 if test x"$acx_pthread_config" = xno; then continue; fi
15002                 PTHREAD_CFLAGS="`pthread-config --cflags`"
15003                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15004                 ;;
15005
15006                 *)
15007                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
15008 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15009                 PTHREAD_LIBS="-l$flag"
15010                 ;;
15011         esac
15012
15013         save_LIBS="$LIBS"
15014         save_CFLAGS="$CFLAGS"
15015         LIBS="$PTHREAD_LIBS $LIBS"
15016         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15017
15018         # Check for various functions.  We must include pthread.h,
15019         # since some functions may be macros.  (On the Sequent, we
15020         # need a special flag -Kthread to make this header compile.)
15021         # We check for pthread_join because it is in -lpthread on IRIX
15022         # while pthread_create is in libc.  We check for pthread_attr_init
15023         # due to DEC craziness with -lpthreads.  We check for
15024         # pthread_cleanup_push because it is one of the few pthread
15025         # functions on Solaris that doesn't have a non-functional libc stub.
15026         # We try pthread_create on general principles.
15027         cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h.  */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h.  */
15033 #include <pthread.h>
15034 int
15035 main ()
15036 {
15037 pthread_t th; pthread_join(th, 0);
15038                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
15039                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
15040   ;
15041   return 0;
15042 }
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15051 $as_echo "$ac_try_echo") >&5
15052   (eval "$ac_link") 2>conftest.er1
15053   ac_status=$?
15054   grep -v '^ *+' conftest.er1 >conftest.err
15055   rm -f conftest.er1
15056   cat conftest.err >&5
15057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } && {
15059          test -z "$ac_c_werror_flag" ||
15060          test ! -s conftest.err
15061        } && test -s conftest$ac_exeext && {
15062          test "$cross_compiling" = yes ||
15063          $as_test_x conftest$ac_exeext
15064        }; then
15065   acx_pthread_ok=yes
15066 else
15067   $as_echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070
15071 fi
15072
15073 rm -rf conftest.dSYM
15074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15075       conftest$ac_exeext conftest.$ac_ext
15076
15077         LIBS="$save_LIBS"
15078         CFLAGS="$save_CFLAGS"
15079
15080         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
15081 $as_echo "$acx_pthread_ok" >&6; }
15082         if test "x$acx_pthread_ok" = xyes; then
15083                 break;
15084         fi
15085
15086         PTHREAD_LIBS=""
15087         PTHREAD_CFLAGS=""
15088 done
15089 fi
15090
15091 # Various other checks:
15092 if test "x$acx_pthread_ok" = xyes; then
15093         save_LIBS="$LIBS"
15094         LIBS="$PTHREAD_LIBS $LIBS"
15095         save_CFLAGS="$CFLAGS"
15096         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15097
15098         # Detect AIX lossage: threads are created detached by default
15099         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
15100         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
15101 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15102         cat >conftest.$ac_ext <<_ACEOF
15103 /* confdefs.h.  */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h.  */
15108 #include <pthread.h>
15109 int
15110 main ()
15111 {
15112 int attr=PTHREAD_CREATE_JOINABLE;
15113   ;
15114   return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (ac_try="$ac_link"
15119 case "(($ac_try" in
15120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121   *) ac_try_echo=$ac_try;;
15122 esac
15123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15124 $as_echo "$ac_try_echo") >&5
15125   (eval "$ac_link") 2>conftest.er1
15126   ac_status=$?
15127   grep -v '^ *+' conftest.er1 >conftest.err
15128   rm -f conftest.er1
15129   cat conftest.err >&5
15130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } && {
15132          test -z "$ac_c_werror_flag" ||
15133          test ! -s conftest.err
15134        } && test -s conftest$ac_exeext && {
15135          test "$cross_compiling" = yes ||
15136          $as_test_x conftest$ac_exeext
15137        }; then
15138   ok=PTHREAD_CREATE_JOINABLE
15139 else
15140   $as_echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.$ac_ext >&5
15142
15143         ok=unknown
15144 fi
15145
15146 rm -rf conftest.dSYM
15147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15148       conftest$ac_exeext conftest.$ac_ext
15149         if test x"$ok" = xunknown; then
15150                 cat >conftest.$ac_ext <<_ACEOF
15151 /* confdefs.h.  */
15152 _ACEOF
15153 cat confdefs.h >>conftest.$ac_ext
15154 cat >>conftest.$ac_ext <<_ACEOF
15155 /* end confdefs.h.  */
15156 #include <pthread.h>
15157 int
15158 main ()
15159 {
15160 int attr=PTHREAD_CREATE_UNDETACHED;
15161   ;
15162   return 0;
15163 }
15164 _ACEOF
15165 rm -f conftest.$ac_objext conftest$ac_exeext
15166 if { (ac_try="$ac_link"
15167 case "(($ac_try" in
15168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169   *) ac_try_echo=$ac_try;;
15170 esac
15171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15172 $as_echo "$ac_try_echo") >&5
15173   (eval "$ac_link") 2>conftest.er1
15174   ac_status=$?
15175   grep -v '^ *+' conftest.er1 >conftest.err
15176   rm -f conftest.er1
15177   cat conftest.err >&5
15178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179   (exit $ac_status); } && {
15180          test -z "$ac_c_werror_flag" ||
15181          test ! -s conftest.err
15182        } && test -s conftest$ac_exeext && {
15183          test "$cross_compiling" = yes ||
15184          $as_test_x conftest$ac_exeext
15185        }; then
15186   ok=PTHREAD_CREATE_UNDETACHED
15187 else
15188   $as_echo "$as_me: failed program was:" >&5
15189 sed 's/^/| /' conftest.$ac_ext >&5
15190
15191         ok=unknown
15192 fi
15193
15194 rm -rf conftest.dSYM
15195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15196       conftest$ac_exeext conftest.$ac_ext
15197         fi
15198         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
15199
15200 cat >>confdefs.h <<\_ACEOF
15201 #define PTHREAD_CREATE_JOINABLE $ok
15202 _ACEOF
15203
15204         fi
15205         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
15206 $as_echo "${ok}" >&6; }
15207         if test x"$ok" = xunknown; then
15208                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
15209 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
15210         fi
15211
15212         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
15213 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15214         flag=no
15215         case "${host_cpu}-${host_os}" in
15216                 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
15217                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
15218         esac
15219         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
15220 $as_echo "${flag}" >&6; }
15221         if test "x$flag" != xno; then
15222                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15223         fi
15224
15225         LIBS="$save_LIBS"
15226         CFLAGS="$save_CFLAGS"
15227
15228         # More AIX lossage: must compile with cc_r
15229         # Extract the first word of "cc_r", so it can be a program name with args.
15230 set dummy cc_r; ac_word=$2
15231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15232 $as_echo_n "checking for $ac_word... " >&6; }
15233 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
15234   $as_echo_n "(cached) " >&6
15235 else
15236   if test -n "$PTHREAD_CC"; then
15237   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15238 else
15239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15240 for as_dir in $PATH
15241 do
15242   IFS=$as_save_IFS
15243   test -z "$as_dir" && as_dir=.
15244   for ac_exec_ext in '' $ac_executable_extensions; do
15245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15246     ac_cv_prog_PTHREAD_CC="cc_r"
15247     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15248     break 2
15249   fi
15250 done
15251 done
15252 IFS=$as_save_IFS
15253
15254   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
15255 fi
15256 fi
15257 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15258 if test -n "$PTHREAD_CC"; then
15259   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
15260 $as_echo "$PTHREAD_CC" >&6; }
15261 else
15262   { $as_echo "$as_me:$LINENO: result: no" >&5
15263 $as_echo "no" >&6; }
15264 fi
15265
15266
15267 else
15268         PTHREAD_CC="$CC"
15269 fi
15270
15271
15272
15273
15274
15275 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15276 if test x"$acx_pthread_ok" = xyes; then
15277
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_PTHREAD 1
15280 _ACEOF
15281
15282         :
15283 else
15284         acx_pthread_ok=no
15285
15286 fi
15287 ac_ext=c
15288 ac_cpp='$CPP $CPPFLAGS'
15289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15292
15293
15294
15295
15296
15297
15298   case $host in
15299                     *-freebsd*) ;;
15300      *)
15301                                 for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do
15302
15303   { $as_echo "$as_me:$LINENO: checking if $CC supports $possible_flags flag" >&5
15304 $as_echo_n "checking if $CC supports $possible_flags flag... " >&6; }
15305 if { as_var=`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
15306   $as_echo_n "(cached) " >&6
15307 else
15308   ac_save_LDFLAGS="$LDFLAGS"
15309      LDFLAGS="$LDFLAGS $possible_flags"
15310      cat >conftest.$ac_ext <<_ACEOF
15311 int main() { return 1; }
15312 _ACEOF
15313 rm -f conftest.$ac_objext conftest$ac_exeext
15314 if { (ac_try="$ac_link"
15315 case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15320 $as_echo "$ac_try_echo") >&5
15321   (eval "$ac_link") 2>conftest.er1
15322   ac_status=$?
15323   grep -v '^ *+' conftest.er1 >conftest.err
15324   rm -f conftest.er1
15325   cat conftest.err >&5
15326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); } && {
15328          test -z "$ac_c_werror_flag" ||
15329          test ! -s conftest.err
15330        } && test -s conftest$ac_exeext && {
15331          test "$cross_compiling" = yes ||
15332          $as_test_x conftest$ac_exeext
15333        }; then
15334   eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`='yes'"
15335 else
15336   $as_echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339         eval "`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh`="
15340 fi
15341
15342 rm -rf conftest.dSYM
15343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15344       conftest$ac_exeext conftest.$ac_ext
15345      LDFLAGS="$ac_save_LDFLAGS"
15346
15347 fi
15348 ac_res=`eval 'as_val=${'\`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh\`'}
15349                  $as_echo "$as_val"'`
15350                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15351 $as_echo "$ac_res" >&6; }
15352
15353   if eval test x$`$as_echo "cc_cv_ldflags_$possible_flags" | $as_tr_sh` = xyes; then
15354   LDFLAGS_NOUNDEFINED="$possible_flags"
15355 fi
15356
15357
15358           break
15359         done
15360         ;;
15361   esac
15362
15363
15364
15365
15366
15367   # Check whether --enable-lynx was given.
15368 if test "${enable_lynx+set}" = set; then
15369   enableval=$enable_lynx;
15370 else
15371   enable_lynx=yes
15372 fi
15373
15374
15375   case "${enable_lynx}" in
15376     yes)
15377       # Extract the first word of "lynx", so it can be a program name with args.
15378 set dummy lynx; ac_word=$2
15379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15380 $as_echo_n "checking for $ac_word... " >&6; }
15381 if test "${ac_cv_prog_have_lynx+set}" = set; then
15382   $as_echo_n "(cached) " >&6
15383 else
15384   if test -n "$have_lynx"; then
15385   ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test.
15386 else
15387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15388 for as_dir in $PATH
15389 do
15390   IFS=$as_save_IFS
15391   test -z "$as_dir" && as_dir=.
15392   for ac_exec_ext in '' $ac_executable_extensions; do
15393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15394     ac_cv_prog_have_lynx="yes"
15395     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15396     break 2
15397   fi
15398 done
15399 done
15400 IFS=$as_save_IFS
15401
15402   test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no"
15403 fi
15404 fi
15405 have_lynx=$ac_cv_prog_have_lynx
15406 if test -n "$have_lynx"; then
15407   { $as_echo "$as_me:$LINENO: result: $have_lynx" >&5
15408 $as_echo "$have_lynx" >&6; }
15409 else
15410   { $as_echo "$as_me:$LINENO: result: no" >&5
15411 $as_echo "no" >&6; }
15412 fi
15413
15414
15415
15416       if test x$have_lynx = xno ; then
15417          { $as_echo "$as_me:$LINENO: WARNING: *** lynx not found, plain text README will not be built ***" >&5
15418 $as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;}
15419       fi
15420       ;;
15421     no)
15422       have_lynx=no ;;
15423     *)
15424       { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-lynx" >&5
15425 $as_echo "$as_me: error: bad value ${enableval} for --disable-lynx" >&2;}
15426    { (exit 1); exit 1; }; } ;;
15427   esac
15428
15429    if test "x$have_lynx" = xyes; then
15430   USE_LYNX_TRUE=
15431   USE_LYNX_FALSE='#'
15432 else
15433   USE_LYNX_TRUE='#'
15434   USE_LYNX_FALSE=
15435 fi
15436
15437
15438
15439 ac_config_files="$ac_config_files Makefile libasyncns/Makefile doc/Makefile doc/README.html doxygen/Makefile doxygen/doxygen.conf libasyncns.pc"
15440
15441 cat >confcache <<\_ACEOF
15442 # This file is a shell script that caches the results of configure
15443 # tests run on this system so they can be shared between configure
15444 # scripts and configure runs, see configure's option --config-cache.
15445 # It is not useful on other systems.  If it contains results you don't
15446 # want to keep, you may remove or edit it.
15447 #
15448 # config.status only pays attention to the cache file if you give it
15449 # the --recheck option to rerun configure.
15450 #
15451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15453 # following values.
15454
15455 _ACEOF
15456
15457 # The following way of writing the cache mishandles newlines in values,
15458 # but we know of no workaround that is simple, portable, and efficient.
15459 # So, we kill variables containing newlines.
15460 # Ultrix sh set writes to stderr and can't be redirected directly,
15461 # and sets the high bit in the cache file unless we assign to the vars.
15462 (
15463   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15464     eval ac_val=\$$ac_var
15465     case $ac_val in #(
15466     *${as_nl}*)
15467       case $ac_var in #(
15468       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15469 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15470       esac
15471       case $ac_var in #(
15472       _ | IFS | as_nl) ;; #(
15473       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15474       *) $as_unset $ac_var ;;
15475       esac ;;
15476     esac
15477   done
15478
15479   (set) 2>&1 |
15480     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15481     *${as_nl}ac_space=\ *)
15482       # `set' does not quote correctly, so add quotes (double-quote
15483       # substitution turns \\\\ into \\, and sed turns \\ into \).
15484       sed -n \
15485         "s/'/'\\\\''/g;
15486           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15487       ;; #(
15488     *)
15489       # `set' quotes correctly as required by POSIX, so do not add quotes.
15490       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15491       ;;
15492     esac |
15493     sort
15494 ) |
15495   sed '
15496      /^ac_cv_env_/b end
15497      t clear
15498      :clear
15499      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15500      t end
15501      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15502      :end' >>confcache
15503 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15504   if test -w "$cache_file"; then
15505     test "x$cache_file" != "x/dev/null" &&
15506       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15507 $as_echo "$as_me: updating cache $cache_file" >&6;}
15508     cat confcache >$cache_file
15509   else
15510     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15511 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15512   fi
15513 fi
15514 rm -f confcache
15515
15516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15517 # Let make expand exec_prefix.
15518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15519
15520 DEFS=-DHAVE_CONFIG_H
15521
15522 ac_libobjs=
15523 ac_ltlibobjs=
15524 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15525   # 1. Remove the extension, and $U if already installed.
15526   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15527   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15528   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15529   #    will be set to the directory where LIBOBJS objects are built.
15530   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15531   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15532 done
15533 LIBOBJS=$ac_libobjs
15534
15535 LTLIBOBJS=$ac_ltlibobjs
15536
15537
15538  if test -n "$EXEEXT"; then
15539   am__EXEEXT_TRUE=
15540   am__EXEEXT_FALSE='#'
15541 else
15542   am__EXEEXT_TRUE='#'
15543   am__EXEEXT_FALSE=
15544 fi
15545
15546 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15547   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15548 Usually this means the macro was only invoked conditionally." >&5
15549 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
15550 Usually this means the macro was only invoked conditionally." >&2;}
15551    { (exit 1); exit 1; }; }
15552 fi
15553 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15554   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15555 Usually this means the macro was only invoked conditionally." >&5
15556 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15557 Usually this means the macro was only invoked conditionally." >&2;}
15558    { (exit 1); exit 1; }; }
15559 fi
15560 if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then
15561   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LYNX\" was never defined.
15562 Usually this means the macro was only invoked conditionally." >&5
15563 $as_echo "$as_me: error: conditional \"USE_LYNX\" was never defined.
15564 Usually this means the macro was only invoked conditionally." >&2;}
15565    { (exit 1); exit 1; }; }
15566 fi
15567
15568 : ${CONFIG_STATUS=./config.status}
15569 ac_write_fail=0
15570 ac_clean_files_save=$ac_clean_files
15571 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15572 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15573 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15574 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15575 #! $SHELL
15576 # Generated by $as_me.
15577 # Run this file to recreate the current configuration.
15578 # Compiler output produced by configure, useful for debugging
15579 # configure, is in config.log if it exists.
15580
15581 debug=false
15582 ac_cs_recheck=false
15583 ac_cs_silent=false
15584 SHELL=\${CONFIG_SHELL-$SHELL}
15585 _ACEOF
15586
15587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15588 ## --------------------- ##
15589 ## M4sh Initialization.  ##
15590 ## --------------------- ##
15591
15592 # Be more Bourne compatible
15593 DUALCASE=1; export DUALCASE # for MKS sh
15594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15595   emulate sh
15596   NULLCMD=:
15597   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15598   # is contrary to our usage.  Disable this feature.
15599   alias -g '${1+"$@"}'='"$@"'
15600   setopt NO_GLOB_SUBST
15601 else
15602   case `(set -o) 2>/dev/null` in
15603   *posix*) set -o posix ;;
15604 esac
15605
15606 fi
15607
15608
15609
15610
15611 # PATH needs CR
15612 # Avoid depending upon Character Ranges.
15613 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15614 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15615 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15616 as_cr_digits='0123456789'
15617 as_cr_alnum=$as_cr_Letters$as_cr_digits
15618
15619 as_nl='
15620 '
15621 export as_nl
15622 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15623 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15626 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15627   as_echo='printf %s\n'
15628   as_echo_n='printf %s'
15629 else
15630   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15631     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15632     as_echo_n='/usr/ucb/echo -n'
15633   else
15634     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15635     as_echo_n_body='eval
15636       arg=$1;
15637       case $arg in
15638       *"$as_nl"*)
15639         expr "X$arg" : "X\\(.*\\)$as_nl";
15640         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15641       esac;
15642       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15643     '
15644     export as_echo_n_body
15645     as_echo_n='sh -c $as_echo_n_body as_echo'
15646   fi
15647   export as_echo_body
15648   as_echo='sh -c $as_echo_body as_echo'
15649 fi
15650
15651 # The user is always right.
15652 if test "${PATH_SEPARATOR+set}" != set; then
15653   PATH_SEPARATOR=:
15654   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15655     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15656       PATH_SEPARATOR=';'
15657   }
15658 fi
15659
15660 # Support unset when possible.
15661 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15662   as_unset=unset
15663 else
15664   as_unset=false
15665 fi
15666
15667
15668 # IFS
15669 # We need space, tab and new line, in precisely that order.  Quoting is
15670 # there to prevent editors from complaining about space-tab.
15671 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15672 # splitting by setting IFS to empty value.)
15673 IFS=" ""        $as_nl"
15674
15675 # Find who we are.  Look in the path if we contain no directory separator.
15676 case $0 in
15677   *[\\/]* ) as_myself=$0 ;;
15678   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15679 for as_dir in $PATH
15680 do
15681   IFS=$as_save_IFS
15682   test -z "$as_dir" && as_dir=.
15683   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15684 done
15685 IFS=$as_save_IFS
15686
15687      ;;
15688 esac
15689 # We did not find ourselves, most probably we were run as `sh COMMAND'
15690 # in which case we are not to be found in the path.
15691 if test "x$as_myself" = x; then
15692   as_myself=$0
15693 fi
15694 if test ! -f "$as_myself"; then
15695   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15696   { (exit 1); exit 1; }
15697 fi
15698
15699 # Work around bugs in pre-3.0 UWIN ksh.
15700 for as_var in ENV MAIL MAILPATH
15701 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15702 done
15703 PS1='$ '
15704 PS2='> '
15705 PS4='+ '
15706
15707 # NLS nuisances.
15708 LC_ALL=C
15709 export LC_ALL
15710 LANGUAGE=C
15711 export LANGUAGE
15712
15713 # Required to use basename.
15714 if expr a : '\(a\)' >/dev/null 2>&1 &&
15715    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15716   as_expr=expr
15717 else
15718   as_expr=false
15719 fi
15720
15721 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15722   as_basename=basename
15723 else
15724   as_basename=false
15725 fi
15726
15727
15728 # Name of the executable.
15729 as_me=`$as_basename -- "$0" ||
15730 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15731          X"$0" : 'X\(//\)$' \| \
15732          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15733 $as_echo X/"$0" |
15734     sed '/^.*\/\([^/][^/]*\)\/*$/{
15735             s//\1/
15736             q
15737           }
15738           /^X\/\(\/\/\)$/{
15739             s//\1/
15740             q
15741           }
15742           /^X\/\(\/\).*/{
15743             s//\1/
15744             q
15745           }
15746           s/.*/./; q'`
15747
15748 # CDPATH.
15749 $as_unset CDPATH
15750
15751
15752
15753   as_lineno_1=$LINENO
15754   as_lineno_2=$LINENO
15755   test "x$as_lineno_1" != "x$as_lineno_2" &&
15756   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15757
15758   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15759   # uniformly replaced by the line number.  The first 'sed' inserts a
15760   # line-number line after each line using $LINENO; the second 'sed'
15761   # does the real work.  The second script uses 'N' to pair each
15762   # line-number line with the line containing $LINENO, and appends
15763   # trailing '-' during substitution so that $LINENO is not a special
15764   # case at line end.
15765   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15766   # scripts with optimization help from Paolo Bonzini.  Blame Lee
15767   # E. McMahon (1931-1989) for sed's syntax.  :-)
15768   sed -n '
15769     p
15770     /[$]LINENO/=
15771   ' <$as_myself |
15772     sed '
15773       s/[$]LINENO.*/&-/
15774       t lineno
15775       b
15776       :lineno
15777       N
15778       :loop
15779       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15780       t loop
15781       s/-\n.*//
15782     ' >$as_me.lineno &&
15783   chmod +x "$as_me.lineno" ||
15784     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15785    { (exit 1); exit 1; }; }
15786
15787   # Don't try to exec as it changes $[0], causing all sort of problems
15788   # (the dirname of $[0] is not the place where we might find the
15789   # original and so on.  Autoconf is especially sensitive to this).
15790   . "./$as_me.lineno"
15791   # Exit status is that of the last command.
15792   exit
15793 }
15794
15795
15796 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15797   as_dirname=dirname
15798 else
15799   as_dirname=false
15800 fi
15801
15802 ECHO_C= ECHO_N= ECHO_T=
15803 case `echo -n x` in
15804 -n*)
15805   case `echo 'x\c'` in
15806   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15807   *)   ECHO_C='\c';;
15808   esac;;
15809 *)
15810   ECHO_N='-n';;
15811 esac
15812 if expr a : '\(a\)' >/dev/null 2>&1 &&
15813    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15814   as_expr=expr
15815 else
15816   as_expr=false
15817 fi
15818
15819 rm -f conf$$ conf$$.exe conf$$.file
15820 if test -d conf$$.dir; then
15821   rm -f conf$$.dir/conf$$.file
15822 else
15823   rm -f conf$$.dir
15824   mkdir conf$$.dir 2>/dev/null
15825 fi
15826 if (echo >conf$$.file) 2>/dev/null; then
15827   if ln -s conf$$.file conf$$ 2>/dev/null; then
15828     as_ln_s='ln -s'
15829     # ... but there are two gotchas:
15830     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15831     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15832     # In both cases, we have to default to `cp -p'.
15833     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15834       as_ln_s='cp -p'
15835   elif ln conf$$.file conf$$ 2>/dev/null; then
15836     as_ln_s=ln
15837   else
15838     as_ln_s='cp -p'
15839   fi
15840 else
15841   as_ln_s='cp -p'
15842 fi
15843 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15844 rmdir conf$$.dir 2>/dev/null
15845
15846 if mkdir -p . 2>/dev/null; then
15847   as_mkdir_p=:
15848 else
15849   test -d ./-p && rmdir ./-p
15850   as_mkdir_p=false
15851 fi
15852
15853 if test -x / >/dev/null 2>&1; then
15854   as_test_x='test -x'
15855 else
15856   if ls -dL / >/dev/null 2>&1; then
15857     as_ls_L_option=L
15858   else
15859     as_ls_L_option=
15860   fi
15861   as_test_x='
15862     eval sh -c '\''
15863       if test -d "$1"; then
15864         test -d "$1/.";
15865       else
15866         case $1 in
15867         -*)set "./$1";;
15868         esac;
15869         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15870         ???[sx]*):;;*)false;;esac;fi
15871     '\'' sh
15872   '
15873 fi
15874 as_executable_p=$as_test_x
15875
15876 # Sed expression to map a string onto a valid CPP name.
15877 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15878
15879 # Sed expression to map a string onto a valid variable name.
15880 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15881
15882
15883 exec 6>&1
15884
15885 # Save the log message, to keep $[0] and so on meaningful, and to
15886 # report actual input values of CONFIG_FILES etc. instead of their
15887 # values after options handling.
15888 ac_log="
15889 This file was extended by libasyncns $as_me 0.8, which was
15890 generated by GNU Autoconf 2.63.  Invocation command line was
15891
15892   CONFIG_FILES    = $CONFIG_FILES
15893   CONFIG_HEADERS  = $CONFIG_HEADERS
15894   CONFIG_LINKS    = $CONFIG_LINKS
15895   CONFIG_COMMANDS = $CONFIG_COMMANDS
15896   $ $0 $@
15897
15898 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15899 "
15900
15901 _ACEOF
15902
15903 case $ac_config_files in *"
15904 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15905 esac
15906
15907 case $ac_config_headers in *"
15908 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15909 esac
15910
15911
15912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15913 # Files that config.status was made for.
15914 config_files="$ac_config_files"
15915 config_headers="$ac_config_headers"
15916 config_commands="$ac_config_commands"
15917
15918 _ACEOF
15919
15920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15921 ac_cs_usage="\
15922 \`$as_me' instantiates files from templates according to the
15923 current configuration.
15924
15925 Usage: $0 [OPTION]... [FILE]...
15926
15927   -h, --help       print this help, then exit
15928   -V, --version    print version number and configuration settings, then exit
15929   -q, --quiet, --silent
15930                    do not print progress messages
15931   -d, --debug      don't remove temporary files
15932       --recheck    update $as_me by reconfiguring in the same conditions
15933       --file=FILE[:TEMPLATE]
15934                    instantiate the configuration file FILE
15935       --header=FILE[:TEMPLATE]
15936                    instantiate the configuration header FILE
15937
15938 Configuration files:
15939 $config_files
15940
15941 Configuration headers:
15942 $config_headers
15943
15944 Configuration commands:
15945 $config_commands
15946
15947 Report bugs to <bug-autoconf@gnu.org>."
15948
15949 _ACEOF
15950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15951 ac_cs_version="\\
15952 libasyncns config.status 0.8
15953 configured by $0, generated by GNU Autoconf 2.63,
15954   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15955
15956 Copyright (C) 2008 Free Software Foundation, Inc.
15957 This config.status script is free software; the Free Software Foundation
15958 gives unlimited permission to copy, distribute and modify it."
15959
15960 ac_pwd='$ac_pwd'
15961 srcdir='$srcdir'
15962 INSTALL='$INSTALL'
15963 MKDIR_P='$MKDIR_P'
15964 AWK='$AWK'
15965 test -n "\$AWK" || AWK=awk
15966 _ACEOF
15967
15968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15969 # The default lists apply if the user does not specify any file.
15970 ac_need_defaults=:
15971 while test $# != 0
15972 do
15973   case $1 in
15974   --*=*)
15975     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15976     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15977     ac_shift=:
15978     ;;
15979   *)
15980     ac_option=$1
15981     ac_optarg=$2
15982     ac_shift=shift
15983     ;;
15984   esac
15985
15986   case $ac_option in
15987   # Handling of the options.
15988   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15989     ac_cs_recheck=: ;;
15990   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15991     $as_echo "$ac_cs_version"; exit ;;
15992   --debug | --debu | --deb | --de | --d | -d )
15993     debug=: ;;
15994   --file | --fil | --fi | --f )
15995     $ac_shift
15996     case $ac_optarg in
15997     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15998     esac
15999     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16000     ac_need_defaults=false;;
16001   --header | --heade | --head | --hea )
16002     $ac_shift
16003     case $ac_optarg in
16004     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16005     esac
16006     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16007     ac_need_defaults=false;;
16008   --he | --h)
16009     # Conflict between --help and --header
16010     { $as_echo "$as_me: error: ambiguous option: $1
16011 Try \`$0 --help' for more information." >&2
16012    { (exit 1); exit 1; }; };;
16013   --help | --hel | -h )
16014     $as_echo "$ac_cs_usage"; exit ;;
16015   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16016   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16017     ac_cs_silent=: ;;
16018
16019   # This is an error.
16020   -*) { $as_echo "$as_me: error: unrecognized option: $1
16021 Try \`$0 --help' for more information." >&2
16022    { (exit 1); exit 1; }; } ;;
16023
16024   *) ac_config_targets="$ac_config_targets $1"
16025      ac_need_defaults=false ;;
16026
16027   esac
16028   shift
16029 done
16030
16031 ac_configure_extra_args=
16032
16033 if $ac_cs_silent; then
16034   exec 6>/dev/null
16035   ac_configure_extra_args="$ac_configure_extra_args --silent"
16036 fi
16037
16038 _ACEOF
16039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16040 if \$ac_cs_recheck; then
16041   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16042   shift
16043   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16044   CONFIG_SHELL='$SHELL'
16045   export CONFIG_SHELL
16046   exec "\$@"
16047 fi
16048
16049 _ACEOF
16050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16051 exec 5>>config.log
16052 {
16053   echo
16054   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16055 ## Running $as_me. ##
16056 _ASBOX
16057   $as_echo "$ac_log"
16058 } >&5
16059
16060 _ACEOF
16061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16062 #
16063 # INIT-COMMANDS
16064 #
16065 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16066
16067
16068 # The HP-UX ksh and POSIX shell print the target directory to stdout
16069 # if CDPATH is set.
16070 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16071
16072 sed_quote_subst='$sed_quote_subst'
16073 double_quote_subst='$double_quote_subst'
16074 delay_variable_subst='$delay_variable_subst'
16075 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16076 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16077 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16078 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16079 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16080 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16081 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16082 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16083 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16084 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16085 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16086 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16087 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16088 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16089 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16090 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16091 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16092 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16093 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16094 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16095 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16096 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16097 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16098 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16099 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16100 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16101 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16102 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16103 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16104 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16105 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16106 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16107 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16108 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16109 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16110 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16111 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16112 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16113 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16114 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16115 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16116 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16117 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16118 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16119 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16120 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16121 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16122 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16123 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16124 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16125 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16126 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16127 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16128 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16129 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16130 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16131 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16132 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16133 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16134 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16135 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16136 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16137 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16138 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16139 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16140 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16141 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16142 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16143 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16144 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16145 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16146 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16147 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16148 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16149 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16150 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16151 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16152 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16153 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16154 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16155 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16156 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16157 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16158 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16159 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16160 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16161 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16162 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16163 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16164 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16165 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16166 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16167 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16168 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16169 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16170 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16171 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16172 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16173 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16174 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16175 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16176 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16177 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16178 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16179 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16180 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16181 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16182 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16183 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16184 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16185 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16186 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16187 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16188 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16189 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16190 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16191 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16192 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16193
16194 LTCC='$LTCC'
16195 LTCFLAGS='$LTCFLAGS'
16196 compiler='$compiler_DEFAULT'
16197
16198 # Quote evaled strings.
16199 for var in SED \
16200 GREP \
16201 EGREP \
16202 FGREP \
16203 LD \
16204 NM \
16205 LN_S \
16206 lt_SP2NL \
16207 lt_NL2SP \
16208 reload_flag \
16209 OBJDUMP \
16210 deplibs_check_method \
16211 file_magic_cmd \
16212 AR \
16213 AR_FLAGS \
16214 STRIP \
16215 RANLIB \
16216 CC \
16217 CFLAGS \
16218 compiler \
16219 lt_cv_sys_global_symbol_pipe \
16220 lt_cv_sys_global_symbol_to_cdecl \
16221 lt_cv_sys_global_symbol_to_c_name_address \
16222 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16223 SHELL \
16224 ECHO \
16225 lt_prog_compiler_no_builtin_flag \
16226 lt_prog_compiler_wl \
16227 lt_prog_compiler_pic \
16228 lt_prog_compiler_static \
16229 lt_cv_prog_compiler_c_o \
16230 need_locks \
16231 DSYMUTIL \
16232 NMEDIT \
16233 LIPO \
16234 OTOOL \
16235 OTOOL64 \
16236 shrext_cmds \
16237 export_dynamic_flag_spec \
16238 whole_archive_flag_spec \
16239 compiler_needs_object \
16240 with_gnu_ld \
16241 allow_undefined_flag \
16242 no_undefined_flag \
16243 hardcode_libdir_flag_spec \
16244 hardcode_libdir_flag_spec_ld \
16245 hardcode_libdir_separator \
16246 fix_srcfile_path \
16247 exclude_expsyms \
16248 include_expsyms \
16249 file_list_spec \
16250 variables_saved_for_relink \
16251 libname_spec \
16252 library_names_spec \
16253 soname_spec \
16254 finish_eval \
16255 old_striplib \
16256 striplib; do
16257     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16258     *[\\\\\\\`\\"\\\$]*)
16259       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16260       ;;
16261     *)
16262       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16263       ;;
16264     esac
16265 done
16266
16267 # Double-quote double-evaled strings.
16268 for var in reload_cmds \
16269 old_postinstall_cmds \
16270 old_postuninstall_cmds \
16271 old_archive_cmds \
16272 extract_expsyms_cmds \
16273 old_archive_from_new_cmds \
16274 old_archive_from_expsyms_cmds \
16275 archive_cmds \
16276 archive_expsym_cmds \
16277 module_cmds \
16278 module_expsym_cmds \
16279 export_symbols_cmds \
16280 prelink_cmds \
16281 postinstall_cmds \
16282 postuninstall_cmds \
16283 finish_cmds \
16284 sys_lib_search_path_spec \
16285 sys_lib_dlsearch_path_spec; do
16286     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16287     *[\\\\\\\`\\"\\\$]*)
16288       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16289       ;;
16290     *)
16291       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16292       ;;
16293     esac
16294 done
16295
16296 # Fix-up fallback echo if it was mangled by the above quoting rules.
16297 case \$lt_ECHO in
16298 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16299   ;;
16300 esac
16301
16302 ac_aux_dir='$ac_aux_dir'
16303 xsi_shell='$xsi_shell'
16304 lt_shell_append='$lt_shell_append'
16305
16306 # See if we are running on zsh, and set the options which allow our
16307 # commands through without removal of \ escapes INIT.
16308 if test -n "\${ZSH_VERSION+set}" ; then
16309    setopt NO_GLOB_SUBST
16310 fi
16311
16312
16313     PACKAGE='$PACKAGE'
16314     VERSION='$VERSION'
16315     TIMESTAMP='$TIMESTAMP'
16316     RM='$RM'
16317     ofile='$ofile'
16318
16319
16320
16321
16322 _ACEOF
16323
16324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16325
16326 # Handling of arguments.
16327 for ac_config_target in $ac_config_targets
16328 do
16329   case $ac_config_target in
16330     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16331     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16332     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16333     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16334     "libasyncns/Makefile") CONFIG_FILES="$CONFIG_FILES libasyncns/Makefile" ;;
16335     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16336     "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;;
16337     "doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doxygen/Makefile" ;;
16338     "doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen/doxygen.conf" ;;
16339     "libasyncns.pc") CONFIG_FILES="$CONFIG_FILES libasyncns.pc" ;;
16340
16341   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16342 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16343    { (exit 1); exit 1; }; };;
16344   esac
16345 done
16346
16347
16348 # If the user did not use the arguments to specify the items to instantiate,
16349 # then the envvar interface is used.  Set only those that are not.
16350 # We use the long form for the default assignment because of an extremely
16351 # bizarre bug on SunOS 4.1.3.
16352 if $ac_need_defaults; then
16353   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16354   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16355   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16356 fi
16357
16358 # Have a temporary directory for convenience.  Make it in the build tree
16359 # simply because there is no reason against having it here, and in addition,
16360 # creating and moving files from /tmp can sometimes cause problems.
16361 # Hook for its removal unless debugging.
16362 # Note that there is a small window in which the directory will not be cleaned:
16363 # after its creation but before its name has been assigned to `$tmp'.
16364 $debug ||
16365 {
16366   tmp=
16367   trap 'exit_status=$?
16368   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16369 ' 0
16370   trap '{ (exit 1); exit 1; }' 1 2 13 15
16371 }
16372 # Create a (secure) tmp directory for tmp files.
16373
16374 {
16375   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16376   test -n "$tmp" && test -d "$tmp"
16377 }  ||
16378 {
16379   tmp=./conf$$-$RANDOM
16380   (umask 077 && mkdir "$tmp")
16381 } ||
16382 {
16383    $as_echo "$as_me: cannot create a temporary directory in ." >&2
16384    { (exit 1); exit 1; }
16385 }
16386
16387 # Set up the scripts for CONFIG_FILES section.
16388 # No need to generate them if there are no CONFIG_FILES.
16389 # This happens for instance with `./config.status config.h'.
16390 if test -n "$CONFIG_FILES"; then
16391
16392
16393 ac_cr='\r'
16394 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16395 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16396   ac_cs_awk_cr='\\r'
16397 else
16398   ac_cs_awk_cr=$ac_cr
16399 fi
16400
16401 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16402 _ACEOF
16403
16404
16405 {
16406   echo "cat >conf$$subs.awk <<_ACEOF" &&
16407   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16408   echo "_ACEOF"
16409 } >conf$$subs.sh ||
16410   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16411 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16412    { (exit 1); exit 1; }; }
16413 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16414 ac_delim='%!_!# '
16415 for ac_last_try in false false false false false :; do
16416   . ./conf$$subs.sh ||
16417     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16418 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16419    { (exit 1); exit 1; }; }
16420
16421   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16422   if test $ac_delim_n = $ac_delim_num; then
16423     break
16424   elif $ac_last_try; then
16425     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16426 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16427    { (exit 1); exit 1; }; }
16428   else
16429     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16430   fi
16431 done
16432 rm -f conf$$subs.sh
16433
16434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16435 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16436 _ACEOF
16437 sed -n '
16438 h
16439 s/^/S["/; s/!.*/"]=/
16440 p
16441 g
16442 s/^[^!]*!//
16443 :repl
16444 t repl
16445 s/'"$ac_delim"'$//
16446 t delim
16447 :nl
16448 h
16449 s/\(.\{148\}\).*/\1/
16450 t more1
16451 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16452 p
16453 n
16454 b repl
16455 :more1
16456 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16457 p
16458 g
16459 s/.\{148\}//
16460 t nl
16461 :delim
16462 h
16463 s/\(.\{148\}\).*/\1/
16464 t more2
16465 s/["\\]/\\&/g; s/^/"/; s/$/"/
16466 p
16467 b
16468 :more2
16469 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16470 p
16471 g
16472 s/.\{148\}//
16473 t delim
16474 ' <conf$$subs.awk | sed '
16475 /^[^""]/{
16476   N
16477   s/\n//
16478 }
16479 ' >>$CONFIG_STATUS || ac_write_fail=1
16480 rm -f conf$$subs.awk
16481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16482 _ACAWK
16483 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16484   for (key in S) S_is_set[key] = 1
16485   FS = "\a"
16486
16487 }
16488 {
16489   line = $ 0
16490   nfields = split(line, field, "@")
16491   substed = 0
16492   len = length(field[1])
16493   for (i = 2; i < nfields; i++) {
16494     key = field[i]
16495     keylen = length(key)
16496     if (S_is_set[key]) {
16497       value = S[key]
16498       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16499       len += length(value) + length(field[++i])
16500       substed = 1
16501     } else
16502       len += 1 + keylen
16503   }
16504
16505   print line
16506 }
16507
16508 _ACAWK
16509 _ACEOF
16510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16511 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16512   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16513 else
16514   cat
16515 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16516   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16517 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
16518    { (exit 1); exit 1; }; }
16519 _ACEOF
16520
16521 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16522 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16523 # trailing colons and then remove the whole line if VPATH becomes empty
16524 # (actually we leave an empty line to preserve line numbers).
16525 if test "x$srcdir" = x.; then
16526   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16527 s/:*\$(srcdir):*/:/
16528 s/:*\${srcdir}:*/:/
16529 s/:*@srcdir@:*/:/
16530 s/^\([^=]*=[     ]*\):*/\1/
16531 s/:*$//
16532 s/^[^=]*=[       ]*$//
16533 }'
16534 fi
16535
16536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16537 fi # test -n "$CONFIG_FILES"
16538
16539 # Set up the scripts for CONFIG_HEADERS section.
16540 # No need to generate them if there are no CONFIG_HEADERS.
16541 # This happens for instance with `./config.status Makefile'.
16542 if test -n "$CONFIG_HEADERS"; then
16543 cat >"$tmp/defines.awk" <<\_ACAWK ||
16544 BEGIN {
16545 _ACEOF
16546
16547 # Transform confdefs.h into an awk script `defines.awk', embedded as
16548 # here-document in config.status, that substitutes the proper values into
16549 # config.h.in to produce config.h.
16550
16551 # Create a delimiter string that does not exist in confdefs.h, to ease
16552 # handling of long lines.
16553 ac_delim='%!_!# '
16554 for ac_last_try in false false :; do
16555   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16556   if test -z "$ac_t"; then
16557     break
16558   elif $ac_last_try; then
16559     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16560 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16561    { (exit 1); exit 1; }; }
16562   else
16563     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16564   fi
16565 done
16566
16567 # For the awk script, D is an array of macro values keyed by name,
16568 # likewise P contains macro parameters if any.  Preserve backslash
16569 # newline sequences.
16570
16571 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16572 sed -n '
16573 s/.\{148\}/&'"$ac_delim"'/g
16574 t rset
16575 :rset
16576 s/^[     ]*#[    ]*define[       ][      ]*/ /
16577 t def
16578 d
16579 :def
16580 s/\\$//
16581 t bsnl
16582 s/["\\]/\\&/g
16583 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16584 D["\1"]=" \3"/p
16585 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16586 d
16587 :bsnl
16588 s/["\\]/\\&/g
16589 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16590 D["\1"]=" \3\\\\\\n"\\/p
16591 t cont
16592 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16593 t cont
16594 d
16595 :cont
16596 n
16597 s/.\{148\}/&'"$ac_delim"'/g
16598 t clear
16599 :clear
16600 s/\\$//
16601 t bsnlc
16602 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16603 d
16604 :bsnlc
16605 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16606 b cont
16607 ' <confdefs.h | sed '
16608 s/'"$ac_delim"'/"\\\
16609 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16610
16611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16612   for (key in D) D_is_set[key] = 1
16613   FS = "\a"
16614 }
16615 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16616   line = \$ 0
16617   split(line, arg, " ")
16618   if (arg[1] == "#") {
16619     defundef = arg[2]
16620     mac1 = arg[3]
16621   } else {
16622     defundef = substr(arg[1], 2)
16623     mac1 = arg[2]
16624   }
16625   split(mac1, mac2, "(") #)
16626   macro = mac2[1]
16627   prefix = substr(line, 1, index(line, defundef) - 1)
16628   if (D_is_set[macro]) {
16629     # Preserve the white space surrounding the "#".
16630     print prefix "define", macro P[macro] D[macro]
16631     next
16632   } else {
16633     # Replace #undef with comments.  This is necessary, for example,
16634     # in the case of _POSIX_SOURCE, which is predefined and required
16635     # on some systems where configure will not decide to define it.
16636     if (defundef == "undef") {
16637       print "/*", prefix defundef, macro, "*/"
16638       next
16639     }
16640   }
16641 }
16642 { print }
16643 _ACAWK
16644 _ACEOF
16645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16646   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16647 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16648    { (exit 1); exit 1; }; }
16649 fi # test -n "$CONFIG_HEADERS"
16650
16651
16652 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16653 shift
16654 for ac_tag
16655 do
16656   case $ac_tag in
16657   :[FHLC]) ac_mode=$ac_tag; continue;;
16658   esac
16659   case $ac_mode$ac_tag in
16660   :[FHL]*:*);;
16661   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16662 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16663    { (exit 1); exit 1; }; };;
16664   :[FH]-) ac_tag=-:-;;
16665   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16666   esac
16667   ac_save_IFS=$IFS
16668   IFS=:
16669   set x $ac_tag
16670   IFS=$ac_save_IFS
16671   shift
16672   ac_file=$1
16673   shift
16674
16675   case $ac_mode in
16676   :L) ac_source=$1;;
16677   :[FH])
16678     ac_file_inputs=
16679     for ac_f
16680     do
16681       case $ac_f in
16682       -) ac_f="$tmp/stdin";;
16683       *) # Look for the file first in the build tree, then in the source tree
16684          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16685          # because $ac_f cannot contain `:'.
16686          test -f "$ac_f" ||
16687            case $ac_f in
16688            [\\/$]*) false;;
16689            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16690            esac ||
16691            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16692 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16693    { (exit 1); exit 1; }; };;
16694       esac
16695       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16696       ac_file_inputs="$ac_file_inputs '$ac_f'"
16697     done
16698
16699     # Let's still pretend it is `configure' which instantiates (i.e., don't
16700     # use $as_me), people would be surprised to read:
16701     #    /* config.h.  Generated by config.status.  */
16702     configure_input='Generated from '`
16703           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16704         `' by configure.'
16705     if test x"$ac_file" != x-; then
16706       configure_input="$ac_file.  $configure_input"
16707       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16708 $as_echo "$as_me: creating $ac_file" >&6;}
16709     fi
16710     # Neutralize special characters interpreted by sed in replacement strings.
16711     case $configure_input in #(
16712     *\&* | *\|* | *\\* )
16713        ac_sed_conf_input=`$as_echo "$configure_input" |
16714        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16715     *) ac_sed_conf_input=$configure_input;;
16716     esac
16717
16718     case $ac_tag in
16719     *:-:* | *:-) cat >"$tmp/stdin" \
16720       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16721 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16722    { (exit 1); exit 1; }; } ;;
16723     esac
16724     ;;
16725   esac
16726
16727   ac_dir=`$as_dirname -- "$ac_file" ||
16728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16729          X"$ac_file" : 'X\(//\)[^/]' \| \
16730          X"$ac_file" : 'X\(//\)$' \| \
16731          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16732 $as_echo X"$ac_file" |
16733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16734             s//\1/
16735             q
16736           }
16737           /^X\(\/\/\)[^/].*/{
16738             s//\1/
16739             q
16740           }
16741           /^X\(\/\/\)$/{
16742             s//\1/
16743             q
16744           }
16745           /^X\(\/\).*/{
16746             s//\1/
16747             q
16748           }
16749           s/.*/./; q'`
16750   { as_dir="$ac_dir"
16751   case $as_dir in #(
16752   -*) as_dir=./$as_dir;;
16753   esac
16754   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16755     as_dirs=
16756     while :; do
16757       case $as_dir in #(
16758       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16759       *) as_qdir=$as_dir;;
16760       esac
16761       as_dirs="'$as_qdir' $as_dirs"
16762       as_dir=`$as_dirname -- "$as_dir" ||
16763 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16764          X"$as_dir" : 'X\(//\)[^/]' \| \
16765          X"$as_dir" : 'X\(//\)$' \| \
16766          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16767 $as_echo X"$as_dir" |
16768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16769             s//\1/
16770             q
16771           }
16772           /^X\(\/\/\)[^/].*/{
16773             s//\1/
16774             q
16775           }
16776           /^X\(\/\/\)$/{
16777             s//\1/
16778             q
16779           }
16780           /^X\(\/\).*/{
16781             s//\1/
16782             q
16783           }
16784           s/.*/./; q'`
16785       test -d "$as_dir" && break
16786     done
16787     test -z "$as_dirs" || eval "mkdir $as_dirs"
16788   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16789 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16790    { (exit 1); exit 1; }; }; }
16791   ac_builddir=.
16792
16793 case "$ac_dir" in
16794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16795 *)
16796   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16797   # A ".." for each directory in $ac_dir_suffix.
16798   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16799   case $ac_top_builddir_sub in
16800   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16801   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16802   esac ;;
16803 esac
16804 ac_abs_top_builddir=$ac_pwd
16805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16806 # for backward compatibility:
16807 ac_top_builddir=$ac_top_build_prefix
16808
16809 case $srcdir in
16810   .)  # We are building in place.
16811     ac_srcdir=.
16812     ac_top_srcdir=$ac_top_builddir_sub
16813     ac_abs_top_srcdir=$ac_pwd ;;
16814   [\\/]* | ?:[\\/]* )  # Absolute name.
16815     ac_srcdir=$srcdir$ac_dir_suffix;
16816     ac_top_srcdir=$srcdir
16817     ac_abs_top_srcdir=$srcdir ;;
16818   *) # Relative name.
16819     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16820     ac_top_srcdir=$ac_top_build_prefix$srcdir
16821     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16822 esac
16823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16824
16825
16826   case $ac_mode in
16827   :F)
16828   #
16829   # CONFIG_FILE
16830   #
16831
16832   case $INSTALL in
16833   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16834   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16835   esac
16836   ac_MKDIR_P=$MKDIR_P
16837   case $MKDIR_P in
16838   [\\/$]* | ?:[\\/]* ) ;;
16839   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16840   esac
16841 _ACEOF
16842
16843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16844 # If the template does not know about datarootdir, expand it.
16845 # FIXME: This hack should be removed a few years after 2.60.
16846 ac_datarootdir_hack=; ac_datarootdir_seen=
16847
16848 ac_sed_dataroot='
16849 /datarootdir/ {
16850   p
16851   q
16852 }
16853 /@datadir@/p
16854 /@docdir@/p
16855 /@infodir@/p
16856 /@localedir@/p
16857 /@mandir@/p
16858 '
16859 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16860 *datarootdir*) ac_datarootdir_seen=yes;;
16861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16862   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16863 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16864 _ACEOF
16865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16866   ac_datarootdir_hack='
16867   s&@datadir@&$datadir&g
16868   s&@docdir@&$docdir&g
16869   s&@infodir@&$infodir&g
16870   s&@localedir@&$localedir&g
16871   s&@mandir@&$mandir&g
16872     s&\\\${datarootdir}&$datarootdir&g' ;;
16873 esac
16874 _ACEOF
16875
16876 # Neutralize VPATH when `$srcdir' = `.'.
16877 # Shell code in configure.ac might set extrasub.
16878 # FIXME: do we really want to maintain this feature?
16879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16880 ac_sed_extra="$ac_vpsub
16881 $extrasub
16882 _ACEOF
16883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16884 :t
16885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16886 s|@configure_input@|$ac_sed_conf_input|;t t
16887 s&@top_builddir@&$ac_top_builddir_sub&;t t
16888 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16889 s&@srcdir@&$ac_srcdir&;t t
16890 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16891 s&@top_srcdir@&$ac_top_srcdir&;t t
16892 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16893 s&@builddir@&$ac_builddir&;t t
16894 s&@abs_builddir@&$ac_abs_builddir&;t t
16895 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16896 s&@INSTALL@&$ac_INSTALL&;t t
16897 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16898 $ac_datarootdir_hack
16899 "
16900 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16901   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16902 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16903    { (exit 1); exit 1; }; }
16904
16905 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16906   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16907   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16908   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16909 which seems to be undefined.  Please make sure it is defined." >&5
16910 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16911 which seems to be undefined.  Please make sure it is defined." >&2;}
16912
16913   rm -f "$tmp/stdin"
16914   case $ac_file in
16915   -) cat "$tmp/out" && rm -f "$tmp/out";;
16916   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16917   esac \
16918   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16919 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16920    { (exit 1); exit 1; }; }
16921  ;;
16922   :H)
16923   #
16924   # CONFIG_HEADER
16925   #
16926   if test x"$ac_file" != x-; then
16927     {
16928       $as_echo "/* $configure_input  */" \
16929       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16930     } >"$tmp/config.h" \
16931       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16932 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16933    { (exit 1); exit 1; }; }
16934     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16935       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16936 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16937     else
16938       rm -f "$ac_file"
16939       mv "$tmp/config.h" "$ac_file" \
16940         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16941 $as_echo "$as_me: error: could not create $ac_file" >&2;}
16942    { (exit 1); exit 1; }; }
16943     fi
16944   else
16945     $as_echo "/* $configure_input  */" \
16946       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16947       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16948 $as_echo "$as_me: error: could not create -" >&2;}
16949    { (exit 1); exit 1; }; }
16950   fi
16951 # Compute "$ac_file"'s index in $config_headers.
16952 _am_arg="$ac_file"
16953 _am_stamp_count=1
16954 for _am_header in $config_headers :; do
16955   case $_am_header in
16956     $_am_arg | $_am_arg:* )
16957       break ;;
16958     * )
16959       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16960   esac
16961 done
16962 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16963 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16964          X"$_am_arg" : 'X\(//\)[^/]' \| \
16965          X"$_am_arg" : 'X\(//\)$' \| \
16966          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16967 $as_echo X"$_am_arg" |
16968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16969             s//\1/
16970             q
16971           }
16972           /^X\(\/\/\)[^/].*/{
16973             s//\1/
16974             q
16975           }
16976           /^X\(\/\/\)$/{
16977             s//\1/
16978             q
16979           }
16980           /^X\(\/\).*/{
16981             s//\1/
16982             q
16983           }
16984           s/.*/./; q'`/stamp-h$_am_stamp_count
16985  ;;
16986
16987   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16988 $as_echo "$as_me: executing $ac_file commands" >&6;}
16989  ;;
16990   esac
16991
16992
16993   case $ac_file$ac_mode in
16994     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16995   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16996   # are listed without --file.  Let's play safe and only enable the eval
16997   # if we detect the quoting.
16998   case $CONFIG_FILES in
16999   *\'*) eval set x "$CONFIG_FILES" ;;
17000   *)   set x $CONFIG_FILES ;;
17001   esac
17002   shift
17003   for mf
17004   do
17005     # Strip MF so we end up with the name of the file.
17006     mf=`echo "$mf" | sed -e 's/:.*$//'`
17007     # Check whether this is an Automake generated Makefile or not.
17008     # We used to match only the files named `Makefile.in', but
17009     # some people rename them; so instead we look at the file content.
17010     # Grep'ing the first line is not enough: some people post-process
17011     # each Makefile.in and add a new line on top of each file to say so.
17012     # Grep'ing the whole file is not good either: AIX grep has a line
17013     # limit of 2048, but all sed's we know have understand at least 4000.
17014     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17015       dirpart=`$as_dirname -- "$mf" ||
17016 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17017          X"$mf" : 'X\(//\)[^/]' \| \
17018          X"$mf" : 'X\(//\)$' \| \
17019          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17020 $as_echo X"$mf" |
17021     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17022             s//\1/
17023             q
17024           }
17025           /^X\(\/\/\)[^/].*/{
17026             s//\1/
17027             q
17028           }
17029           /^X\(\/\/\)$/{
17030             s//\1/
17031             q
17032           }
17033           /^X\(\/\).*/{
17034             s//\1/
17035             q
17036           }
17037           s/.*/./; q'`
17038     else
17039       continue
17040     fi
17041     # Extract the definition of DEPDIR, am__include, and am__quote
17042     # from the Makefile without running `make'.
17043     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17044     test -z "$DEPDIR" && continue
17045     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17046     test -z "am__include" && continue
17047     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17048     # When using ansi2knr, U may be empty or an underscore; expand it
17049     U=`sed -n 's/^U = //p' < "$mf"`
17050     # Find all dependency output files, they are included files with
17051     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17052     # simplest approach to changing $(DEPDIR) to its actual value in the
17053     # expansion.
17054     for file in `sed -n "
17055       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17056          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17057       # Make sure the directory exists.
17058       test -f "$dirpart/$file" && continue
17059       fdir=`$as_dirname -- "$file" ||
17060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17061          X"$file" : 'X\(//\)[^/]' \| \
17062          X"$file" : 'X\(//\)$' \| \
17063          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17064 $as_echo X"$file" |
17065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17066             s//\1/
17067             q
17068           }
17069           /^X\(\/\/\)[^/].*/{
17070             s//\1/
17071             q
17072           }
17073           /^X\(\/\/\)$/{
17074             s//\1/
17075             q
17076           }
17077           /^X\(\/\).*/{
17078             s//\1/
17079             q
17080           }
17081           s/.*/./; q'`
17082       { as_dir=$dirpart/$fdir
17083   case $as_dir in #(
17084   -*) as_dir=./$as_dir;;
17085   esac
17086   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17087     as_dirs=
17088     while :; do
17089       case $as_dir in #(
17090       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17091       *) as_qdir=$as_dir;;
17092       esac
17093       as_dirs="'$as_qdir' $as_dirs"
17094       as_dir=`$as_dirname -- "$as_dir" ||
17095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17096          X"$as_dir" : 'X\(//\)[^/]' \| \
17097          X"$as_dir" : 'X\(//\)$' \| \
17098          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17099 $as_echo X"$as_dir" |
17100     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17101             s//\1/
17102             q
17103           }
17104           /^X\(\/\/\)[^/].*/{
17105             s//\1/
17106             q
17107           }
17108           /^X\(\/\/\)$/{
17109             s//\1/
17110             q
17111           }
17112           /^X\(\/\).*/{
17113             s//\1/
17114             q
17115           }
17116           s/.*/./; q'`
17117       test -d "$as_dir" && break
17118     done
17119     test -z "$as_dirs" || eval "mkdir $as_dirs"
17120   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17121 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17122    { (exit 1); exit 1; }; }; }
17123       # echo "creating $dirpart/$file"
17124       echo '# dummy' > "$dirpart/$file"
17125     done
17126   done
17127 }
17128  ;;
17129     "libtool":C)
17130
17131     # See if we are running on zsh, and set the options which allow our
17132     # commands through without removal of \ escapes.
17133     if test -n "${ZSH_VERSION+set}" ; then
17134       setopt NO_GLOB_SUBST
17135     fi
17136
17137     cfgfile="${ofile}T"
17138     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17139     $RM "$cfgfile"
17140
17141     cat <<_LT_EOF >> "$cfgfile"
17142 #! $SHELL
17143
17144 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17145 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17146 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17147 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17148 #
17149 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17150 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17151 #   Written by Gordon Matzigkeit, 1996
17152 #
17153 #   This file is part of GNU Libtool.
17154 #
17155 # GNU Libtool is free software; you can redistribute it and/or
17156 # modify it under the terms of the GNU General Public License as
17157 # published by the Free Software Foundation; either version 2 of
17158 # the License, or (at your option) any later version.
17159 #
17160 # As a special exception to the GNU General Public License,
17161 # if you distribute this file as part of a program or library that
17162 # is built using GNU Libtool, you may include this file under the
17163 # same distribution terms that you use for the rest of that program.
17164 #
17165 # GNU Libtool is distributed in the hope that it will be useful,
17166 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17168 # GNU General Public License for more details.
17169 #
17170 # You should have received a copy of the GNU General Public License
17171 # along with GNU Libtool; see the file COPYING.  If not, a copy
17172 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17173 # obtained by writing to the Free Software Foundation, Inc.,
17174 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17175
17176
17177 # The names of the tagged configurations supported by this script.
17178 available_tags=""
17179
17180 # ### BEGIN LIBTOOL CONFIG
17181
17182 # Which release of libtool.m4 was used?
17183 macro_version=$macro_version
17184 macro_revision=$macro_revision
17185
17186 # Whether or not to build shared libraries.
17187 build_libtool_libs=$enable_shared
17188
17189 # Whether or not to build static libraries.
17190 build_old_libs=$enable_static
17191
17192 # What type of objects to build.
17193 pic_mode=$pic_mode
17194
17195 # Whether or not to optimize for fast installation.
17196 fast_install=$enable_fast_install
17197
17198 # The host system.
17199 host_alias=$host_alias
17200 host=$host
17201 host_os=$host_os
17202
17203 # The build system.
17204 build_alias=$build_alias
17205 build=$build
17206 build_os=$build_os
17207
17208 # A sed program that does not truncate output.
17209 SED=$lt_SED
17210
17211 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17212 Xsed="\$SED -e 1s/^X//"
17213
17214 # A grep program that handles long lines.
17215 GREP=$lt_GREP
17216
17217 # An ERE matcher.
17218 EGREP=$lt_EGREP
17219
17220 # A literal string matcher.
17221 FGREP=$lt_FGREP
17222
17223 # A BSD- or MS-compatible name lister.
17224 NM=$lt_NM
17225
17226 # Whether we need soft or hard links.
17227 LN_S=$lt_LN_S
17228
17229 # What is the maximum length of a command?
17230 max_cmd_len=$max_cmd_len
17231
17232 # Object file suffix (normally "o").
17233 objext=$ac_objext
17234
17235 # Executable file suffix (normally "").
17236 exeext=$exeext
17237
17238 # whether the shell understands "unset".
17239 lt_unset=$lt_unset
17240
17241 # turn spaces into newlines.
17242 SP2NL=$lt_lt_SP2NL
17243
17244 # turn newlines into spaces.
17245 NL2SP=$lt_lt_NL2SP
17246
17247 # How to create reloadable object files.
17248 reload_flag=$lt_reload_flag
17249 reload_cmds=$lt_reload_cmds
17250
17251 # An object symbol dumper.
17252 OBJDUMP=$lt_OBJDUMP
17253
17254 # Method to check whether dependent libraries are shared objects.
17255 deplibs_check_method=$lt_deplibs_check_method
17256
17257 # Command to use when deplibs_check_method == "file_magic".
17258 file_magic_cmd=$lt_file_magic_cmd
17259
17260 # The archiver.
17261 AR=$lt_AR
17262 AR_FLAGS=$lt_AR_FLAGS
17263
17264 # A symbol stripping program.
17265 STRIP=$lt_STRIP
17266
17267 # Commands used to install an old-style archive.
17268 RANLIB=$lt_RANLIB
17269 old_postinstall_cmds=$lt_old_postinstall_cmds
17270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17271
17272 # A C compiler.
17273 LTCC=$lt_CC
17274
17275 # LTCC compiler flags.
17276 LTCFLAGS=$lt_CFLAGS
17277
17278 # Take the output of nm and produce a listing of raw symbols and C names.
17279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17280
17281 # Transform the output of nm in a proper C declaration.
17282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17283
17284 # Transform the output of nm in a C name address pair.
17285 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17286
17287 # Transform the output of nm in a C name address pair when lib prefix is needed.
17288 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17289
17290 # The name of the directory that contains temporary libtool files.
17291 objdir=$objdir
17292
17293 # Shell to use when invoking shell scripts.
17294 SHELL=$lt_SHELL
17295
17296 # An echo program that does not interpret backslashes.
17297 ECHO=$lt_ECHO
17298
17299 # Used to examine libraries when file_magic_cmd begins with "file".
17300 MAGIC_CMD=$MAGIC_CMD
17301
17302 # Must we lock files when doing compilation?
17303 need_locks=$lt_need_locks
17304
17305 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17306 DSYMUTIL=$lt_DSYMUTIL
17307
17308 # Tool to change global to local symbols on Mac OS X.
17309 NMEDIT=$lt_NMEDIT
17310
17311 # Tool to manipulate fat objects and archives on Mac OS X.
17312 LIPO=$lt_LIPO
17313
17314 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17315 OTOOL=$lt_OTOOL
17316
17317 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17318 OTOOL64=$lt_OTOOL64
17319
17320 # Old archive suffix (normally "a").
17321 libext=$libext
17322
17323 # Shared library suffix (normally ".so").
17324 shrext_cmds=$lt_shrext_cmds
17325
17326 # The commands to extract the exported symbol list from a shared archive.
17327 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17328
17329 # Variables whose values should be saved in libtool wrapper scripts and
17330 # restored at link time.
17331 variables_saved_for_relink=$lt_variables_saved_for_relink
17332
17333 # Do we need the "lib" prefix for modules?
17334 need_lib_prefix=$need_lib_prefix
17335
17336 # Do we need a version for libraries?
17337 need_version=$need_version
17338
17339 # Library versioning type.
17340 version_type=$version_type
17341
17342 # Shared library runtime path variable.
17343 runpath_var=$runpath_var
17344
17345 # Shared library path variable.
17346 shlibpath_var=$shlibpath_var
17347
17348 # Is shlibpath searched before the hard-coded library search path?
17349 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17350
17351 # Format of library name prefix.
17352 libname_spec=$lt_libname_spec
17353
17354 # List of archive names.  First name is the real one, the rest are links.
17355 # The last name is the one that the linker finds with -lNAME
17356 library_names_spec=$lt_library_names_spec
17357
17358 # The coded name of the library, if different from the real name.
17359 soname_spec=$lt_soname_spec
17360
17361 # Command to use after installation of a shared archive.
17362 postinstall_cmds=$lt_postinstall_cmds
17363
17364 # Command to use after uninstallation of a shared archive.
17365 postuninstall_cmds=$lt_postuninstall_cmds
17366
17367 # Commands used to finish a libtool library installation in a directory.
17368 finish_cmds=$lt_finish_cmds
17369
17370 # As "finish_cmds", except a single script fragment to be evaled but
17371 # not shown.
17372 finish_eval=$lt_finish_eval
17373
17374 # Whether we should hardcode library paths into libraries.
17375 hardcode_into_libs=$hardcode_into_libs
17376
17377 # Compile-time system search path for libraries.
17378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17379
17380 # Run-time system search path for libraries.
17381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17382
17383 # Whether dlopen is supported.
17384 dlopen_support=$enable_dlopen
17385
17386 # Whether dlopen of programs is supported.
17387 dlopen_self=$enable_dlopen_self
17388
17389 # Whether dlopen of statically linked programs is supported.
17390 dlopen_self_static=$enable_dlopen_self_static
17391
17392 # Commands to strip libraries.
17393 old_striplib=$lt_old_striplib
17394 striplib=$lt_striplib
17395
17396
17397 # The linker used to build libraries.
17398 LD=$lt_LD
17399
17400 # Commands used to build an old-style archive.
17401 old_archive_cmds=$lt_old_archive_cmds
17402
17403 # A language specific compiler.
17404 CC=$lt_compiler
17405
17406 # Is the compiler the GNU compiler?
17407 with_gcc=$GCC
17408
17409 # Compiler flag to turn off builtin functions.
17410 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17411
17412 # How to pass a linker flag through the compiler.
17413 wl=$lt_lt_prog_compiler_wl
17414
17415 # Additional compiler flags for building library objects.
17416 pic_flag=$lt_lt_prog_compiler_pic
17417
17418 # Compiler flag to prevent dynamic linking.
17419 link_static_flag=$lt_lt_prog_compiler_static
17420
17421 # Does compiler simultaneously support -c and -o options?
17422 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17423
17424 # Whether or not to add -lc for building shared libraries.
17425 build_libtool_need_lc=$archive_cmds_need_lc
17426
17427 # Whether or not to disallow shared libs when runtime libs are static.
17428 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17429
17430 # Compiler flag to allow reflexive dlopens.
17431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17432
17433 # Compiler flag to generate shared objects directly from archives.
17434 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17435
17436 # Whether the compiler copes with passing no objects directly.
17437 compiler_needs_object=$lt_compiler_needs_object
17438
17439 # Create an old-style archive from a shared archive.
17440 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17441
17442 # Create a temporary old-style archive to link instead of a shared archive.
17443 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17444
17445 # Commands used to build a shared archive.
17446 archive_cmds=$lt_archive_cmds
17447 archive_expsym_cmds=$lt_archive_expsym_cmds
17448
17449 # Commands used to build a loadable module if different from building
17450 # a shared archive.
17451 module_cmds=$lt_module_cmds
17452 module_expsym_cmds=$lt_module_expsym_cmds
17453
17454 # Whether we are building with GNU ld or not.
17455 with_gnu_ld=$lt_with_gnu_ld
17456
17457 # Flag that allows shared libraries with undefined symbols to be built.
17458 allow_undefined_flag=$lt_allow_undefined_flag
17459
17460 # Flag that enforces no undefined symbols.
17461 no_undefined_flag=$lt_no_undefined_flag
17462
17463 # Flag to hardcode \$libdir into a binary during linking.
17464 # This must work even if \$libdir does not exist
17465 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17466
17467 # If ld is used when linking, flag to hardcode \$libdir into a binary
17468 # during linking.  This must work even if \$libdir does not exist.
17469 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17470
17471 # Whether we need a single "-rpath" flag with a separated argument.
17472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17473
17474 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17475 # DIR into the resulting binary.
17476 hardcode_direct=$hardcode_direct
17477
17478 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17479 # DIR into the resulting binary and the resulting library dependency is
17480 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17481 # library is relocated.
17482 hardcode_direct_absolute=$hardcode_direct_absolute
17483
17484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17485 # into the resulting binary.
17486 hardcode_minus_L=$hardcode_minus_L
17487
17488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17489 # into the resulting binary.
17490 hardcode_shlibpath_var=$hardcode_shlibpath_var
17491
17492 # Set to "yes" if building a shared library automatically hardcodes DIR
17493 # into the library and all subsequent libraries and executables linked
17494 # against it.
17495 hardcode_automatic=$hardcode_automatic
17496
17497 # Set to yes if linker adds runtime paths of dependent libraries
17498 # to runtime path list.
17499 inherit_rpath=$inherit_rpath
17500
17501 # Whether libtool must link a program against all its dependency libraries.
17502 link_all_deplibs=$link_all_deplibs
17503
17504 # Fix the shell variable \$srcfile for the compiler.
17505 fix_srcfile_path=$lt_fix_srcfile_path
17506
17507 # Set to "yes" if exported symbols are required.
17508 always_export_symbols=$always_export_symbols
17509
17510 # The commands to list exported symbols.
17511 export_symbols_cmds=$lt_export_symbols_cmds
17512
17513 # Symbols that should not be listed in the preloaded symbols.
17514 exclude_expsyms=$lt_exclude_expsyms
17515
17516 # Symbols that must always be exported.
17517 include_expsyms=$lt_include_expsyms
17518
17519 # Commands necessary for linking programs (against libraries) with templates.
17520 prelink_cmds=$lt_prelink_cmds
17521
17522 # Specify filename containing input files.
17523 file_list_spec=$lt_file_list_spec
17524
17525 # How to hardcode a shared library path into an executable.
17526 hardcode_action=$hardcode_action
17527
17528 # ### END LIBTOOL CONFIG
17529
17530 _LT_EOF
17531
17532   case $host_os in
17533   aix3*)
17534     cat <<\_LT_EOF >> "$cfgfile"
17535 # AIX sometimes has problems with the GCC collect2 program.  For some
17536 # reason, if we set the COLLECT_NAMES environment variable, the problems
17537 # vanish in a puff of smoke.
17538 if test "X${COLLECT_NAMES+set}" != Xset; then
17539   COLLECT_NAMES=
17540   export COLLECT_NAMES
17541 fi
17542 _LT_EOF
17543     ;;
17544   esac
17545
17546
17547 ltmain="$ac_aux_dir/ltmain.sh"
17548
17549
17550   # We use sed instead of cat because bash on DJGPP gets confused if
17551   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17552   # text mode, it properly converts lines to CR/LF.  This bash problem
17553   # is reportedly fixed, but why not run on old versions too?
17554   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17555     || (rm -f "$cfgfile"; exit 1)
17556
17557   case $xsi_shell in
17558   yes)
17559     cat << \_LT_EOF >> "$cfgfile"
17560
17561 # func_dirname file append nondir_replacement
17562 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17563 # otherwise set result to NONDIR_REPLACEMENT.
17564 func_dirname ()
17565 {
17566   case ${1} in
17567     */*) func_dirname_result="${1%/*}${2}" ;;
17568     *  ) func_dirname_result="${3}" ;;
17569   esac
17570 }
17571
17572 # func_basename file
17573 func_basename ()
17574 {
17575   func_basename_result="${1##*/}"
17576 }
17577
17578 # func_dirname_and_basename file append nondir_replacement
17579 # perform func_basename and func_dirname in a single function
17580 # call:
17581 #   dirname:  Compute the dirname of FILE.  If nonempty,
17582 #             add APPEND to the result, otherwise set result
17583 #             to NONDIR_REPLACEMENT.
17584 #             value returned in "$func_dirname_result"
17585 #   basename: Compute filename of FILE.
17586 #             value retuned in "$func_basename_result"
17587 # Implementation must be kept synchronized with func_dirname
17588 # and func_basename. For efficiency, we do not delegate to
17589 # those functions but instead duplicate the functionality here.
17590 func_dirname_and_basename ()
17591 {
17592   case ${1} in
17593     */*) func_dirname_result="${1%/*}${2}" ;;
17594     *  ) func_dirname_result="${3}" ;;
17595   esac
17596   func_basename_result="${1##*/}"
17597 }
17598
17599 # func_stripname prefix suffix name
17600 # strip PREFIX and SUFFIX off of NAME.
17601 # PREFIX and SUFFIX must not contain globbing or regex special
17602 # characters, hashes, percent signs, but SUFFIX may contain a leading
17603 # dot (in which case that matches only a dot).
17604 func_stripname ()
17605 {
17606   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17607   # positional parameters, so assign one to ordinary parameter first.
17608   func_stripname_result=${3}
17609   func_stripname_result=${func_stripname_result#"${1}"}
17610   func_stripname_result=${func_stripname_result%"${2}"}
17611 }
17612
17613 # func_opt_split
17614 func_opt_split ()
17615 {
17616   func_opt_split_opt=${1%%=*}
17617   func_opt_split_arg=${1#*=}
17618 }
17619
17620 # func_lo2o object
17621 func_lo2o ()
17622 {
17623   case ${1} in
17624     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17625     *)    func_lo2o_result=${1} ;;
17626   esac
17627 }
17628
17629 # func_xform libobj-or-source
17630 func_xform ()
17631 {
17632   func_xform_result=${1%.*}.lo
17633 }
17634
17635 # func_arith arithmetic-term...
17636 func_arith ()
17637 {
17638   func_arith_result=$(( $* ))
17639 }
17640
17641 # func_len string
17642 # STRING may not start with a hyphen.
17643 func_len ()
17644 {
17645   func_len_result=${#1}
17646 }
17647
17648 _LT_EOF
17649     ;;
17650   *) # Bourne compatible functions.
17651     cat << \_LT_EOF >> "$cfgfile"
17652
17653 # func_dirname file append nondir_replacement
17654 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17655 # otherwise set result to NONDIR_REPLACEMENT.
17656 func_dirname ()
17657 {
17658   # Extract subdirectory from the argument.
17659   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17660   if test "X$func_dirname_result" = "X${1}"; then
17661     func_dirname_result="${3}"
17662   else
17663     func_dirname_result="$func_dirname_result${2}"
17664   fi
17665 }
17666
17667 # func_basename file
17668 func_basename ()
17669 {
17670   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17671 }
17672
17673
17674 # func_stripname prefix suffix name
17675 # strip PREFIX and SUFFIX off of NAME.
17676 # PREFIX and SUFFIX must not contain globbing or regex special
17677 # characters, hashes, percent signs, but SUFFIX may contain a leading
17678 # dot (in which case that matches only a dot).
17679 # func_strip_suffix prefix name
17680 func_stripname ()
17681 {
17682   case ${2} in
17683     .*) func_stripname_result=`$ECHO "X${3}" \
17684            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17685     *)  func_stripname_result=`$ECHO "X${3}" \
17686            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17687   esac
17688 }
17689
17690 # sed scripts:
17691 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17692 my_sed_long_arg='1s/^-[^=]*=//'
17693
17694 # func_opt_split
17695 func_opt_split ()
17696 {
17697   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17698   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17699 }
17700
17701 # func_lo2o object
17702 func_lo2o ()
17703 {
17704   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17705 }
17706
17707 # func_xform libobj-or-source
17708 func_xform ()
17709 {
17710   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17711 }
17712
17713 # func_arith arithmetic-term...
17714 func_arith ()
17715 {
17716   func_arith_result=`expr "$@"`
17717 }
17718
17719 # func_len string
17720 # STRING may not start with a hyphen.
17721 func_len ()
17722 {
17723   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17724 }
17725
17726 _LT_EOF
17727 esac
17728
17729 case $lt_shell_append in
17730   yes)
17731     cat << \_LT_EOF >> "$cfgfile"
17732
17733 # func_append var value
17734 # Append VALUE to the end of shell variable VAR.
17735 func_append ()
17736 {
17737   eval "$1+=\$2"
17738 }
17739 _LT_EOF
17740     ;;
17741   *)
17742     cat << \_LT_EOF >> "$cfgfile"
17743
17744 # func_append var value
17745 # Append VALUE to the end of shell variable VAR.
17746 func_append ()
17747 {
17748   eval "$1=\$$1\$2"
17749 }
17750
17751 _LT_EOF
17752     ;;
17753   esac
17754
17755
17756   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17757     || (rm -f "$cfgfile"; exit 1)
17758
17759   mv -f "$cfgfile" "$ofile" ||
17760     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17761   chmod +x "$ofile"
17762
17763  ;;
17764
17765   esac
17766 done # for ac_tag
17767
17768
17769 { (exit 0); exit 0; }
17770 _ACEOF
17771 chmod +x $CONFIG_STATUS
17772 ac_clean_files=$ac_clean_files_save
17773
17774 test $ac_write_fail = 0 ||
17775   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17776 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17777    { (exit 1); exit 1; }; }
17778
17779
17780 # configure is writing to config.log, and then calls config.status.
17781 # config.status does its own redirection, appending to config.log.
17782 # Unfortunately, on DOS this fails, as config.log is still kept open
17783 # by configure, so config.status won't be able to write to it; its
17784 # output is simply discarded.  So we exec the FD to /dev/null,
17785 # effectively closing config.log, so it can be properly (re)opened and
17786 # appended to by config.status.  When coming back to configure, we
17787 # need to make the FD available again.
17788 if test "$no_create" != yes; then
17789   ac_cs_success=:
17790   ac_config_status_args=
17791   test "$silent" = yes &&
17792     ac_config_status_args="$ac_config_status_args --quiet"
17793   exec 5>/dev/null
17794   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17795   exec 5>>config.log
17796   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17797   # would make configure fail if this is the last instruction.
17798   $ac_cs_success || { (exit 1); exit 1; }
17799 fi
17800 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17801   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17802 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17803 fi
17804